1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.69 for tor 0.4.7.2-alpha. 4# 5# 6# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. 7# 8# 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## -------------------- ## 14 15# Be more Bourne compatible 16DUALCASE=1; export DUALCASE # for MKS sh 17if 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 24else 25 case `(set -o) 2>/dev/null` in #( 26 *posix*) : 27 set -o posix ;; #( 28 *) : 29 ;; 30esac 31fi 32 33 34as_nl=' 35' 36export as_nl 37# Printing a long string crashes Solaris 7 /usr/bin/printf. 38as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 39as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 40as_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. 43if 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 --' 47elif (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' 50else 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" 64 ' 65 export as_echo_n_body 66 as_echo_n='sh -c $as_echo_n_body as_echo' 67 fi 68 export as_echo_body 69 as_echo='sh -c $as_echo_body as_echo' 70fi 71 72# The user is always right. 73if 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=';' 78 } 79fi 80 81 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.) 87IFS=" "" $as_nl" 88 89# Find who we are. Look in the path if we contain no directory separator. 90as_myself= 91case $0 in #(( 92 *[\\/]* ) as_myself=$0 ;; 93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 94for as_dir in $PATH 95do 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 100IFS=$as_save_IFS 101 102 ;; 103esac 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. 106if test "x$as_myself" = x; then 107 as_myself=$0 108fi 109if test ! -f "$as_myself"; then 110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 111 exit 1 112fi 113 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. 118for as_var in BASH_ENV ENV MAIL MAILPATH 119do eval test x\${$as_var+set} = xset \ 120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 121done 122PS1='$ ' 123PS2='> ' 124PS4='+ ' 125 126# NLS nuisances. 127LC_ALL=C 128export LC_ALL 129LANGUAGE=C 130export LANGUAGE 131 132# CDPATH. 133(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 134 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. 143BASH_ENV=/dev/null 144ENV=/dev/null 145(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 146case $- in # (((( 147 *v*x* | *x*v* ) as_opts=-vx ;; 148 *v* ) as_opts=-v ;; 149 *x* ) as_opts=-x ;; 150 * ) as_opts= ;; 151esac 152exec $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 156as_fn_exit 255 157 fi 158 # We don't want this to propagate to other subprocesses. 159 { _as_can_reexec=; unset _as_can_reexec;} 160if 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 168else 169 case \`(set -o) 2>/dev/null\` in #( 170 *posix*) : 171 set -o posix ;; #( 172 *) : 173 ;; 174esac 175fi 176" 177 as_required="as_fn_return () { (exit \$1); } 178as_fn_success () { as_fn_return 0; } 179as_fn_failure () { as_fn_return 1; } 180as_fn_ret_success () { return 0; } 181as_fn_ret_failure () { return 1; } 182 183exitcode=0 184as_fn_success || { exitcode=1; echo as_fn_success failed.; } 185as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 186as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 187as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 188if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 189 190else 191 exitcode=1; echo positional parameters were not saved. 192fi 193test x\$exitcode = x0 || exit 1 194test -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 199test \$(( 1 + 1 )) = 2 || exit 1" 200 if (eval "$as_required") 2>/dev/null; then : 201 as_have_required=yes 202else 203 as_have_required=no 204fi 205 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 206 207else 208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 209as_found=false 210for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 211do 212 IFS=$as_save_IFS 213 test -z "$as_dir" && as_dir=. 214 as_found=: 215 case $as_dir in #( 216 /*) 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 225fi 226fi 227 done;; 228 esac 229 as_found=false 230done 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 234fi; } 235IFS=$as_save_IFS 236 237 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. 244BASH_ENV=/dev/null 245ENV=/dev/null 246(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 247case $- in # (((( 248 *v*x* | *x*v* ) as_opts=-vx ;; 249 *v* ) as_opts=-v ;; 250 *x* ) as_opts=-x ;; 251 * ) as_opts= ;; 252esac 253exec $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 257exit 255 258fi 259 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." 271 fi 272 exit 1 273fi 274fi 275fi 276SHELL=${CONFIG_SHELL-/bin/sh} 277export SHELL 278# Unset more variables known to interfere with behavior of common tools. 279CLICOLOR_FORCE= GREP_OPTIONS= 280unset CLICOLOR_FORCE GREP_OPTIONS 281 282## --------------------- ## 283## M4sh Shell Functions. ## 284## --------------------- ## 285# as_fn_unset VAR 286# --------------- 287# Portably unset VAR. 288as_fn_unset () 289{ 290 { eval $1=; unset $1;} 291} 292as_unset=as_fn_unset 293 294# as_fn_set_status STATUS 295# ----------------------- 296# Set $? to STATUS, without forking. 297as_fn_set_status () 298{ 299 return $1 300} # as_fn_set_status 301 302# as_fn_exit STATUS 303# ----------------- 304# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 305as_fn_exit () 306{ 307 set +e 308 as_fn_set_status $1 309 exit $1 310} # as_fn_exit 311 312# as_fn_mkdir_p 313# ------------- 314# Create "$as_dir" as a directory, including parents if necessary. 315as_fn_mkdir_p () 316{ 317 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/ 337 q 338 } 339 /^X\(\/\/\)[^/].*/{ 340 s//\1/ 341 q 342 } 343 /^X\(\/\/\)$/{ 344 s//\1/ 345 q 346 } 347 /^X\(\/\).*/{ 348 s//\1/ 349 q 350 } 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" 356 357 358} # as_fn_mkdir_p 359 360# as_fn_executable_p FILE 361# ----------------------- 362# Test if FILE is an executable regular file. 363as_fn_executable_p () 364{ 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. 373if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 374 eval 'as_fn_append () 375 { 376 eval $1+=\$2 377 }' 378else 379 as_fn_append () 380 { 381 eval $1=\$$1\$2 382 } 383fi # as_fn_append 384 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. 390if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 391 eval 'as_fn_arith () 392 { 393 as_val=$(( $* )) 394 }' 395else 396 as_fn_arith () 397 { 398 as_val=`expr "$@" || test $? -eq 1` 399 } 400fi # as_fn_arith 401 402 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. 408as_fn_error () 409{ 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 414 fi 415 $as_echo "$as_me: error: $2" >&2 416 as_fn_exit $as_status 417} # as_fn_error 418 419if expr a : '\(a\)' >/dev/null 2>&1 && 420 test "X`expr 00001 : '.*\(...\)'`" = X001; then 421 as_expr=expr 422else 423 as_expr=false 424fi 425 426if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 427 as_basename=basename 428else 429 as_basename=false 430fi 431 432if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 433 as_dirname=dirname 434else 435 as_dirname=false 436fi 437 438as_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/ 445 q 446 } 447 /^X\/\(\/\/\)$/{ 448 s//\1/ 449 q 450 } 451 /^X\/\(\/\).*/{ 452 s//\1/ 453 q 454 } 455 s/.*/./; q'` 456 457# Avoid depending upon Character Ranges. 458as_cr_letters='abcdefghijklmnopqrstuvwxyz' 459as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 460as_cr_Letters=$as_cr_letters$as_cr_LETTERS 461as_cr_digits='0123456789' 462as_cr_alnum=$as_cr_Letters$as_cr_digits 463 464 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 ' 471 p 472 /[$]LINENO/= 473 ' <$as_myself | 474 sed ' 475 s/[$]LINENO.*/&-/ 476 t lineno 477 b 478 :lineno 479 N 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; } 487 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 498} 499 500ECHO_C= ECHO_N= ECHO_T= 501case `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;; 509*) 510 ECHO_N='-n';; 511esac 512 513rm -f conf$$ conf$$.exe conf$$.file 514if test -d conf$$.dir; then 515 rm -f conf$$.dir/conf$$.file 516else 517 rm -f conf$$.dir 518 mkdir conf$$.dir 2>/dev/null 519fi 520if (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' 533 fi 534else 535 as_ln_s='cp -pR' 536fi 537rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 538rmdir conf$$.dir 2>/dev/null 539 540if mkdir -p . 2>/dev/null; then 541 as_mkdir_p='mkdir -p "$as_dir"' 542else 543 test -d ./-p && rmdir ./-p 544 as_mkdir_p=false 545fi 546 547as_test_x='test -x' 548as_executable_p=as_fn_executable_p 549 550# Sed expression to map a string onto a valid CPP name. 551as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 552 553# Sed expression to map a string onto a valid variable name. 554as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 555 556 557test -n "$DJDIR" || exec 7<&0 </dev/null 558exec 6>&1 559 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. 563ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 564 565# 566# Initializations. 567# 568ac_default_prefix=/usr/local 569ac_clean_files= 570ac_config_libobj_dir=. 571LIBOBJS= 572cross_compiling=no 573subdirs= 574MFLAGS= 575MAKEFLAGS= 576 577# Identity of this package. 578PACKAGE_NAME='tor' 579PACKAGE_TARNAME='tor' 580PACKAGE_VERSION='0.4.7.2-alpha' 581PACKAGE_STRING='tor 0.4.7.2-alpha' 582PACKAGE_BUGREPORT='' 583PACKAGE_URL='' 584 585ac_unique_file="src/app/main/tor_main.c" 586# Factoring default headers for most tests. 587ac_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" 621 622ac_subst_vars='pprint_tput 623am__EXEEXT_FALSE 624am__EXEEXT_TRUE 625LTLIBOBJS 626LIBOBJS 627TOR_WARNING_FLAGS 628LOCALSTATEDIR 629BINDIR 630CONFDIR 631BUILDDIR 632LOGFACILITY 633USE_OPENBSD_MALLOC_FALSE 634USE_OPENBSD_MALLOC_TRUE 635JEMALLOC_LIBS 636JEMALLOC_CFLAGS 637TCMALLOC_LIBS 638TCMALLOC_CFLAGS 639CURVE25519_LIBS 640BUILD_CURVE25519_DONNA_C64_FALSE 641BUILD_CURVE25519_DONNA_C64_TRUE 642BUILD_CURVE25519_DONNA_FALSE 643BUILD_CURVE25519_DONNA_TRUE 644F_OMIT_FRAME_POINTER 645CFLAGS_CONSTTIME 646CFLAGS_BUGTRAP 647ADD_MULODI4_FALSE 648ADD_MULODI4_TRUE 649TOR_ZSTD_LIBS 650TOR_ZSTD_CFLAGS 651ZSTD_LIBS 652ZSTD_CFLAGS 653TOR_LZMA_LIBS 654TOR_LZMA_CFLAGS 655LZMA_LIBS 656LZMA_CFLAGS 657TOR_ZLIB_LIBS 658TOR_LDFLAGS_zlib 659TOR_CPPFLAGS_zlib 660BUILD_KECCAK_TINY_FALSE 661BUILD_KECCAK_TINY_TRUE 662TOR_OPENSSL_LIBS 663TOR_LDFLAGS_openssl 664TOR_CPPFLAGS_openssl 665NSS_LIBS 666NSS_CFLAGS 667TOR_LIB_MATH 668TOR_LIBEVENT_LIBS 669TOR_LDFLAGS_libevent 670TOR_CPPFLAGS_libevent 671TOR_LIB_USERENV 672TOR_LIB_SHLWAPI 673TOR_LIB_CRYPT32 674TOR_LIB_BCRYPT 675TOR_LIB_IPHLPAPI 676TOR_LIB_GDI 677TOR_LIB_WS32 678BUILD_READPASSPHRASE_C_FALSE 679BUILD_READPASSPHRASE_C_TRUE 680THREADS_PTHREADS_FALSE 681THREADS_PTHREADS_TRUE 682THREADS_WIN32_FALSE 683THREADS_WIN32_TRUE 684BUILD_LIBTORRUNNER_FALSE 685BUILD_LIBTORRUNNER_TRUE 686BUILD_NT_SERVICES_FALSE 687BUILD_NT_SERVICES_TRUE 688WIN32_FALSE 689WIN32_TRUE 690TORGROUP 691TORUSER 692USEPYTHON_FALSE 693USEPYTHON_TRUE 694PYTHON 695BUILD_HTML_DOCS_FALSE 696BUILD_HTML_DOCS_TRUE 697BUILD_MANPAGE_FALSE 698BUILD_MANPAGE_TRUE 699USE_ASCIIDOC_FALSE 700USE_ASCIIDOC_TRUE 701A2X 702ASCIIDOC 703USE_PERL_FALSE 704USE_PERL_TRUE 705PERL 706SED 707RANLIB 708ac_ct_AR 709AR 710TOR_MODULES_ALL_ENABLED 711BUILD_MODULE_DIRAUTH_FALSE 712BUILD_MODULE_DIRAUTH_TRUE 713BUILD_MODULE_DIRCACHE_FALSE 714BUILD_MODULE_DIRCACHE_TRUE 715BUILD_MODULE_RELAY_FALSE 716BUILD_MODULE_RELAY_TRUE 717USE_ANDROID_FALSE 718USE_ANDROID_TRUE 719TOR_TRACE_LIBS 720USE_TRACING_FALSE 721USE_TRACING_TRUE 722USE_TRACING_INSTRUMENTATION_LOG_DEBUG_FALSE 723USE_TRACING_INSTRUMENTATION_LOG_DEBUG_TRUE 724USE_TRACING_INSTRUMENTATION_USDT_FALSE 725USE_TRACING_INSTRUMENTATION_USDT_TRUE 726USE_TRACING_INSTRUMENTATION_LTTNG_FALSE 727USE_TRACING_INSTRUMENTATION_LTTNG_TRUE 728TOR_SYSTEMD_LIBS 729TOR_SYSTEMD_CFLAGS 730LIBSYSTEMD209_LIBS 731LIBSYSTEMD209_CFLAGS 732SYSTEMD_LIBS 733SYSTEMD_CFLAGS 734TOR_STATIC_LDFLAGS 735USE_OPENSSL_FALSE 736USE_OPENSSL_TRUE 737USE_NSS_FALSE 738USE_NSS_TRUE 739OSS_FUZZ_ENABLED_FALSE 740OSS_FUZZ_ENABLED_TRUE 741LIBFUZZER_ENABLED_FALSE 742LIBFUZZER_ENABLED_TRUE 743DISABLE_ASSERTS_IN_UNIT_TESTS_FALSE 744DISABLE_ASSERTS_IN_UNIT_TESTS_TRUE 745COVERAGE_ENABLED_FALSE 746COVERAGE_ENABLED_TRUE 747UNITTESTS_ENABLED_FALSE 748UNITTESTS_ENABLED_TRUE 749DOXYGEN_WARN_ON_MISSING 750DOXYGEN_FATAL_WARNINGS 751PKG_CONFIG_LIBDIR 752PKG_CONFIG_PATH 753PKG_CONFIG 754host_os 755host_vendor 756host_cpu 757host 758build_os 759build_vendor 760build_cpu 761build 762EGREP 763GREP 764CPP 765am__fastdepCC_FALSE 766am__fastdepCC_TRUE 767CCDEPMODE 768am__nodep 769AMDEPBACKSLASH 770AMDEP_FALSE 771AMDEP_TRUE 772am__include 773DEPDIR 774OBJEXT 775EXEEXT 776ac_ct_CC 777CPPFLAGS 778LDFLAGS 779CFLAGS 780CC 781AM_BACKSLASH 782AM_DEFAULT_VERBOSITY 783AM_DEFAULT_V 784AM_V 785CSCOPE 786ETAGS 787CTAGS 788am__untar 789am__tar 790AMTAR 791am__leading_dot 792SET_MAKE 793AWK 794mkdir_p 795MKDIR_P 796INSTALL_STRIP_PROGRAM 797STRIP 798install_sh 799MAKEINFO 800AUTOHEADER 801AUTOMAKE 802AUTOCONF 803ACLOCAL 804VERSION 805PACKAGE 806CYGPATH_W 807am__isrc 808INSTALL_DATA 809INSTALL_SCRIPT 810INSTALL_PROGRAM 811target_alias 812host_alias 813build_alias 814LIBS 815ECHO_T 816ECHO_N 817ECHO_C 818DEFS 819mandir 820localedir 821libdir 822psdir 823pdfdir 824dvidir 825htmldir 826infodir 827docdir 828oldincludedir 829includedir 830runstatedir 831localstatedir 832sharedstatedir 833sysconfdir 834datadir 835datarootdir 836libexecdir 837sbindir 838bindir 839program_transform_name 840prefix 841exec_prefix 842PACKAGE_URL 843PACKAGE_BUGREPORT 844PACKAGE_STRING 845PACKAGE_VERSION 846PACKAGE_TARNAME 847PACKAGE_NAME 848PATH_SEPARATOR 849SHELL 850am__quote' 851ac_subst_files='' 852ac_user_opts=' 853enable_option_checking 854enable_silent_rules 855enable_dependency_tracking 856enable_openbsd_malloc 857enable_static_openssl 858enable_static_libevent 859enable_static_zlib 860enable_static_tor 861enable_unittests 862enable_coverage 863enable_asserts_in_tests 864enable_system_torrc 865enable_libfuzzer 866enable_oss_fuzz 867enable_memory_sentinels 868enable_restart_debugging 869enable_zstd_advanced_apis 870enable_nss 871enable_pic 872enable_missing_doc_warnings 873enable_manpage 874enable_html_manual 875enable_asciidoc 876enable_systemd 877enable_gcc_warnings 878enable_fatal_warnings 879enable_gcc_warnings_advisory 880enable_gcc_hardening 881enable_expensive_hardening 882enable_fragile_hardening 883enable_all_bugs_are_fatal 884enable_linker_hardening 885enable_local_appdata 886enable_tool_name_check 887enable_seccomp 888enable_libscrypt 889enable_tracing_instrumentation_lttng 890enable_tracing_instrumentation_usdt 891enable_tracing_instrumentation_log_debug 892enable_android 893enable_module_relay 894enable_module_dirauth 895with_tor_user 896with_tor_group 897with_libevent_dir 898with_ssl_dir 899with_openssl_dir 900with_zlib_dir 901enable_lzma 902enable_zstd 903enable_largefile 904with_tcmalloc 905with_malloc 906with_syslog_facility 907' 908 ac_precious_vars='build_alias 909host_alias 910target_alias 911CC 912CFLAGS 913LDFLAGS 914LIBS 915CPPFLAGS 916CPP 917PKG_CONFIG 918PKG_CONFIG_PATH 919PKG_CONFIG_LIBDIR 920SYSTEMD_CFLAGS 921SYSTEMD_LIBS 922LIBSYSTEMD209_CFLAGS 923LIBSYSTEMD209_LIBS 924PERL 925NSS_CFLAGS 926NSS_LIBS 927LZMA_CFLAGS 928LZMA_LIBS 929ZSTD_CFLAGS 930ZSTD_LIBS 931TCMALLOC_CFLAGS 932TCMALLOC_LIBS 933JEMALLOC_CFLAGS 934JEMALLOC_LIBS' 935 936 937# Initialize some variables set by options. 938ac_init_help= 939ac_init_version=false 940ac_unrecognized_opts= 941ac_unrecognized_sep= 942# The variables have the same names as the options, with 943# dashes changed to underlines. 944cache_file=/dev/null 945exec_prefix=NONE 946no_create= 947no_recursion= 948prefix=NONE 949program_prefix=NONE 950program_suffix=NONE 951program_transform_name=s,x,x, 952silent= 953site= 954srcdir= 955verbose= 956x_includes=NONE 957x_libraries=NONE 958 959# Installation directory options. 960# These are left unexpanded so users can "make install exec_prefix=/foo" 961# and all the variables that are supposed to be based on exec_prefix 962# by default will actually change. 963# Use braces instead of parens because sh, perl, etc. also accept them. 964# (The list follows the same order as the GNU Coding Standards.) 965bindir='${exec_prefix}/bin' 966sbindir='${exec_prefix}/sbin' 967libexecdir='${exec_prefix}/libexec' 968datarootdir='${prefix}/share' 969datadir='${datarootdir}' 970sysconfdir='${prefix}/etc' 971sharedstatedir='${prefix}/com' 972localstatedir='${prefix}/var' 973runstatedir='${localstatedir}/run' 974includedir='${prefix}/include' 975oldincludedir='/usr/include' 976docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 977infodir='${datarootdir}/info' 978htmldir='${docdir}' 979dvidir='${docdir}' 980pdfdir='${docdir}' 981psdir='${docdir}' 982libdir='${exec_prefix}/lib' 983localedir='${datarootdir}/locale' 984mandir='${datarootdir}/man' 985 986ac_prev= 987ac_dashdash= 988for ac_option 989do 990 # If the previous option needs an argument, assign it. 991 if test -n "$ac_prev"; then 992 eval $ac_prev=\$ac_option 993 ac_prev= 994 continue 995 fi 996 997 case $ac_option in 998 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 999 *=) ac_optarg= ;; 1000 *) ac_optarg=yes ;; 1001 esac 1002 1003 # Accept the important Cygnus configure options, so we can diagnose typos. 1004 1005 case $ac_dashdash$ac_option in 1006 --) 1007 ac_dashdash=yes ;; 1008 1009 -bindir | --bindir | --bindi | --bind | --bin | --bi) 1010 ac_prev=bindir ;; 1011 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 1012 bindir=$ac_optarg ;; 1013 1014 -build | --build | --buil | --bui | --bu) 1015 ac_prev=build_alias ;; 1016 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 1017 build_alias=$ac_optarg ;; 1018 1019 -cache-file | --cache-file | --cache-fil | --cache-fi \ 1020 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 1021 ac_prev=cache_file ;; 1022 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 1023 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 1024 cache_file=$ac_optarg ;; 1025 1026 --config-cache | -C) 1027 cache_file=config.cache ;; 1028 1029 -datadir | --datadir | --datadi | --datad) 1030 ac_prev=datadir ;; 1031 -datadir=* | --datadir=* | --datadi=* | --datad=*) 1032 datadir=$ac_optarg ;; 1033 1034 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 1035 | --dataroo | --dataro | --datar) 1036 ac_prev=datarootdir ;; 1037 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 1038 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 1039 datarootdir=$ac_optarg ;; 1040 1041 -disable-* | --disable-*) 1042 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 1043 # Reject names that are not valid shell variable names. 1044 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1045 as_fn_error $? "invalid feature name: $ac_useropt" 1046 ac_useropt_orig=$ac_useropt 1047 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1048 case $ac_user_opts in 1049 *" 1050"enable_$ac_useropt" 1051"*) ;; 1052 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 1053 ac_unrecognized_sep=', ';; 1054 esac 1055 eval enable_$ac_useropt=no ;; 1056 1057 -docdir | --docdir | --docdi | --doc | --do) 1058 ac_prev=docdir ;; 1059 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1060 docdir=$ac_optarg ;; 1061 1062 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1063 ac_prev=dvidir ;; 1064 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1065 dvidir=$ac_optarg ;; 1066 1067 -enable-* | --enable-*) 1068 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1069 # Reject names that are not valid shell variable names. 1070 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1071 as_fn_error $? "invalid feature name: $ac_useropt" 1072 ac_useropt_orig=$ac_useropt 1073 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1074 case $ac_user_opts in 1075 *" 1076"enable_$ac_useropt" 1077"*) ;; 1078 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1079 ac_unrecognized_sep=', ';; 1080 esac 1081 eval enable_$ac_useropt=\$ac_optarg ;; 1082 1083 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1084 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1085 | --exec | --exe | --ex) 1086 ac_prev=exec_prefix ;; 1087 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1088 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1089 | --exec=* | --exe=* | --ex=*) 1090 exec_prefix=$ac_optarg ;; 1091 1092 -gas | --gas | --ga | --g) 1093 # Obsolete; use --with-gas. 1094 with_gas=yes ;; 1095 1096 -help | --help | --hel | --he | -h) 1097 ac_init_help=long ;; 1098 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1099 ac_init_help=recursive ;; 1100 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1101 ac_init_help=short ;; 1102 1103 -host | --host | --hos | --ho) 1104 ac_prev=host_alias ;; 1105 -host=* | --host=* | --hos=* | --ho=*) 1106 host_alias=$ac_optarg ;; 1107 1108 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1109 ac_prev=htmldir ;; 1110 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1111 | --ht=*) 1112 htmldir=$ac_optarg ;; 1113 1114 -includedir | --includedir | --includedi | --included | --include \ 1115 | --includ | --inclu | --incl | --inc) 1116 ac_prev=includedir ;; 1117 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1118 | --includ=* | --inclu=* | --incl=* | --inc=*) 1119 includedir=$ac_optarg ;; 1120 1121 -infodir | --infodir | --infodi | --infod | --info | --inf) 1122 ac_prev=infodir ;; 1123 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1124 infodir=$ac_optarg ;; 1125 1126 -libdir | --libdir | --libdi | --libd) 1127 ac_prev=libdir ;; 1128 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1129 libdir=$ac_optarg ;; 1130 1131 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1132 | --libexe | --libex | --libe) 1133 ac_prev=libexecdir ;; 1134 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1135 | --libexe=* | --libex=* | --libe=*) 1136 libexecdir=$ac_optarg ;; 1137 1138 -localedir | --localedir | --localedi | --localed | --locale) 1139 ac_prev=localedir ;; 1140 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1141 localedir=$ac_optarg ;; 1142 1143 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1144 | --localstate | --localstat | --localsta | --localst | --locals) 1145 ac_prev=localstatedir ;; 1146 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1147 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1148 localstatedir=$ac_optarg ;; 1149 1150 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1151 ac_prev=mandir ;; 1152 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1153 mandir=$ac_optarg ;; 1154 1155 -nfp | --nfp | --nf) 1156 # Obsolete; use --without-fp. 1157 with_fp=no ;; 1158 1159 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1160 | --no-cr | --no-c | -n) 1161 no_create=yes ;; 1162 1163 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1164 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1165 no_recursion=yes ;; 1166 1167 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1168 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1169 | --oldin | --oldi | --old | --ol | --o) 1170 ac_prev=oldincludedir ;; 1171 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1172 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1173 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1174 oldincludedir=$ac_optarg ;; 1175 1176 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1177 ac_prev=prefix ;; 1178 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1179 prefix=$ac_optarg ;; 1180 1181 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1182 | --program-pre | --program-pr | --program-p) 1183 ac_prev=program_prefix ;; 1184 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1185 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1186 program_prefix=$ac_optarg ;; 1187 1188 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1189 | --program-suf | --program-su | --program-s) 1190 ac_prev=program_suffix ;; 1191 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1192 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1193 program_suffix=$ac_optarg ;; 1194 1195 -program-transform-name | --program-transform-name \ 1196 | --program-transform-nam | --program-transform-na \ 1197 | --program-transform-n | --program-transform- \ 1198 | --program-transform | --program-transfor \ 1199 | --program-transfo | --program-transf \ 1200 | --program-trans | --program-tran \ 1201 | --progr-tra | --program-tr | --program-t) 1202 ac_prev=program_transform_name ;; 1203 -program-transform-name=* | --program-transform-name=* \ 1204 | --program-transform-nam=* | --program-transform-na=* \ 1205 | --program-transform-n=* | --program-transform-=* \ 1206 | --program-transform=* | --program-transfor=* \ 1207 | --program-transfo=* | --program-transf=* \ 1208 | --program-trans=* | --program-tran=* \ 1209 | --progr-tra=* | --program-tr=* | --program-t=*) 1210 program_transform_name=$ac_optarg ;; 1211 1212 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1213 ac_prev=pdfdir ;; 1214 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1215 pdfdir=$ac_optarg ;; 1216 1217 -psdir | --psdir | --psdi | --psd | --ps) 1218 ac_prev=psdir ;; 1219 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1220 psdir=$ac_optarg ;; 1221 1222 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1223 | -silent | --silent | --silen | --sile | --sil) 1224 silent=yes ;; 1225 1226 -runstatedir | --runstatedir | --runstatedi | --runstated \ 1227 | --runstate | --runstat | --runsta | --runst | --runs \ 1228 | --run | --ru | --r) 1229 ac_prev=runstatedir ;; 1230 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ 1231 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ 1232 | --run=* | --ru=* | --r=*) 1233 runstatedir=$ac_optarg ;; 1234 1235 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1236 ac_prev=sbindir ;; 1237 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1238 | --sbi=* | --sb=*) 1239 sbindir=$ac_optarg ;; 1240 1241 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1242 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1243 | --sharedst | --shareds | --shared | --share | --shar \ 1244 | --sha | --sh) 1245 ac_prev=sharedstatedir ;; 1246 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1247 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1248 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1249 | --sha=* | --sh=*) 1250 sharedstatedir=$ac_optarg ;; 1251 1252 -site | --site | --sit) 1253 ac_prev=site ;; 1254 -site=* | --site=* | --sit=*) 1255 site=$ac_optarg ;; 1256 1257 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1258 ac_prev=srcdir ;; 1259 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1260 srcdir=$ac_optarg ;; 1261 1262 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1263 | --syscon | --sysco | --sysc | --sys | --sy) 1264 ac_prev=sysconfdir ;; 1265 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1266 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1267 sysconfdir=$ac_optarg ;; 1268 1269 -target | --target | --targe | --targ | --tar | --ta | --t) 1270 ac_prev=target_alias ;; 1271 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1272 target_alias=$ac_optarg ;; 1273 1274 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1275 verbose=yes ;; 1276 1277 -version | --version | --versio | --versi | --vers | -V) 1278 ac_init_version=: ;; 1279 1280 -with-* | --with-*) 1281 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1282 # Reject names that are not valid shell variable names. 1283 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1284 as_fn_error $? "invalid package name: $ac_useropt" 1285 ac_useropt_orig=$ac_useropt 1286 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1287 case $ac_user_opts in 1288 *" 1289"with_$ac_useropt" 1290"*) ;; 1291 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1292 ac_unrecognized_sep=', ';; 1293 esac 1294 eval with_$ac_useropt=\$ac_optarg ;; 1295 1296 -without-* | --without-*) 1297 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1298 # Reject names that are not valid shell variable names. 1299 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1300 as_fn_error $? "invalid package name: $ac_useropt" 1301 ac_useropt_orig=$ac_useropt 1302 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1303 case $ac_user_opts in 1304 *" 1305"with_$ac_useropt" 1306"*) ;; 1307 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1308 ac_unrecognized_sep=', ';; 1309 esac 1310 eval with_$ac_useropt=no ;; 1311 1312 --x) 1313 # Obsolete; use --with-x. 1314 with_x=yes ;; 1315 1316 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1317 | --x-incl | --x-inc | --x-in | --x-i) 1318 ac_prev=x_includes ;; 1319 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1320 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1321 x_includes=$ac_optarg ;; 1322 1323 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1324 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1325 ac_prev=x_libraries ;; 1326 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1327 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1328 x_libraries=$ac_optarg ;; 1329 1330 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1331Try \`$0 --help' for more information" 1332 ;; 1333 1334 *=*) 1335 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1336 # Reject names that are not valid shell variable names. 1337 case $ac_envvar in #( 1338 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1339 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1340 esac 1341 eval $ac_envvar=\$ac_optarg 1342 export $ac_envvar ;; 1343 1344 *) 1345 # FIXME: should be removed in autoconf 3.0. 1346 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1347 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1348 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1349 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1350 ;; 1351 1352 esac 1353done 1354 1355if test -n "$ac_prev"; then 1356 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1357 as_fn_error $? "missing argument to $ac_option" 1358fi 1359 1360if test -n "$ac_unrecognized_opts"; then 1361 case $enable_option_checking in 1362 no) ;; 1363 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1364 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1365 esac 1366fi 1367 1368# Check all directory arguments for consistency. 1369for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1370 datadir sysconfdir sharedstatedir localstatedir includedir \ 1371 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1372 libdir localedir mandir runstatedir 1373do 1374 eval ac_val=\$$ac_var 1375 # Remove trailing slashes. 1376 case $ac_val in 1377 */ ) 1378 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1379 eval $ac_var=\$ac_val;; 1380 esac 1381 # Be sure to have absolute directory names. 1382 case $ac_val in 1383 [\\/$]* | ?:[\\/]* ) continue;; 1384 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1385 esac 1386 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1387done 1388 1389# There might be people who depend on the old broken behavior: `$host' 1390# used to hold the argument of --host etc. 1391# FIXME: To remove some day. 1392build=$build_alias 1393host=$host_alias 1394target=$target_alias 1395 1396# FIXME: To remove some day. 1397if test "x$host_alias" != x; then 1398 if test "x$build_alias" = x; then 1399 cross_compiling=maybe 1400 elif test "x$build_alias" != "x$host_alias"; then 1401 cross_compiling=yes 1402 fi 1403fi 1404 1405ac_tool_prefix= 1406test -n "$host_alias" && ac_tool_prefix=$host_alias- 1407 1408test "$silent" = yes && exec 6>/dev/null 1409 1410 1411ac_pwd=`pwd` && test -n "$ac_pwd" && 1412ac_ls_di=`ls -di .` && 1413ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1414 as_fn_error $? "working directory cannot be determined" 1415test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1416 as_fn_error $? "pwd does not report name of working directory" 1417 1418 1419# Find the source files, if location was not specified. 1420if test -z "$srcdir"; then 1421 ac_srcdir_defaulted=yes 1422 # Try the directory containing this script, then the parent directory. 1423 ac_confdir=`$as_dirname -- "$as_myself" || 1424$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1425 X"$as_myself" : 'X\(//\)[^/]' \| \ 1426 X"$as_myself" : 'X\(//\)$' \| \ 1427 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1428$as_echo X"$as_myself" | 1429 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1430 s//\1/ 1431 q 1432 } 1433 /^X\(\/\/\)[^/].*/{ 1434 s//\1/ 1435 q 1436 } 1437 /^X\(\/\/\)$/{ 1438 s//\1/ 1439 q 1440 } 1441 /^X\(\/\).*/{ 1442 s//\1/ 1443 q 1444 } 1445 s/.*/./; q'` 1446 srcdir=$ac_confdir 1447 if test ! -r "$srcdir/$ac_unique_file"; then 1448 srcdir=.. 1449 fi 1450else 1451 ac_srcdir_defaulted=no 1452fi 1453if test ! -r "$srcdir/$ac_unique_file"; then 1454 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1455 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1456fi 1457ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1458ac_abs_confdir=`( 1459 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1460 pwd)` 1461# When building in place, set srcdir=. 1462if test "$ac_abs_confdir" = "$ac_pwd"; then 1463 srcdir=. 1464fi 1465# Remove unnecessary trailing slashes from srcdir. 1466# Double slashes in file names in object file debugging info 1467# mess up M-x gdb in Emacs. 1468case $srcdir in 1469*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1470esac 1471for ac_var in $ac_precious_vars; do 1472 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1473 eval ac_env_${ac_var}_value=\$${ac_var} 1474 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1475 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1476done 1477 1478# 1479# Report the --help message. 1480# 1481if test "$ac_init_help" = "long"; then 1482 # Omit some internal or obsolete options to make the list less imposing. 1483 # This message is too long to be a string in the A/UX 3.1 sh. 1484 cat <<_ACEOF 1485\`configure' configures tor 0.4.7.2-alpha to adapt to many kinds of systems. 1486 1487Usage: $0 [OPTION]... [VAR=VALUE]... 1488 1489To assign environment variables (e.g., CC, CFLAGS...), specify them as 1490VAR=VALUE. See below for descriptions of some of the useful variables. 1491 1492Defaults for the options are specified in brackets. 1493 1494Configuration: 1495 -h, --help display this help and exit 1496 --help=short display options specific to this package 1497 --help=recursive display the short help of all the included packages 1498 -V, --version display version information and exit 1499 -q, --quiet, --silent do not print \`checking ...' messages 1500 --cache-file=FILE cache test results in FILE [disabled] 1501 -C, --config-cache alias for \`--cache-file=config.cache' 1502 -n, --no-create do not create output files 1503 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1504 1505Installation directories: 1506 --prefix=PREFIX install architecture-independent files in PREFIX 1507 [$ac_default_prefix] 1508 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1509 [PREFIX] 1510 1511By default, \`make install' will install all the files in 1512\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1513an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1514for instance \`--prefix=\$HOME'. 1515 1516For better control, use the options below. 1517 1518Fine tuning of the installation directories: 1519 --bindir=DIR user executables [EPREFIX/bin] 1520 --sbindir=DIR system admin executables [EPREFIX/sbin] 1521 --libexecdir=DIR program executables [EPREFIX/libexec] 1522 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1523 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1524 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1525 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] 1526 --libdir=DIR object code libraries [EPREFIX/lib] 1527 --includedir=DIR C header files [PREFIX/include] 1528 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1529 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1530 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1531 --infodir=DIR info documentation [DATAROOTDIR/info] 1532 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1533 --mandir=DIR man documentation [DATAROOTDIR/man] 1534 --docdir=DIR documentation root [DATAROOTDIR/doc/tor] 1535 --htmldir=DIR html documentation [DOCDIR] 1536 --dvidir=DIR dvi documentation [DOCDIR] 1537 --pdfdir=DIR pdf documentation [DOCDIR] 1538 --psdir=DIR ps documentation [DOCDIR] 1539_ACEOF 1540 1541 cat <<\_ACEOF 1542 1543Program names: 1544 --program-prefix=PREFIX prepend PREFIX to installed program names 1545 --program-suffix=SUFFIX append SUFFIX to installed program names 1546 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1547 1548System types: 1549 --build=BUILD configure for building on BUILD [guessed] 1550 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1551_ACEOF 1552fi 1553 1554if test -n "$ac_init_help"; then 1555 case $ac_init_help in 1556 short | recursive ) echo "Configuration of tor 0.4.7.2-alpha:";; 1557 esac 1558 cat <<\_ACEOF 1559 1560Optional Features: 1561 --disable-option-checking ignore unrecognized --enable/--with options 1562 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1563 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1564 --enable-silent-rules less verbose build output (undo: "make V=1") 1565 --disable-silent-rules verbose build output (undo: "make V=0") 1566 --enable-dependency-tracking 1567 do not reject slow dependency extractors 1568 --disable-dependency-tracking 1569 speeds up one-time build 1570 --enable-openbsd-malloc use malloc code from OpenBSD. Linux only. 1571 Deprecated: see --with-malloc 1572 --enable-static-openssl link against a static openssl library. Requires 1573 --with-openssl-dir 1574 --enable-static-libevent 1575 link against a static libevent library. Requires 1576 --with-libevent-dir 1577 --enable-static-zlib link against a static zlib library. Requires 1578 --with-zlib-dir 1579 --enable-static-tor create an entirely static Tor binary. Requires 1580 --with-openssl-dir and --with-libevent-dir and 1581 --with-zlib-dir 1582 --disable-unittests don't build unit tests for Tor. Risky! 1583 --enable-coverage enable coverage support in the unit-test build 1584 --disable-asserts-in-tests 1585 disable tor_assert() calls in the unit tests, for 1586 branch coverage 1587 --disable-system-torrc don't look for a system-wide torrc file 1588 --enable-libfuzzer build extra fuzzers based on 'libfuzzer' 1589 --enable-oss-fuzz build extra fuzzers based on 'oss-fuzz' environment 1590 --disable-memory-sentinels 1591 disable code that tries to prevent some kinds of 1592 memory access bugs. For fuzzing only. 1593 --enable-restart-debugging 1594 Build Tor with support for debugging in-process 1595 restart. Developers only. 1596 --disable-zstd-advanced-apis 1597 Build without support for zstd's "static-only" APIs. 1598 --enable-nss Use Mozilla's NSS TLS library. (EXPERIMENTAL) 1599 --enable-pic Build Tor's binaries as position-independent code, 1600 suitable to link as a library. 1601 --enable-missing-doc-warnings 1602 Tell doxygen to warn about missing documentation. 1603 Makes doxygen warnings nonfatal. 1604 --disable-manpage Disable manpage generation. 1605 --disable-html-manual Disable HTML documentation. 1606 --disable-asciidoc don't use asciidoc (disables building of manpages) 1607 --enable-systemd enable systemd notification support 1608 --enable-gcc-warnings deprecated alias for enable-fatal-warnings 1609 --enable-fatal-warnings tell the compiler to treat all warnings as errors. 1610 --disable-gcc-warnings-advisory 1611 disable the regular verbose warnings 1612 --disable-gcc-hardening disable compiler security checks 1613 --enable-expensive-hardening 1614 enable more fragile and expensive compiler 1615 hardening; makes Tor slower 1616 --enable-fragile-hardening 1617 enable more fragile and expensive compiler 1618 hardening; makes Tor slower 1619 --enable-all-bugs-are-fatal 1620 force all soft asserts in Tor codebase 1621 (tor_assert_nonfatal(), BUG(), etc.) to act as hard 1622 asserts (tor_assert() and equivalents); makes Tor 1623 fragile; only recommended for dev builds 1624 --disable-linker-hardening 1625 disable linker security fixups 1626 --enable-local-appdata default to host local application data paths on 1627 Windows 1628 --disable-tool-name-check 1629 check for sanely named toolchain when 1630 cross-compiling 1631 --disable-seccomp do not attempt to use libseccomp 1632 --disable-libscrypt do not attempt to use libscrypt 1633 --enable-tracing-instrumentation-lttng 1634 build with LTTng-UST instrumentation 1635 --enable-tracing-instrumentation-usdt 1636 build with tracing USDT instrumentation 1637 --enable-tracing-instrumentation-log-debug 1638 build with tracing event to debug log 1639 --enable-android build with Android features enabled 1640 --disable-module-relay Build tor without the Relay modules: tor can not run 1641 as a relay, bridge, or authority. Implies 1642 --disable-module-dirauth 1643 --disable-module-dirauth 1644 Build tor without the Directory Authority module: 1645 tor can not run as a directory authority or bridge 1646 authority 1647 --enable-lzma enable support for the LZMA compression scheme. 1648 --enable-zstd enable support for the Zstandard compression scheme. 1649 --disable-largefile omit support for large files 1650 1651Optional Packages: 1652 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1653 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1654 --with-tor-user=NAME specify username for tor daemon 1655 --with-tor-group=NAME specify group name for tor daemon 1656 --with-libevent-dir=PATH 1657 specify path to libevent installation 1658 --with-ssl-dir=PATH obsolete alias for --with-openssl-dir 1659 --with-openssl-dir=PATH specify path to openssl installation 1660 --with-zlib-dir=PATH specify path to zlib installation 1661 --with-tcmalloc use tcmalloc memory allocation library. Deprecated; 1662 see --with-malloc 1663 --with-malloc=system,jemalloc,tcmalloc,openbsd 1664 select special malloc implementation [system] 1665 --with-syslog-facility=LOG 1666 syslog facility to use (default=LOG_DAEMON) 1667 1668Some influential environment variables: 1669 CC C compiler command 1670 CFLAGS C compiler flags 1671 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1672 nonstandard directory <lib dir> 1673 LIBS libraries to pass to the linker, e.g. -l<library> 1674 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1675 you have headers in a nonstandard directory <include dir> 1676 CPP C preprocessor 1677 PKG_CONFIG path to pkg-config utility 1678 PKG_CONFIG_PATH 1679 directories to add to pkg-config's search path 1680 PKG_CONFIG_LIBDIR 1681 path overriding pkg-config's built-in search path 1682 SYSTEMD_CFLAGS 1683 C compiler flags for SYSTEMD, overriding pkg-config 1684 SYSTEMD_LIBS 1685 linker flags for SYSTEMD, overriding pkg-config 1686 LIBSYSTEMD209_CFLAGS 1687 C compiler flags for LIBSYSTEMD209, overriding pkg-config 1688 LIBSYSTEMD209_LIBS 1689 linker flags for LIBSYSTEMD209, overriding pkg-config 1690 PERL path to Perl binary 1691 NSS_CFLAGS C compiler flags for NSS, overriding pkg-config 1692 NSS_LIBS linker flags for NSS, overriding pkg-config 1693 LZMA_CFLAGS C compiler flags for LZMA, overriding pkg-config 1694 LZMA_LIBS linker flags for LZMA, overriding pkg-config 1695 ZSTD_CFLAGS C compiler flags for ZSTD, overriding pkg-config 1696 ZSTD_LIBS linker flags for ZSTD, overriding pkg-config 1697 TCMALLOC_CFLAGS 1698 C compiler flags for TCMALLOC, overriding pkg-config 1699 TCMALLOC_LIBS 1700 linker flags for TCMALLOC, overriding pkg-config 1701 JEMALLOC_CFLAGS 1702 C compiler flags for JEMALLOC, overriding pkg-config 1703 JEMALLOC_LIBS 1704 linker flags for JEMALLOC, overriding pkg-config 1705 1706Use these variables to override the choices made by `configure' or to help 1707it to find libraries and programs with nonstandard names/locations. 1708 1709Report bugs to the package provider. 1710_ACEOF 1711ac_status=$? 1712fi 1713 1714if test "$ac_init_help" = "recursive"; then 1715 # If there are subdirs, report their specific --help. 1716 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1717 test -d "$ac_dir" || 1718 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1719 continue 1720 ac_builddir=. 1721 1722case "$ac_dir" in 1723.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1724*) 1725 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1726 # A ".." for each directory in $ac_dir_suffix. 1727 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1728 case $ac_top_builddir_sub in 1729 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1730 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1731 esac ;; 1732esac 1733ac_abs_top_builddir=$ac_pwd 1734ac_abs_builddir=$ac_pwd$ac_dir_suffix 1735# for backward compatibility: 1736ac_top_builddir=$ac_top_build_prefix 1737 1738case $srcdir in 1739 .) # We are building in place. 1740 ac_srcdir=. 1741 ac_top_srcdir=$ac_top_builddir_sub 1742 ac_abs_top_srcdir=$ac_pwd ;; 1743 [\\/]* | ?:[\\/]* ) # Absolute name. 1744 ac_srcdir=$srcdir$ac_dir_suffix; 1745 ac_top_srcdir=$srcdir 1746 ac_abs_top_srcdir=$srcdir ;; 1747 *) # Relative name. 1748 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1749 ac_top_srcdir=$ac_top_build_prefix$srcdir 1750 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1751esac 1752ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1753 1754 cd "$ac_dir" || { ac_status=$?; continue; } 1755 # Check for guested configure. 1756 if test -f "$ac_srcdir/configure.gnu"; then 1757 echo && 1758 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1759 elif test -f "$ac_srcdir/configure"; then 1760 echo && 1761 $SHELL "$ac_srcdir/configure" --help=recursive 1762 else 1763 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1764 fi || ac_status=$? 1765 cd "$ac_pwd" || { ac_status=$?; break; } 1766 done 1767fi 1768 1769test -n "$ac_init_help" && exit $ac_status 1770if $ac_init_version; then 1771 cat <<\_ACEOF 1772tor configure 0.4.7.2-alpha 1773generated by GNU Autoconf 2.69 1774 1775Copyright (C) 2012 Free Software Foundation, Inc. 1776This configure script is free software; the Free Software Foundation 1777gives unlimited permission to copy, distribute and modify it. 1778_ACEOF 1779 exit 1780fi 1781 1782## ------------------------ ## 1783## Autoconf initialization. ## 1784## ------------------------ ## 1785 1786# ac_fn_c_try_compile LINENO 1787# -------------------------- 1788# Try to compile conftest.$ac_ext, and return whether this succeeded. 1789ac_fn_c_try_compile () 1790{ 1791 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1792 rm -f conftest.$ac_objext 1793 if { { ac_try="$ac_compile" 1794case "(($ac_try" in 1795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1796 *) ac_try_echo=$ac_try;; 1797esac 1798eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1799$as_echo "$ac_try_echo"; } >&5 1800 (eval "$ac_compile") 2>conftest.err 1801 ac_status=$? 1802 if test -s conftest.err; then 1803 grep -v '^ *+' conftest.err >conftest.er1 1804 cat conftest.er1 >&5 1805 mv -f conftest.er1 conftest.err 1806 fi 1807 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1808 test $ac_status = 0; } && { 1809 test -z "$ac_c_werror_flag" || 1810 test ! -s conftest.err 1811 } && test -s conftest.$ac_objext; then : 1812 ac_retval=0 1813else 1814 $as_echo "$as_me: failed program was:" >&5 1815sed 's/^/| /' conftest.$ac_ext >&5 1816 1817 ac_retval=1 1818fi 1819 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1820 as_fn_set_status $ac_retval 1821 1822} # ac_fn_c_try_compile 1823 1824# ac_fn_c_try_cpp LINENO 1825# ---------------------- 1826# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1827ac_fn_c_try_cpp () 1828{ 1829 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1830 if { { ac_try="$ac_cpp conftest.$ac_ext" 1831case "(($ac_try" in 1832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1833 *) ac_try_echo=$ac_try;; 1834esac 1835eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1836$as_echo "$ac_try_echo"; } >&5 1837 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1838 ac_status=$? 1839 if test -s conftest.err; then 1840 grep -v '^ *+' conftest.err >conftest.er1 1841 cat conftest.er1 >&5 1842 mv -f conftest.er1 conftest.err 1843 fi 1844 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1845 test $ac_status = 0; } > conftest.i && { 1846 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1847 test ! -s conftest.err 1848 }; then : 1849 ac_retval=0 1850else 1851 $as_echo "$as_me: failed program was:" >&5 1852sed 's/^/| /' conftest.$ac_ext >&5 1853 1854 ac_retval=1 1855fi 1856 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1857 as_fn_set_status $ac_retval 1858 1859} # ac_fn_c_try_cpp 1860 1861# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1862# ------------------------------------------------------- 1863# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1864# the include files in INCLUDES and setting the cache variable VAR 1865# accordingly. 1866ac_fn_c_check_header_mongrel () 1867{ 1868 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1869 if eval \${$3+:} false; then : 1870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1871$as_echo_n "checking for $2... " >&6; } 1872if eval \${$3+:} false; then : 1873 $as_echo_n "(cached) " >&6 1874fi 1875eval ac_res=\$$3 1876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1877$as_echo "$ac_res" >&6; } 1878else 1879 # Is the header compilable? 1880{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1881$as_echo_n "checking $2 usability... " >&6; } 1882cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1883/* end confdefs.h. */ 1884$4 1885#include <$2> 1886_ACEOF 1887if ac_fn_c_try_compile "$LINENO"; then : 1888 ac_header_compiler=yes 1889else 1890 ac_header_compiler=no 1891fi 1892rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1893{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1894$as_echo "$ac_header_compiler" >&6; } 1895 1896# Is the header present? 1897{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1898$as_echo_n "checking $2 presence... " >&6; } 1899cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1900/* end confdefs.h. */ 1901#include <$2> 1902_ACEOF 1903if ac_fn_c_try_cpp "$LINENO"; then : 1904 ac_header_preproc=yes 1905else 1906 ac_header_preproc=no 1907fi 1908rm -f conftest.err conftest.i conftest.$ac_ext 1909{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1910$as_echo "$ac_header_preproc" >&6; } 1911 1912# So? What about this header? 1913case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1914 yes:no: ) 1915 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1916$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1917 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1918$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1919 ;; 1920 no:yes:* ) 1921 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1922$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1923 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1924$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1925 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1926$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1927 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1928$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 1929 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1930$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1931 ;; 1932esac 1933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1934$as_echo_n "checking for $2... " >&6; } 1935if eval \${$3+:} false; then : 1936 $as_echo_n "(cached) " >&6 1937else 1938 eval "$3=\$ac_header_compiler" 1939fi 1940eval ac_res=\$$3 1941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1942$as_echo "$ac_res" >&6; } 1943fi 1944 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1945 1946} # ac_fn_c_check_header_mongrel 1947 1948# ac_fn_c_try_run LINENO 1949# ---------------------- 1950# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1951# that executables *can* be run. 1952ac_fn_c_try_run () 1953{ 1954 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1955 if { { ac_try="$ac_link" 1956case "(($ac_try" in 1957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1958 *) ac_try_echo=$ac_try;; 1959esac 1960eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1961$as_echo "$ac_try_echo"; } >&5 1962 (eval "$ac_link") 2>&5 1963 ac_status=$? 1964 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1965 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1966 { { case "(($ac_try" in 1967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1968 *) ac_try_echo=$ac_try;; 1969esac 1970eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1971$as_echo "$ac_try_echo"; } >&5 1972 (eval "$ac_try") 2>&5 1973 ac_status=$? 1974 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1975 test $ac_status = 0; }; }; then : 1976 ac_retval=0 1977else 1978 $as_echo "$as_me: program exited with status $ac_status" >&5 1979 $as_echo "$as_me: failed program was:" >&5 1980sed 's/^/| /' conftest.$ac_ext >&5 1981 1982 ac_retval=$ac_status 1983fi 1984 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1985 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1986 as_fn_set_status $ac_retval 1987 1988} # ac_fn_c_try_run 1989 1990# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1991# ------------------------------------------------------- 1992# Tests whether HEADER exists and can be compiled using the include files in 1993# INCLUDES, setting the cache variable VAR accordingly. 1994ac_fn_c_check_header_compile () 1995{ 1996 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1998$as_echo_n "checking for $2... " >&6; } 1999if eval \${$3+:} false; then : 2000 $as_echo_n "(cached) " >&6 2001else 2002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2003/* end confdefs.h. */ 2004$4 2005#include <$2> 2006_ACEOF 2007if ac_fn_c_try_compile "$LINENO"; then : 2008 eval "$3=yes" 2009else 2010 eval "$3=no" 2011fi 2012rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2013fi 2014eval ac_res=\$$3 2015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2016$as_echo "$ac_res" >&6; } 2017 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2018 2019} # ac_fn_c_check_header_compile 2020 2021# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES 2022# -------------------------------------------- 2023# Tries to find the compile-time value of EXPR in a program that includes 2024# INCLUDES, setting VAR accordingly. Returns whether the value could be 2025# computed 2026ac_fn_c_compute_int () 2027{ 2028 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2029 if test "$cross_compiling" = yes; then 2030 # Depending upon the size, compute the lo and hi bounds. 2031cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2032/* end confdefs.h. */ 2033$4 2034int 2035main () 2036{ 2037static int test_array [1 - 2 * !(($2) >= 0)]; 2038test_array [0] = 0; 2039return test_array [0]; 2040 2041 ; 2042 return 0; 2043} 2044_ACEOF 2045if ac_fn_c_try_compile "$LINENO"; then : 2046 ac_lo=0 ac_mid=0 2047 while :; do 2048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2049/* end confdefs.h. */ 2050$4 2051int 2052main () 2053{ 2054static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2055test_array [0] = 0; 2056return test_array [0]; 2057 2058 ; 2059 return 0; 2060} 2061_ACEOF 2062if ac_fn_c_try_compile "$LINENO"; then : 2063 ac_hi=$ac_mid; break 2064else 2065 as_fn_arith $ac_mid + 1 && ac_lo=$as_val 2066 if test $ac_lo -le $ac_mid; then 2067 ac_lo= ac_hi= 2068 break 2069 fi 2070 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val 2071fi 2072rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2073 done 2074else 2075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2076/* end confdefs.h. */ 2077$4 2078int 2079main () 2080{ 2081static int test_array [1 - 2 * !(($2) < 0)]; 2082test_array [0] = 0; 2083return test_array [0]; 2084 2085 ; 2086 return 0; 2087} 2088_ACEOF 2089if ac_fn_c_try_compile "$LINENO"; then : 2090 ac_hi=-1 ac_mid=-1 2091 while :; do 2092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2093/* end confdefs.h. */ 2094$4 2095int 2096main () 2097{ 2098static int test_array [1 - 2 * !(($2) >= $ac_mid)]; 2099test_array [0] = 0; 2100return test_array [0]; 2101 2102 ; 2103 return 0; 2104} 2105_ACEOF 2106if ac_fn_c_try_compile "$LINENO"; then : 2107 ac_lo=$ac_mid; break 2108else 2109 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val 2110 if test $ac_mid -le $ac_hi; then 2111 ac_lo= ac_hi= 2112 break 2113 fi 2114 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val 2115fi 2116rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2117 done 2118else 2119 ac_lo= ac_hi= 2120fi 2121rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2122fi 2123rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2124# Binary search between lo and hi bounds. 2125while test "x$ac_lo" != "x$ac_hi"; do 2126 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val 2127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2128/* end confdefs.h. */ 2129$4 2130int 2131main () 2132{ 2133static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2134test_array [0] = 0; 2135return test_array [0]; 2136 2137 ; 2138 return 0; 2139} 2140_ACEOF 2141if ac_fn_c_try_compile "$LINENO"; then : 2142 ac_hi=$ac_mid 2143else 2144 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val 2145fi 2146rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2147done 2148case $ac_lo in #(( 2149?*) eval "$3=\$ac_lo"; ac_retval=0 ;; 2150'') ac_retval=1 ;; 2151esac 2152 else 2153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2154/* end confdefs.h. */ 2155$4 2156static long int longval () { return $2; } 2157static unsigned long int ulongval () { return $2; } 2158#include <stdio.h> 2159#include <stdlib.h> 2160int 2161main () 2162{ 2163 2164 FILE *f = fopen ("conftest.val", "w"); 2165 if (! f) 2166 return 1; 2167 if (($2) < 0) 2168 { 2169 long int i = longval (); 2170 if (i != ($2)) 2171 return 1; 2172 fprintf (f, "%ld", i); 2173 } 2174 else 2175 { 2176 unsigned long int i = ulongval (); 2177 if (i != ($2)) 2178 return 1; 2179 fprintf (f, "%lu", i); 2180 } 2181 /* Do not output a trailing newline, as this causes \r\n confusion 2182 on some platforms. */ 2183 return ferror (f) || fclose (f) != 0; 2184 2185 ; 2186 return 0; 2187} 2188_ACEOF 2189if ac_fn_c_try_run "$LINENO"; then : 2190 echo >>conftest.val; read $3 <conftest.val; ac_retval=0 2191else 2192 ac_retval=1 2193fi 2194rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 2195 conftest.$ac_objext conftest.beam conftest.$ac_ext 2196rm -f conftest.val 2197 2198 fi 2199 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2200 as_fn_set_status $ac_retval 2201 2202} # ac_fn_c_compute_int 2203 2204# ac_fn_c_try_link LINENO 2205# ----------------------- 2206# Try to link conftest.$ac_ext, and return whether this succeeded. 2207ac_fn_c_try_link () 2208{ 2209 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2210 rm -f conftest.$ac_objext conftest$ac_exeext 2211 if { { ac_try="$ac_link" 2212case "(($ac_try" in 2213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2214 *) ac_try_echo=$ac_try;; 2215esac 2216eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2217$as_echo "$ac_try_echo"; } >&5 2218 (eval "$ac_link") 2>conftest.err 2219 ac_status=$? 2220 if test -s conftest.err; then 2221 grep -v '^ *+' conftest.err >conftest.er1 2222 cat conftest.er1 >&5 2223 mv -f conftest.er1 conftest.err 2224 fi 2225 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2226 test $ac_status = 0; } && { 2227 test -z "$ac_c_werror_flag" || 2228 test ! -s conftest.err 2229 } && test -s conftest$ac_exeext && { 2230 test "$cross_compiling" = yes || 2231 test -x conftest$ac_exeext 2232 }; then : 2233 ac_retval=0 2234else 2235 $as_echo "$as_me: failed program was:" >&5 2236sed 's/^/| /' conftest.$ac_ext >&5 2237 2238 ac_retval=1 2239fi 2240 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 2241 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 2242 # interfere with the next link command; also delete a directory that is 2243 # left behind by Apple's compiler. We do this before executing the actions. 2244 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2245 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2246 as_fn_set_status $ac_retval 2247 2248} # ac_fn_c_try_link 2249 2250# ac_fn_c_check_func LINENO FUNC VAR 2251# ---------------------------------- 2252# Tests whether FUNC exists, setting the cache variable VAR accordingly 2253ac_fn_c_check_func () 2254{ 2255 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2257$as_echo_n "checking for $2... " >&6; } 2258if eval \${$3+:} false; then : 2259 $as_echo_n "(cached) " >&6 2260else 2261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2262/* end confdefs.h. */ 2263/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 2264 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 2265#define $2 innocuous_$2 2266 2267/* System header to define __stub macros and hopefully few prototypes, 2268 which can conflict with char $2 (); below. 2269 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 2270 <limits.h> exists even on freestanding compilers. */ 2271 2272#ifdef __STDC__ 2273# include <limits.h> 2274#else 2275# include <assert.h> 2276#endif 2277 2278#undef $2 2279 2280/* Override any GCC internal prototype to avoid an error. 2281 Use char because int might match the return type of a GCC 2282 builtin and then its argument prototype would still apply. */ 2283#ifdef __cplusplus 2284extern "C" 2285#endif 2286char $2 (); 2287/* The GNU C library defines this for functions which it implements 2288 to always fail with ENOSYS. Some functions are actually named 2289 something starting with __ and the normal name is an alias. */ 2290#if defined __stub_$2 || defined __stub___$2 2291choke me 2292#endif 2293 2294int 2295main () 2296{ 2297return $2 (); 2298 ; 2299 return 0; 2300} 2301_ACEOF 2302if ac_fn_c_try_link "$LINENO"; then : 2303 eval "$3=yes" 2304else 2305 eval "$3=no" 2306fi 2307rm -f core conftest.err conftest.$ac_objext \ 2308 conftest$ac_exeext conftest.$ac_ext 2309fi 2310eval ac_res=\$$3 2311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2312$as_echo "$ac_res" >&6; } 2313 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2314 2315} # ac_fn_c_check_func 2316 2317# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES 2318# --------------------------------------------- 2319# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 2320# accordingly. 2321ac_fn_c_check_decl () 2322{ 2323 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2324 as_decl_name=`echo $2|sed 's/ *(.*//'` 2325 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 2326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 2327$as_echo_n "checking whether $as_decl_name is declared... " >&6; } 2328if eval \${$3+:} false; then : 2329 $as_echo_n "(cached) " >&6 2330else 2331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2332/* end confdefs.h. */ 2333$4 2334int 2335main () 2336{ 2337#ifndef $as_decl_name 2338#ifdef __cplusplus 2339 (void) $as_decl_use; 2340#else 2341 (void) $as_decl_name; 2342#endif 2343#endif 2344 2345 ; 2346 return 0; 2347} 2348_ACEOF 2349if ac_fn_c_try_compile "$LINENO"; then : 2350 eval "$3=yes" 2351else 2352 eval "$3=no" 2353fi 2354rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2355fi 2356eval ac_res=\$$3 2357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2358$as_echo "$ac_res" >&6; } 2359 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2360 2361} # ac_fn_c_check_decl 2362 2363# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES 2364# ---------------------------------------------------- 2365# Tries to find if the field MEMBER exists in type AGGR, after including 2366# INCLUDES, setting cache variable VAR accordingly. 2367ac_fn_c_check_member () 2368{ 2369 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 2371$as_echo_n "checking for $2.$3... " >&6; } 2372if eval \${$4+:} false; then : 2373 $as_echo_n "(cached) " >&6 2374else 2375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2376/* end confdefs.h. */ 2377$5 2378int 2379main () 2380{ 2381static $2 ac_aggr; 2382if (ac_aggr.$3) 2383return 0; 2384 ; 2385 return 0; 2386} 2387_ACEOF 2388if ac_fn_c_try_compile "$LINENO"; then : 2389 eval "$4=yes" 2390else 2391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2392/* end confdefs.h. */ 2393$5 2394int 2395main () 2396{ 2397static $2 ac_aggr; 2398if (sizeof ac_aggr.$3) 2399return 0; 2400 ; 2401 return 0; 2402} 2403_ACEOF 2404if ac_fn_c_try_compile "$LINENO"; then : 2405 eval "$4=yes" 2406else 2407 eval "$4=no" 2408fi 2409rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2410fi 2411rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2412fi 2413eval ac_res=\$$4 2414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2415$as_echo "$ac_res" >&6; } 2416 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2417 2418} # ac_fn_c_check_member 2419 2420# ac_fn_c_check_type LINENO TYPE VAR INCLUDES 2421# ------------------------------------------- 2422# Tests whether TYPE exists after having included INCLUDES, setting cache 2423# variable VAR accordingly. 2424ac_fn_c_check_type () 2425{ 2426 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2428$as_echo_n "checking for $2... " >&6; } 2429if eval \${$3+:} false; then : 2430 $as_echo_n "(cached) " >&6 2431else 2432 eval "$3=no" 2433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2434/* end confdefs.h. */ 2435$4 2436int 2437main () 2438{ 2439if (sizeof ($2)) 2440 return 0; 2441 ; 2442 return 0; 2443} 2444_ACEOF 2445if ac_fn_c_try_compile "$LINENO"; then : 2446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2447/* end confdefs.h. */ 2448$4 2449int 2450main () 2451{ 2452if (sizeof (($2))) 2453 return 0; 2454 ; 2455 return 0; 2456} 2457_ACEOF 2458if ac_fn_c_try_compile "$LINENO"; then : 2459 2460else 2461 eval "$3=yes" 2462fi 2463rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2464fi 2465rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2466fi 2467eval ac_res=\$$3 2468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2469$as_echo "$ac_res" >&6; } 2470 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2471 2472} # ac_fn_c_check_type 2473cat >config.log <<_ACEOF 2474This file contains any messages produced by compilers while 2475running configure, to aid debugging if configure makes a mistake. 2476 2477It was created by tor $as_me 0.4.7.2-alpha, which was 2478generated by GNU Autoconf 2.69. Invocation command line was 2479 2480 $ $0 $@ 2481 2482_ACEOF 2483exec 5>>config.log 2484{ 2485cat <<_ASUNAME 2486## --------- ## 2487## Platform. ## 2488## --------- ## 2489 2490hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2491uname -m = `(uname -m) 2>/dev/null || echo unknown` 2492uname -r = `(uname -r) 2>/dev/null || echo unknown` 2493uname -s = `(uname -s) 2>/dev/null || echo unknown` 2494uname -v = `(uname -v) 2>/dev/null || echo unknown` 2495 2496/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2497/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2498 2499/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2500/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2501/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2502/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2503/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2504/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2505/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2506 2507_ASUNAME 2508 2509as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2510for as_dir in $PATH 2511do 2512 IFS=$as_save_IFS 2513 test -z "$as_dir" && as_dir=. 2514 $as_echo "PATH: $as_dir" 2515 done 2516IFS=$as_save_IFS 2517 2518} >&5 2519 2520cat >&5 <<_ACEOF 2521 2522 2523## ----------- ## 2524## Core tests. ## 2525## ----------- ## 2526 2527_ACEOF 2528 2529 2530# Keep a trace of the command line. 2531# Strip out --no-create and --no-recursion so they do not pile up. 2532# Strip out --silent because we don't want to record it for future runs. 2533# Also quote any args containing shell meta-characters. 2534# Make two passes to allow for proper duplicate-argument suppression. 2535ac_configure_args= 2536ac_configure_args0= 2537ac_configure_args1= 2538ac_must_keep_next=false 2539for ac_pass in 1 2 2540do 2541 for ac_arg 2542 do 2543 case $ac_arg in 2544 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2545 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2546 | -silent | --silent | --silen | --sile | --sil) 2547 continue ;; 2548 *\'*) 2549 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2550 esac 2551 case $ac_pass in 2552 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2553 2) 2554 as_fn_append ac_configure_args1 " '$ac_arg'" 2555 if test $ac_must_keep_next = true; then 2556 ac_must_keep_next=false # Got value, back to normal. 2557 else 2558 case $ac_arg in 2559 *=* | --config-cache | -C | -disable-* | --disable-* \ 2560 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2561 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2562 | -with-* | --with-* | -without-* | --without-* | --x) 2563 case "$ac_configure_args0 " in 2564 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2565 esac 2566 ;; 2567 -* ) ac_must_keep_next=true ;; 2568 esac 2569 fi 2570 as_fn_append ac_configure_args " '$ac_arg'" 2571 ;; 2572 esac 2573 done 2574done 2575{ ac_configure_args0=; unset ac_configure_args0;} 2576{ ac_configure_args1=; unset ac_configure_args1;} 2577 2578# When interrupted or exit'd, cleanup temporary files, and complete 2579# config.log. We remove comments because anyway the quotes in there 2580# would cause problems or look ugly. 2581# WARNING: Use '\'' to represent an apostrophe within the trap. 2582# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2583trap 'exit_status=$? 2584 # Save into config.log some information that might help in debugging. 2585 { 2586 echo 2587 2588 $as_echo "## ---------------- ## 2589## Cache variables. ## 2590## ---------------- ##" 2591 echo 2592 # The following way of writing the cache mishandles newlines in values, 2593( 2594 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2595 eval ac_val=\$$ac_var 2596 case $ac_val in #( 2597 *${as_nl}*) 2598 case $ac_var in #( 2599 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2600$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2601 esac 2602 case $ac_var in #( 2603 _ | IFS | as_nl) ;; #( 2604 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2605 *) { eval $ac_var=; unset $ac_var;} ;; 2606 esac ;; 2607 esac 2608 done 2609 (set) 2>&1 | 2610 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2611 *${as_nl}ac_space=\ *) 2612 sed -n \ 2613 "s/'\''/'\''\\\\'\'''\''/g; 2614 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2615 ;; #( 2616 *) 2617 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2618 ;; 2619 esac | 2620 sort 2621) 2622 echo 2623 2624 $as_echo "## ----------------- ## 2625## Output variables. ## 2626## ----------------- ##" 2627 echo 2628 for ac_var in $ac_subst_vars 2629 do 2630 eval ac_val=\$$ac_var 2631 case $ac_val in 2632 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2633 esac 2634 $as_echo "$ac_var='\''$ac_val'\''" 2635 done | sort 2636 echo 2637 2638 if test -n "$ac_subst_files"; then 2639 $as_echo "## ------------------- ## 2640## File substitutions. ## 2641## ------------------- ##" 2642 echo 2643 for ac_var in $ac_subst_files 2644 do 2645 eval ac_val=\$$ac_var 2646 case $ac_val in 2647 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2648 esac 2649 $as_echo "$ac_var='\''$ac_val'\''" 2650 done | sort 2651 echo 2652 fi 2653 2654 if test -s confdefs.h; then 2655 $as_echo "## ----------- ## 2656## confdefs.h. ## 2657## ----------- ##" 2658 echo 2659 cat confdefs.h 2660 echo 2661 fi 2662 test "$ac_signal" != 0 && 2663 $as_echo "$as_me: caught signal $ac_signal" 2664 $as_echo "$as_me: exit $exit_status" 2665 } >&5 2666 rm -f core *.core core.conftest.* && 2667 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2668 exit $exit_status 2669' 0 2670for ac_signal in 1 2 13 15; do 2671 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2672done 2673ac_signal=0 2674 2675# confdefs.h avoids OS command line length limits that DEFS can exceed. 2676rm -f -r conftest* confdefs.h 2677 2678$as_echo "/* confdefs.h */" > confdefs.h 2679 2680# Predefined preprocessor variables. 2681 2682cat >>confdefs.h <<_ACEOF 2683#define PACKAGE_NAME "$PACKAGE_NAME" 2684_ACEOF 2685 2686cat >>confdefs.h <<_ACEOF 2687#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2688_ACEOF 2689 2690cat >>confdefs.h <<_ACEOF 2691#define PACKAGE_VERSION "$PACKAGE_VERSION" 2692_ACEOF 2693 2694cat >>confdefs.h <<_ACEOF 2695#define PACKAGE_STRING "$PACKAGE_STRING" 2696_ACEOF 2697 2698cat >>confdefs.h <<_ACEOF 2699#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2700_ACEOF 2701 2702cat >>confdefs.h <<_ACEOF 2703#define PACKAGE_URL "$PACKAGE_URL" 2704_ACEOF 2705 2706 2707# Let the site file select an alternate cache file if it wants to. 2708# Prefer an explicitly selected file to automatically selected ones. 2709ac_site_file1=NONE 2710ac_site_file2=NONE 2711if test -n "$CONFIG_SITE"; then 2712 # We do not want a PATH search for config.site. 2713 case $CONFIG_SITE in #(( 2714 -*) ac_site_file1=./$CONFIG_SITE;; 2715 */*) ac_site_file1=$CONFIG_SITE;; 2716 *) ac_site_file1=./$CONFIG_SITE;; 2717 esac 2718elif test "x$prefix" != xNONE; then 2719 ac_site_file1=$prefix/share/config.site 2720 ac_site_file2=$prefix/etc/config.site 2721else 2722 ac_site_file1=$ac_default_prefix/share/config.site 2723 ac_site_file2=$ac_default_prefix/etc/config.site 2724fi 2725for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2726do 2727 test "x$ac_site_file" = xNONE && continue 2728 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2729 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2730$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2731 sed 's/^/| /' "$ac_site_file" >&5 2732 . "$ac_site_file" \ 2733 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2734$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2735as_fn_error $? "failed to load site script $ac_site_file 2736See \`config.log' for more details" "$LINENO" 5; } 2737 fi 2738done 2739 2740if test -r "$cache_file"; then 2741 # Some versions of bash will fail to source /dev/null (special files 2742 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2743 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2744 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2745$as_echo "$as_me: loading cache $cache_file" >&6;} 2746 case $cache_file in 2747 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2748 *) . "./$cache_file";; 2749 esac 2750 fi 2751else 2752 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2753$as_echo "$as_me: creating cache $cache_file" >&6;} 2754 >$cache_file 2755fi 2756 2757# Check that the precious variables saved in the cache have kept the same 2758# value. 2759ac_cache_corrupted=false 2760for ac_var in $ac_precious_vars; do 2761 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2762 eval ac_new_set=\$ac_env_${ac_var}_set 2763 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2764 eval ac_new_val=\$ac_env_${ac_var}_value 2765 case $ac_old_set,$ac_new_set in 2766 set,) 2767 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2768$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2769 ac_cache_corrupted=: ;; 2770 ,set) 2771 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2772$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2773 ac_cache_corrupted=: ;; 2774 ,);; 2775 *) 2776 if test "x$ac_old_val" != "x$ac_new_val"; then 2777 # differences in whitespace do not lead to failure. 2778 ac_old_val_w=`echo x $ac_old_val` 2779 ac_new_val_w=`echo x $ac_new_val` 2780 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2781 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2782$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2783 ac_cache_corrupted=: 2784 else 2785 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2786$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2787 eval $ac_var=\$ac_old_val 2788 fi 2789 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2790$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2791 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2792$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2793 fi;; 2794 esac 2795 # Pass precious variables to config.status. 2796 if test "$ac_new_set" = set; then 2797 case $ac_new_val in 2798 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2799 *) ac_arg=$ac_var=$ac_new_val ;; 2800 esac 2801 case " $ac_configure_args " in 2802 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2803 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2804 esac 2805 fi 2806done 2807if $ac_cache_corrupted; then 2808 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2809$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2810 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2811$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2812 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2813fi 2814## -------------------- ## 2815## Main body of script. ## 2816## -------------------- ## 2817 2818ac_ext=c 2819ac_cpp='$CPP $CPPFLAGS' 2820ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2821ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2822ac_compiler_gnu=$ac_cv_c_compiler_gnu 2823 2824 2825 2826 2827 2828configure_flags="$*" 2829 2830cat >>confdefs.h <<_ACEOF 2831#define CONFIG_FLAGS "$configure_flags" 2832_ACEOF 2833 2834 2835 2836# DO NOT EDIT THIS DEFINITION BY HAND UNLESS YOU KNOW WHAT YOU'RE DOING. 2837# 2838# The update_versions.py script updates this definition when the 2839# version number changes. Tor uses it to make sure that it 2840# only shuts down for missing "required protocols" when those protocols 2841# are listed as required by a consensus after this date. 2842 2843$as_echo "#define APPROX_RELEASE_DATE \"2021-09-17\"" >>confdefs.h 2844 2845 2846# "foreign" means we don't follow GNU package layout standards 2847# "1.11" means we require automake version 1.11 or newer 2848# "subdir-objects" means put .o files in the same directory as the .c files 2849am__api_version='1.16' 2850 2851ac_aux_dir= 2852for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2853 if test -f "$ac_dir/install-sh"; then 2854 ac_aux_dir=$ac_dir 2855 ac_install_sh="$ac_aux_dir/install-sh -c" 2856 break 2857 elif test -f "$ac_dir/install.sh"; then 2858 ac_aux_dir=$ac_dir 2859 ac_install_sh="$ac_aux_dir/install.sh -c" 2860 break 2861 elif test -f "$ac_dir/shtool"; then 2862 ac_aux_dir=$ac_dir 2863 ac_install_sh="$ac_aux_dir/shtool install -c" 2864 break 2865 fi 2866done 2867if test -z "$ac_aux_dir"; then 2868 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 2869fi 2870 2871# These three variables are undocumented and unsupported, 2872# and are intended to be withdrawn in a future Autoconf release. 2873# They can cause serious problems if a builder's source tree is in a directory 2874# whose full name contains unusual characters. 2875ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2876ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2877ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2878 2879 2880# Find a good install program. We prefer a C program (faster), 2881# so one script is as good as another. But avoid the broken or 2882# incompatible versions: 2883# SysV /etc/install, /usr/sbin/install 2884# SunOS /usr/etc/install 2885# IRIX /sbin/install 2886# AIX /bin/install 2887# AmigaOS /C/install, which installs bootblocks on floppy discs 2888# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2889# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2890# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2891# OS/2's system install, which has a completely different semantic 2892# ./install, which can be erroneously created by make from ./install.sh. 2893# Reject install programs that cannot install multiple files. 2894{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2895$as_echo_n "checking for a BSD-compatible install... " >&6; } 2896if test -z "$INSTALL"; then 2897if ${ac_cv_path_install+:} false; then : 2898 $as_echo_n "(cached) " >&6 2899else 2900 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2901for as_dir in $PATH 2902do 2903 IFS=$as_save_IFS 2904 test -z "$as_dir" && as_dir=. 2905 # Account for people who put trailing slashes in PATH elements. 2906case $as_dir/ in #(( 2907 ./ | .// | /[cC]/* | \ 2908 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2909 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2910 /usr/ucb/* ) ;; 2911 *) 2912 # OSF1 and SCO ODT 3.0 have their own names for install. 2913 # Don't use installbsd from OSF since it installs stuff as root 2914 # by default. 2915 for ac_prog in ginstall scoinst install; do 2916 for ac_exec_ext in '' $ac_executable_extensions; do 2917 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 2918 if test $ac_prog = install && 2919 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2920 # AIX install. It has an incompatible calling convention. 2921 : 2922 elif test $ac_prog = install && 2923 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2924 # program-specific install script used by HP pwplus--don't use. 2925 : 2926 else 2927 rm -rf conftest.one conftest.two conftest.dir 2928 echo one > conftest.one 2929 echo two > conftest.two 2930 mkdir conftest.dir 2931 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2932 test -s conftest.one && test -s conftest.two && 2933 test -s conftest.dir/conftest.one && 2934 test -s conftest.dir/conftest.two 2935 then 2936 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2937 break 3 2938 fi 2939 fi 2940 fi 2941 done 2942 done 2943 ;; 2944esac 2945 2946 done 2947IFS=$as_save_IFS 2948 2949rm -rf conftest.one conftest.two conftest.dir 2950 2951fi 2952 if test "${ac_cv_path_install+set}" = set; then 2953 INSTALL=$ac_cv_path_install 2954 else 2955 # As a last resort, use the slow shell script. Don't cache a 2956 # value for INSTALL within a source directory, because that will 2957 # break other packages using the cache if that directory is 2958 # removed, or if the value is a relative name. 2959 INSTALL=$ac_install_sh 2960 fi 2961fi 2962{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2963$as_echo "$INSTALL" >&6; } 2964 2965# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2966# It thinks the first close brace ends the variable substitution. 2967test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2968 2969test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2970 2971test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2972 2973{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2974$as_echo_n "checking whether build environment is sane... " >&6; } 2975# Reject unsafe characters in $srcdir or the absolute working directory 2976# name. Accept space and tab only in the latter. 2977am_lf=' 2978' 2979case `pwd` in 2980 *[\\\"\#\$\&\'\`$am_lf]*) 2981 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2982esac 2983case $srcdir in 2984 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2985 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2986esac 2987 2988# Do 'set' in a subshell so we don't clobber the current shell's 2989# arguments. Must try -L first in case configure is actually a 2990# symlink; some systems play weird games with the mod time of symlinks 2991# (eg FreeBSD returns the mod time of the symlink's containing 2992# directory). 2993if ( 2994 am_has_slept=no 2995 for am_try in 1 2; do 2996 echo "timestamp, slept: $am_has_slept" > conftest.file 2997 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2998 if test "$*" = "X"; then 2999 # -L didn't work. 3000 set X `ls -t "$srcdir/configure" conftest.file` 3001 fi 3002 if test "$*" != "X $srcdir/configure conftest.file" \ 3003 && test "$*" != "X conftest.file $srcdir/configure"; then 3004 3005 # If neither matched, then we have a broken ls. This can happen 3006 # if, for instance, CONFIG_SHELL is bash and it inherits a 3007 # broken ls alias from the environment. This has actually 3008 # happened. Such a system could not be considered "sane". 3009 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 3010 alias in your environment" "$LINENO" 5 3011 fi 3012 if test "$2" = conftest.file || test $am_try -eq 2; then 3013 break 3014 fi 3015 # Just in case. 3016 sleep 1 3017 am_has_slept=yes 3018 done 3019 test "$2" = conftest.file 3020 ) 3021then 3022 # Ok. 3023 : 3024else 3025 as_fn_error $? "newly created file is older than distributed files! 3026Check your system clock" "$LINENO" 5 3027fi 3028{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3029$as_echo "yes" >&6; } 3030# If we didn't sleep, we still need to ensure time stamps of config.status and 3031# generated files are strictly newer. 3032am_sleep_pid= 3033if grep 'slept: no' conftest.file >/dev/null 2>&1; then 3034 ( sleep 1 ) & 3035 am_sleep_pid=$! 3036fi 3037 3038rm -f conftest.file 3039 3040test "$program_prefix" != NONE && 3041 program_transform_name="s&^&$program_prefix&;$program_transform_name" 3042# Use a double $ so make ignores it. 3043test "$program_suffix" != NONE && 3044 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 3045# Double any \ or $. 3046# By default was `s,x,x', remove it if useless. 3047ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 3048program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 3049 3050# Expand $ac_aux_dir to an absolute path. 3051am_aux_dir=`cd "$ac_aux_dir" && pwd` 3052 3053if test x"${MISSING+set}" != xset; then 3054 MISSING="\${SHELL} '$am_aux_dir/missing'" 3055fi 3056# Use eval to expand $SHELL 3057if eval "$MISSING --is-lightweight"; then 3058 am_missing_run="$MISSING " 3059else 3060 am_missing_run= 3061 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 3062$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 3063fi 3064 3065if test x"${install_sh+set}" != xset; then 3066 case $am_aux_dir in 3067 *\ * | *\ *) 3068 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 3069 *) 3070 install_sh="\${SHELL} $am_aux_dir/install-sh" 3071 esac 3072fi 3073 3074# Installed binaries are usually stripped using 'strip' when the user 3075# run "make install-strip". However 'strip' might not be the right 3076# tool to use in cross-compilation environments, therefore Automake 3077# will honor the 'STRIP' environment variable to overrule this program. 3078if test "$cross_compiling" != no; then 3079 if test -n "$ac_tool_prefix"; then 3080 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 3081set dummy ${ac_tool_prefix}strip; ac_word=$2 3082{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3083$as_echo_n "checking for $ac_word... " >&6; } 3084if ${ac_cv_prog_STRIP+:} false; then : 3085 $as_echo_n "(cached) " >&6 3086else 3087 if test -n "$STRIP"; then 3088 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 3089else 3090as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3091for as_dir in $PATH 3092do 3093 IFS=$as_save_IFS 3094 test -z "$as_dir" && as_dir=. 3095 for ac_exec_ext in '' $ac_executable_extensions; do 3096 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3097 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 3098 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3099 break 2 3100 fi 3101done 3102 done 3103IFS=$as_save_IFS 3104 3105fi 3106fi 3107STRIP=$ac_cv_prog_STRIP 3108if test -n "$STRIP"; then 3109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 3110$as_echo "$STRIP" >&6; } 3111else 3112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3113$as_echo "no" >&6; } 3114fi 3115 3116 3117fi 3118if test -z "$ac_cv_prog_STRIP"; then 3119 ac_ct_STRIP=$STRIP 3120 # Extract the first word of "strip", so it can be a program name with args. 3121set dummy strip; ac_word=$2 3122{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3123$as_echo_n "checking for $ac_word... " >&6; } 3124if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 3125 $as_echo_n "(cached) " >&6 3126else 3127 if test -n "$ac_ct_STRIP"; then 3128 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 3129else 3130as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3131for as_dir in $PATH 3132do 3133 IFS=$as_save_IFS 3134 test -z "$as_dir" && as_dir=. 3135 for ac_exec_ext in '' $ac_executable_extensions; do 3136 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3137 ac_cv_prog_ac_ct_STRIP="strip" 3138 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3139 break 2 3140 fi 3141done 3142 done 3143IFS=$as_save_IFS 3144 3145fi 3146fi 3147ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 3148if test -n "$ac_ct_STRIP"; then 3149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 3150$as_echo "$ac_ct_STRIP" >&6; } 3151else 3152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3153$as_echo "no" >&6; } 3154fi 3155 3156 if test "x$ac_ct_STRIP" = x; then 3157 STRIP=":" 3158 else 3159 case $cross_compiling:$ac_tool_warned in 3160yes:) 3161{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3162$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3163ac_tool_warned=yes ;; 3164esac 3165 STRIP=$ac_ct_STRIP 3166 fi 3167else 3168 STRIP="$ac_cv_prog_STRIP" 3169fi 3170 3171fi 3172INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 3173 3174{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 3175$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 3176if test -z "$MKDIR_P"; then 3177 if ${ac_cv_path_mkdir+:} false; then : 3178 $as_echo_n "(cached) " >&6 3179else 3180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3181for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 3182do 3183 IFS=$as_save_IFS 3184 test -z "$as_dir" && as_dir=. 3185 for ac_prog in mkdir gmkdir; do 3186 for ac_exec_ext in '' $ac_executable_extensions; do 3187 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 3188 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 3189 'mkdir (GNU coreutils) '* | \ 3190 'mkdir (coreutils) '* | \ 3191 'mkdir (fileutils) '4.1*) 3192 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 3193 break 3;; 3194 esac 3195 done 3196 done 3197 done 3198IFS=$as_save_IFS 3199 3200fi 3201 3202 test -d ./--version && rmdir ./--version 3203 if test "${ac_cv_path_mkdir+set}" = set; then 3204 MKDIR_P="$ac_cv_path_mkdir -p" 3205 else 3206 # As a last resort, use the slow shell script. Don't cache a 3207 # value for MKDIR_P within a source directory, because that will 3208 # break other packages using the cache if that directory is 3209 # removed, or if the value is a relative name. 3210 MKDIR_P="$ac_install_sh -d" 3211 fi 3212fi 3213{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 3214$as_echo "$MKDIR_P" >&6; } 3215 3216for ac_prog in gawk mawk nawk awk 3217do 3218 # Extract the first word of "$ac_prog", so it can be a program name with args. 3219set dummy $ac_prog; ac_word=$2 3220{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3221$as_echo_n "checking for $ac_word... " >&6; } 3222if ${ac_cv_prog_AWK+:} false; then : 3223 $as_echo_n "(cached) " >&6 3224else 3225 if test -n "$AWK"; then 3226 ac_cv_prog_AWK="$AWK" # Let the user override the test. 3227else 3228as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3229for as_dir in $PATH 3230do 3231 IFS=$as_save_IFS 3232 test -z "$as_dir" && as_dir=. 3233 for ac_exec_ext in '' $ac_executable_extensions; do 3234 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3235 ac_cv_prog_AWK="$ac_prog" 3236 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3237 break 2 3238 fi 3239done 3240 done 3241IFS=$as_save_IFS 3242 3243fi 3244fi 3245AWK=$ac_cv_prog_AWK 3246if test -n "$AWK"; then 3247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 3248$as_echo "$AWK" >&6; } 3249else 3250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3251$as_echo "no" >&6; } 3252fi 3253 3254 3255 test -n "$AWK" && break 3256done 3257 3258{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 3259$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 3260set x ${MAKE-make} 3261ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 3262if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 3263 $as_echo_n "(cached) " >&6 3264else 3265 cat >conftest.make <<\_ACEOF 3266SHELL = /bin/sh 3267all: 3268 @echo '@@@%%%=$(MAKE)=@@@%%%' 3269_ACEOF 3270# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 3271case `${MAKE-make} -f conftest.make 2>/dev/null` in 3272 *@@@%%%=?*=@@@%%%*) 3273 eval ac_cv_prog_make_${ac_make}_set=yes;; 3274 *) 3275 eval ac_cv_prog_make_${ac_make}_set=no;; 3276esac 3277rm -f conftest.make 3278fi 3279if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 3280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3281$as_echo "yes" >&6; } 3282 SET_MAKE= 3283else 3284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3285$as_echo "no" >&6; } 3286 SET_MAKE="MAKE=${MAKE-make}" 3287fi 3288 3289rm -rf .tst 2>/dev/null 3290mkdir .tst 2>/dev/null 3291if test -d .tst; then 3292 am__leading_dot=. 3293else 3294 am__leading_dot=_ 3295fi 3296rmdir .tst 2>/dev/null 3297 3298# Check whether --enable-silent-rules was given. 3299if test "${enable_silent_rules+set}" = set; then : 3300 enableval=$enable_silent_rules; 3301fi 3302 3303case $enable_silent_rules in # ((( 3304 yes) AM_DEFAULT_VERBOSITY=0;; 3305 no) AM_DEFAULT_VERBOSITY=1;; 3306 *) AM_DEFAULT_VERBOSITY=1;; 3307esac 3308am_make=${MAKE-make} 3309{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 3310$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 3311if ${am_cv_make_support_nested_variables+:} false; then : 3312 $as_echo_n "(cached) " >&6 3313else 3314 if $as_echo 'TRUE=$(BAR$(V)) 3315BAR0=false 3316BAR1=true 3317V=1 3318am__doit: 3319 @$(TRUE) 3320.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 3321 am_cv_make_support_nested_variables=yes 3322else 3323 am_cv_make_support_nested_variables=no 3324fi 3325fi 3326{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 3327$as_echo "$am_cv_make_support_nested_variables" >&6; } 3328if test $am_cv_make_support_nested_variables = yes; then 3329 AM_V='$(V)' 3330 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 3331else 3332 AM_V=$AM_DEFAULT_VERBOSITY 3333 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 3334fi 3335AM_BACKSLASH='\' 3336 3337if test "`cd $srcdir && pwd`" != "`pwd`"; then 3338 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 3339 # is not polluted with repeated "-I." 3340 am__isrc=' -I$(srcdir)' 3341 # test to see if srcdir already configured 3342 if test -f $srcdir/config.status; then 3343 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 3344 fi 3345fi 3346 3347# test whether we have cygpath 3348if test -z "$CYGPATH_W"; then 3349 if (cygpath --version) >/dev/null 2>/dev/null; then 3350 CYGPATH_W='cygpath -w' 3351 else 3352 CYGPATH_W=echo 3353 fi 3354fi 3355 3356 3357# Define the identity of the package. 3358 PACKAGE='tor' 3359 VERSION='0.4.7.2-alpha' 3360 3361 3362cat >>confdefs.h <<_ACEOF 3363#define PACKAGE "$PACKAGE" 3364_ACEOF 3365 3366 3367cat >>confdefs.h <<_ACEOF 3368#define VERSION "$VERSION" 3369_ACEOF 3370 3371# Some tools Automake needs. 3372 3373ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 3374 3375 3376AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 3377 3378 3379AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 3380 3381 3382AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 3383 3384 3385MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 3386 3387# For better backward compatibility. To be removed once Automake 1.9.x 3388# dies out for good. For more background, see: 3389# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 3390# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 3391mkdir_p='$(MKDIR_P)' 3392 3393# We need awk for the "check" target (and possibly the TAP driver). The 3394# system "awk" is bad on some platforms. 3395# Always define AMTAR for backward compatibility. Yes, it's still used 3396# in the wild :-( We should find a proper way to deprecate it ... 3397AMTAR='$${TAR-tar}' 3398 3399 3400# We'll loop over all known methods to create a tar archive until one works. 3401_am_tools='gnutar pax cpio none' 3402 3403am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 3404 3405 3406 3407 3408 3409# Variables for tags utilities; see am/tags.am 3410if test -z "$CTAGS"; then 3411 CTAGS=ctags 3412fi 3413 3414if test -z "$ETAGS"; then 3415 ETAGS=etags 3416fi 3417 3418if test -z "$CSCOPE"; then 3419 CSCOPE=cscope 3420fi 3421 3422 3423 3424# POSIX will say in a future version that running "rm -f" with no argument 3425# is OK; and we want to be able to make that assumption in our Makefile 3426# recipes. So use an aggressive probe to check that the usage we want is 3427# actually supported "in the wild" to an acceptable degree. 3428# See automake bug#10828. 3429# To make any issue more visible, cause the running configure to be aborted 3430# by default if the 'rm' program in use doesn't match our expectations; the 3431# user can still override this though. 3432if rm -f && rm -fr && rm -rf; then : OK; else 3433 cat >&2 <<'END' 3434Oops! 3435 3436Your 'rm' program seems unable to run without file operands specified 3437on the command line, even when the '-f' option is present. This is contrary 3438to the behaviour of most rm programs out there, and not conforming with 3439the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 3440 3441Please tell bug-automake@gnu.org about your system, including the value 3442of your $PATH and any error possibly output before this message. This 3443can help us improve future automake versions. 3444 3445END 3446 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 3447 echo 'Configuration will proceed anyway, since you have set the' >&2 3448 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 3449 echo >&2 3450 else 3451 cat >&2 <<'END' 3452Aborting the configuration process, to ensure you take notice of the issue. 3453 3454You can download and install GNU coreutils to get an 'rm' implementation 3455that behaves properly: <https://www.gnu.org/software/coreutils/>. 3456 3457If you want to complete the configuration process using your problematic 3458'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 3459to "yes", and re-run configure. 3460 3461END 3462 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 3463 fi 3464fi 3465 3466 3467tor_ac_n_warnings=0 3468tor_incr_n_warnings() { 3469 tor_ac_n_warnings=`expr $tor_ac_n_warnings + 1` 3470} 3471 3472# Check whether --enable-silent-rules was given. 3473if test "${enable_silent_rules+set}" = set; then : 3474 enableval=$enable_silent_rules; 3475fi 3476 3477case $enable_silent_rules in # ((( 3478 yes) AM_DEFAULT_VERBOSITY=0;; 3479 no) AM_DEFAULT_VERBOSITY=1;; 3480 *) AM_DEFAULT_VERBOSITY=0;; 3481esac 3482am_make=${MAKE-make} 3483{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 3484$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 3485if ${am_cv_make_support_nested_variables+:} false; then : 3486 $as_echo_n "(cached) " >&6 3487else 3488 if $as_echo 'TRUE=$(BAR$(V)) 3489BAR0=false 3490BAR1=true 3491V=1 3492am__doit: 3493 @$(TRUE) 3494.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 3495 am_cv_make_support_nested_variables=yes 3496else 3497 am_cv_make_support_nested_variables=no 3498fi 3499fi 3500{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 3501$as_echo "$am_cv_make_support_nested_variables" >&6; } 3502if test $am_cv_make_support_nested_variables = yes; then 3503 AM_V='$(V)' 3504 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 3505else 3506 AM_V=$AM_DEFAULT_VERBOSITY 3507 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 3508fi 3509AM_BACKSLASH='\' 3510 3511ac_config_headers="$ac_config_headers orconfig.h" 3512 3513 3514DEPDIR="${am__leading_dot}deps" 3515 3516ac_config_commands="$ac_config_commands depfiles" 3517 3518{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5 3519$as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; } 3520cat > confinc.mk << 'END' 3521am__doit: 3522 @echo this is the am__doit target >confinc.out 3523.PHONY: am__doit 3524END 3525am__include="#" 3526am__quote= 3527# BSD make does it like this. 3528echo '.include "confinc.mk" # ignored' > confmf.BSD 3529# Other make implementations (GNU, Solaris 10, AIX) do it like this. 3530echo 'include confinc.mk # ignored' > confmf.GNU 3531_am_result=no 3532for s in GNU BSD; do 3533 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5 3534 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5 3535 ac_status=$? 3536 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3537 (exit $ac_status); } 3538 case $?:`cat confinc.out 2>/dev/null` in #( 3539 '0:this is the am__doit target') : 3540 case $s in #( 3541 BSD) : 3542 am__include='.include' am__quote='"' ;; #( 3543 *) : 3544 am__include='include' am__quote='' ;; 3545esac ;; #( 3546 *) : 3547 ;; 3548esac 3549 if test "$am__include" != "#"; then 3550 _am_result="yes ($s style)" 3551 break 3552 fi 3553done 3554rm -f confinc.* confmf.* 3555{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5 3556$as_echo "${_am_result}" >&6; } 3557 3558# Check whether --enable-dependency-tracking was given. 3559if test "${enable_dependency_tracking+set}" = set; then : 3560 enableval=$enable_dependency_tracking; 3561fi 3562 3563if test "x$enable_dependency_tracking" != xno; then 3564 am_depcomp="$ac_aux_dir/depcomp" 3565 AMDEPBACKSLASH='\' 3566 am__nodep='_no' 3567fi 3568 if test "x$enable_dependency_tracking" != xno; then 3569 AMDEP_TRUE= 3570 AMDEP_FALSE='#' 3571else 3572 AMDEP_TRUE='#' 3573 AMDEP_FALSE= 3574fi 3575 3576 3577ac_ext=c 3578ac_cpp='$CPP $CPPFLAGS' 3579ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3580ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3581ac_compiler_gnu=$ac_cv_c_compiler_gnu 3582if test -n "$ac_tool_prefix"; then 3583 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3584set dummy ${ac_tool_prefix}gcc; ac_word=$2 3585{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3586$as_echo_n "checking for $ac_word... " >&6; } 3587if ${ac_cv_prog_CC+:} false; then : 3588 $as_echo_n "(cached) " >&6 3589else 3590 if test -n "$CC"; then 3591 ac_cv_prog_CC="$CC" # Let the user override the test. 3592else 3593as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3594for as_dir in $PATH 3595do 3596 IFS=$as_save_IFS 3597 test -z "$as_dir" && as_dir=. 3598 for ac_exec_ext in '' $ac_executable_extensions; do 3599 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3600 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3601 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3602 break 2 3603 fi 3604done 3605 done 3606IFS=$as_save_IFS 3607 3608fi 3609fi 3610CC=$ac_cv_prog_CC 3611if test -n "$CC"; then 3612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3613$as_echo "$CC" >&6; } 3614else 3615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3616$as_echo "no" >&6; } 3617fi 3618 3619 3620fi 3621if test -z "$ac_cv_prog_CC"; then 3622 ac_ct_CC=$CC 3623 # Extract the first word of "gcc", so it can be a program name with args. 3624set dummy gcc; ac_word=$2 3625{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3626$as_echo_n "checking for $ac_word... " >&6; } 3627if ${ac_cv_prog_ac_ct_CC+:} false; then : 3628 $as_echo_n "(cached) " >&6 3629else 3630 if test -n "$ac_ct_CC"; then 3631 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3632else 3633as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3634for as_dir in $PATH 3635do 3636 IFS=$as_save_IFS 3637 test -z "$as_dir" && as_dir=. 3638 for ac_exec_ext in '' $ac_executable_extensions; do 3639 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3640 ac_cv_prog_ac_ct_CC="gcc" 3641 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3642 break 2 3643 fi 3644done 3645 done 3646IFS=$as_save_IFS 3647 3648fi 3649fi 3650ac_ct_CC=$ac_cv_prog_ac_ct_CC 3651if test -n "$ac_ct_CC"; then 3652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3653$as_echo "$ac_ct_CC" >&6; } 3654else 3655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3656$as_echo "no" >&6; } 3657fi 3658 3659 if test "x$ac_ct_CC" = x; then 3660 CC="" 3661 else 3662 case $cross_compiling:$ac_tool_warned in 3663yes:) 3664{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3665$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3666ac_tool_warned=yes ;; 3667esac 3668 CC=$ac_ct_CC 3669 fi 3670else 3671 CC="$ac_cv_prog_CC" 3672fi 3673 3674if test -z "$CC"; then 3675 if test -n "$ac_tool_prefix"; then 3676 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3677set dummy ${ac_tool_prefix}cc; ac_word=$2 3678{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3679$as_echo_n "checking for $ac_word... " >&6; } 3680if ${ac_cv_prog_CC+:} false; then : 3681 $as_echo_n "(cached) " >&6 3682else 3683 if test -n "$CC"; then 3684 ac_cv_prog_CC="$CC" # Let the user override the test. 3685else 3686as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3687for as_dir in $PATH 3688do 3689 IFS=$as_save_IFS 3690 test -z "$as_dir" && as_dir=. 3691 for ac_exec_ext in '' $ac_executable_extensions; do 3692 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3693 ac_cv_prog_CC="${ac_tool_prefix}cc" 3694 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3695 break 2 3696 fi 3697done 3698 done 3699IFS=$as_save_IFS 3700 3701fi 3702fi 3703CC=$ac_cv_prog_CC 3704if test -n "$CC"; then 3705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3706$as_echo "$CC" >&6; } 3707else 3708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3709$as_echo "no" >&6; } 3710fi 3711 3712 3713 fi 3714fi 3715if test -z "$CC"; then 3716 # Extract the first word of "cc", so it can be a program name with args. 3717set dummy cc; ac_word=$2 3718{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3719$as_echo_n "checking for $ac_word... " >&6; } 3720if ${ac_cv_prog_CC+:} false; then : 3721 $as_echo_n "(cached) " >&6 3722else 3723 if test -n "$CC"; then 3724 ac_cv_prog_CC="$CC" # Let the user override the test. 3725else 3726 ac_prog_rejected=no 3727as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3728for as_dir in $PATH 3729do 3730 IFS=$as_save_IFS 3731 test -z "$as_dir" && as_dir=. 3732 for ac_exec_ext in '' $ac_executable_extensions; do 3733 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3734 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3735 ac_prog_rejected=yes 3736 continue 3737 fi 3738 ac_cv_prog_CC="cc" 3739 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3740 break 2 3741 fi 3742done 3743 done 3744IFS=$as_save_IFS 3745 3746if test $ac_prog_rejected = yes; then 3747 # We found a bogon in the path, so make sure we never use it. 3748 set dummy $ac_cv_prog_CC 3749 shift 3750 if test $# != 0; then 3751 # We chose a different compiler from the bogus one. 3752 # However, it has the same basename, so the bogon will be chosen 3753 # first if we set CC to just the basename; use the full file name. 3754 shift 3755 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3756 fi 3757fi 3758fi 3759fi 3760CC=$ac_cv_prog_CC 3761if test -n "$CC"; then 3762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3763$as_echo "$CC" >&6; } 3764else 3765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3766$as_echo "no" >&6; } 3767fi 3768 3769 3770fi 3771if test -z "$CC"; then 3772 if test -n "$ac_tool_prefix"; then 3773 for ac_prog in cl.exe 3774 do 3775 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3776set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3777{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3778$as_echo_n "checking for $ac_word... " >&6; } 3779if ${ac_cv_prog_CC+:} false; then : 3780 $as_echo_n "(cached) " >&6 3781else 3782 if test -n "$CC"; then 3783 ac_cv_prog_CC="$CC" # Let the user override the test. 3784else 3785as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3786for as_dir in $PATH 3787do 3788 IFS=$as_save_IFS 3789 test -z "$as_dir" && as_dir=. 3790 for ac_exec_ext in '' $ac_executable_extensions; do 3791 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3792 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3793 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3794 break 2 3795 fi 3796done 3797 done 3798IFS=$as_save_IFS 3799 3800fi 3801fi 3802CC=$ac_cv_prog_CC 3803if test -n "$CC"; then 3804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3805$as_echo "$CC" >&6; } 3806else 3807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3808$as_echo "no" >&6; } 3809fi 3810 3811 3812 test -n "$CC" && break 3813 done 3814fi 3815if test -z "$CC"; then 3816 ac_ct_CC=$CC 3817 for ac_prog in cl.exe 3818do 3819 # Extract the first word of "$ac_prog", so it can be a program name with args. 3820set dummy $ac_prog; ac_word=$2 3821{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3822$as_echo_n "checking for $ac_word... " >&6; } 3823if ${ac_cv_prog_ac_ct_CC+:} false; then : 3824 $as_echo_n "(cached) " >&6 3825else 3826 if test -n "$ac_ct_CC"; then 3827 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3828else 3829as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3830for as_dir in $PATH 3831do 3832 IFS=$as_save_IFS 3833 test -z "$as_dir" && as_dir=. 3834 for ac_exec_ext in '' $ac_executable_extensions; do 3835 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3836 ac_cv_prog_ac_ct_CC="$ac_prog" 3837 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3838 break 2 3839 fi 3840done 3841 done 3842IFS=$as_save_IFS 3843 3844fi 3845fi 3846ac_ct_CC=$ac_cv_prog_ac_ct_CC 3847if test -n "$ac_ct_CC"; then 3848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3849$as_echo "$ac_ct_CC" >&6; } 3850else 3851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3852$as_echo "no" >&6; } 3853fi 3854 3855 3856 test -n "$ac_ct_CC" && break 3857done 3858 3859 if test "x$ac_ct_CC" = x; then 3860 CC="" 3861 else 3862 case $cross_compiling:$ac_tool_warned in 3863yes:) 3864{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3865$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3866ac_tool_warned=yes ;; 3867esac 3868 CC=$ac_ct_CC 3869 fi 3870fi 3871 3872fi 3873 3874 3875test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3876$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3877as_fn_error $? "no acceptable C compiler found in \$PATH 3878See \`config.log' for more details" "$LINENO" 5; } 3879 3880# Provide some information about the compiler. 3881$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3882set X $ac_compile 3883ac_compiler=$2 3884for ac_option in --version -v -V -qversion; do 3885 { { ac_try="$ac_compiler $ac_option >&5" 3886case "(($ac_try" in 3887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3888 *) ac_try_echo=$ac_try;; 3889esac 3890eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3891$as_echo "$ac_try_echo"; } >&5 3892 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3893 ac_status=$? 3894 if test -s conftest.err; then 3895 sed '10a\ 3896... rest of stderr output deleted ... 3897 10q' conftest.err >conftest.er1 3898 cat conftest.er1 >&5 3899 fi 3900 rm -f conftest.er1 conftest.err 3901 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3902 test $ac_status = 0; } 3903done 3904 3905cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3906/* end confdefs.h. */ 3907 3908int 3909main () 3910{ 3911 3912 ; 3913 return 0; 3914} 3915_ACEOF 3916ac_clean_files_save=$ac_clean_files 3917ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3918# Try to create an executable without -o first, disregard a.out. 3919# It will help us diagnose broken compilers, and finding out an intuition 3920# of exeext. 3921{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3922$as_echo_n "checking whether the C compiler works... " >&6; } 3923ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3924 3925# The possible output files: 3926ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3927 3928ac_rmfiles= 3929for ac_file in $ac_files 3930do 3931 case $ac_file in 3932 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3933 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3934 esac 3935done 3936rm -f $ac_rmfiles 3937 3938if { { ac_try="$ac_link_default" 3939case "(($ac_try" in 3940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3941 *) ac_try_echo=$ac_try;; 3942esac 3943eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3944$as_echo "$ac_try_echo"; } >&5 3945 (eval "$ac_link_default") 2>&5 3946 ac_status=$? 3947 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3948 test $ac_status = 0; }; then : 3949 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3950# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3951# in a Makefile. We should not override ac_cv_exeext if it was cached, 3952# so that the user can short-circuit this test for compilers unknown to 3953# Autoconf. 3954for ac_file in $ac_files '' 3955do 3956 test -f "$ac_file" || continue 3957 case $ac_file in 3958 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3959 ;; 3960 [ab].out ) 3961 # We found the default executable, but exeext='' is most 3962 # certainly right. 3963 break;; 3964 *.* ) 3965 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3966 then :; else 3967 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3968 fi 3969 # We set ac_cv_exeext here because the later test for it is not 3970 # safe: cross compilers may not add the suffix if given an `-o' 3971 # argument, so we may need to know it at that point already. 3972 # Even if this section looks crufty: it has the advantage of 3973 # actually working. 3974 break;; 3975 * ) 3976 break;; 3977 esac 3978done 3979test "$ac_cv_exeext" = no && ac_cv_exeext= 3980 3981else 3982 ac_file='' 3983fi 3984if test -z "$ac_file"; then : 3985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3986$as_echo "no" >&6; } 3987$as_echo "$as_me: failed program was:" >&5 3988sed 's/^/| /' conftest.$ac_ext >&5 3989 3990{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3991$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3992as_fn_error 77 "C compiler cannot create executables 3993See \`config.log' for more details" "$LINENO" 5; } 3994else 3995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3996$as_echo "yes" >&6; } 3997fi 3998{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3999$as_echo_n "checking for C compiler default output file name... " >&6; } 4000{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 4001$as_echo "$ac_file" >&6; } 4002ac_exeext=$ac_cv_exeext 4003 4004rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 4005ac_clean_files=$ac_clean_files_save 4006{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 4007$as_echo_n "checking for suffix of executables... " >&6; } 4008if { { ac_try="$ac_link" 4009case "(($ac_try" in 4010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4011 *) ac_try_echo=$ac_try;; 4012esac 4013eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4014$as_echo "$ac_try_echo"; } >&5 4015 (eval "$ac_link") 2>&5 4016 ac_status=$? 4017 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4018 test $ac_status = 0; }; then : 4019 # If both `conftest.exe' and `conftest' are `present' (well, observable) 4020# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 4021# work properly (i.e., refer to `conftest.exe'), while it won't with 4022# `rm'. 4023for ac_file in conftest.exe conftest conftest.*; do 4024 test -f "$ac_file" || continue 4025 case $ac_file in 4026 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 4027 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 4028 break;; 4029 * ) break;; 4030 esac 4031done 4032else 4033 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4034$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4035as_fn_error $? "cannot compute suffix of executables: cannot compile and link 4036See \`config.log' for more details" "$LINENO" 5; } 4037fi 4038rm -f conftest conftest$ac_cv_exeext 4039{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 4040$as_echo "$ac_cv_exeext" >&6; } 4041 4042rm -f conftest.$ac_ext 4043EXEEXT=$ac_cv_exeext 4044ac_exeext=$EXEEXT 4045cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4046/* end confdefs.h. */ 4047#include <stdio.h> 4048int 4049main () 4050{ 4051FILE *f = fopen ("conftest.out", "w"); 4052 return ferror (f) || fclose (f) != 0; 4053 4054 ; 4055 return 0; 4056} 4057_ACEOF 4058ac_clean_files="$ac_clean_files conftest.out" 4059# Check that the compiler produces executables we can run. If not, either 4060# the compiler is broken, or we cross compile. 4061{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 4062$as_echo_n "checking whether we are cross compiling... " >&6; } 4063if test "$cross_compiling" != yes; then 4064 { { ac_try="$ac_link" 4065case "(($ac_try" in 4066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4067 *) ac_try_echo=$ac_try;; 4068esac 4069eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4070$as_echo "$ac_try_echo"; } >&5 4071 (eval "$ac_link") 2>&5 4072 ac_status=$? 4073 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4074 test $ac_status = 0; } 4075 if { ac_try='./conftest$ac_cv_exeext' 4076 { { case "(($ac_try" in 4077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4078 *) ac_try_echo=$ac_try;; 4079esac 4080eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4081$as_echo "$ac_try_echo"; } >&5 4082 (eval "$ac_try") 2>&5 4083 ac_status=$? 4084 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4085 test $ac_status = 0; }; }; then 4086 cross_compiling=no 4087 else 4088 if test "$cross_compiling" = maybe; then 4089 cross_compiling=yes 4090 else 4091 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4092$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4093as_fn_error $? "cannot run C compiled programs. 4094If you meant to cross compile, use \`--host'. 4095See \`config.log' for more details" "$LINENO" 5; } 4096 fi 4097 fi 4098fi 4099{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 4100$as_echo "$cross_compiling" >&6; } 4101 4102rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 4103ac_clean_files=$ac_clean_files_save 4104{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 4105$as_echo_n "checking for suffix of object files... " >&6; } 4106if ${ac_cv_objext+:} false; then : 4107 $as_echo_n "(cached) " >&6 4108else 4109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4110/* end confdefs.h. */ 4111 4112int 4113main () 4114{ 4115 4116 ; 4117 return 0; 4118} 4119_ACEOF 4120rm -f conftest.o conftest.obj 4121if { { ac_try="$ac_compile" 4122case "(($ac_try" in 4123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4124 *) ac_try_echo=$ac_try;; 4125esac 4126eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4127$as_echo "$ac_try_echo"; } >&5 4128 (eval "$ac_compile") 2>&5 4129 ac_status=$? 4130 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4131 test $ac_status = 0; }; then : 4132 for ac_file in conftest.o conftest.obj conftest.*; do 4133 test -f "$ac_file" || continue; 4134 case $ac_file in 4135 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 4136 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 4137 break;; 4138 esac 4139done 4140else 4141 $as_echo "$as_me: failed program was:" >&5 4142sed 's/^/| /' conftest.$ac_ext >&5 4143 4144{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4145$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4146as_fn_error $? "cannot compute suffix of object files: cannot compile 4147See \`config.log' for more details" "$LINENO" 5; } 4148fi 4149rm -f conftest.$ac_cv_objext conftest.$ac_ext 4150fi 4151{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 4152$as_echo "$ac_cv_objext" >&6; } 4153OBJEXT=$ac_cv_objext 4154ac_objext=$OBJEXT 4155{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 4156$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 4157if ${ac_cv_c_compiler_gnu+:} false; then : 4158 $as_echo_n "(cached) " >&6 4159else 4160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4161/* end confdefs.h. */ 4162 4163int 4164main () 4165{ 4166#ifndef __GNUC__ 4167 choke me 4168#endif 4169 4170 ; 4171 return 0; 4172} 4173_ACEOF 4174if ac_fn_c_try_compile "$LINENO"; then : 4175 ac_compiler_gnu=yes 4176else 4177 ac_compiler_gnu=no 4178fi 4179rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4180ac_cv_c_compiler_gnu=$ac_compiler_gnu 4181 4182fi 4183{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 4184$as_echo "$ac_cv_c_compiler_gnu" >&6; } 4185if test $ac_compiler_gnu = yes; then 4186 GCC=yes 4187else 4188 GCC= 4189fi 4190ac_test_CFLAGS=${CFLAGS+set} 4191ac_save_CFLAGS=$CFLAGS 4192{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 4193$as_echo_n "checking whether $CC accepts -g... " >&6; } 4194if ${ac_cv_prog_cc_g+:} false; then : 4195 $as_echo_n "(cached) " >&6 4196else 4197 ac_save_c_werror_flag=$ac_c_werror_flag 4198 ac_c_werror_flag=yes 4199 ac_cv_prog_cc_g=no 4200 CFLAGS="-g" 4201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4202/* end confdefs.h. */ 4203 4204int 4205main () 4206{ 4207 4208 ; 4209 return 0; 4210} 4211_ACEOF 4212if ac_fn_c_try_compile "$LINENO"; then : 4213 ac_cv_prog_cc_g=yes 4214else 4215 CFLAGS="" 4216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4217/* end confdefs.h. */ 4218 4219int 4220main () 4221{ 4222 4223 ; 4224 return 0; 4225} 4226_ACEOF 4227if ac_fn_c_try_compile "$LINENO"; then : 4228 4229else 4230 ac_c_werror_flag=$ac_save_c_werror_flag 4231 CFLAGS="-g" 4232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4233/* end confdefs.h. */ 4234 4235int 4236main () 4237{ 4238 4239 ; 4240 return 0; 4241} 4242_ACEOF 4243if ac_fn_c_try_compile "$LINENO"; then : 4244 ac_cv_prog_cc_g=yes 4245fi 4246rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4247fi 4248rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4249fi 4250rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4251 ac_c_werror_flag=$ac_save_c_werror_flag 4252fi 4253{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 4254$as_echo "$ac_cv_prog_cc_g" >&6; } 4255if test "$ac_test_CFLAGS" = set; then 4256 CFLAGS=$ac_save_CFLAGS 4257elif test $ac_cv_prog_cc_g = yes; then 4258 if test "$GCC" = yes; then 4259 CFLAGS="-g -O2" 4260 else 4261 CFLAGS="-g" 4262 fi 4263else 4264 if test "$GCC" = yes; then 4265 CFLAGS="-O2" 4266 else 4267 CFLAGS= 4268 fi 4269fi 4270{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 4271$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 4272if ${ac_cv_prog_cc_c89+:} false; then : 4273 $as_echo_n "(cached) " >&6 4274else 4275 ac_cv_prog_cc_c89=no 4276ac_save_CC=$CC 4277cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4278/* end confdefs.h. */ 4279#include <stdarg.h> 4280#include <stdio.h> 4281struct stat; 4282/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 4283struct buf { int x; }; 4284FILE * (*rcsopen) (struct buf *, struct stat *, int); 4285static char *e (p, i) 4286 char **p; 4287 int i; 4288{ 4289 return p[i]; 4290} 4291static char *f (char * (*g) (char **, int), char **p, ...) 4292{ 4293 char *s; 4294 va_list v; 4295 va_start (v,p); 4296 s = g (p, va_arg (v,int)); 4297 va_end (v); 4298 return s; 4299} 4300 4301/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 4302 function prototypes and stuff, but not '\xHH' hex character constants. 4303 These don't provoke an error unfortunately, instead are silently treated 4304 as 'x'. The following induces an error, until -std is added to get 4305 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 4306 array size at least. It's necessary to write '\x00'==0 to get something 4307 that's true only with -std. */ 4308int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 4309 4310/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 4311 inside strings and character constants. */ 4312#define FOO(x) 'x' 4313int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 4314 4315int test (int i, double x); 4316struct s1 {int (*f) (int a);}; 4317struct s2 {int (*f) (double a);}; 4318int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 4319int argc; 4320char **argv; 4321int 4322main () 4323{ 4324return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 4325 ; 4326 return 0; 4327} 4328_ACEOF 4329for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 4330 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4331do 4332 CC="$ac_save_CC $ac_arg" 4333 if ac_fn_c_try_compile "$LINENO"; then : 4334 ac_cv_prog_cc_c89=$ac_arg 4335fi 4336rm -f core conftest.err conftest.$ac_objext 4337 test "x$ac_cv_prog_cc_c89" != "xno" && break 4338done 4339rm -f conftest.$ac_ext 4340CC=$ac_save_CC 4341 4342fi 4343# AC_CACHE_VAL 4344case "x$ac_cv_prog_cc_c89" in 4345 x) 4346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4347$as_echo "none needed" >&6; } ;; 4348 xno) 4349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4350$as_echo "unsupported" >&6; } ;; 4351 *) 4352 CC="$CC $ac_cv_prog_cc_c89" 4353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4354$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 4355esac 4356if test "x$ac_cv_prog_cc_c89" != xno; then : 4357 4358fi 4359 4360ac_ext=c 4361ac_cpp='$CPP $CPPFLAGS' 4362ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4363ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4364ac_compiler_gnu=$ac_cv_c_compiler_gnu 4365 4366ac_ext=c 4367ac_cpp='$CPP $CPPFLAGS' 4368ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4369ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4370ac_compiler_gnu=$ac_cv_c_compiler_gnu 4371{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 4372$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 4373if ${am_cv_prog_cc_c_o+:} false; then : 4374 $as_echo_n "(cached) " >&6 4375else 4376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4377/* end confdefs.h. */ 4378 4379int 4380main () 4381{ 4382 4383 ; 4384 return 0; 4385} 4386_ACEOF 4387 # Make sure it works both with $CC and with simple cc. 4388 # Following AC_PROG_CC_C_O, we do the test twice because some 4389 # compilers refuse to overwrite an existing .o file with -o, 4390 # though they will create one. 4391 am_cv_prog_cc_c_o=yes 4392 for am_i in 1 2; do 4393 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 4394 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 4395 ac_status=$? 4396 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4397 (exit $ac_status); } \ 4398 && test -f conftest2.$ac_objext; then 4399 : OK 4400 else 4401 am_cv_prog_cc_c_o=no 4402 break 4403 fi 4404 done 4405 rm -f core conftest* 4406 unset am_i 4407fi 4408{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 4409$as_echo "$am_cv_prog_cc_c_o" >&6; } 4410if test "$am_cv_prog_cc_c_o" != yes; then 4411 # Losing compiler, so override with the script. 4412 # FIXME: It is wrong to rewrite CC. 4413 # But if we don't then we get into trouble of one sort or another. 4414 # A longer-term fix would be to have automake use am__CC in this case, 4415 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 4416 CC="$am_aux_dir/compile $CC" 4417fi 4418ac_ext=c 4419ac_cpp='$CPP $CPPFLAGS' 4420ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4421ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4422ac_compiler_gnu=$ac_cv_c_compiler_gnu 4423 4424 4425depcc="$CC" am_compiler_list= 4426 4427{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4428$as_echo_n "checking dependency style of $depcc... " >&6; } 4429if ${am_cv_CC_dependencies_compiler_type+:} false; then : 4430 $as_echo_n "(cached) " >&6 4431else 4432 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4433 # We make a subdir and do the tests there. Otherwise we can end up 4434 # making bogus files that we don't know about and never remove. For 4435 # instance it was reported that on HP-UX the gcc test will end up 4436 # making a dummy file named 'D' -- because '-MD' means "put the output 4437 # in D". 4438 rm -rf conftest.dir 4439 mkdir conftest.dir 4440 # Copy depcomp to subdir because otherwise we won't find it if we're 4441 # using a relative directory. 4442 cp "$am_depcomp" conftest.dir 4443 cd conftest.dir 4444 # We will build objects and dependencies in a subdirectory because 4445 # it helps to detect inapplicable dependency modes. For instance 4446 # both Tru64's cc and ICC support -MD to output dependencies as a 4447 # side effect of compilation, but ICC will put the dependencies in 4448 # the current directory while Tru64 will put them in the object 4449 # directory. 4450 mkdir sub 4451 4452 am_cv_CC_dependencies_compiler_type=none 4453 if test "$am_compiler_list" = ""; then 4454 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4455 fi 4456 am__universal=false 4457 case " $depcc " in #( 4458 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4459 esac 4460 4461 for depmode in $am_compiler_list; do 4462 # Setup a source with many dependencies, because some compilers 4463 # like to wrap large dependency lists on column 80 (with \), and 4464 # we should not choose a depcomp mode which is confused by this. 4465 # 4466 # We need to recreate these files for each test, as the compiler may 4467 # overwrite some of them when testing with obscure command lines. 4468 # This happens at least with the AIX C compiler. 4469 : > sub/conftest.c 4470 for i in 1 2 3 4 5 6; do 4471 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4472 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4473 # Solaris 10 /bin/sh. 4474 echo '/* dummy */' > sub/conftst$i.h 4475 done 4476 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4477 4478 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4479 # mode. It turns out that the SunPro C++ compiler does not properly 4480 # handle '-M -o', and we need to detect this. Also, some Intel 4481 # versions had trouble with output in subdirs. 4482 am__obj=sub/conftest.${OBJEXT-o} 4483 am__minus_obj="-o $am__obj" 4484 case $depmode in 4485 gcc) 4486 # This depmode causes a compiler race in universal mode. 4487 test "$am__universal" = false || continue 4488 ;; 4489 nosideeffect) 4490 # After this tag, mechanisms are not by side-effect, so they'll 4491 # only be used when explicitly requested. 4492 if test "x$enable_dependency_tracking" = xyes; then 4493 continue 4494 else 4495 break 4496 fi 4497 ;; 4498 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4499 # This compiler won't grok '-c -o', but also, the minuso test has 4500 # not run yet. These depmodes are late enough in the game, and 4501 # so weak that their functioning should not be impacted. 4502 am__obj=conftest.${OBJEXT-o} 4503 am__minus_obj= 4504 ;; 4505 none) break ;; 4506 esac 4507 if depmode=$depmode \ 4508 source=sub/conftest.c object=$am__obj \ 4509 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4510 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4511 >/dev/null 2>conftest.err && 4512 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4513 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4514 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4515 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4516 # icc doesn't choke on unknown options, it will just issue warnings 4517 # or remarks (even with -Werror). So we grep stderr for any message 4518 # that says an option was ignored or not supported. 4519 # When given -MP, icc 7.0 and 7.1 complain thusly: 4520 # icc: Command line warning: ignoring option '-M'; no argument required 4521 # The diagnosis changed in icc 8.0: 4522 # icc: Command line remark: option '-MP' not supported 4523 if (grep 'ignoring option' conftest.err || 4524 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4525 am_cv_CC_dependencies_compiler_type=$depmode 4526 break 4527 fi 4528 fi 4529 done 4530 4531 cd .. 4532 rm -rf conftest.dir 4533else 4534 am_cv_CC_dependencies_compiler_type=none 4535fi 4536 4537fi 4538{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4539$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 4540CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4541 4542 if 4543 test "x$enable_dependency_tracking" != xno \ 4544 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4545 am__fastdepCC_TRUE= 4546 am__fastdepCC_FALSE='#' 4547else 4548 am__fastdepCC_TRUE='#' 4549 am__fastdepCC_FALSE= 4550fi 4551 4552 4553 4554ac_ext=c 4555ac_cpp='$CPP $CPPFLAGS' 4556ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4557ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4558ac_compiler_gnu=$ac_cv_c_compiler_gnu 4559{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 4560$as_echo_n "checking how to run the C preprocessor... " >&6; } 4561# On Suns, sometimes $CPP names a directory. 4562if test -n "$CPP" && test -d "$CPP"; then 4563 CPP= 4564fi 4565if test -z "$CPP"; then 4566 if ${ac_cv_prog_CPP+:} false; then : 4567 $as_echo_n "(cached) " >&6 4568else 4569 # Double quotes because CPP needs to be expanded 4570 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 4571 do 4572 ac_preproc_ok=false 4573for ac_c_preproc_warn_flag in '' yes 4574do 4575 # Use a header file that comes with gcc, so configuring glibc 4576 # with a fresh cross-compiler works. 4577 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4578 # <limits.h> exists even on freestanding compilers. 4579 # On the NeXT, cc -E runs the code through the compiler's parser, 4580 # not just through cpp. "Syntax error" is here to catch this case. 4581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4582/* end confdefs.h. */ 4583#ifdef __STDC__ 4584# include <limits.h> 4585#else 4586# include <assert.h> 4587#endif 4588 Syntax error 4589_ACEOF 4590if ac_fn_c_try_cpp "$LINENO"; then : 4591 4592else 4593 # Broken: fails on valid input. 4594continue 4595fi 4596rm -f conftest.err conftest.i conftest.$ac_ext 4597 4598 # OK, works on sane cases. Now check whether nonexistent headers 4599 # can be detected and how. 4600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4601/* end confdefs.h. */ 4602#include <ac_nonexistent.h> 4603_ACEOF 4604if ac_fn_c_try_cpp "$LINENO"; then : 4605 # Broken: success on invalid input. 4606continue 4607else 4608 # Passes both tests. 4609ac_preproc_ok=: 4610break 4611fi 4612rm -f conftest.err conftest.i conftest.$ac_ext 4613 4614done 4615# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4616rm -f conftest.i conftest.err conftest.$ac_ext 4617if $ac_preproc_ok; then : 4618 break 4619fi 4620 4621 done 4622 ac_cv_prog_CPP=$CPP 4623 4624fi 4625 CPP=$ac_cv_prog_CPP 4626else 4627 ac_cv_prog_CPP=$CPP 4628fi 4629{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 4630$as_echo "$CPP" >&6; } 4631ac_preproc_ok=false 4632for ac_c_preproc_warn_flag in '' yes 4633do 4634 # Use a header file that comes with gcc, so configuring glibc 4635 # with a fresh cross-compiler works. 4636 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4637 # <limits.h> exists even on freestanding compilers. 4638 # On the NeXT, cc -E runs the code through the compiler's parser, 4639 # not just through cpp. "Syntax error" is here to catch this case. 4640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4641/* end confdefs.h. */ 4642#ifdef __STDC__ 4643# include <limits.h> 4644#else 4645# include <assert.h> 4646#endif 4647 Syntax error 4648_ACEOF 4649if ac_fn_c_try_cpp "$LINENO"; then : 4650 4651else 4652 # Broken: fails on valid input. 4653continue 4654fi 4655rm -f conftest.err conftest.i conftest.$ac_ext 4656 4657 # OK, works on sane cases. Now check whether nonexistent headers 4658 # can be detected and how. 4659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4660/* end confdefs.h. */ 4661#include <ac_nonexistent.h> 4662_ACEOF 4663if ac_fn_c_try_cpp "$LINENO"; then : 4664 # Broken: success on invalid input. 4665continue 4666else 4667 # Passes both tests. 4668ac_preproc_ok=: 4669break 4670fi 4671rm -f conftest.err conftest.i conftest.$ac_ext 4672 4673done 4674# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4675rm -f conftest.i conftest.err conftest.$ac_ext 4676if $ac_preproc_ok; then : 4677 4678else 4679 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4680$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4681as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 4682See \`config.log' for more details" "$LINENO" 5; } 4683fi 4684 4685ac_ext=c 4686ac_cpp='$CPP $CPPFLAGS' 4687ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4688ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4689ac_compiler_gnu=$ac_cv_c_compiler_gnu 4690 4691 4692{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4693$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4694if ${ac_cv_path_GREP+:} false; then : 4695 $as_echo_n "(cached) " >&6 4696else 4697 if test -z "$GREP"; then 4698 ac_path_GREP_found=false 4699 # Loop through the user's path and test for each of PROGNAME-LIST 4700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4701for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4702do 4703 IFS=$as_save_IFS 4704 test -z "$as_dir" && as_dir=. 4705 for ac_prog in grep ggrep; do 4706 for ac_exec_ext in '' $ac_executable_extensions; do 4707 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4708 as_fn_executable_p "$ac_path_GREP" || continue 4709# Check for GNU ac_path_GREP and select it if it is found. 4710 # Check for GNU $ac_path_GREP 4711case `"$ac_path_GREP" --version 2>&1` in 4712*GNU*) 4713 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4714*) 4715 ac_count=0 4716 $as_echo_n 0123456789 >"conftest.in" 4717 while : 4718 do 4719 cat "conftest.in" "conftest.in" >"conftest.tmp" 4720 mv "conftest.tmp" "conftest.in" 4721 cp "conftest.in" "conftest.nl" 4722 $as_echo 'GREP' >> "conftest.nl" 4723 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4724 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4725 as_fn_arith $ac_count + 1 && ac_count=$as_val 4726 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4727 # Best one so far, save it but keep looking for a better one 4728 ac_cv_path_GREP="$ac_path_GREP" 4729 ac_path_GREP_max=$ac_count 4730 fi 4731 # 10*(2^10) chars as input seems more than enough 4732 test $ac_count -gt 10 && break 4733 done 4734 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4735esac 4736 4737 $ac_path_GREP_found && break 3 4738 done 4739 done 4740 done 4741IFS=$as_save_IFS 4742 if test -z "$ac_cv_path_GREP"; then 4743 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4744 fi 4745else 4746 ac_cv_path_GREP=$GREP 4747fi 4748 4749fi 4750{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4751$as_echo "$ac_cv_path_GREP" >&6; } 4752 GREP="$ac_cv_path_GREP" 4753 4754 4755{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4756$as_echo_n "checking for egrep... " >&6; } 4757if ${ac_cv_path_EGREP+:} false; then : 4758 $as_echo_n "(cached) " >&6 4759else 4760 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4761 then ac_cv_path_EGREP="$GREP -E" 4762 else 4763 if test -z "$EGREP"; then 4764 ac_path_EGREP_found=false 4765 # Loop through the user's path and test for each of PROGNAME-LIST 4766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4767for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4768do 4769 IFS=$as_save_IFS 4770 test -z "$as_dir" && as_dir=. 4771 for ac_prog in egrep; do 4772 for ac_exec_ext in '' $ac_executable_extensions; do 4773 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4774 as_fn_executable_p "$ac_path_EGREP" || continue 4775# Check for GNU ac_path_EGREP and select it if it is found. 4776 # Check for GNU $ac_path_EGREP 4777case `"$ac_path_EGREP" --version 2>&1` in 4778*GNU*) 4779 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4780*) 4781 ac_count=0 4782 $as_echo_n 0123456789 >"conftest.in" 4783 while : 4784 do 4785 cat "conftest.in" "conftest.in" >"conftest.tmp" 4786 mv "conftest.tmp" "conftest.in" 4787 cp "conftest.in" "conftest.nl" 4788 $as_echo 'EGREP' >> "conftest.nl" 4789 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4790 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4791 as_fn_arith $ac_count + 1 && ac_count=$as_val 4792 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4793 # Best one so far, save it but keep looking for a better one 4794 ac_cv_path_EGREP="$ac_path_EGREP" 4795 ac_path_EGREP_max=$ac_count 4796 fi 4797 # 10*(2^10) chars as input seems more than enough 4798 test $ac_count -gt 10 && break 4799 done 4800 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4801esac 4802 4803 $ac_path_EGREP_found && break 3 4804 done 4805 done 4806 done 4807IFS=$as_save_IFS 4808 if test -z "$ac_cv_path_EGREP"; then 4809 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4810 fi 4811else 4812 ac_cv_path_EGREP=$EGREP 4813fi 4814 4815 fi 4816fi 4817{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4818$as_echo "$ac_cv_path_EGREP" >&6; } 4819 EGREP="$ac_cv_path_EGREP" 4820 4821 4822{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 4823$as_echo_n "checking for ANSI C header files... " >&6; } 4824if ${ac_cv_header_stdc+:} false; then : 4825 $as_echo_n "(cached) " >&6 4826else 4827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4828/* end confdefs.h. */ 4829#include <stdlib.h> 4830#include <stdarg.h> 4831#include <string.h> 4832#include <float.h> 4833 4834int 4835main () 4836{ 4837 4838 ; 4839 return 0; 4840} 4841_ACEOF 4842if ac_fn_c_try_compile "$LINENO"; then : 4843 ac_cv_header_stdc=yes 4844else 4845 ac_cv_header_stdc=no 4846fi 4847rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4848 4849if test $ac_cv_header_stdc = yes; then 4850 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4852/* end confdefs.h. */ 4853#include <string.h> 4854 4855_ACEOF 4856if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4857 $EGREP "memchr" >/dev/null 2>&1; then : 4858 4859else 4860 ac_cv_header_stdc=no 4861fi 4862rm -f conftest* 4863 4864fi 4865 4866if test $ac_cv_header_stdc = yes; then 4867 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4869/* end confdefs.h. */ 4870#include <stdlib.h> 4871 4872_ACEOF 4873if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4874 $EGREP "free" >/dev/null 2>&1; then : 4875 4876else 4877 ac_cv_header_stdc=no 4878fi 4879rm -f conftest* 4880 4881fi 4882 4883if test $ac_cv_header_stdc = yes; then 4884 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4885 if test "$cross_compiling" = yes; then : 4886 : 4887else 4888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4889/* end confdefs.h. */ 4890#include <ctype.h> 4891#include <stdlib.h> 4892#if ((' ' & 0x0FF) == 0x020) 4893# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4894# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4895#else 4896# define ISLOWER(c) \ 4897 (('a' <= (c) && (c) <= 'i') \ 4898 || ('j' <= (c) && (c) <= 'r') \ 4899 || ('s' <= (c) && (c) <= 'z')) 4900# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4901#endif 4902 4903#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4904int 4905main () 4906{ 4907 int i; 4908 for (i = 0; i < 256; i++) 4909 if (XOR (islower (i), ISLOWER (i)) 4910 || toupper (i) != TOUPPER (i)) 4911 return 2; 4912 return 0; 4913} 4914_ACEOF 4915if ac_fn_c_try_run "$LINENO"; then : 4916 4917else 4918 ac_cv_header_stdc=no 4919fi 4920rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 4921 conftest.$ac_objext conftest.beam conftest.$ac_ext 4922fi 4923 4924fi 4925fi 4926{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 4927$as_echo "$ac_cv_header_stdc" >&6; } 4928if test $ac_cv_header_stdc = yes; then 4929 4930$as_echo "#define STDC_HEADERS 1" >>confdefs.h 4931 4932fi 4933 4934# On IRIX 5.3, sys/types and inttypes.h are conflicting. 4935for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4936 inttypes.h stdint.h unistd.h 4937do : 4938 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 4939ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 4940" 4941if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 4942 cat >>confdefs.h <<_ACEOF 4943#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 4944_ACEOF 4945 4946fi 4947 4948done 4949 4950 4951 4952 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" 4953if test "x$ac_cv_header_minix_config_h" = xyes; then : 4954 MINIX=yes 4955else 4956 MINIX= 4957fi 4958 4959 4960 if test "$MINIX" = yes; then 4961 4962$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h 4963 4964 4965$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h 4966 4967 4968$as_echo "#define _MINIX 1" >>confdefs.h 4969 4970 fi 4971 4972 4973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 4974$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } 4975if ${ac_cv_safe_to_define___extensions__+:} false; then : 4976 $as_echo_n "(cached) " >&6 4977else 4978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4979/* end confdefs.h. */ 4980 4981# define __EXTENSIONS__ 1 4982 $ac_includes_default 4983int 4984main () 4985{ 4986 4987 ; 4988 return 0; 4989} 4990_ACEOF 4991if ac_fn_c_try_compile "$LINENO"; then : 4992 ac_cv_safe_to_define___extensions__=yes 4993else 4994 ac_cv_safe_to_define___extensions__=no 4995fi 4996rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4997fi 4998{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 4999$as_echo "$ac_cv_safe_to_define___extensions__" >&6; } 5000 test $ac_cv_safe_to_define___extensions__ = yes && 5001 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h 5002 5003 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h 5004 5005 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h 5006 5007 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h 5008 5009 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h 5010 5011 5012# Make sure we can run config.sub. 5013$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 5014 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 5015 5016{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 5017$as_echo_n "checking build system type... " >&6; } 5018if ${ac_cv_build+:} false; then : 5019 $as_echo_n "(cached) " >&6 5020else 5021 ac_build_alias=$build_alias 5022test "x$ac_build_alias" = x && 5023 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 5024test "x$ac_build_alias" = x && 5025 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 5026ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 5027 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 5028 5029fi 5030{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 5031$as_echo "$ac_cv_build" >&6; } 5032case $ac_cv_build in 5033*-*-*) ;; 5034*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 5035esac 5036build=$ac_cv_build 5037ac_save_IFS=$IFS; IFS='-' 5038set x $ac_cv_build 5039shift 5040build_cpu=$1 5041build_vendor=$2 5042shift; shift 5043# Remember, the first character of IFS is used to create $*, 5044# except with old shells: 5045build_os=$* 5046IFS=$ac_save_IFS 5047case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 5048 5049 5050{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 5051$as_echo_n "checking host system type... " >&6; } 5052if ${ac_cv_host+:} false; then : 5053 $as_echo_n "(cached) " >&6 5054else 5055 if test "x$host_alias" = x; then 5056 ac_cv_host=$ac_cv_build 5057else 5058 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 5059 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 5060fi 5061 5062fi 5063{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 5064$as_echo "$ac_cv_host" >&6; } 5065case $ac_cv_host in 5066*-*-*) ;; 5067*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 5068esac 5069host=$ac_cv_host 5070ac_save_IFS=$IFS; IFS='-' 5071set x $ac_cv_host 5072shift 5073host_cpu=$1 5074host_vendor=$2 5075shift; shift 5076# Remember, the first character of IFS is used to create $*, 5077# except with old shells: 5078host_os=$* 5079IFS=$ac_save_IFS 5080case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 5081 5082 5083 5084 5085 5086 5087 5088 5089 5090 5091if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 5092 if test -n "$ac_tool_prefix"; then 5093 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 5094set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 5095{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5096$as_echo_n "checking for $ac_word... " >&6; } 5097if ${ac_cv_path_PKG_CONFIG+:} false; then : 5098 $as_echo_n "(cached) " >&6 5099else 5100 case $PKG_CONFIG in 5101 [\\/]* | ?:[\\/]*) 5102 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 5103 ;; 5104 *) 5105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5106for as_dir in $PATH 5107do 5108 IFS=$as_save_IFS 5109 test -z "$as_dir" && as_dir=. 5110 for ac_exec_ext in '' $ac_executable_extensions; do 5111 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5112 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 5113 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5114 break 2 5115 fi 5116done 5117 done 5118IFS=$as_save_IFS 5119 5120 ;; 5121esac 5122fi 5123PKG_CONFIG=$ac_cv_path_PKG_CONFIG 5124if test -n "$PKG_CONFIG"; then 5125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 5126$as_echo "$PKG_CONFIG" >&6; } 5127else 5128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5129$as_echo "no" >&6; } 5130fi 5131 5132 5133fi 5134if test -z "$ac_cv_path_PKG_CONFIG"; then 5135 ac_pt_PKG_CONFIG=$PKG_CONFIG 5136 # Extract the first word of "pkg-config", so it can be a program name with args. 5137set dummy pkg-config; ac_word=$2 5138{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5139$as_echo_n "checking for $ac_word... " >&6; } 5140if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 5141 $as_echo_n "(cached) " >&6 5142else 5143 case $ac_pt_PKG_CONFIG in 5144 [\\/]* | ?:[\\/]*) 5145 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 5146 ;; 5147 *) 5148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5149for as_dir in $PATH 5150do 5151 IFS=$as_save_IFS 5152 test -z "$as_dir" && as_dir=. 5153 for ac_exec_ext in '' $ac_executable_extensions; do 5154 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5155 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 5156 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5157 break 2 5158 fi 5159done 5160 done 5161IFS=$as_save_IFS 5162 5163 ;; 5164esac 5165fi 5166ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 5167if test -n "$ac_pt_PKG_CONFIG"; then 5168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 5169$as_echo "$ac_pt_PKG_CONFIG" >&6; } 5170else 5171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5172$as_echo "no" >&6; } 5173fi 5174 5175 if test "x$ac_pt_PKG_CONFIG" = x; then 5176 PKG_CONFIG="" 5177 else 5178 case $cross_compiling:$ac_tool_warned in 5179yes:) 5180{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5181$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5182ac_tool_warned=yes ;; 5183esac 5184 PKG_CONFIG=$ac_pt_PKG_CONFIG 5185 fi 5186else 5187 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 5188fi 5189 5190fi 5191if test -n "$PKG_CONFIG"; then 5192 _pkg_min_version=0.9.0 5193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 5194$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 5195 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 5196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5197$as_echo "yes" >&6; } 5198 else 5199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5200$as_echo "no" >&6; } 5201 PKG_CONFIG="" 5202 fi 5203fi 5204if test "x$PKG_CONFIG" = "x" ; then 5205 pkg_config_user_action="install pkg-config, and check the PKG_CONFIG_PATH environment variable" 5206 { $as_echo "$as_me:${as_lineno-$LINENO}: Some libraries need pkg-config, including systemd, nss, lzma, zstd, and custom mallocs." >&5 5207$as_echo "$as_me: Some libraries need pkg-config, including systemd, nss, lzma, zstd, and custom mallocs." >&6;} 5208 { $as_echo "$as_me:${as_lineno-$LINENO}: To use those libraries, $pkg_config_user_action." >&5 5209$as_echo "$as_me: To use those libraries, $pkg_config_user_action." >&6;} 5210else 5211 pkg_config_user_action="check the PKG_CONFIG_PATH environment variable" 5212fi 5213 5214if test "x$PKG_CONFIG_PATH" = "x" && test "x$prefix" != "xNONE" && test "$host" != "$build"; then 5215 export PKG_CONFIG_PATH=$prefix/lib/pkgconfig 5216 { $as_echo "$as_me:${as_lineno-$LINENO}: set PKG_CONFIG_PATH=$PKG_CONFIG_PATH to support cross-compiling" >&5 5217$as_echo "$as_me: set PKG_CONFIG_PATH=$PKG_CONFIG_PATH to support cross-compiling" >&6;} 5218fi 5219 5220# Check whether --enable-openbsd-malloc was given. 5221if test "${enable_openbsd_malloc+set}" = set; then : 5222 enableval=$enable_openbsd_malloc; 5223fi 5224 5225# Check whether --enable-static-openssl was given. 5226if test "${enable_static_openssl+set}" = set; then : 5227 enableval=$enable_static_openssl; 5228fi 5229 5230# Check whether --enable-static-libevent was given. 5231if test "${enable_static_libevent+set}" = set; then : 5232 enableval=$enable_static_libevent; 5233fi 5234 5235# Check whether --enable-static-zlib was given. 5236if test "${enable_static_zlib+set}" = set; then : 5237 enableval=$enable_static_zlib; 5238fi 5239 5240# Check whether --enable-static-tor was given. 5241if test "${enable_static_tor+set}" = set; then : 5242 enableval=$enable_static_tor; 5243fi 5244 5245# Check whether --enable-unittests was given. 5246if test "${enable_unittests+set}" = set; then : 5247 enableval=$enable_unittests; 5248fi 5249 5250# Check whether --enable-coverage was given. 5251if test "${enable_coverage+set}" = set; then : 5252 enableval=$enable_coverage; 5253fi 5254 5255# Check whether --enable-asserts-in-tests was given. 5256if test "${enable_asserts_in_tests+set}" = set; then : 5257 enableval=$enable_asserts_in_tests; 5258fi 5259 5260# Check whether --enable-system-torrc was given. 5261if test "${enable_system_torrc+set}" = set; then : 5262 enableval=$enable_system_torrc; 5263fi 5264 5265# Check whether --enable-libfuzzer was given. 5266if test "${enable_libfuzzer+set}" = set; then : 5267 enableval=$enable_libfuzzer; 5268fi 5269 5270# Check whether --enable-oss-fuzz was given. 5271if test "${enable_oss_fuzz+set}" = set; then : 5272 enableval=$enable_oss_fuzz; 5273fi 5274 5275# Check whether --enable-memory-sentinels was given. 5276if test "${enable_memory_sentinels+set}" = set; then : 5277 enableval=$enable_memory_sentinels; 5278fi 5279 5280# Check whether --enable-restart-debugging was given. 5281if test "${enable_restart_debugging+set}" = set; then : 5282 enableval=$enable_restart_debugging; 5283fi 5284 5285# Check whether --enable-zstd-advanced-apis was given. 5286if test "${enable_zstd_advanced_apis+set}" = set; then : 5287 enableval=$enable_zstd_advanced_apis; 5288fi 5289 5290# Check whether --enable-nss was given. 5291if test "${enable_nss+set}" = set; then : 5292 enableval=$enable_nss; 5293fi 5294 5295# Check whether --enable-pic was given. 5296if test "${enable_pic+set}" = set; then : 5297 enableval=$enable_pic; 5298fi 5299 5300 5301# Check whether --enable-missing-doc-warnings was given. 5302if test "${enable_missing_doc_warnings+set}" = set; then : 5303 enableval=$enable_missing_doc_warnings; 5304fi 5305 5306 5307if test "$enable_missing_doc_warnings" = "yes"; then 5308 DOXYGEN_FATAL_WARNINGS=NO 5309 DOXYGEN_WARN_ON_MISSING=YES 5310elif test "$enable_fatal_warnings" = "yes"; then 5311 # Fatal warnings from doxygen are nice, but not if we're warning about 5312 # missing documentation. 5313 DOXYGEN_FATAL_WARNINGS=YES 5314 DOXYGEN_WARN_ON_MISSING=NO 5315else 5316 DOXYGEN_FATAL_WARNINGS=NO 5317 DOXYGEN_WARN_ON_MISSING=NO 5318fi 5319 5320 5321 5322if test "x$enable_coverage" != "xyes" -a "x$enable_asserts_in_tests" = "xno" ; then 5323 as_fn_error $? "Can't disable assertions outside of coverage build" "$LINENO" 5 5324fi 5325 5326 if test "x$enable_unittests" != "xno"; then 5327 UNITTESTS_ENABLED_TRUE= 5328 UNITTESTS_ENABLED_FALSE='#' 5329else 5330 UNITTESTS_ENABLED_TRUE='#' 5331 UNITTESTS_ENABLED_FALSE= 5332fi 5333 5334 if test "x$enable_coverage" = "xyes"; then 5335 COVERAGE_ENABLED_TRUE= 5336 COVERAGE_ENABLED_FALSE='#' 5337else 5338 COVERAGE_ENABLED_TRUE='#' 5339 COVERAGE_ENABLED_FALSE= 5340fi 5341 5342 if test "x$enable_asserts_in_tests" = "xno"; then 5343 DISABLE_ASSERTS_IN_UNIT_TESTS_TRUE= 5344 DISABLE_ASSERTS_IN_UNIT_TESTS_FALSE='#' 5345else 5346 DISABLE_ASSERTS_IN_UNIT_TESTS_TRUE='#' 5347 DISABLE_ASSERTS_IN_UNIT_TESTS_FALSE= 5348fi 5349 5350 if test "x$enable_libfuzzer" = "xyes"; then 5351 LIBFUZZER_ENABLED_TRUE= 5352 LIBFUZZER_ENABLED_FALSE='#' 5353else 5354 LIBFUZZER_ENABLED_TRUE='#' 5355 LIBFUZZER_ENABLED_FALSE= 5356fi 5357 5358 if test "x$enable_oss_fuzz" = "xyes"; then 5359 OSS_FUZZ_ENABLED_TRUE= 5360 OSS_FUZZ_ENABLED_FALSE='#' 5361else 5362 OSS_FUZZ_ENABLED_TRUE='#' 5363 OSS_FUZZ_ENABLED_FALSE= 5364fi 5365 5366 if test "x$enable_nss" = "xyes"; then 5367 USE_NSS_TRUE= 5368 USE_NSS_FALSE='#' 5369else 5370 USE_NSS_TRUE='#' 5371 USE_NSS_FALSE= 5372fi 5373 5374 if test "x$enable_nss" != "xyes"; then 5375 USE_OPENSSL_TRUE= 5376 USE_OPENSSL_FALSE='#' 5377else 5378 USE_OPENSSL_TRUE='#' 5379 USE_OPENSSL_FALSE= 5380fi 5381 5382 5383if test "x$enable_coverage" = "xyes"; then 5384 5385$as_echo "#define ENABLE_COVERAGE 1" >>confdefs.h 5386 5387fi 5388 5389if test "x$enable_nss" = "xyes"; then 5390 5391$as_echo "#define ENABLE_NSS 1" >>confdefs.h 5392 5393else 5394 5395$as_echo "#define ENABLE_OPENSSL 1" >>confdefs.h 5396 5397fi 5398 5399if test "$enable_static_tor" = "yes"; then 5400 enable_static_libevent="yes"; 5401 enable_static_openssl="yes"; 5402 enable_static_zlib="yes"; 5403 TOR_STATIC_LDFLAGS="-static" 5404fi 5405 5406 5407if test "$enable_system_torrc" = "no"; then 5408 5409$as_echo "#define DISABLE_SYSTEM_TORRC 1" >>confdefs.h 5410 5411fi 5412 5413if test "$enable_memory_sentinels" = "no"; then 5414 5415$as_echo "#define DISABLE_MEMORY_SENTINELS 1" >>confdefs.h 5416 5417fi 5418 5419# Check whether --enable-manpage was given. 5420if test "${enable_manpage+set}" = set; then : 5421 enableval=$enable_manpage; 5422fi 5423 5424 5425# Check whether --enable-html-manual was given. 5426if test "${enable_html_manual+set}" = set; then : 5427 enableval=$enable_html_manual; 5428fi 5429 5430 5431# Check whether --enable-asciidoc was given. 5432if test "${enable_asciidoc+set}" = set; then : 5433 enableval=$enable_asciidoc; case "${enableval}" in 5434 "yes") asciidoc=true ;; 5435 "no") asciidoc=false ;; 5436 *) as_fn_error $? "bad value for --disable-asciidoc" "$LINENO" 5 ;; 5437 esac 5438else 5439 asciidoc=true 5440fi 5441 5442 5443# systemd notify support 5444# Check whether --enable-systemd was given. 5445if test "${enable_systemd+set}" = set; then : 5446 enableval=$enable_systemd; case "${enableval}" in 5447 "yes") systemd=true ;; 5448 "no") systemd=false ;; 5449 * ) as_fn_error $? "bad value for --enable-systemd" "$LINENO" 5 ;; 5450 esac 5451else 5452 systemd=auto 5453fi 5454 5455 5456if test "$enable_restart_debugging" = "yes"; then 5457 5458$as_echo "#define ENABLE_RESTART_DEBUGGING 1" >>confdefs.h 5459 5460fi 5461 5462if test "$enable_zstd_advanced_apis" != "no"; then 5463 5464$as_echo "#define ENABLE_ZSTD_ADVANCED_APIS 1" >>confdefs.h 5465 5466fi 5467 5468# systemd support 5469if test "x$enable_systemd" = "xno"; then 5470 have_systemd=no; 5471else 5472 5473pkg_failed=no 5474{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SYSTEMD" >&5 5475$as_echo_n "checking for SYSTEMD... " >&6; } 5476 5477if test -n "$SYSTEMD_CFLAGS"; then 5478 pkg_cv_SYSTEMD_CFLAGS="$SYSTEMD_CFLAGS" 5479 elif test -n "$PKG_CONFIG"; then 5480 if test -n "$PKG_CONFIG" && \ 5481 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd-daemon\""; } >&5 5482 ($PKG_CONFIG --exists --print-errors "libsystemd-daemon") 2>&5 5483 ac_status=$? 5484 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5485 test $ac_status = 0; }; then 5486 pkg_cv_SYSTEMD_CFLAGS=`$PKG_CONFIG --cflags "libsystemd-daemon" 2>/dev/null` 5487 test "x$?" != "x0" && pkg_failed=yes 5488else 5489 pkg_failed=yes 5490fi 5491 else 5492 pkg_failed=untried 5493fi 5494if test -n "$SYSTEMD_LIBS"; then 5495 pkg_cv_SYSTEMD_LIBS="$SYSTEMD_LIBS" 5496 elif test -n "$PKG_CONFIG"; then 5497 if test -n "$PKG_CONFIG" && \ 5498 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd-daemon\""; } >&5 5499 ($PKG_CONFIG --exists --print-errors "libsystemd-daemon") 2>&5 5500 ac_status=$? 5501 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5502 test $ac_status = 0; }; then 5503 pkg_cv_SYSTEMD_LIBS=`$PKG_CONFIG --libs "libsystemd-daemon" 2>/dev/null` 5504 test "x$?" != "x0" && pkg_failed=yes 5505else 5506 pkg_failed=yes 5507fi 5508 else 5509 pkg_failed=untried 5510fi 5511 5512 5513 5514if test $pkg_failed = yes; then 5515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5516$as_echo "no" >&6; } 5517 5518if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 5519 _pkg_short_errors_supported=yes 5520else 5521 _pkg_short_errors_supported=no 5522fi 5523 if test $_pkg_short_errors_supported = yes; then 5524 SYSTEMD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libsystemd-daemon" 2>&1` 5525 else 5526 SYSTEMD_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libsystemd-daemon" 2>&1` 5527 fi 5528 # Put the nasty error message in config.log where it belongs 5529 echo "$SYSTEMD_PKG_ERRORS" >&5 5530 5531 have_systemd=no 5532elif test $pkg_failed = untried; then 5533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5534$as_echo "no" >&6; } 5535 have_systemd=no 5536else 5537 SYSTEMD_CFLAGS=$pkg_cv_SYSTEMD_CFLAGS 5538 SYSTEMD_LIBS=$pkg_cv_SYSTEMD_LIBS 5539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5540$as_echo "yes" >&6; } 5541 have_systemd=yes 5542fi 5543 if test "x$have_systemd" = "xno"; then 5544 { $as_echo "$as_me:${as_lineno-$LINENO}: Okay, checking for systemd a different way..." >&5 5545$as_echo "$as_me: Okay, checking for systemd a different way..." >&6;} 5546 5547pkg_failed=no 5548{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SYSTEMD" >&5 5549$as_echo_n "checking for SYSTEMD... " >&6; } 5550 5551if test -n "$SYSTEMD_CFLAGS"; then 5552 pkg_cv_SYSTEMD_CFLAGS="$SYSTEMD_CFLAGS" 5553 elif test -n "$PKG_CONFIG"; then 5554 if test -n "$PKG_CONFIG" && \ 5555 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd\""; } >&5 5556 ($PKG_CONFIG --exists --print-errors "libsystemd") 2>&5 5557 ac_status=$? 5558 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5559 test $ac_status = 0; }; then 5560 pkg_cv_SYSTEMD_CFLAGS=`$PKG_CONFIG --cflags "libsystemd" 2>/dev/null` 5561 test "x$?" != "x0" && pkg_failed=yes 5562else 5563 pkg_failed=yes 5564fi 5565 else 5566 pkg_failed=untried 5567fi 5568if test -n "$SYSTEMD_LIBS"; then 5569 pkg_cv_SYSTEMD_LIBS="$SYSTEMD_LIBS" 5570 elif test -n "$PKG_CONFIG"; then 5571 if test -n "$PKG_CONFIG" && \ 5572 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd\""; } >&5 5573 ($PKG_CONFIG --exists --print-errors "libsystemd") 2>&5 5574 ac_status=$? 5575 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5576 test $ac_status = 0; }; then 5577 pkg_cv_SYSTEMD_LIBS=`$PKG_CONFIG --libs "libsystemd" 2>/dev/null` 5578 test "x$?" != "x0" && pkg_failed=yes 5579else 5580 pkg_failed=yes 5581fi 5582 else 5583 pkg_failed=untried 5584fi 5585 5586 5587 5588if test $pkg_failed = yes; then 5589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5590$as_echo "no" >&6; } 5591 5592if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 5593 _pkg_short_errors_supported=yes 5594else 5595 _pkg_short_errors_supported=no 5596fi 5597 if test $_pkg_short_errors_supported = yes; then 5598 SYSTEMD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libsystemd" 2>&1` 5599 else 5600 SYSTEMD_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libsystemd" 2>&1` 5601 fi 5602 # Put the nasty error message in config.log where it belongs 5603 echo "$SYSTEMD_PKG_ERRORS" >&5 5604 5605 have_systemd=no 5606elif test $pkg_failed = untried; then 5607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5608$as_echo "no" >&6; } 5609 have_systemd=no 5610else 5611 SYSTEMD_CFLAGS=$pkg_cv_SYSTEMD_CFLAGS 5612 SYSTEMD_LIBS=$pkg_cv_SYSTEMD_LIBS 5613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5614$as_echo "yes" >&6; } 5615 have_systemd=yes 5616fi 5617 fi 5618fi 5619 5620if test "x$have_systemd" = "xyes"; then 5621 5622$as_echo "#define HAVE_SYSTEMD 1" >>confdefs.h 5623 5624 TOR_SYSTEMD_CFLAGS="${SYSTEMD_CFLAGS}" 5625 TOR_SYSTEMD_LIBS="${SYSTEMD_LIBS}" 5626 5627pkg_failed=no 5628{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBSYSTEMD209" >&5 5629$as_echo_n "checking for LIBSYSTEMD209... " >&6; } 5630 5631if test -n "$LIBSYSTEMD209_CFLAGS"; then 5632 pkg_cv_LIBSYSTEMD209_CFLAGS="$LIBSYSTEMD209_CFLAGS" 5633 elif test -n "$PKG_CONFIG"; then 5634 if test -n "$PKG_CONFIG" && \ 5635 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd >= 209\""; } >&5 5636 ($PKG_CONFIG --exists --print-errors "libsystemd >= 209") 2>&5 5637 ac_status=$? 5638 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5639 test $ac_status = 0; }; then 5640 pkg_cv_LIBSYSTEMD209_CFLAGS=`$PKG_CONFIG --cflags "libsystemd >= 209" 2>/dev/null` 5641 test "x$?" != "x0" && pkg_failed=yes 5642else 5643 pkg_failed=yes 5644fi 5645 else 5646 pkg_failed=untried 5647fi 5648if test -n "$LIBSYSTEMD209_LIBS"; then 5649 pkg_cv_LIBSYSTEMD209_LIBS="$LIBSYSTEMD209_LIBS" 5650 elif test -n "$PKG_CONFIG"; then 5651 if test -n "$PKG_CONFIG" && \ 5652 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd >= 209\""; } >&5 5653 ($PKG_CONFIG --exists --print-errors "libsystemd >= 209") 2>&5 5654 ac_status=$? 5655 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5656 test $ac_status = 0; }; then 5657 pkg_cv_LIBSYSTEMD209_LIBS=`$PKG_CONFIG --libs "libsystemd >= 209" 2>/dev/null` 5658 test "x$?" != "x0" && pkg_failed=yes 5659else 5660 pkg_failed=yes 5661fi 5662 else 5663 pkg_failed=untried 5664fi 5665 5666 5667 5668if test $pkg_failed = yes; then 5669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5670$as_echo "no" >&6; } 5671 5672if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 5673 _pkg_short_errors_supported=yes 5674else 5675 _pkg_short_errors_supported=no 5676fi 5677 if test $_pkg_short_errors_supported = yes; then 5678 LIBSYSTEMD209_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libsystemd >= 209" 2>&1` 5679 else 5680 LIBSYSTEMD209_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libsystemd >= 209" 2>&1` 5681 fi 5682 # Put the nasty error message in config.log where it belongs 5683 echo "$LIBSYSTEMD209_PKG_ERRORS" >&5 5684 5685 as_fn_error $? "Package requirements (libsystemd >= 209) were not met: 5686 5687$LIBSYSTEMD209_PKG_ERRORS 5688 5689Consider adjusting the PKG_CONFIG_PATH environment variable if you 5690installed software in a non-standard prefix. 5691 5692Alternatively, you may set the environment variables LIBSYSTEMD209_CFLAGS 5693and LIBSYSTEMD209_LIBS to avoid the need to call pkg-config. 5694See the pkg-config man page for more details." "$LINENO" 5 5695elif test $pkg_failed = untried; then 5696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5697$as_echo "no" >&6; } 5698 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 5699$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 5700as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 5701is in your PATH or set the PKG_CONFIG environment variable to the full 5702path to pkg-config. 5703 5704Alternatively, you may set the environment variables LIBSYSTEMD209_CFLAGS 5705and LIBSYSTEMD209_LIBS to avoid the need to call pkg-config. 5706See the pkg-config man page for more details. 5707 5708To get pkg-config, see <https://pkg-config.freedesktop.org/>. 5709See \`config.log' for more details" "$LINENO" 5; } 5710else 5711 LIBSYSTEMD209_CFLAGS=$pkg_cv_LIBSYSTEMD209_CFLAGS 5712 LIBSYSTEMD209_LIBS=$pkg_cv_LIBSYSTEMD209_LIBS 5713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5714$as_echo "yes" >&6; } 5715 5716$as_echo "#define HAVE_SYSTEMD_209 1" >>confdefs.h 5717 5718fi 5719fi 5720 5721 5722 5723if test "x$enable_systemd" = "xyes" -a "x$have_systemd" != "xyes" ; then 5724 as_fn_error $? "Explicitly requested systemd support, but systemd not found, $pkg_config_user_action, or set SYSTEMD_CFLAGS and SYSTEMD_LIBS." "$LINENO" 5 5725fi 5726 5727case "$host" in 5728 *-*-solaris* ) 5729 5730$as_echo "#define _REENTRANT 1" >>confdefs.h 5731 5732 ;; 5733esac 5734 5735# Check whether --enable-gcc-warnings was given. 5736if test "${enable_gcc_warnings+set}" = set; then : 5737 enableval=$enable_gcc_warnings; 5738fi 5739 5740# Check whether --enable-fatal-warnings was given. 5741if test "${enable_fatal_warnings+set}" = set; then : 5742 enableval=$enable_fatal_warnings; 5743fi 5744 5745# Check whether --enable-gcc-warnings-advisory was given. 5746if test "${enable_gcc_warnings_advisory+set}" = set; then : 5747 enableval=$enable_gcc_warnings_advisory; 5748fi 5749 5750 5751# Check whether --enable-gcc-hardening was given. 5752if test "${enable_gcc_hardening+set}" = set; then : 5753 enableval=$enable_gcc_hardening; 5754fi 5755 5756 5757# Check whether --enable-expensive-hardening was given. 5758if test "${enable_expensive_hardening+set}" = set; then : 5759 enableval=$enable_expensive_hardening; 5760fi 5761 5762# Check whether --enable-fragile-hardening was given. 5763if test "${enable_fragile_hardening+set}" = set; then : 5764 enableval=$enable_fragile_hardening; 5765fi 5766 5767if test "x$enable_expensive_hardening" = "xyes" || test "x$enable_fragile_hardening" = "xyes"; then 5768 fragile_hardening="yes" 5769 5770$as_echo "#define ENABLE_FRAGILE_HARDENING 1" >>confdefs.h 5771 5772 5773$as_echo "#define DEBUG_SMARTLIST 1" >>confdefs.h 5774 5775fi 5776 5777# Check whether --enable-all-bugs-are-fatal was given. 5778if test "${enable_all_bugs_are_fatal+set}" = set; then : 5779 enableval=$enable_all_bugs_are_fatal; 5780fi 5781 5782 5783if test "x$enable_all_bugs_are_fatal" = "xyes"; then 5784 5785$as_echo "#define ALL_BUGS_ARE_FATAL 1" >>confdefs.h 5786 5787fi 5788 5789# Check whether --enable-linker-hardening was given. 5790if test "${enable_linker_hardening+set}" = set; then : 5791 enableval=$enable_linker_hardening; 5792fi 5793 5794 5795# Check whether --enable-local-appdata was given. 5796if test "${enable_local_appdata+set}" = set; then : 5797 enableval=$enable_local_appdata; 5798fi 5799 5800if test "$enable_local_appdata" = "yes"; then 5801 5802$as_echo "#define ENABLE_LOCAL_APPDATA 1" >>confdefs.h 5803 5804fi 5805 5806# Check whether --enable-tool-name-check was given. 5807if test "${enable_tool_name_check+set}" = set; then : 5808 enableval=$enable_tool_name_check; 5809fi 5810 5811 5812# Check whether --enable-seccomp was given. 5813if test "${enable_seccomp+set}" = set; then : 5814 enableval=$enable_seccomp; 5815fi 5816 5817 5818# Check whether --enable-libscrypt was given. 5819if test "${enable_libscrypt+set}" = set; then : 5820 enableval=$enable_libscrypt; 5821fi 5822 5823 5824 5825TOR_TRACE_LIBS= 5826 5827# Check whether --enable-tracing-instrumentation-lttng was given. 5828if test "${enable_tracing_instrumentation_lttng+set}" = set; then : 5829 enableval=$enable_tracing_instrumentation_lttng; 5830fi 5831 5832 if test "x$enable_tracing_instrumentation_lttng" = "xyes"; then 5833 USE_TRACING_INSTRUMENTATION_LTTNG_TRUE= 5834 USE_TRACING_INSTRUMENTATION_LTTNG_FALSE='#' 5835else 5836 USE_TRACING_INSTRUMENTATION_LTTNG_TRUE='#' 5837 USE_TRACING_INSTRUMENTATION_LTTNG_FALSE= 5838fi 5839 5840 5841if test "x$enable_tracing_instrumentation_lttng" = "xyes"; then 5842 for ac_header in lttng/tracepoint.h 5843do : 5844 ac_fn_c_check_header_mongrel "$LINENO" "lttng/tracepoint.h" "ac_cv_header_lttng_tracepoint_h" "$ac_includes_default" 5845if test "x$ac_cv_header_lttng_tracepoint_h" = xyes; then : 5846 cat >>confdefs.h <<_ACEOF 5847#define HAVE_LTTNG_TRACEPOINT_H 1 5848_ACEOF 5849 5850else 5851 as_fn_error $? "LTTng instrumentation headers not found. 5852 On Debian, apt install liblttng-ust-dev\"" "$LINENO" 5 5853fi 5854 5855done 5856 5857 5858$as_echo "#define USE_TRACING_INSTRUMENTATION_LTTNG 1" >>confdefs.h 5859 5860 TOR_TRACE_LIBS="-llttng-ust -ldl" 5861 have_tracing=1 5862fi 5863 5864# Check whether --enable-tracing-instrumentation-usdt was given. 5865if test "${enable_tracing_instrumentation_usdt+set}" = set; then : 5866 enableval=$enable_tracing_instrumentation_usdt; 5867fi 5868 5869 if test "x$enable_tracing_instrumentation_usdt" = "xyes"; then 5870 USE_TRACING_INSTRUMENTATION_USDT_TRUE= 5871 USE_TRACING_INSTRUMENTATION_USDT_FALSE='#' 5872else 5873 USE_TRACING_INSTRUMENTATION_USDT_TRUE='#' 5874 USE_TRACING_INSTRUMENTATION_USDT_FALSE= 5875fi 5876 5877 5878if test "x$enable_tracing_instrumentation_usdt" = "xyes"; then 5879 for ac_header in sys/sdt.h 5880do : 5881 ac_fn_c_check_header_mongrel "$LINENO" "sys/sdt.h" "ac_cv_header_sys_sdt_h" "$ac_includes_default" 5882if test "x$ac_cv_header_sys_sdt_h" = xyes; then : 5883 cat >>confdefs.h <<_ACEOF 5884#define HAVE_SYS_SDT_H 1 5885_ACEOF 5886 5887else 5888 as_fn_error $? "USDT instrumentation requires sys/sdt.h header. 5889 On Debian, apt install systemtap-sdt-dev" "$LINENO" 5 5890fi 5891 5892done 5893 5894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking STAP_PROBEV()" >&5 5895$as_echo_n "checking STAP_PROBEV()... " >&6; } 5896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5897/* end confdefs.h. */ 5898 5899 #define SDT_USE_VARIADIC 5900 #include <sys/sdt.h> 5901 void test(void) 5902 { 5903 STAP_PROBEV(p, n, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12); 5904 } 5905 5906_ACEOF 5907if ac_fn_c_try_compile "$LINENO"; then : 5908 5909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5910$as_echo "yes" >&6; } 5911 5912$as_echo "#define USE_TRACING_INSTRUMENTATION_USDT 1" >>confdefs.h 5913 5914 have_tracing=1 5915 5916else 5917 5918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5919$as_echo "no" >&6; } 5920 as_fn_error $? "USDT tracing support requires STAP_PROBEV()" "$LINENO" 5 5921 5922fi 5923rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5924fi 5925 5926# Check whether --enable-tracing-instrumentation-log-debug was given. 5927if test "${enable_tracing_instrumentation_log_debug+set}" = set; then : 5928 enableval=$enable_tracing_instrumentation_log_debug; 5929$as_echo "#define USE_TRACING_INSTRUMENTATION_LOG_DEBUG 1" >>confdefs.h 5930 5931fi 5932 5933 if test "x$enable_tracing_instrumentation_log_debug" = "xyes"; then 5934 USE_TRACING_INSTRUMENTATION_LOG_DEBUG_TRUE= 5935 USE_TRACING_INSTRUMENTATION_LOG_DEBUG_FALSE='#' 5936else 5937 USE_TRACING_INSTRUMENTATION_LOG_DEBUG_TRUE='#' 5938 USE_TRACING_INSTRUMENTATION_LOG_DEBUG_FALSE= 5939fi 5940 5941if test "x$enable_tracing_instrumentation_log_debug" = "xyes"; then 5942 have_tracing=1 5943fi 5944 5945if test -z "$USE_TRACING_INSTRUMENTATION_LOG_DEBUG_TRUE"; then : 5946 5947$as_echo "#define HAVE_TRACING 1" >>confdefs.h 5948 5949fi 5950if test -z "$USE_TRACING_INSTRUMENTATION_USDT_TRUE"; then : 5951 5952$as_echo "#define HAVE_TRACING 1" >>confdefs.h 5953 5954fi 5955if test -z "$USE_TRACING_INSTRUMENTATION_LTTNG_TRUE"; then : 5956 5957$as_echo "#define HAVE_TRACING 1" >>confdefs.h 5958 5959fi 5960 if test "x$have_tracing" = x1 ; then 5961 USE_TRACING_TRUE= 5962 USE_TRACING_FALSE='#' 5963else 5964 USE_TRACING_TRUE='#' 5965 USE_TRACING_FALSE= 5966fi 5967 5968 5969 5970 5971 5972# Check whether --enable-android was given. 5973if test "${enable_android+set}" = set; then : 5974 enableval=$enable_android; 5975fi 5976 5977 if test "x$enable_android" = "xyes"; then 5978 USE_ANDROID_TRUE= 5979 USE_ANDROID_FALSE='#' 5980else 5981 USE_ANDROID_TRUE='#' 5982 USE_ANDROID_FALSE= 5983fi 5984 5985 5986if test "x$enable_android" = "xyes"; then 5987 5988$as_echo "#define USE_ANDROID 1" >>confdefs.h 5989 5990 5991fi 5992 5993 5994 5995 5996# Some modules are only disabled through another option. For those, we don't 5997# want to print the help in the summary at the end of the configure. Any entry 5998# in the following set will not print the "--disable-module-NAME" command in 5999# the summary. 6000 6001 6002# Check whether --enable-module-relay was given. 6003if test "${enable_module_relay+set}" = set; then : 6004 enableval=$enable_module_relay; 6005fi 6006 6007 if test "x$enable_module_relay" != "xno"; then 6008 BUILD_MODULE_RELAY_TRUE= 6009 BUILD_MODULE_RELAY_FALSE='#' 6010else 6011 BUILD_MODULE_RELAY_TRUE='#' 6012 BUILD_MODULE_RELAY_FALSE= 6013fi 6014 6015if test -z "$BUILD_MODULE_RELAY_TRUE"; then : 6016 6017$as_echo "#define HAVE_MODULE_RELAY 1" >>confdefs.h 6018 6019fi 6020 6021 if test "x$enable_module_relay" != "xno"; then 6022 BUILD_MODULE_DIRCACHE_TRUE= 6023 BUILD_MODULE_DIRCACHE_FALSE='#' 6024else 6025 BUILD_MODULE_DIRCACHE_TRUE='#' 6026 BUILD_MODULE_DIRCACHE_FALSE= 6027fi 6028 6029if test -z "$BUILD_MODULE_DIRCACHE_TRUE"; then : 6030 6031$as_echo "#define HAVE_MODULE_DIRCACHE 1" >>confdefs.h 6032 6033fi 6034 6035# Check whether --enable-module-dirauth was given. 6036if test "${enable_module_dirauth+set}" = set; then : 6037 enableval=$enable_module_dirauth; 6038fi 6039 6040 if test "x$enable_module_dirauth" != "xno" && test "x$enable_module_relay" != "xno"; then 6041 BUILD_MODULE_DIRAUTH_TRUE= 6042 BUILD_MODULE_DIRAUTH_FALSE='#' 6043else 6044 BUILD_MODULE_DIRAUTH_TRUE='#' 6045 BUILD_MODULE_DIRAUTH_FALSE= 6046fi 6047 6048if test -z "$BUILD_MODULE_DIRAUTH_TRUE"; then : 6049 6050$as_echo "#define HAVE_MODULE_DIRAUTH 1" >>confdefs.h 6051 6052fi 6053 6054TOR_MODULES_ALL_ENABLED= 6055 6056 6057 MODULE=RELAY 6058 TOR_MODULES_ALL_ENABLED="${TOR_MODULES_ALL_ENABLED} -DHAVE_MODULE_${MODULE}=1" 6059 6060 MODULE=DIRAUTH 6061 TOR_MODULES_ALL_ENABLED="${TOR_MODULES_ALL_ENABLED} -DHAVE_MODULE_${MODULE}=1" 6062 6063 MODULE=DIRCACHE 6064 TOR_MODULES_ALL_ENABLED="${TOR_MODULES_ALL_ENABLED} -DHAVE_MODULE_${MODULE}=1" 6065 6066 6067 6068if test -n "$ac_tool_prefix"; then 6069 for ac_prog in ar lib "link -lib" 6070 do 6071 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 6072set dummy $ac_tool_prefix$ac_prog; ac_word=$2 6073{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6074$as_echo_n "checking for $ac_word... " >&6; } 6075if ${ac_cv_prog_AR+:} false; then : 6076 $as_echo_n "(cached) " >&6 6077else 6078 if test -n "$AR"; then 6079 ac_cv_prog_AR="$AR" # Let the user override the test. 6080else 6081as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6082for as_dir in $PATH 6083do 6084 IFS=$as_save_IFS 6085 test -z "$as_dir" && as_dir=. 6086 for ac_exec_ext in '' $ac_executable_extensions; do 6087 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6088 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 6089 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6090 break 2 6091 fi 6092done 6093 done 6094IFS=$as_save_IFS 6095 6096fi 6097fi 6098AR=$ac_cv_prog_AR 6099if test -n "$AR"; then 6100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 6101$as_echo "$AR" >&6; } 6102else 6103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6104$as_echo "no" >&6; } 6105fi 6106 6107 6108 test -n "$AR" && break 6109 done 6110fi 6111if test -z "$AR"; then 6112 ac_ct_AR=$AR 6113 for ac_prog in ar lib "link -lib" 6114do 6115 # Extract the first word of "$ac_prog", so it can be a program name with args. 6116set dummy $ac_prog; ac_word=$2 6117{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6118$as_echo_n "checking for $ac_word... " >&6; } 6119if ${ac_cv_prog_ac_ct_AR+:} false; then : 6120 $as_echo_n "(cached) " >&6 6121else 6122 if test -n "$ac_ct_AR"; then 6123 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 6124else 6125as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6126for as_dir in $PATH 6127do 6128 IFS=$as_save_IFS 6129 test -z "$as_dir" && as_dir=. 6130 for ac_exec_ext in '' $ac_executable_extensions; do 6131 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6132 ac_cv_prog_ac_ct_AR="$ac_prog" 6133 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6134 break 2 6135 fi 6136done 6137 done 6138IFS=$as_save_IFS 6139 6140fi 6141fi 6142ac_ct_AR=$ac_cv_prog_ac_ct_AR 6143if test -n "$ac_ct_AR"; then 6144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 6145$as_echo "$ac_ct_AR" >&6; } 6146else 6147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6148$as_echo "no" >&6; } 6149fi 6150 6151 6152 test -n "$ac_ct_AR" && break 6153done 6154 6155 if test "x$ac_ct_AR" = x; then 6156 AR="false" 6157 else 6158 case $cross_compiling:$ac_tool_warned in 6159yes:) 6160{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6161$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6162ac_tool_warned=yes ;; 6163esac 6164 AR=$ac_ct_AR 6165 fi 6166fi 6167 6168: ${AR=ar} 6169 6170{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5 6171$as_echo_n "checking the archiver ($AR) interface... " >&6; } 6172if ${am_cv_ar_interface+:} false; then : 6173 $as_echo_n "(cached) " >&6 6174else 6175 ac_ext=c 6176ac_cpp='$CPP $CPPFLAGS' 6177ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6178ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6179ac_compiler_gnu=$ac_cv_c_compiler_gnu 6180 6181 am_cv_ar_interface=ar 6182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6183/* end confdefs.h. */ 6184int some_variable = 0; 6185_ACEOF 6186if ac_fn_c_try_compile "$LINENO"; then : 6187 am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5' 6188 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5 6189 (eval $am_ar_try) 2>&5 6190 ac_status=$? 6191 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6192 test $ac_status = 0; } 6193 if test "$ac_status" -eq 0; then 6194 am_cv_ar_interface=ar 6195 else 6196 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5' 6197 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5 6198 (eval $am_ar_try) 2>&5 6199 ac_status=$? 6200 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6201 test $ac_status = 0; } 6202 if test "$ac_status" -eq 0; then 6203 am_cv_ar_interface=lib 6204 else 6205 am_cv_ar_interface=unknown 6206 fi 6207 fi 6208 rm -f conftest.lib libconftest.a 6209 6210fi 6211rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6212 ac_ext=c 6213ac_cpp='$CPP $CPPFLAGS' 6214ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6215ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6216ac_compiler_gnu=$ac_cv_c_compiler_gnu 6217 6218fi 6219{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5 6220$as_echo "$am_cv_ar_interface" >&6; } 6221 6222case $am_cv_ar_interface in 6223ar) 6224 ;; 6225lib) 6226 # Microsoft lib, so override with the ar-lib wrapper script. 6227 # FIXME: It is wrong to rewrite AR. 6228 # But if we don't then we get into trouble of one sort or another. 6229 # A longer-term fix would be to have automake use am__AR in this case, 6230 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something 6231 # similar. 6232 AR="$am_aux_dir/ar-lib $AR" 6233 ;; 6234unknown) 6235 as_fn_error $? "could not determine $AR interface" "$LINENO" 5 6236 ;; 6237esac 6238 6239 6240if test "x$enable_tool_name_check" != "xno"; then 6241 if test "x$ac_tool_warned" = "xyes"; then 6242 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 6243 elif test "x$ac_ct_AR" != "x" -a "x$cross_compiling" = "xmaybe"; then 6244 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 6245 fi 6246fi 6247 6248ac_ext=c 6249ac_cpp='$CPP $CPPFLAGS' 6250ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6251ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6252ac_compiler_gnu=$ac_cv_c_compiler_gnu 6253if test -n "$ac_tool_prefix"; then 6254 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 6255set dummy ${ac_tool_prefix}gcc; ac_word=$2 6256{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6257$as_echo_n "checking for $ac_word... " >&6; } 6258if ${ac_cv_prog_CC+:} false; then : 6259 $as_echo_n "(cached) " >&6 6260else 6261 if test -n "$CC"; then 6262 ac_cv_prog_CC="$CC" # Let the user override the test. 6263else 6264as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6265for as_dir in $PATH 6266do 6267 IFS=$as_save_IFS 6268 test -z "$as_dir" && as_dir=. 6269 for ac_exec_ext in '' $ac_executable_extensions; do 6270 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6271 ac_cv_prog_CC="${ac_tool_prefix}gcc" 6272 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6273 break 2 6274 fi 6275done 6276 done 6277IFS=$as_save_IFS 6278 6279fi 6280fi 6281CC=$ac_cv_prog_CC 6282if test -n "$CC"; then 6283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 6284$as_echo "$CC" >&6; } 6285else 6286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6287$as_echo "no" >&6; } 6288fi 6289 6290 6291fi 6292if test -z "$ac_cv_prog_CC"; then 6293 ac_ct_CC=$CC 6294 # Extract the first word of "gcc", so it can be a program name with args. 6295set dummy gcc; ac_word=$2 6296{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6297$as_echo_n "checking for $ac_word... " >&6; } 6298if ${ac_cv_prog_ac_ct_CC+:} false; then : 6299 $as_echo_n "(cached) " >&6 6300else 6301 if test -n "$ac_ct_CC"; then 6302 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 6303else 6304as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6305for as_dir in $PATH 6306do 6307 IFS=$as_save_IFS 6308 test -z "$as_dir" && as_dir=. 6309 for ac_exec_ext in '' $ac_executable_extensions; do 6310 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6311 ac_cv_prog_ac_ct_CC="gcc" 6312 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6313 break 2 6314 fi 6315done 6316 done 6317IFS=$as_save_IFS 6318 6319fi 6320fi 6321ac_ct_CC=$ac_cv_prog_ac_ct_CC 6322if test -n "$ac_ct_CC"; then 6323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 6324$as_echo "$ac_ct_CC" >&6; } 6325else 6326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6327$as_echo "no" >&6; } 6328fi 6329 6330 if test "x$ac_ct_CC" = x; then 6331 CC="" 6332 else 6333 case $cross_compiling:$ac_tool_warned in 6334yes:) 6335{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6336$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6337ac_tool_warned=yes ;; 6338esac 6339 CC=$ac_ct_CC 6340 fi 6341else 6342 CC="$ac_cv_prog_CC" 6343fi 6344 6345if test -z "$CC"; then 6346 if test -n "$ac_tool_prefix"; then 6347 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 6348set dummy ${ac_tool_prefix}cc; ac_word=$2 6349{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6350$as_echo_n "checking for $ac_word... " >&6; } 6351if ${ac_cv_prog_CC+:} false; then : 6352 $as_echo_n "(cached) " >&6 6353else 6354 if test -n "$CC"; then 6355 ac_cv_prog_CC="$CC" # Let the user override the test. 6356else 6357as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6358for as_dir in $PATH 6359do 6360 IFS=$as_save_IFS 6361 test -z "$as_dir" && as_dir=. 6362 for ac_exec_ext in '' $ac_executable_extensions; do 6363 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6364 ac_cv_prog_CC="${ac_tool_prefix}cc" 6365 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6366 break 2 6367 fi 6368done 6369 done 6370IFS=$as_save_IFS 6371 6372fi 6373fi 6374CC=$ac_cv_prog_CC 6375if test -n "$CC"; then 6376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 6377$as_echo "$CC" >&6; } 6378else 6379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6380$as_echo "no" >&6; } 6381fi 6382 6383 6384 fi 6385fi 6386if test -z "$CC"; then 6387 # Extract the first word of "cc", so it can be a program name with args. 6388set dummy cc; ac_word=$2 6389{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6390$as_echo_n "checking for $ac_word... " >&6; } 6391if ${ac_cv_prog_CC+:} false; then : 6392 $as_echo_n "(cached) " >&6 6393else 6394 if test -n "$CC"; then 6395 ac_cv_prog_CC="$CC" # Let the user override the test. 6396else 6397 ac_prog_rejected=no 6398as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6399for as_dir in $PATH 6400do 6401 IFS=$as_save_IFS 6402 test -z "$as_dir" && as_dir=. 6403 for ac_exec_ext in '' $ac_executable_extensions; do 6404 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6405 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 6406 ac_prog_rejected=yes 6407 continue 6408 fi 6409 ac_cv_prog_CC="cc" 6410 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6411 break 2 6412 fi 6413done 6414 done 6415IFS=$as_save_IFS 6416 6417if test $ac_prog_rejected = yes; then 6418 # We found a bogon in the path, so make sure we never use it. 6419 set dummy $ac_cv_prog_CC 6420 shift 6421 if test $# != 0; then 6422 # We chose a different compiler from the bogus one. 6423 # However, it has the same basename, so the bogon will be chosen 6424 # first if we set CC to just the basename; use the full file name. 6425 shift 6426 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 6427 fi 6428fi 6429fi 6430fi 6431CC=$ac_cv_prog_CC 6432if test -n "$CC"; then 6433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 6434$as_echo "$CC" >&6; } 6435else 6436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6437$as_echo "no" >&6; } 6438fi 6439 6440 6441fi 6442if test -z "$CC"; then 6443 if test -n "$ac_tool_prefix"; then 6444 for ac_prog in cl.exe 6445 do 6446 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 6447set dummy $ac_tool_prefix$ac_prog; ac_word=$2 6448{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6449$as_echo_n "checking for $ac_word... " >&6; } 6450if ${ac_cv_prog_CC+:} false; then : 6451 $as_echo_n "(cached) " >&6 6452else 6453 if test -n "$CC"; then 6454 ac_cv_prog_CC="$CC" # Let the user override the test. 6455else 6456as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6457for as_dir in $PATH 6458do 6459 IFS=$as_save_IFS 6460 test -z "$as_dir" && as_dir=. 6461 for ac_exec_ext in '' $ac_executable_extensions; do 6462 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6463 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 6464 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6465 break 2 6466 fi 6467done 6468 done 6469IFS=$as_save_IFS 6470 6471fi 6472fi 6473CC=$ac_cv_prog_CC 6474if test -n "$CC"; then 6475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 6476$as_echo "$CC" >&6; } 6477else 6478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6479$as_echo "no" >&6; } 6480fi 6481 6482 6483 test -n "$CC" && break 6484 done 6485fi 6486if test -z "$CC"; then 6487 ac_ct_CC=$CC 6488 for ac_prog in cl.exe 6489do 6490 # Extract the first word of "$ac_prog", so it can be a program name with args. 6491set dummy $ac_prog; ac_word=$2 6492{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6493$as_echo_n "checking for $ac_word... " >&6; } 6494if ${ac_cv_prog_ac_ct_CC+:} false; then : 6495 $as_echo_n "(cached) " >&6 6496else 6497 if test -n "$ac_ct_CC"; then 6498 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 6499else 6500as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6501for as_dir in $PATH 6502do 6503 IFS=$as_save_IFS 6504 test -z "$as_dir" && as_dir=. 6505 for ac_exec_ext in '' $ac_executable_extensions; do 6506 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6507 ac_cv_prog_ac_ct_CC="$ac_prog" 6508 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6509 break 2 6510 fi 6511done 6512 done 6513IFS=$as_save_IFS 6514 6515fi 6516fi 6517ac_ct_CC=$ac_cv_prog_ac_ct_CC 6518if test -n "$ac_ct_CC"; then 6519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 6520$as_echo "$ac_ct_CC" >&6; } 6521else 6522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6523$as_echo "no" >&6; } 6524fi 6525 6526 6527 test -n "$ac_ct_CC" && break 6528done 6529 6530 if test "x$ac_ct_CC" = x; then 6531 CC="" 6532 else 6533 case $cross_compiling:$ac_tool_warned in 6534yes:) 6535{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6536$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6537ac_tool_warned=yes ;; 6538esac 6539 CC=$ac_ct_CC 6540 fi 6541fi 6542 6543fi 6544 6545 6546test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 6547$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 6548as_fn_error $? "no acceptable C compiler found in \$PATH 6549See \`config.log' for more details" "$LINENO" 5; } 6550 6551# Provide some information about the compiler. 6552$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 6553set X $ac_compile 6554ac_compiler=$2 6555for ac_option in --version -v -V -qversion; do 6556 { { ac_try="$ac_compiler $ac_option >&5" 6557case "(($ac_try" in 6558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6559 *) ac_try_echo=$ac_try;; 6560esac 6561eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 6562$as_echo "$ac_try_echo"; } >&5 6563 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 6564 ac_status=$? 6565 if test -s conftest.err; then 6566 sed '10a\ 6567... rest of stderr output deleted ... 6568 10q' conftest.err >conftest.er1 6569 cat conftest.er1 >&5 6570 fi 6571 rm -f conftest.er1 conftest.err 6572 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6573 test $ac_status = 0; } 6574done 6575 6576{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 6577$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 6578if ${ac_cv_c_compiler_gnu+:} false; then : 6579 $as_echo_n "(cached) " >&6 6580else 6581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6582/* end confdefs.h. */ 6583 6584int 6585main () 6586{ 6587#ifndef __GNUC__ 6588 choke me 6589#endif 6590 6591 ; 6592 return 0; 6593} 6594_ACEOF 6595if ac_fn_c_try_compile "$LINENO"; then : 6596 ac_compiler_gnu=yes 6597else 6598 ac_compiler_gnu=no 6599fi 6600rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6601ac_cv_c_compiler_gnu=$ac_compiler_gnu 6602 6603fi 6604{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 6605$as_echo "$ac_cv_c_compiler_gnu" >&6; } 6606if test $ac_compiler_gnu = yes; then 6607 GCC=yes 6608else 6609 GCC= 6610fi 6611ac_test_CFLAGS=${CFLAGS+set} 6612ac_save_CFLAGS=$CFLAGS 6613{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 6614$as_echo_n "checking whether $CC accepts -g... " >&6; } 6615if ${ac_cv_prog_cc_g+:} false; then : 6616 $as_echo_n "(cached) " >&6 6617else 6618 ac_save_c_werror_flag=$ac_c_werror_flag 6619 ac_c_werror_flag=yes 6620 ac_cv_prog_cc_g=no 6621 CFLAGS="-g" 6622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6623/* end confdefs.h. */ 6624 6625int 6626main () 6627{ 6628 6629 ; 6630 return 0; 6631} 6632_ACEOF 6633if ac_fn_c_try_compile "$LINENO"; then : 6634 ac_cv_prog_cc_g=yes 6635else 6636 CFLAGS="" 6637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6638/* end confdefs.h. */ 6639 6640int 6641main () 6642{ 6643 6644 ; 6645 return 0; 6646} 6647_ACEOF 6648if ac_fn_c_try_compile "$LINENO"; then : 6649 6650else 6651 ac_c_werror_flag=$ac_save_c_werror_flag 6652 CFLAGS="-g" 6653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6654/* end confdefs.h. */ 6655 6656int 6657main () 6658{ 6659 6660 ; 6661 return 0; 6662} 6663_ACEOF 6664if ac_fn_c_try_compile "$LINENO"; then : 6665 ac_cv_prog_cc_g=yes 6666fi 6667rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6668fi 6669rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6670fi 6671rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6672 ac_c_werror_flag=$ac_save_c_werror_flag 6673fi 6674{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 6675$as_echo "$ac_cv_prog_cc_g" >&6; } 6676if test "$ac_test_CFLAGS" = set; then 6677 CFLAGS=$ac_save_CFLAGS 6678elif test $ac_cv_prog_cc_g = yes; then 6679 if test "$GCC" = yes; then 6680 CFLAGS="-g -O2" 6681 else 6682 CFLAGS="-g" 6683 fi 6684else 6685 if test "$GCC" = yes; then 6686 CFLAGS="-O2" 6687 else 6688 CFLAGS= 6689 fi 6690fi 6691{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 6692$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 6693if ${ac_cv_prog_cc_c89+:} false; then : 6694 $as_echo_n "(cached) " >&6 6695else 6696 ac_cv_prog_cc_c89=no 6697ac_save_CC=$CC 6698cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6699/* end confdefs.h. */ 6700#include <stdarg.h> 6701#include <stdio.h> 6702struct stat; 6703/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 6704struct buf { int x; }; 6705FILE * (*rcsopen) (struct buf *, struct stat *, int); 6706static char *e (p, i) 6707 char **p; 6708 int i; 6709{ 6710 return p[i]; 6711} 6712static char *f (char * (*g) (char **, int), char **p, ...) 6713{ 6714 char *s; 6715 va_list v; 6716 va_start (v,p); 6717 s = g (p, va_arg (v,int)); 6718 va_end (v); 6719 return s; 6720} 6721 6722/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 6723 function prototypes and stuff, but not '\xHH' hex character constants. 6724 These don't provoke an error unfortunately, instead are silently treated 6725 as 'x'. The following induces an error, until -std is added to get 6726 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 6727 array size at least. It's necessary to write '\x00'==0 to get something 6728 that's true only with -std. */ 6729int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 6730 6731/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 6732 inside strings and character constants. */ 6733#define FOO(x) 'x' 6734int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 6735 6736int test (int i, double x); 6737struct s1 {int (*f) (int a);}; 6738struct s2 {int (*f) (double a);}; 6739int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 6740int argc; 6741char **argv; 6742int 6743main () 6744{ 6745return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 6746 ; 6747 return 0; 6748} 6749_ACEOF 6750for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 6751 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 6752do 6753 CC="$ac_save_CC $ac_arg" 6754 if ac_fn_c_try_compile "$LINENO"; then : 6755 ac_cv_prog_cc_c89=$ac_arg 6756fi 6757rm -f core conftest.err conftest.$ac_objext 6758 test "x$ac_cv_prog_cc_c89" != "xno" && break 6759done 6760rm -f conftest.$ac_ext 6761CC=$ac_save_CC 6762 6763fi 6764# AC_CACHE_VAL 6765case "x$ac_cv_prog_cc_c89" in 6766 x) 6767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 6768$as_echo "none needed" >&6; } ;; 6769 xno) 6770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 6771$as_echo "unsupported" >&6; } ;; 6772 *) 6773 CC="$CC $ac_cv_prog_cc_c89" 6774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 6775$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 6776esac 6777if test "x$ac_cv_prog_cc_c89" != xno; then : 6778 6779fi 6780 6781ac_ext=c 6782ac_cpp='$CPP $CPPFLAGS' 6783ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6784ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6785ac_compiler_gnu=$ac_cv_c_compiler_gnu 6786 6787ac_ext=c 6788ac_cpp='$CPP $CPPFLAGS' 6789ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6790ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6791ac_compiler_gnu=$ac_cv_c_compiler_gnu 6792{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 6793$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 6794if ${am_cv_prog_cc_c_o+:} false; then : 6795 $as_echo_n "(cached) " >&6 6796else 6797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6798/* end confdefs.h. */ 6799 6800int 6801main () 6802{ 6803 6804 ; 6805 return 0; 6806} 6807_ACEOF 6808 # Make sure it works both with $CC and with simple cc. 6809 # Following AC_PROG_CC_C_O, we do the test twice because some 6810 # compilers refuse to overwrite an existing .o file with -o, 6811 # though they will create one. 6812 am_cv_prog_cc_c_o=yes 6813 for am_i in 1 2; do 6814 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 6815 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 6816 ac_status=$? 6817 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6818 (exit $ac_status); } \ 6819 && test -f conftest2.$ac_objext; then 6820 : OK 6821 else 6822 am_cv_prog_cc_c_o=no 6823 break 6824 fi 6825 done 6826 rm -f core conftest* 6827 unset am_i 6828fi 6829{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 6830$as_echo "$am_cv_prog_cc_c_o" >&6; } 6831if test "$am_cv_prog_cc_c_o" != yes; then 6832 # Losing compiler, so override with the script. 6833 # FIXME: It is wrong to rewrite CC. 6834 # But if we don't then we get into trouble of one sort or another. 6835 # A longer-term fix would be to have automake use am__CC in this case, 6836 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 6837 CC="$am_aux_dir/compile $CC" 6838fi 6839ac_ext=c 6840ac_cpp='$CPP $CPPFLAGS' 6841ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6842ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6843ac_compiler_gnu=$ac_cv_c_compiler_gnu 6844 6845 6846depcc="$CC" am_compiler_list= 6847 6848{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 6849$as_echo_n "checking dependency style of $depcc... " >&6; } 6850if ${am_cv_CC_dependencies_compiler_type+:} false; then : 6851 $as_echo_n "(cached) " >&6 6852else 6853 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 6854 # We make a subdir and do the tests there. Otherwise we can end up 6855 # making bogus files that we don't know about and never remove. For 6856 # instance it was reported that on HP-UX the gcc test will end up 6857 # making a dummy file named 'D' -- because '-MD' means "put the output 6858 # in D". 6859 rm -rf conftest.dir 6860 mkdir conftest.dir 6861 # Copy depcomp to subdir because otherwise we won't find it if we're 6862 # using a relative directory. 6863 cp "$am_depcomp" conftest.dir 6864 cd conftest.dir 6865 # We will build objects and dependencies in a subdirectory because 6866 # it helps to detect inapplicable dependency modes. For instance 6867 # both Tru64's cc and ICC support -MD to output dependencies as a 6868 # side effect of compilation, but ICC will put the dependencies in 6869 # the current directory while Tru64 will put them in the object 6870 # directory. 6871 mkdir sub 6872 6873 am_cv_CC_dependencies_compiler_type=none 6874 if test "$am_compiler_list" = ""; then 6875 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 6876 fi 6877 am__universal=false 6878 case " $depcc " in #( 6879 *\ -arch\ *\ -arch\ *) am__universal=true ;; 6880 esac 6881 6882 for depmode in $am_compiler_list; do 6883 # Setup a source with many dependencies, because some compilers 6884 # like to wrap large dependency lists on column 80 (with \), and 6885 # we should not choose a depcomp mode which is confused by this. 6886 # 6887 # We need to recreate these files for each test, as the compiler may 6888 # overwrite some of them when testing with obscure command lines. 6889 # This happens at least with the AIX C compiler. 6890 : > sub/conftest.c 6891 for i in 1 2 3 4 5 6; do 6892 echo '#include "conftst'$i'.h"' >> sub/conftest.c 6893 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 6894 # Solaris 10 /bin/sh. 6895 echo '/* dummy */' > sub/conftst$i.h 6896 done 6897 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 6898 6899 # We check with '-c' and '-o' for the sake of the "dashmstdout" 6900 # mode. It turns out that the SunPro C++ compiler does not properly 6901 # handle '-M -o', and we need to detect this. Also, some Intel 6902 # versions had trouble with output in subdirs. 6903 am__obj=sub/conftest.${OBJEXT-o} 6904 am__minus_obj="-o $am__obj" 6905 case $depmode in 6906 gcc) 6907 # This depmode causes a compiler race in universal mode. 6908 test "$am__universal" = false || continue 6909 ;; 6910 nosideeffect) 6911 # After this tag, mechanisms are not by side-effect, so they'll 6912 # only be used when explicitly requested. 6913 if test "x$enable_dependency_tracking" = xyes; then 6914 continue 6915 else 6916 break 6917 fi 6918 ;; 6919 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 6920 # This compiler won't grok '-c -o', but also, the minuso test has 6921 # not run yet. These depmodes are late enough in the game, and 6922 # so weak that their functioning should not be impacted. 6923 am__obj=conftest.${OBJEXT-o} 6924 am__minus_obj= 6925 ;; 6926 none) break ;; 6927 esac 6928 if depmode=$depmode \ 6929 source=sub/conftest.c object=$am__obj \ 6930 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 6931 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 6932 >/dev/null 2>conftest.err && 6933 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 6934 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 6935 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 6936 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 6937 # icc doesn't choke on unknown options, it will just issue warnings 6938 # or remarks (even with -Werror). So we grep stderr for any message 6939 # that says an option was ignored or not supported. 6940 # When given -MP, icc 7.0 and 7.1 complain thusly: 6941 # icc: Command line warning: ignoring option '-M'; no argument required 6942 # The diagnosis changed in icc 8.0: 6943 # icc: Command line remark: option '-MP' not supported 6944 if (grep 'ignoring option' conftest.err || 6945 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 6946 am_cv_CC_dependencies_compiler_type=$depmode 6947 break 6948 fi 6949 fi 6950 done 6951 6952 cd .. 6953 rm -rf conftest.dir 6954else 6955 am_cv_CC_dependencies_compiler_type=none 6956fi 6957 6958fi 6959{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 6960$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 6961CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 6962 6963 if 6964 test "x$enable_dependency_tracking" != xno \ 6965 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 6966 am__fastdepCC_TRUE= 6967 am__fastdepCC_FALSE='#' 6968else 6969 am__fastdepCC_TRUE='#' 6970 am__fastdepCC_FALSE= 6971fi 6972 6973 6974ac_ext=c 6975ac_cpp='$CPP $CPPFLAGS' 6976ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6977ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6978ac_compiler_gnu=$ac_cv_c_compiler_gnu 6979{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 6980$as_echo_n "checking how to run the C preprocessor... " >&6; } 6981# On Suns, sometimes $CPP names a directory. 6982if test -n "$CPP" && test -d "$CPP"; then 6983 CPP= 6984fi 6985if test -z "$CPP"; then 6986 if ${ac_cv_prog_CPP+:} false; then : 6987 $as_echo_n "(cached) " >&6 6988else 6989 # Double quotes because CPP needs to be expanded 6990 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 6991 do 6992 ac_preproc_ok=false 6993for ac_c_preproc_warn_flag in '' yes 6994do 6995 # Use a header file that comes with gcc, so configuring glibc 6996 # with a fresh cross-compiler works. 6997 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 6998 # <limits.h> exists even on freestanding compilers. 6999 # On the NeXT, cc -E runs the code through the compiler's parser, 7000 # not just through cpp. "Syntax error" is here to catch this case. 7001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7002/* end confdefs.h. */ 7003#ifdef __STDC__ 7004# include <limits.h> 7005#else 7006# include <assert.h> 7007#endif 7008 Syntax error 7009_ACEOF 7010if ac_fn_c_try_cpp "$LINENO"; then : 7011 7012else 7013 # Broken: fails on valid input. 7014continue 7015fi 7016rm -f conftest.err conftest.i conftest.$ac_ext 7017 7018 # OK, works on sane cases. Now check whether nonexistent headers 7019 # can be detected and how. 7020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7021/* end confdefs.h. */ 7022#include <ac_nonexistent.h> 7023_ACEOF 7024if ac_fn_c_try_cpp "$LINENO"; then : 7025 # Broken: success on invalid input. 7026continue 7027else 7028 # Passes both tests. 7029ac_preproc_ok=: 7030break 7031fi 7032rm -f conftest.err conftest.i conftest.$ac_ext 7033 7034done 7035# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 7036rm -f conftest.i conftest.err conftest.$ac_ext 7037if $ac_preproc_ok; then : 7038 break 7039fi 7040 7041 done 7042 ac_cv_prog_CPP=$CPP 7043 7044fi 7045 CPP=$ac_cv_prog_CPP 7046else 7047 ac_cv_prog_CPP=$CPP 7048fi 7049{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 7050$as_echo "$CPP" >&6; } 7051ac_preproc_ok=false 7052for ac_c_preproc_warn_flag in '' yes 7053do 7054 # Use a header file that comes with gcc, so configuring glibc 7055 # with a fresh cross-compiler works. 7056 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7057 # <limits.h> exists even on freestanding compilers. 7058 # On the NeXT, cc -E runs the code through the compiler's parser, 7059 # not just through cpp. "Syntax error" is here to catch this case. 7060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7061/* end confdefs.h. */ 7062#ifdef __STDC__ 7063# include <limits.h> 7064#else 7065# include <assert.h> 7066#endif 7067 Syntax error 7068_ACEOF 7069if ac_fn_c_try_cpp "$LINENO"; then : 7070 7071else 7072 # Broken: fails on valid input. 7073continue 7074fi 7075rm -f conftest.err conftest.i conftest.$ac_ext 7076 7077 # OK, works on sane cases. Now check whether nonexistent headers 7078 # can be detected and how. 7079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7080/* end confdefs.h. */ 7081#include <ac_nonexistent.h> 7082_ACEOF 7083if ac_fn_c_try_cpp "$LINENO"; then : 7084 # Broken: success on invalid input. 7085continue 7086else 7087 # Passes both tests. 7088ac_preproc_ok=: 7089break 7090fi 7091rm -f conftest.err conftest.i conftest.$ac_ext 7092 7093done 7094# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 7095rm -f conftest.i conftest.err conftest.$ac_ext 7096if $ac_preproc_ok; then : 7097 7098else 7099 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 7100$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 7101as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 7102See \`config.log' for more details" "$LINENO" 5; } 7103fi 7104 7105ac_ext=c 7106ac_cpp='$CPP $CPPFLAGS' 7107ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7108ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7109ac_compiler_gnu=$ac_cv_c_compiler_gnu 7110 7111{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 7112$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 7113set x ${MAKE-make} 7114ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 7115if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 7116 $as_echo_n "(cached) " >&6 7117else 7118 cat >conftest.make <<\_ACEOF 7119SHELL = /bin/sh 7120all: 7121 @echo '@@@%%%=$(MAKE)=@@@%%%' 7122_ACEOF 7123# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 7124case `${MAKE-make} -f conftest.make 2>/dev/null` in 7125 *@@@%%%=?*=@@@%%%*) 7126 eval ac_cv_prog_make_${ac_make}_set=yes;; 7127 *) 7128 eval ac_cv_prog_make_${ac_make}_set=no;; 7129esac 7130rm -f conftest.make 7131fi 7132if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 7133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 7134$as_echo "yes" >&6; } 7135 SET_MAKE= 7136else 7137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7138$as_echo "no" >&6; } 7139 SET_MAKE="MAKE=${MAKE-make}" 7140fi 7141 7142if test -n "$ac_tool_prefix"; then 7143 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 7144set dummy ${ac_tool_prefix}ranlib; ac_word=$2 7145{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7146$as_echo_n "checking for $ac_word... " >&6; } 7147if ${ac_cv_prog_RANLIB+:} false; then : 7148 $as_echo_n "(cached) " >&6 7149else 7150 if test -n "$RANLIB"; then 7151 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 7152else 7153as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7154for as_dir in $PATH 7155do 7156 IFS=$as_save_IFS 7157 test -z "$as_dir" && as_dir=. 7158 for ac_exec_ext in '' $ac_executable_extensions; do 7159 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7160 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 7161 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7162 break 2 7163 fi 7164done 7165 done 7166IFS=$as_save_IFS 7167 7168fi 7169fi 7170RANLIB=$ac_cv_prog_RANLIB 7171if test -n "$RANLIB"; then 7172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 7173$as_echo "$RANLIB" >&6; } 7174else 7175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7176$as_echo "no" >&6; } 7177fi 7178 7179 7180fi 7181if test -z "$ac_cv_prog_RANLIB"; then 7182 ac_ct_RANLIB=$RANLIB 7183 # Extract the first word of "ranlib", so it can be a program name with args. 7184set dummy ranlib; ac_word=$2 7185{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7186$as_echo_n "checking for $ac_word... " >&6; } 7187if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 7188 $as_echo_n "(cached) " >&6 7189else 7190 if test -n "$ac_ct_RANLIB"; then 7191 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 7192else 7193as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7194for as_dir in $PATH 7195do 7196 IFS=$as_save_IFS 7197 test -z "$as_dir" && as_dir=. 7198 for ac_exec_ext in '' $ac_executable_extensions; do 7199 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7200 ac_cv_prog_ac_ct_RANLIB="ranlib" 7201 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7202 break 2 7203 fi 7204done 7205 done 7206IFS=$as_save_IFS 7207 7208fi 7209fi 7210ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 7211if test -n "$ac_ct_RANLIB"; then 7212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 7213$as_echo "$ac_ct_RANLIB" >&6; } 7214else 7215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7216$as_echo "no" >&6; } 7217fi 7218 7219 if test "x$ac_ct_RANLIB" = x; then 7220 RANLIB=":" 7221 else 7222 case $cross_compiling:$ac_tool_warned in 7223yes:) 7224{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7225$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7226ac_tool_warned=yes ;; 7227esac 7228 RANLIB=$ac_ct_RANLIB 7229 fi 7230else 7231 RANLIB="$ac_cv_prog_RANLIB" 7232fi 7233 7234{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 7235$as_echo_n "checking for a sed that does not truncate output... " >&6; } 7236if ${ac_cv_path_SED+:} false; then : 7237 $as_echo_n "(cached) " >&6 7238else 7239 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 7240 for ac_i in 1 2 3 4 5 6 7; do 7241 ac_script="$ac_script$as_nl$ac_script" 7242 done 7243 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 7244 { ac_script=; unset ac_script;} 7245 if test -z "$SED"; then 7246 ac_path_SED_found=false 7247 # Loop through the user's path and test for each of PROGNAME-LIST 7248 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7249for as_dir in $PATH 7250do 7251 IFS=$as_save_IFS 7252 test -z "$as_dir" && as_dir=. 7253 for ac_prog in sed gsed; do 7254 for ac_exec_ext in '' $ac_executable_extensions; do 7255 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 7256 as_fn_executable_p "$ac_path_SED" || continue 7257# Check for GNU ac_path_SED and select it if it is found. 7258 # Check for GNU $ac_path_SED 7259case `"$ac_path_SED" --version 2>&1` in 7260*GNU*) 7261 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 7262*) 7263 ac_count=0 7264 $as_echo_n 0123456789 >"conftest.in" 7265 while : 7266 do 7267 cat "conftest.in" "conftest.in" >"conftest.tmp" 7268 mv "conftest.tmp" "conftest.in" 7269 cp "conftest.in" "conftest.nl" 7270 $as_echo '' >> "conftest.nl" 7271 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 7272 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 7273 as_fn_arith $ac_count + 1 && ac_count=$as_val 7274 if test $ac_count -gt ${ac_path_SED_max-0}; then 7275 # Best one so far, save it but keep looking for a better one 7276 ac_cv_path_SED="$ac_path_SED" 7277 ac_path_SED_max=$ac_count 7278 fi 7279 # 10*(2^10) chars as input seems more than enough 7280 test $ac_count -gt 10 && break 7281 done 7282 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 7283esac 7284 7285 $ac_path_SED_found && break 3 7286 done 7287 done 7288 done 7289IFS=$as_save_IFS 7290 if test -z "$ac_cv_path_SED"; then 7291 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 7292 fi 7293else 7294 ac_cv_path_SED=$SED 7295fi 7296 7297fi 7298{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 7299$as_echo "$ac_cv_path_SED" >&6; } 7300 SED="$ac_cv_path_SED" 7301 rm -f conftest.sed 7302 7303 7304{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler vendor" >&5 7305$as_echo_n "checking for C compiler vendor... " >&6; } 7306if ${ax_cv_c_compiler_vendor+:} false; then : 7307 $as_echo_n "(cached) " >&6 7308else 7309 # note: don't check for gcc first since some other compilers define __GNUC__ 7310 vendors="intel: __ICC,__ECC,__INTEL_COMPILER 7311 ibm: __xlc__,__xlC__,__IBMC__,__IBMCPP__ 7312 pathscale: __PATHCC__,__PATHSCALE__ 7313 clang: __clang__ 7314 cray: _CRAYC 7315 fujitsu: __FUJITSU 7316 sdcc: SDCC, __SDCC 7317 gnu: __GNUC__ 7318 sun: __SUNPRO_C,__SUNPRO_CC 7319 hp: __HP_cc,__HP_aCC 7320 dec: __DECC,__DECCXX,__DECC_VER,__DECCXX_VER 7321 borland: __BORLANDC__,__CODEGEARC__,__TURBOC__ 7322 comeau: __COMO__ 7323 kai: __KCC 7324 lcc: __LCC__ 7325 sgi: __sgi,sgi 7326 microsoft: _MSC_VER 7327 metrowerks: __MWERKS__ 7328 watcom: __WATCOMC__ 7329 portland: __PGI 7330 tcc: __TINYC__ 7331 unknown: UNKNOWN" 7332 for ventest in $vendors; do 7333 case $ventest in 7334 *:) vendor=$ventest; continue ;; 7335 *) vencpp="defined("`echo $ventest | sed 's/,/) || defined(/g'`")" ;; 7336 esac 7337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7338/* end confdefs.h. */ 7339 7340int 7341main () 7342{ 7343 7344 #if !($vencpp) 7345 thisisanerror; 7346 #endif 7347 7348 ; 7349 return 0; 7350} 7351_ACEOF 7352if ac_fn_c_try_compile "$LINENO"; then : 7353 break 7354fi 7355rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7356 done 7357 ax_cv_c_compiler_vendor=`echo $vendor | cut -d: -f1` 7358 7359fi 7360{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_vendor" >&5 7361$as_echo "$ax_cv_c_compiler_vendor" >&6; } 7362 7363 7364 7365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 7366$as_echo_n "checking for C compiler version... " >&6; } 7367if ${ax_cv_c_compiler_version+:} false; then : 7368 $as_echo_n "(cached) " >&6 7369else 7370 case $ax_cv_c_compiler_vendor in #( 7371 intel) : 7372 if ac_fn_c_compute_int "$LINENO" "__INTEL_COMPILER/100" "_ax_c_compiler_version_major" ""; then : 7373 7374else 7375 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 7376$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 7377as_fn_error $? "_AX_COMPILER_VERSION_INTEL unknown intel compiler version 7378See \`config.log' for more details" "$LINENO" 5; } 7379fi 7380 7381 if ac_fn_c_compute_int "$LINENO" "(__INTEL_COMPILER%100)/10" "_ax_c_compiler_version_minor" ""; then : 7382 7383else 7384 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 7385$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 7386as_fn_error $? "_AX_COMPILER_VERSION_INTEL unknown intel compiler version 7387See \`config.log' for more details" "$LINENO" 5; } 7388fi 7389 7390 if ac_fn_c_compute_int "$LINENO" "(__INTEL_COMPILER%10)" "_ax_c_compiler_version_patch" ""; then : 7391 7392else 7393 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 7394$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 7395as_fn_error $? "_AX_COMPILER_VERSION_INTEL unknown intel compiler version 7396See \`config.log' for more details" "$LINENO" 5; } 7397fi 7398 7399 ax_cv_c_compiler_version="$_ax_c_compiler_version_major.$_ax_c_compiler_version_minor.$_ax_c_compiler_version_patch" 7400 ;; #( 7401 ibm) : 7402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7403/* end confdefs.h. */ 7404 7405 7406int 7407main () 7408{ 7409 7410 #if defined(__COMPILER_VER__) 7411 choke me; 7412 #endif 7413 7414 ; 7415 return 0; 7416} 7417_ACEOF 7418if ac_fn_c_try_compile "$LINENO"; then : 7419 7420 if ac_fn_c_compute_int "$LINENO" "__xlC__/100" "_ax_c_compiler_version_major" ""; then : 7421 7422else 7423 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 7424$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 7425as_fn_error $? "_AX_COMPILER_VERSION_IBM unknown IBM compiler major version 7426See \`config.log' for more details" "$LINENO" 5; } 7427fi 7428 7429 if ac_fn_c_compute_int "$LINENO" "__xlC__%100" "_ax_c_compiler_version_minor" ""; then : 7430 7431else 7432 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 7433$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 7434as_fn_error $? "_AX_COMPILER_VERSION_IBM unknown IBM compiler minor version 7435See \`config.log' for more details" "$LINENO" 5; } 7436fi 7437 7438 if ac_fn_c_compute_int "$LINENO" "__xlC_ver__/0x100" "_ax_c_compiler_version_patch" ""; then : 7439 7440else 7441 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 7442$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 7443as_fn_error $? "_AX_COMPILER_VERSION_IBM unknown IBM compiler patch version 7444See \`config.log' for more details" "$LINENO" 5; } 7445fi 7446 7447 if ac_fn_c_compute_int "$LINENO" "__xlC_ver__%0x100" "_ax_c_compiler_version_build" ""; then : 7448 7449else 7450 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 7451$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 7452as_fn_error $? "_AX_COMPILER_VERSION_IBM unknown IBM compiler build version 7453See \`config.log' for more details" "$LINENO" 5; } 7454fi 7455 7456 ax_cv_c_compiler_version="$_ax_c_compiler_version_major.$_ax_c_compiler_version_minor.$_ax_c_compiler_version_patch.$_ax_c_compiler_version_build" 7457 7458else 7459 7460 if ac_fn_c_compute_int "$LINENO" "__xlC__%1000" "_ax_c_compiler_version_patch" ""; then : 7461 7462else 7463 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 7464$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 7465as_fn_error $? "_AX_COMPILER_VERSION_IBM unknown IBM compiler patch version 7466See \`config.log' for more details" "$LINENO" 5; } 7467fi 7468 7469 if ac_fn_c_compute_int "$LINENO" "(__xlC__/10000)%10" "_ax_c_compiler_version_minor" ""; then : 7470 7471else 7472 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 7473$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 7474as_fn_error $? "_AX_COMPILER_VERSION_IBM unknown IBM compiler minor version 7475See \`config.log' for more details" "$LINENO" 5; } 7476fi 7477 7478 if ac_fn_c_compute_int "$LINENO" "(__xlC__/100000)%10" "_ax_c_compiler_version_major" ""; then : 7479 7480else 7481 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 7482$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 7483as_fn_error $? "_AX_COMPILER_VERSION_IBM unknown IBM compiler major version 7484See \`config.log' for more details" "$LINENO" 5; } 7485fi 7486 7487 ax_cv_c_compiler_version="$_ax_c_compiler_version_major.$_ax_c_compiler_version_minor.$_ax_c_compiler_version_patch" 7488 7489fi 7490rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7491 ;; #( 7492 pathscale) : 7493 7494 if ac_fn_c_compute_int "$LINENO" "__PATHCC__" "_ax_c_compiler_version_major" ""; then : 7495 7496else 7497 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 7498$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 7499as_fn_error $? "_AX_COMPILER_VERSION_PATHSCALE unknown pathscale major 7500See \`config.log' for more details" "$LINENO" 5; } 7501fi 7502 7503 if ac_fn_c_compute_int "$LINENO" "__PATHCC_MINOR__" "_ax_c_compiler_version_minor" ""; then : 7504 7505else 7506 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 7507$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 7508as_fn_error $? "_AX_COMPILER_VERSION_PATHSCALE unknown pathscale minor 7509See \`config.log' for more details" "$LINENO" 5; } 7510fi 7511 7512 if ac_fn_c_compute_int "$LINENO" "__PATHCC_PATCHLEVEL__" "_ax_c_compiler_version_patch" ""; then : 7513 7514else 7515 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 7516$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 7517as_fn_error $? "_AX_COMPILER_VERSION_PATHSCALE unknown pathscale patch level 7518See \`config.log' for more details" "$LINENO" 5; } 7519fi 7520 7521 ax_cv_c_compiler_version="$_ax_c_compiler_version_major.$_ax_c_compiler_version_minor.$_ax_c_compiler_version_patch" 7522 ;; #( 7523 clang) : 7524 7525 if ac_fn_c_compute_int "$LINENO" "__clang_major__" "_ax_c_compiler_version_major" ""; then : 7526 7527else 7528 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 7529$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 7530as_fn_error $? "_AX_COMPILER_VERSION_CLANG unknown clang major 7531See \`config.log' for more details" "$LINENO" 5; } 7532fi 7533 7534 if ac_fn_c_compute_int "$LINENO" "__clang_minor__" "_ax_c_compiler_version_minor" ""; then : 7535 7536else 7537 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 7538$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 7539as_fn_error $? "_AX_COMPILER_VERSION_CLANG unknown clang minor 7540See \`config.log' for more details" "$LINENO" 5; } 7541fi 7542 7543 if ac_fn_c_compute_int "$LINENO" "__clang_patchlevel__" "_ax_c_compiler_version_patch" ""; then : 7544 7545else 7546 0 7547fi 7548 7549 ax_cv_c_compiler_version="$_ax_c_compiler_version_major.$_ax_c_compiler_version_minor.$_ax_c_compiler_version_patch" 7550 ;; #( 7551 cray) : 7552 7553 if ac_fn_c_compute_int "$LINENO" "_RELEASE" "_ax_c_compiler_version_major" ""; then : 7554 7555else 7556 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 7557$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 7558as_fn_error $? "_AX_COMPILER_VERSION_CRAY unknown crayc release 7559See \`config.log' for more details" "$LINENO" 5; } 7560fi 7561 7562 if ac_fn_c_compute_int "$LINENO" "_RELEASE_MINOR" "_ax_c_compiler_version_minor" ""; then : 7563 7564else 7565 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 7566$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 7567as_fn_error $? "_AX_COMPILER_VERSION_CRAY unknown crayc minor 7568See \`config.log' for more details" "$LINENO" 5; } 7569fi 7570 7571 ax_cv_c_compiler_version="$_ax_c_compiler_version_major.$_ax_c_compiler_version_minor" 7572 ;; #( 7573 fujitsu) : 7574 7575 if ac_fn_c_compute_int "$LINENO" "__FCC_VERSION" "ax_cv_c_compiler_version" ""; then : 7576 7577else 7578 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 7579$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 7580as_fn_error $? "_AX_COMPILER_VERSION_FUJITSUunknown fujitsu release 7581See \`config.log' for more details" "$LINENO" 5; } 7582fi 7583 7584 ;; #( 7585 gnu) : 7586 7587 if ac_fn_c_compute_int "$LINENO" "__GNUC__" "_ax_c_compiler_version_major" ""; then : 7588 7589else 7590 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 7591$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 7592as_fn_error $? "_AX_COMPILER_VERSION_GNU unknown gcc major 7593See \`config.log' for more details" "$LINENO" 5; } 7594fi 7595 7596 if ac_fn_c_compute_int "$LINENO" "__GNUC_MINOR__" "_ax_c_compiler_version_minor" ""; then : 7597 7598else 7599 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 7600$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 7601as_fn_error $? "_AX_COMPILER_VERSION_GNU unknown gcc minor 7602See \`config.log' for more details" "$LINENO" 5; } 7603fi 7604 7605 if ac_fn_c_compute_int "$LINENO" "__GNUC_PATCHLEVEL__" "_ax_c_compiler_version_patch" ""; then : 7606 7607else 7608 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 7609$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 7610as_fn_error $? "_AX_COMPILER_VERSION_GNU unknown gcc patch level 7611See \`config.log' for more details" "$LINENO" 5; } 7612fi 7613 7614 ax_cv_c_compiler_version="$_ax_c_compiler_version_major.$_ax_c_compiler_version_minor.$_ax_c_compiler_version_patch" 7615 ;; #( 7616 sun) : 7617 7618 7619 if ac_fn_c_compute_int "$LINENO" "!!( 7620 #if defined(__SUNPRO_CC) 7621 __SUNPRO_CC 7622 #else 7623 __SUNPRO_C 7624 #endif 7625 < 0x1000)" "_ax_c_compiler_version_until59" ""; then : 7626 7627else 7628 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 7629$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 7630as_fn_error $? "_AX_COMPILER_VERSION_SUN unknown sun release version 7631See \`config.log' for more details" "$LINENO" 5; } 7632fi 7633 7634 if test "X$_ax_c_compiler_version_until59" = X1; then : 7635 if ac_fn_c_compute_int "$LINENO" " 7636 #if defined(__SUNPRO_CC) 7637 __SUNPRO_CC 7638 #else 7639 __SUNPRO_C 7640 #endif 7641 % 0x10" "_ax_c_compiler_version_patch" ""; then : 7642 7643else 7644 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 7645$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 7646as_fn_error $? "_AX_COMPILER_VERSION_SUN unknown sun patch version 7647See \`config.log' for more details" "$LINENO" 5; } 7648fi 7649 7650 if ac_fn_c_compute_int "$LINENO" "( 7651 #if defined(__SUNPRO_CC) 7652 __SUNPRO_CC 7653 #else 7654 __SUNPRO_C 7655 #endif 7656 / 0x10) % 0x10" "_ax_c_compiler_version_minor" ""; then : 7657 7658else 7659 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 7660$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 7661as_fn_error $? "_AX_COMPILER_VERSION_SUN unknown sun minor version 7662See \`config.log' for more details" "$LINENO" 5; } 7663fi 7664 7665 if ac_fn_c_compute_int "$LINENO" "( 7666 #if defined(__SUNPRO_CC) 7667 __SUNPRO_CC 7668 #else 7669 __SUNPRO_C 7670 #endif 7671 / 0x100)" "_ax_c_compiler_version_major" ""; then : 7672 7673else 7674 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 7675$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 7676as_fn_error $? "_AX_COMPILER_VERSION_SUN unknown sun major version 7677See \`config.log' for more details" "$LINENO" 5; } 7678fi 7679 7680 7681else 7682 if ac_fn_c_compute_int "$LINENO" " 7683 #if defined(__SUNPRO_CC) 7684 __SUNPRO_CC 7685 #else 7686 __SUNPRO_C 7687 #endif 7688 % 0x10" "_ax_c_compiler_version_patch" ""; then : 7689 7690else 7691 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 7692$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 7693as_fn_error $? "_AX_COMPILER_VERSION_SUN unknown sun patch version 7694See \`config.log' for more details" "$LINENO" 5; } 7695fi 7696 7697 if ac_fn_c_compute_int "$LINENO" "( 7698 #if defined(__SUNPRO_CC) 7699 __SUNPRO_CC 7700 #else 7701 __SUNPRO_C 7702 #endif 7703 / 0x100) % 0x100" "_ax_c_compiler_version_minor" ""; then : 7704 7705else 7706 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 7707$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 7708as_fn_error $? "_AX_COMPILER_VERSION_SUN unknown sun minor version 7709See \`config.log' for more details" "$LINENO" 5; } 7710fi 7711 7712 if ac_fn_c_compute_int "$LINENO" "( 7713 #if defined(__SUNPRO_CC) 7714 __SUNPRO_CC 7715 #else 7716 __SUNPRO_C 7717 #endif 7718 / 0x1000)" "_ax_c_compiler_version_major" ""; then : 7719 7720else 7721 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 7722$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 7723as_fn_error $? "_AX_COMPILER_VERSION_SUN unknown sun major version 7724See \`config.log' for more details" "$LINENO" 5; } 7725fi 7726 7727 7728fi 7729 ax_cv_c_compiler_version="$_ax_c_compiler_version_major.$_ax_c_compiler_version_minor.$_ax_c_compiler_version_patch" 7730 ;; #( 7731 hp) : 7732 7733 7734 if ac_fn_c_compute_int "$LINENO" "!!( 7735 #if defined(__HP_cc) 7736 __HP_cc 7737 #else 7738 __HP_aCC 7739 #endif 7740 <= 1)" "_ax_c_compiler_version_untilA0121" ""; then : 7741 7742else 7743 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 7744$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 7745as_fn_error $? "_AX_COMPILER_VERSION_HP unknown hp release version 7746See \`config.log' for more details" "$LINENO" 5; } 7747fi 7748 7749 if test "X$_ax_c_compiler_version_untilA0121" = X1; then : 7750 ax_cv_c_compiler_version="01.21.00" 7751 7752else 7753 if ac_fn_c_compute_int "$LINENO" "( 7754 #if defined(__HP_cc) 7755 __HP_cc 7756 #else 7757 __HP_aCC 7758 #endif 7759 % 100)" "_ax_c_compiler_version_patch" ""; then : 7760 7761else 7762 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 7763$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 7764as_fn_error $? "_AX_COMPILER_VERSION_HP unknown hp release version 7765See \`config.log' for more details" "$LINENO" 5; } 7766fi 7767 7768 if ac_fn_c_compute_int "$LINENO" "(( 7769 #if defined(__HP_cc) 7770 __HP_cc 7771 #else 7772 __HP_aCC 7773 #endif 7774 / 100)%100)" "_ax_c_compiler_version_minor" ""; then : 7775 7776else 7777 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 7778$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 7779as_fn_error $? "_AX_COMPILER_VERSION_HP unknown hp minor version 7780See \`config.log' for more details" "$LINENO" 5; } 7781fi 7782 7783 if ac_fn_c_compute_int "$LINENO" "(( 7784 #if defined(__HP_cc) 7785 __HP_cc 7786 #else 7787 __HP_aCC 7788 #endif 7789 / 10000)%100)" "_ax_c_compiler_version_major" ""; then : 7790 7791else 7792 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 7793$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 7794as_fn_error $? "_AX_COMPILER_VERSION_HP unknown hp major version 7795See \`config.log' for more details" "$LINENO" 5; } 7796fi 7797 7798 ax_cv_c_compiler_version="$_ax_c_compiler_version_major.$_ax_c_compiler_version_minor.$_ax_c_compiler_version_patch" 7799 7800fi 7801 ;; #( 7802 dec) : 7803 7804 if ac_fn_c_compute_int "$LINENO" "( 7805 #if defined(__DECC_VER) 7806 __DECC_VER 7807 #else 7808 __DECCXX_VER 7809 #endif 7810 % 10000)" "_ax_c_compiler_version_patch" ""; then : 7811 7812else 7813 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 7814$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 7815as_fn_error $? "_AX_COMPILER_VERSION_DEC unknown dec release version 7816See \`config.log' for more details" "$LINENO" 5; } 7817fi 7818 7819 if ac_fn_c_compute_int "$LINENO" "(( 7820 #if defined(__DECC_VER) 7821 __DECC_VER 7822 #else 7823 __DECCXX_VER 7824 #endif 7825 / 100000UL)%100)" "_ax_c_compiler_version_minor" ""; then : 7826 7827else 7828 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 7829$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 7830as_fn_error $? "_AX_COMPILER_VERSION_DEC unknown dec minor version 7831See \`config.log' for more details" "$LINENO" 5; } 7832fi 7833 7834 if ac_fn_c_compute_int "$LINENO" "(( 7835 #if defined(__DECC_VER) 7836 __DECC_VER 7837 #else 7838 __DECCXX_VER 7839 #endif 7840 / 10000000UL)%100)" "_ax_c_compiler_version_major" ""; then : 7841 7842else 7843 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 7844$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 7845as_fn_error $? "_AX_COMPILER_VERSION_DEC unknown dec major version 7846See \`config.log' for more details" "$LINENO" 5; } 7847fi 7848 7849 ax_cv_c_compiler_version="$_ax_c_compiler_version_major.$_ax_c_compiler_version_minor.$_ax_c_compiler_version_patch" 7850 ;; #( 7851 borland) : 7852 7853 7854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7855/* end confdefs.h. */ 7856 7857int 7858main () 7859{ 7860 7861 #if defined(__TURBOC__) 7862 __TURBOC__ 7863 #else 7864 choke me 7865 #endif 7866 7867 ; 7868 return 0; 7869} 7870_ACEOF 7871if ac_fn_c_try_compile "$LINENO"; then : 7872 if ac_fn_c_compute_int "$LINENO" " 7873 #if defined(__TURBOC__) 7874 __TURBOC__ 7875 #else 7876 choke me 7877 #endif 7878 " "_ax_c_compiler_version_turboc_raw" ""; then : 7879 7880else 7881 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 7882$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 7883as_fn_error $? "_AX_COMPILER_VERSION_BORLAND unknown turboc version 7884See \`config.log' for more details" "$LINENO" 5; } 7885fi 7886 7887 if test $_ax_c_compiler_version_turboc_raw -lt 661 || test $_ax_c_compiler_version_turboc_raw -gt 1023; then : 7888 if ac_fn_c_compute_int "$LINENO" " 7889 #if defined(__TURBOC__) 7890 __TURBOC__ 7891 #else 7892 choke me 7893 #endif 7894 % 0x100" "_ax_c_compiler_version_minor" ""; then : 7895 7896else 7897 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 7898$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 7899as_fn_error $? "_AX_COMPILER_VERSION_BORLAND unknown turboc minor version 7900See \`config.log' for more details" "$LINENO" 5; } 7901fi 7902 7903 if ac_fn_c_compute_int "$LINENO" "( 7904 #if defined(__TURBOC__) 7905 __TURBOC__ 7906 #else 7907 choke me 7908 #endif 7909 /0x100)%0x100" "_ax_c_compiler_version_major" ""; then : 7910 7911else 7912 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 7913$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 7914as_fn_error $? "_AX_COMPILER_VERSION_BORLAND unknown turboc major version 7915See \`config.log' for more details" "$LINENO" 5; } 7916fi 7917 7918 ax_cv_c_compiler_version="0turboc:$_ax_c_compiler_version_major.$_ax_c_compiler_version_minor" 7919else 7920 case $_ax_c_compiler_version_turboc_raw in #( 7921 661) : 7922 ax_cv_c_compiler_version="0turboc:1.00" ;; #( 7923 662) : 7924 ax_cv_c_compiler_version="0turboc:1.01" ;; #( 7925 663) : 7926 ax_cv_c_compiler_version="0turboc:2.00" ;; #( 7927 *) : 7928 7929 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: [_AX_COMPILER_VERSION_BORLAND] unknown turboc version between 0x295 and 0x400 please report bug" >&5 7930$as_echo "$as_me: WARNING: [_AX_COMPILER_VERSION_BORLAND] unknown turboc version between 0x295 and 0x400 please report bug" >&2;} 7931 ax_cv_c_compiler_version="" 7932 ;; 7933esac 7934 7935fi 7936 7937else 7938 # borlandc 7939 7940 if ac_fn_c_compute_int "$LINENO" " 7941 #if defined(__BORLANDC__) 7942 __BORLANDC__ 7943 #else 7944 __CODEGEARC__ 7945 #endif 7946 " "_ax_c_compiler_version_borlandc_raw" ""; then : 7947 7948else 7949 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 7950$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 7951as_fn_error $? "_AX_COMPILER_VERSION_BORLAND unknown borlandc version 7952See \`config.log' for more details" "$LINENO" 5; } 7953fi 7954 7955 case $_ax_c_compiler_version_borlandc_raw in #( 7956 512 ) : 7957 ax_cv_c_compiler_version="1borlanc:2.00" ;; #( 7958 1024) : 7959 ax_cv_c_compiler_version="1borlanc:3.00" ;; #( 7960 1024) : 7961 ax_cv_c_compiler_version="1borlanc:3.00" ;; #( 7962 1040) : 7963 ax_cv_c_compiler_version="1borlanc:3.1" ;; #( 7964 1106) : 7965 ax_cv_c_compiler_version="1borlanc:4.0" ;; #( 7966 1280) : 7967 ax_cv_c_compiler_version="1borlanc:5.0" ;; #( 7968 1312) : 7969 ax_cv_c_compiler_version="1borlanc:5.02" ;; #( 7970 1328) : 7971 ax_cv_c_compiler_version="2cppbuilder:3.0" ;; #( 7972 1344) : 7973 ax_cv_c_compiler_version="2cppbuilder:4.0" ;; #( 7974 1360) : 7975 ax_cv_c_compiler_version="3borlancpp:5.5" ;; #( 7976 1361) : 7977 ax_cv_c_compiler_version="3borlancpp:5.51" ;; #( 7978 1378) : 7979 ax_cv_c_compiler_version="3borlancpp:5.6.4" ;; #( 7980 1392) : 7981 ax_cv_c_compiler_version="4cppbuilder:2006" ;; #( 7982 1424) : 7983 ax_cv_c_compiler_version="4cppbuilder:2007" ;; #( 7984 1555) : 7985 ax_cv_c_compiler_version="4cppbuilder:2009" ;; #( 7986 1569) : 7987 ax_cv_c_compiler_version="4cppbuilder:2010" ;; #( 7988 1584) : 7989 ax_cv_c_compiler_version="5xe" ;; #( 7990 1600) : 7991 ax_cv_c_compiler_version="5xe:2" ;; #( 7992 1616) : 7993 ax_cv_c_compiler_version="5xe:3" ;; #( 7994 1632) : 7995 ax_cv_c_compiler_version="5xe:4" ;; #( 7996 *) : 7997 7998 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: [_AX_COMPILER_VERSION_BORLAND] Unknown borlandc compiler version $_ax_c_compiler_version_borlandc_raw please report bug" >&5 7999$as_echo "$as_me: WARNING: [_AX_COMPILER_VERSION_BORLAND] Unknown borlandc compiler version $_ax_c_compiler_version_borlandc_raw please report bug" >&2;} 8000 ;; 8001esac 8002 8003fi 8004rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8005 ;; #( 8006 comeau) : 8007 if ac_fn_c_compute_int "$LINENO" "__COMO_VERSION__%100" "_ax_c_compiler_version_minor" ""; then : 8008 8009else 8010 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 8011$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 8012as_fn_error $? "_AX_COMPILER_VERSION_COMEAU unknown comeau compiler minor version 8013See \`config.log' for more details" "$LINENO" 5; } 8014fi 8015 8016 if ac_fn_c_compute_int "$LINENO" "(__COMO_VERSION__/100)%10" "_ax_c_compiler_version_major" ""; then : 8017 8018else 8019 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 8020$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 8021as_fn_error $? "_AX_COMPILER_VERSION_COMEAU unknown comeau compiler major version 8022See \`config.log' for more details" "$LINENO" 5; } 8023fi 8024 8025 ax_cv_c_compiler_version="$_ax_c_compiler_version_major.$_ax_c_compiler_version_minor" 8026 ;; #( 8027 kai) : 8028 8029 if ac_fn_c_compute_int "$LINENO" "__KCC_VERSION%100" "_ax_c_compiler_version_patch" ""; then : 8030 8031else 8032 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 8033$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 8034as_fn_error $? "_AX_COMPILER_VERSION_KAI unknown kay compiler patch version 8035See \`config.log' for more details" "$LINENO" 5; } 8036fi 8037 8038 if ac_fn_c_compute_int "$LINENO" "(__KCC_VERSION/100)%10" "_ax_c_compiler_version_minor" ""; then : 8039 8040else 8041 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 8042$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 8043as_fn_error $? "_AX_COMPILER_VERSION_KAI unknown kay compiler minor version 8044See \`config.log' for more details" "$LINENO" 5; } 8045fi 8046 8047 if ac_fn_c_compute_int "$LINENO" "(__KCC_VERSION/1000)%10" "_ax_c_compiler_version_major" ""; then : 8048 8049else 8050 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 8051$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 8052as_fn_error $? "_AX_COMPILER_VERSION_KAI unknown kay compiler major version 8053See \`config.log' for more details" "$LINENO" 5; } 8054fi 8055 8056 ax_cv_c_compiler_version="$_ax_c_compiler_version_major.$_ax_c_compiler_version_minor.$_ax_c_compiler_version_patch" 8057 ;; #( 8058 sgi) : 8059 8060 8061 if ac_fn_c_compute_int "$LINENO" " 8062 #if defined(_COMPILER_VERSION) 8063 _COMPILER_VERSION 8064 #else 8065 _SGI_COMPILER_VERSION 8066 #endif 8067 %10" "_ax_c_compiler_version_patch" ""; then : 8068 8069else 8070 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 8071$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 8072as_fn_error $? "_AX_COMPILER_VERSION_SGI unknown SGI compiler patch version 8073See \`config.log' for more details" "$LINENO" 5; } 8074fi 8075 8076 if ac_fn_c_compute_int "$LINENO" "( 8077 #if defined(_COMPILER_VERSION) 8078 _COMPILER_VERSION 8079 #else 8080 _SGI_COMPILER_VERSION 8081 #endif 8082 /10)%10" "_ax_c_compiler_version_minor" ""; then : 8083 8084else 8085 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 8086$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 8087as_fn_error $? "_AX_COMPILER_VERSION_SGI unknown SGI compiler minor version 8088See \`config.log' for more details" "$LINENO" 5; } 8089fi 8090 8091 if ac_fn_c_compute_int "$LINENO" "( 8092 #if defined(_COMPILER_VERSION) 8093 _COMPILER_VERSION 8094 #else 8095 _SGI_COMPILER_VERSION 8096 #endif 8097 /100)%10" "_ax_c_compiler_version_major" ""; then : 8098 8099else 8100 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 8101$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 8102as_fn_error $? "_AX_COMPILER_VERSION_SGI unknown SGI compiler major version 8103See \`config.log' for more details" "$LINENO" 5; } 8104fi 8105 8106 ax_cv_c_compiler_version="$_ax_c_compiler_version_major.$_ax_c_compiler_version_minor.$_ax_c_compiler_version_patch" 8107 ;; #( 8108 microsoft) : 8109 8110 if ac_fn_c_compute_int "$LINENO" "_MSC_VER%100" "_ax_c_compiler_version_minor" ""; then : 8111 8112else 8113 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 8114$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 8115as_fn_error $? "_AX_COMPILER_VERSION_MICROSOFT unknown microsoft compiler minor version 8116See \`config.log' for more details" "$LINENO" 5; } 8117fi 8118 8119 if ac_fn_c_compute_int "$LINENO" "(_MSC_VER/100)%100" "_ax_c_compiler_version_major" ""; then : 8120 8121else 8122 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 8123$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 8124as_fn_error $? "_AX_COMPILER_VERSION_MICROSOFT unknown microsoft compiler major version 8125See \`config.log' for more details" "$LINENO" 5; } 8126fi 8127 8128 _ax_c_compiler_version_patch=0 8129 _ax_c_compiler_version_build=0 8130 # special case for version 6 8131 if test "X$_ax_c_compiler_version_major" = "X12"; then : 8132 if ac_fn_c_compute_int "$LINENO" "_MSC_FULL_VER%1000" "_ax_c_compiler_version_patch" ""; then : 8133 8134else 8135 _ax_c_compiler_version_patch=0 8136fi 8137 8138fi 8139 # for version 7 8140 if test "X$_ax_c_compiler_version_major" = "X13"; then : 8141 if ac_fn_c_compute_int "$LINENO" "_MSC_FULL_VER%1000" "_ax_c_compiler_version_patch" ""; then : 8142 8143else 8144 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 8145$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 8146as_fn_error $? "_AX_COMPILER_VERSION_MICROSOFT unknown microsoft compiler patch version 8147See \`config.log' for more details" "$LINENO" 5; } 8148fi 8149 8150 8151fi 8152 # for version > 8 8153 if test $_ax_c_compiler_version_major -ge 14; then : 8154 if ac_fn_c_compute_int "$LINENO" "_MSC_FULL_VER%10000" "_ax_c_compiler_version_patch" ""; then : 8155 8156else 8157 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 8158$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 8159as_fn_error $? "_AX_COMPILER_VERSION_MICROSOFT unknown microsoft compiler patch version 8160See \`config.log' for more details" "$LINENO" 5; } 8161fi 8162 8163 8164fi 8165 if test $_ax_c_compiler_version_major -ge 15; then : 8166 if ac_fn_c_compute_int "$LINENO" "_MSC_BUILD" "_ax_c_compiler_version_build" ""; then : 8167 8168else 8169 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 8170$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 8171as_fn_error $? "_AX_COMPILER_VERSION_MICROSOFT unknown microsoft compiler build version 8172See \`config.log' for more details" "$LINENO" 5; } 8173fi 8174 8175 8176fi 8177 ax_cv_c_compiler_version="$_ax_c_compiler_version_major.$_ax_c_compiler_version_minor.$_ax_c_compiler_version_patch.$_ax_c_compiler_version_build" 8178 ;; #( 8179 metrowerks) : 8180 if ac_fn_c_compute_int "$LINENO" "__MWERKS__%0x100" "_ax_c_compiler_version_patch" ""; then : 8181 8182else 8183 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 8184$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 8185as_fn_error $? "_AX_COMPILER_VERSION_METROWERKS unknown metrowerks compiler patch version 8186See \`config.log' for more details" "$LINENO" 5; } 8187fi 8188 8189 if ac_fn_c_compute_int "$LINENO" "(__MWERKS__/0x100)%0x10" "_ax_c_compiler_version_minor" ""; then : 8190 8191else 8192 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 8193$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 8194as_fn_error $? "_AX_COMPILER_VERSION_METROWERKS unknown metrowerks compiler minor version 8195See \`config.log' for more details" "$LINENO" 5; } 8196fi 8197 8198 if ac_fn_c_compute_int "$LINENO" "(__MWERKS__/0x1000)%0x10" "_ax_c_compiler_version_major" ""; then : 8199 8200else 8201 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 8202$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 8203as_fn_error $? "_AX_COMPILER_VERSION_METROWERKS unknown metrowerks compiler major version 8204See \`config.log' for more details" "$LINENO" 5; } 8205fi 8206 8207 ax_cv_c_compiler_version="$_ax_c_compiler_version_major.$_ax_c_compiler_version_minor.$_ax_c_compiler_version_patch" 8208 ;; #( 8209 watcom) : 8210 if ac_fn_c_compute_int "$LINENO" "__WATCOMC__%100" "_ax_c_compiler_version_minor" ""; then : 8211 8212else 8213 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 8214$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 8215as_fn_error $? "_AX_COMPILER_VERSION_WATCOM unknown watcom compiler minor version 8216See \`config.log' for more details" "$LINENO" 5; } 8217fi 8218 8219 if ac_fn_c_compute_int "$LINENO" "(__WATCOMC__/100)%100" "_ax_c_compiler_version_major" ""; then : 8220 8221else 8222 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 8223$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 8224as_fn_error $? "_AX_COMPILER_VERSION_WATCOM unknown watcom compiler major version 8225See \`config.log' for more details" "$LINENO" 5; } 8226fi 8227 8228 ax_cv_c_compiler_version="$_ax_c_compiler_version_major.$_ax_c_compiler_version_minor" 8229 ;; #( 8230 portland) : 8231 8232 if ac_fn_c_compute_int "$LINENO" "__PGIC__" "_ax_c_compiler_version_major" ""; then : 8233 8234else 8235 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 8236$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 8237as_fn_error $? "_AX_COMPILER_VERSION_PORTLAND unknown pgi major 8238See \`config.log' for more details" "$LINENO" 5; } 8239fi 8240 8241 if ac_fn_c_compute_int "$LINENO" "__PGIC_MINOR__" "_ax_c_compiler_version_minor" ""; then : 8242 8243else 8244 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 8245$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 8246as_fn_error $? "_AX_COMPILER_VERSION_PORTLAND unknown pgi minor 8247See \`config.log' for more details" "$LINENO" 5; } 8248fi 8249 8250 if ac_fn_c_compute_int "$LINENO" "__PGIC_PATCHLEVEL__" "_ax_c_compiler_version_patch" ""; then : 8251 8252else 8253 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 8254$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 8255as_fn_error $? "_AX_COMPILER_VERSION_PORTLAND unknown pgi patch level 8256See \`config.log' for more details" "$LINENO" 5; } 8257fi 8258 8259 ax_cv_c_compiler_version="$_ax_c_compiler_version_major.$_ax_c_compiler_version_minor.$_ax_c_compiler_version_patch" 8260 ;; #( 8261 tcc) : 8262 8263 ax_cv_c_compiler_version=`tcc -v | $SED 's/^[ ]*tcc[ ]\+version[ ]\+\([0-9.]\+\).*/\1/g'` 8264 ;; #( 8265 sdcc) : 8266 8267 if ac_fn_c_compute_int "$LINENO" "/* avoid parse error with comments */ 8268 #if(defined(__SDCC_VERSION_MAJOR)) 8269 __SDCC_VERSION_MAJOR 8270 #else 8271 SDCC/100 8272 #endif 8273 " "_ax_c_compiler_version_major" ""; then : 8274 8275else 8276 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 8277$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 8278as_fn_error $? "_AX_COMPILER_VERSION_SDCC unknown sdcc major 8279See \`config.log' for more details" "$LINENO" 5; } 8280fi 8281 8282 if ac_fn_c_compute_int "$LINENO" "/* avoid parse error with comments */ 8283 #if(defined(__SDCC_VERSION_MINOR)) 8284 __SDCC_VERSION_MINOR 8285 #else 8286 (SDCC%100)/10 8287 #endif 8288 " "_ax_c_compiler_version_minor" ""; then : 8289 8290else 8291 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 8292$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 8293as_fn_error $? "_AX_COMPILER_VERSION_SDCC unknown sdcc minor 8294See \`config.log' for more details" "$LINENO" 5; } 8295fi 8296 8297 if ac_fn_c_compute_int "$LINENO" " 8298 /* avoid parse error with comments */ 8299 #if(defined(__SDCC_VERSION_PATCH)) 8300 __SDCC_VERSION_PATCH 8301 #elsif(defined(_SDCC_VERSION_PATCHLEVEL)) 8302 __SDCC_VERSION_PATCHLEVEL 8303 #else 8304 SDCC%10 8305 #endif 8306 " "_ax_c_compiler_version_patch" ""; then : 8307 8308else 8309 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 8310$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 8311as_fn_error $? "_AX_COMPILER_VERSION_SDCC unknown sdcc patch level 8312See \`config.log' for more details" "$LINENO" 5; } 8313fi 8314 8315 ax_cv_c_compiler_version="$_ax_c_compiler_version_major.$_ax_c_compiler_version_minor.$_ax_c_compiler_version_patch" 8316 ;; #( 8317 *) : 8318 ax_cv_c_compiler_version="" ;; 8319esac 8320 8321fi 8322{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_version" >&5 8323$as_echo "$ax_cv_c_compiler_version" >&6; } 8324 8325{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler vendor" >&5 8326$as_echo_n "checking for C compiler vendor... " >&6; } 8327if ${ax_cv_c_compiler_vendor+:} false; then : 8328 $as_echo_n "(cached) " >&6 8329else 8330 # note: don't check for gcc first since some other compilers define __GNUC__ 8331 vendors="intel: __ICC,__ECC,__INTEL_COMPILER 8332 ibm: __xlc__,__xlC__,__IBMC__,__IBMCPP__ 8333 pathscale: __PATHCC__,__PATHSCALE__ 8334 clang: __clang__ 8335 cray: _CRAYC 8336 fujitsu: __FUJITSU 8337 sdcc: SDCC, __SDCC 8338 gnu: __GNUC__ 8339 sun: __SUNPRO_C,__SUNPRO_CC 8340 hp: __HP_cc,__HP_aCC 8341 dec: __DECC,__DECCXX,__DECC_VER,__DECCXX_VER 8342 borland: __BORLANDC__,__CODEGEARC__,__TURBOC__ 8343 comeau: __COMO__ 8344 kai: __KCC 8345 lcc: __LCC__ 8346 sgi: __sgi,sgi 8347 microsoft: _MSC_VER 8348 metrowerks: __MWERKS__ 8349 watcom: __WATCOMC__ 8350 portland: __PGI 8351 tcc: __TINYC__ 8352 unknown: UNKNOWN" 8353 for ventest in $vendors; do 8354 case $ventest in 8355 *:) vendor=$ventest; continue ;; 8356 *) vencpp="defined("`echo $ventest | sed 's/,/) || defined(/g'`")" ;; 8357 esac 8358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8359/* end confdefs.h. */ 8360 8361int 8362main () 8363{ 8364 8365 #if !($vencpp) 8366 thisisanerror; 8367 #endif 8368 8369 ; 8370 return 0; 8371} 8372_ACEOF 8373if ac_fn_c_try_compile "$LINENO"; then : 8374 break 8375fi 8376rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8377 done 8378 ax_cv_c_compiler_vendor=`echo $vendor | cut -d: -f1` 8379 8380fi 8381{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_vendor" >&5 8382$as_echo "$ax_cv_c_compiler_vendor" >&6; } 8383 8384 8385 8386cat >>confdefs.h <<_ACEOF 8387#define COMPILER_VERSION "$ax_cv_c_compiler_version" 8388_ACEOF 8389 8390 8391cat >>confdefs.h <<_ACEOF 8392#define COMPILER_VENDOR "$ax_cv_c_compiler_vendor" 8393_ACEOF 8394 8395 8396case $ax_cv_c_compiler_vendor in #( 8397 gnu) : 8398 8399$as_echo "#define COMPILER \"GCC\"" >>confdefs.h 8400 ;; #( 8401 *) : 8402 8403$as_echo "#define COMPILER /**/" >>confdefs.h 8404 8405 ;; 8406esac 8407 8408 8409for ac_prog in perl 8410do 8411 # Extract the first word of "$ac_prog", so it can be a program name with args. 8412set dummy $ac_prog; ac_word=$2 8413{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8414$as_echo_n "checking for $ac_word... " >&6; } 8415if ${ac_cv_prog_PERL+:} false; then : 8416 $as_echo_n "(cached) " >&6 8417else 8418 if test -n "$PERL"; then 8419 ac_cv_prog_PERL="$PERL" # Let the user override the test. 8420else 8421as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8422for as_dir in $PATH 8423do 8424 IFS=$as_save_IFS 8425 test -z "$as_dir" && as_dir=. 8426 for ac_exec_ext in '' $ac_executable_extensions; do 8427 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8428 ac_cv_prog_PERL="$ac_prog" 8429 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8430 break 2 8431 fi 8432done 8433 done 8434IFS=$as_save_IFS 8435 8436fi 8437fi 8438PERL=$ac_cv_prog_PERL 8439if test -n "$PERL"; then 8440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5 8441$as_echo "$PERL" >&6; } 8442else 8443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8444$as_echo "no" >&6; } 8445fi 8446 8447 8448 test -n "$PERL" && break 8449done 8450 8451 if test "x$ac_cv_prog_PERL" != "x"; then 8452 USE_PERL_TRUE= 8453 USE_PERL_FALSE='#' 8454else 8455 USE_PERL_TRUE='#' 8456 USE_PERL_FALSE= 8457fi 8458 8459 8460# Extract the first word of "asciidoc", so it can be a program name with args. 8461set dummy asciidoc; ac_word=$2 8462{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8463$as_echo_n "checking for $ac_word... " >&6; } 8464if ${ac_cv_path_ASCIIDOC+:} false; then : 8465 $as_echo_n "(cached) " >&6 8466else 8467 case $ASCIIDOC in 8468 [\\/]* | ?:[\\/]*) 8469 ac_cv_path_ASCIIDOC="$ASCIIDOC" # Let the user override the test with a path. 8470 ;; 8471 *) 8472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8473for as_dir in $PATH 8474do 8475 IFS=$as_save_IFS 8476 test -z "$as_dir" && as_dir=. 8477 for ac_exec_ext in '' $ac_executable_extensions; do 8478 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8479 ac_cv_path_ASCIIDOC="$as_dir/$ac_word$ac_exec_ext" 8480 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8481 break 2 8482 fi 8483done 8484 done 8485IFS=$as_save_IFS 8486 8487 test -z "$ac_cv_path_ASCIIDOC" && ac_cv_path_ASCIIDOC="none" 8488 ;; 8489esac 8490fi 8491ASCIIDOC=$ac_cv_path_ASCIIDOC 8492if test -n "$ASCIIDOC"; then 8493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ASCIIDOC" >&5 8494$as_echo "$ASCIIDOC" >&6; } 8495else 8496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8497$as_echo "no" >&6; } 8498fi 8499 8500 8501for ac_prog in a2x a2x.py 8502do 8503 # Extract the first word of "$ac_prog", so it can be a program name with args. 8504set dummy $ac_prog; ac_word=$2 8505{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8506$as_echo_n "checking for $ac_word... " >&6; } 8507if ${ac_cv_path_A2X+:} false; then : 8508 $as_echo_n "(cached) " >&6 8509else 8510 case $A2X in 8511 [\\/]* | ?:[\\/]*) 8512 ac_cv_path_A2X="$A2X" # Let the user override the test with a path. 8513 ;; 8514 *) 8515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8516for as_dir in $PATH 8517do 8518 IFS=$as_save_IFS 8519 test -z "$as_dir" && as_dir=. 8520 for ac_exec_ext in '' $ac_executable_extensions; do 8521 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8522 ac_cv_path_A2X="$as_dir/$ac_word$ac_exec_ext" 8523 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8524 break 2 8525 fi 8526done 8527 done 8528IFS=$as_save_IFS 8529 8530 ;; 8531esac 8532fi 8533A2X=$ac_cv_path_A2X 8534if test -n "$A2X"; then 8535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $A2X" >&5 8536$as_echo "$A2X" >&6; } 8537else 8538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8539$as_echo "no" >&6; } 8540fi 8541 8542 8543 test -n "$A2X" && break 8544done 8545test -n "$A2X" || A2X="none" 8546 8547 8548 if test "x$asciidoc" = "xtrue"; then 8549 USE_ASCIIDOC_TRUE= 8550 USE_ASCIIDOC_FALSE='#' 8551else 8552 USE_ASCIIDOC_TRUE='#' 8553 USE_ASCIIDOC_FALSE= 8554fi 8555 8556 if test "x$enable_manpage" != "xno"; then 8557 BUILD_MANPAGE_TRUE= 8558 BUILD_MANPAGE_FALSE='#' 8559else 8560 BUILD_MANPAGE_TRUE='#' 8561 BUILD_MANPAGE_FALSE= 8562fi 8563 8564 if test "x$enable_html_manual" != "xno"; then 8565 BUILD_HTML_DOCS_TRUE= 8566 BUILD_HTML_DOCS_FALSE='#' 8567else 8568 BUILD_HTML_DOCS_TRUE='#' 8569 BUILD_HTML_DOCS_FALSE= 8570fi 8571 8572 8573 8574 8575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 8576$as_echo_n "checking for $CC option to accept ISO C99... " >&6; } 8577if ${ac_cv_prog_cc_c99+:} false; then : 8578 $as_echo_n "(cached) " >&6 8579else 8580 ac_cv_prog_cc_c99=no 8581ac_save_CC=$CC 8582cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8583/* end confdefs.h. */ 8584#include <stdarg.h> 8585#include <stdbool.h> 8586#include <stdlib.h> 8587#include <wchar.h> 8588#include <stdio.h> 8589 8590// Check varargs macros. These examples are taken from C99 6.10.3.5. 8591#define debug(...) fprintf (stderr, __VA_ARGS__) 8592#define showlist(...) puts (#__VA_ARGS__) 8593#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 8594static void 8595test_varargs_macros (void) 8596{ 8597 int x = 1234; 8598 int y = 5678; 8599 debug ("Flag"); 8600 debug ("X = %d\n", x); 8601 showlist (The first, second, and third items.); 8602 report (x>y, "x is %d but y is %d", x, y); 8603} 8604 8605// Check long long types. 8606#define BIG64 18446744073709551615ull 8607#define BIG32 4294967295ul 8608#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 8609#if !BIG_OK 8610 your preprocessor is broken; 8611#endif 8612#if BIG_OK 8613#else 8614 your preprocessor is broken; 8615#endif 8616static long long int bignum = -9223372036854775807LL; 8617static unsigned long long int ubignum = BIG64; 8618 8619struct incomplete_array 8620{ 8621 int datasize; 8622 double data[]; 8623}; 8624 8625struct named_init { 8626 int number; 8627 const wchar_t *name; 8628 double average; 8629}; 8630 8631typedef const char *ccp; 8632 8633static inline int 8634test_restrict (ccp restrict text) 8635{ 8636 // See if C++-style comments work. 8637 // Iterate through items via the restricted pointer. 8638 // Also check for declarations in for loops. 8639 for (unsigned int i = 0; *(text+i) != '\0'; ++i) 8640 continue; 8641 return 0; 8642} 8643 8644// Check varargs and va_copy. 8645static void 8646test_varargs (const char *format, ...) 8647{ 8648 va_list args; 8649 va_start (args, format); 8650 va_list args_copy; 8651 va_copy (args_copy, args); 8652 8653 const char *str; 8654 int number; 8655 float fnumber; 8656 8657 while (*format) 8658 { 8659 switch (*format++) 8660 { 8661 case 's': // string 8662 str = va_arg (args_copy, const char *); 8663 break; 8664 case 'd': // int 8665 number = va_arg (args_copy, int); 8666 break; 8667 case 'f': // float 8668 fnumber = va_arg (args_copy, double); 8669 break; 8670 default: 8671 break; 8672 } 8673 } 8674 va_end (args_copy); 8675 va_end (args); 8676} 8677 8678int 8679main () 8680{ 8681 8682 // Check bool. 8683 _Bool success = false; 8684 8685 // Check restrict. 8686 if (test_restrict ("String literal") == 0) 8687 success = true; 8688 char *restrict newvar = "Another string"; 8689 8690 // Check varargs. 8691 test_varargs ("s, d' f .", "string", 65, 34.234); 8692 test_varargs_macros (); 8693 8694 // Check flexible array members. 8695 struct incomplete_array *ia = 8696 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 8697 ia->datasize = 10; 8698 for (int i = 0; i < ia->datasize; ++i) 8699 ia->data[i] = i * 1.234; 8700 8701 // Check named initializers. 8702 struct named_init ni = { 8703 .number = 34, 8704 .name = L"Test wide string", 8705 .average = 543.34343, 8706 }; 8707 8708 ni.number = 58; 8709 8710 int dynamic_array[ni.number]; 8711 dynamic_array[ni.number - 1] = 543; 8712 8713 // work around unused variable warnings 8714 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' 8715 || dynamic_array[ni.number - 1] != 543); 8716 8717 ; 8718 return 0; 8719} 8720_ACEOF 8721for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99 8722do 8723 CC="$ac_save_CC $ac_arg" 8724 if ac_fn_c_try_compile "$LINENO"; then : 8725 ac_cv_prog_cc_c99=$ac_arg 8726fi 8727rm -f core conftest.err conftest.$ac_objext 8728 test "x$ac_cv_prog_cc_c99" != "xno" && break 8729done 8730rm -f conftest.$ac_ext 8731CC=$ac_save_CC 8732 8733fi 8734# AC_CACHE_VAL 8735case "x$ac_cv_prog_cc_c99" in 8736 x) 8737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 8738$as_echo "none needed" >&6; } ;; 8739 xno) 8740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 8741$as_echo "unsupported" >&6; } ;; 8742 *) 8743 CC="$CC $ac_cv_prog_cc_c99" 8744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 8745$as_echo "$ac_cv_prog_cc_c99" >&6; } ;; 8746esac 8747if test "x$ac_cv_prog_cc_c99" != xno; then : 8748 8749fi 8750 8751 8752 8753{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python 3" >&5 8754$as_echo_n "checking for Python 3... " >&6; } 8755if ${tor_cv_PYTHON+:} false; then : 8756 $as_echo_n "(cached) " >&6 8757else 8758 if test -z "$PYTHON"; then 8759 ac_path_PYTHON_found=false 8760 # Loop through the user's path and test for each of PROGNAME-LIST 8761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8762for as_dir in $PATH 8763do 8764 IFS=$as_save_IFS 8765 test -z "$as_dir" && as_dir=. 8766 for ac_prog in \ 8767 python3 \ 8768 python3.8 python3.7 python3.6 python3.5 python3.4 \ 8769 python ; do 8770 for ac_exec_ext in '' $ac_executable_extensions; do 8771 ac_path_PYTHON="$as_dir/$ac_prog$ac_exec_ext" 8772 as_fn_executable_p "$ac_path_PYTHON" || continue 8773"$ac_path_PYTHON" -c 'import sys; sys.exit(sys.version_info[0]<3)' && tor_cv_PYTHON="$ac_path_PYTHON" ac_path_PYTHON_found=: 8774 $ac_path_PYTHON_found && break 3 8775 done 8776 done 8777 done 8778IFS=$as_save_IFS 8779 if test -z "$ac_cv_path_PYTHON"; then 8780 : 8781 fi 8782else 8783 ac_cv_path_PYTHON=$PYTHON 8784fi 8785 8786fi 8787{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_PYTHON" >&5 8788$as_echo "$tor_cv_PYTHON" >&6; } 8789PYTHON=$tor_cv_PYTHON 8790 8791 8792PYTHON="$tor_cv_PYTHON" 8793 8794if test "x$PYTHON" = "x"; then 8795 tor_incr_n_warnings 8796 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Python 3 unavailable; some tests will not be run." >&5 8797$as_echo "$as_me: WARNING: Python 3 unavailable; some tests will not be run." >&2;} 8798fi 8799 8800 if test "x$PYTHON" != "x"; then 8801 USEPYTHON_TRUE= 8802 USEPYTHON_FALSE='#' 8803else 8804 USEPYTHON_TRUE='#' 8805 USEPYTHON_FALSE= 8806fi 8807 8808 8809 8810 8811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for flexible array members" >&5 8812$as_echo_n "checking for flexible array members... " >&6; } 8813if ${ac_cv_c_flexmember+:} false; then : 8814 $as_echo_n "(cached) " >&6 8815else 8816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8817/* end confdefs.h. */ 8818#include <stdlib.h> 8819 #include <stdio.h> 8820 #include <stddef.h> 8821 struct s { int n; double d[]; }; 8822int 8823main () 8824{ 8825int m = getchar (); 8826 struct s *p = malloc (offsetof (struct s, d) 8827 + m * sizeof (double)); 8828 p->d[0] = 0.0; 8829 return p->d != (double *) NULL; 8830 ; 8831 return 0; 8832} 8833_ACEOF 8834if ac_fn_c_try_compile "$LINENO"; then : 8835 ac_cv_c_flexmember=yes 8836else 8837 ac_cv_c_flexmember=no 8838fi 8839rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8840fi 8841{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_flexmember" >&5 8842$as_echo "$ac_cv_c_flexmember" >&6; } 8843 if test $ac_cv_c_flexmember = yes; then 8844 8845$as_echo "#define FLEXIBLE_ARRAY_MEMBER /**/" >>confdefs.h 8846 8847 else 8848 $as_echo "#define FLEXIBLE_ARRAY_MEMBER 1" >>confdefs.h 8849 8850 fi 8851 8852 8853 8854{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working C99 mid-block declaration syntax" >&5 8855$as_echo_n "checking for working C99 mid-block declaration syntax... " >&6; } 8856if ${tor_cv_c_c99_decl+:} false; then : 8857 $as_echo_n "(cached) " >&6 8858else 8859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8860/* end confdefs.h. */ 8861 8862int 8863main () 8864{ 8865int x; x = 3; int y; y = 4 + x; 8866 ; 8867 return 0; 8868} 8869_ACEOF 8870if ac_fn_c_try_compile "$LINENO"; then : 8871 tor_cv_c_c99_decl=yes 8872else 8873 tor_cv_c_c99_decl=no 8874fi 8875rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8876fi 8877{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_c_c99_decl" >&5 8878$as_echo "$tor_cv_c_c99_decl" >&6; } 8879if test "$tor_cv_c_c99_decl" != "yes"; then 8880 as_fn_error $? "Your compiler doesn't support c99 mid-block declarations. This is required as of Tor 0.2.6.x" "$LINENO" 5 8881fi 8882 8883{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working C99 designated initializers" >&5 8884$as_echo_n "checking for working C99 designated initializers... " >&6; } 8885if ${tor_cv_c_c99_designated_init+:} false; then : 8886 $as_echo_n "(cached) " >&6 8887else 8888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8889/* end confdefs.h. */ 8890struct s { int a; int b; }; 8891int 8892main () 8893{ 8894 struct s ss = { .b = 5, .a = 6 }; 8895 ; 8896 return 0; 8897} 8898_ACEOF 8899if ac_fn_c_try_compile "$LINENO"; then : 8900 tor_cv_c_c99_designated_init=yes 8901else 8902 tor_cv_c_c99_designated_init=no 8903fi 8904rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8905fi 8906{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_c_c99_designated_init" >&5 8907$as_echo "$tor_cv_c_c99_designated_init" >&6; } 8908 8909if test "$tor_cv_c_c99_designated_init" != "yes"; then 8910 as_fn_error $? "Your compiler doesn't support c99 designated initializers. This is required as of Tor 0.2.6.x" "$LINENO" 5 8911fi 8912 8913saved_CFLAGS="$CFLAGS" 8914CFLAGS="$CFLAGS -Werror" 8915{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__((fallthrough))" >&5 8916$as_echo_n "checking for __attribute__((fallthrough))... " >&6; } 8917if ${tor_cv_c_attr_fallthrough+:} false; then : 8918 $as_echo_n "(cached) " >&6 8919else 8920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8921/* end confdefs.h. */ 8922extern int x; void fn(void) ; 8923int 8924main () 8925{ 8926 switch (x) { case 1: fn(); __attribute__((fallthrough)); 8927 case 2: fn(); break; } 8928 ; 8929 return 0; 8930} 8931_ACEOF 8932if ac_fn_c_try_compile "$LINENO"; then : 8933 tor_cv_c_attr_fallthrough=yes 8934else 8935 tor_cv_c_attr_fallthrough=no 8936fi 8937rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8938fi 8939{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_c_attr_fallthrough" >&5 8940$as_echo "$tor_cv_c_attr_fallthrough" >&6; } 8941CFLAGS="$saved_CFLAGS" 8942 8943if test "$tor_cv_c_attr_fallthrough" = "yes"; then 8944 8945$as_echo "#define HAVE_ATTR_FALLTHROUGH 1" >>confdefs.h 8946 8947fi 8948 8949TORUSER=_tor 8950 8951# Check whether --with-tor-user was given. 8952if test "${with_tor_user+set}" = set; then : 8953 withval=$with_tor_user; 8954 TORUSER=$withval 8955 8956 8957fi 8958 8959 8960 8961TORGROUP=_tor 8962 8963# Check whether --with-tor-group was given. 8964if test "${with_tor_group+set}" = set; then : 8965 withval=$with_tor_group; 8966 TORGROUP=$withval 8967 8968 8969fi 8970 8971 8972 8973 8974{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for win32" >&5 8975$as_echo_n "checking for win32... " >&6; } 8976if test "$cross_compiling" = yes; then : 8977 bwin32=cross; { $as_echo "$as_me:${as_lineno-$LINENO}: result: cross" >&5 8978$as_echo "cross" >&6; } 8979 8980else 8981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8982/* end confdefs.h. */ 8983 8984int main(int c, char **v) { 8985#ifdef _WIN32 8986#if _WIN32 8987 return 0; 8988#else 8989 return 1; 8990#endif 8991#else 8992 return 2; 8993#endif 8994} 8995_ACEOF 8996if ac_fn_c_try_run "$LINENO"; then : 8997 bwin32=true; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 8998$as_echo "yes" >&6; } 8999else 9000 bwin32=false; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9001$as_echo "no" >&6; } 9002fi 9003rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 9004 conftest.$ac_objext conftest.beam conftest.$ac_ext 9005fi 9006 9007 9008if test "$bwin32" = "cross"; then 9009{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for win32 (cross)" >&5 9010$as_echo_n "checking for win32 (cross)... " >&6; } 9011cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9012/* end confdefs.h. */ 9013 9014#ifdef _WIN32 9015int main(int c, char **v) {return 0;} 9016#else 9017#error 9018int main(int c, char **v) {return x(y);} 9019#endif 9020 9021_ACEOF 9022if ac_fn_c_try_compile "$LINENO"; then : 9023 bwin32=true; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 9024$as_echo "yes" >&6; } 9025else 9026 bwin32=false; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9027$as_echo "no" >&6; } 9028fi 9029rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9030fi 9031 9032 9033 9034 if test "x$bwin32" = "xtrue"; then 9035 WIN32_TRUE= 9036 WIN32_FALSE='#' 9037else 9038 WIN32_TRUE='#' 9039 WIN32_FALSE= 9040fi 9041 9042 if test "x$bwin32" = "xtrue"; then 9043 BUILD_NT_SERVICES_TRUE= 9044 BUILD_NT_SERVICES_FALSE='#' 9045else 9046 BUILD_NT_SERVICES_TRUE='#' 9047 BUILD_NT_SERVICES_FALSE= 9048fi 9049 9050 if test "x$bwin32" != "xtrue"; then 9051 BUILD_LIBTORRUNNER_TRUE= 9052 BUILD_LIBTORRUNNER_FALSE='#' 9053else 9054 BUILD_LIBTORRUNNER_TRUE='#' 9055 BUILD_LIBTORRUNNER_FALSE= 9056fi 9057 9058 9059{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for MIPSpro compiler" >&5 9060$as_echo_n "checking for MIPSpro compiler... " >&6; } 9061cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9062/* end confdefs.h. */ 9063 9064int 9065main () 9066{ 9067 9068#if (defined(__sgi) && defined(_COMPILER_VERSION)) 9069#error 9070 return x(y); 9071#endif 9072 9073 ; 9074 return 0; 9075} 9076_ACEOF 9077if ac_fn_c_try_compile "$LINENO"; then : 9078 bmipspro=false; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9079$as_echo "no" >&6; } 9080else 9081 bmipspro=true; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 9082$as_echo "yes" >&6; } 9083fi 9084rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9085 9086if test "$bmipspro" = "true"; then 9087 CFLAGS="$CFLAGS -c99" 9088fi 9089 9090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 9091$as_echo_n "checking whether byte ordering is bigendian... " >&6; } 9092if ${ac_cv_c_bigendian+:} false; then : 9093 $as_echo_n "(cached) " >&6 9094else 9095 ac_cv_c_bigendian=unknown 9096 # See if we're dealing with a universal compiler. 9097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9098/* end confdefs.h. */ 9099#ifndef __APPLE_CC__ 9100 not a universal capable compiler 9101 #endif 9102 typedef int dummy; 9103 9104_ACEOF 9105if ac_fn_c_try_compile "$LINENO"; then : 9106 9107 # Check for potential -arch flags. It is not universal unless 9108 # there are at least two -arch flags with different values. 9109 ac_arch= 9110 ac_prev= 9111 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do 9112 if test -n "$ac_prev"; then 9113 case $ac_word in 9114 i?86 | x86_64 | ppc | ppc64) 9115 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then 9116 ac_arch=$ac_word 9117 else 9118 ac_cv_c_bigendian=universal 9119 break 9120 fi 9121 ;; 9122 esac 9123 ac_prev= 9124 elif test "x$ac_word" = "x-arch"; then 9125 ac_prev=arch 9126 fi 9127 done 9128fi 9129rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9130 if test $ac_cv_c_bigendian = unknown; then 9131 # See if sys/param.h defines the BYTE_ORDER macro. 9132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9133/* end confdefs.h. */ 9134#include <sys/types.h> 9135 #include <sys/param.h> 9136 9137int 9138main () 9139{ 9140#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ 9141 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ 9142 && LITTLE_ENDIAN) 9143 bogus endian macros 9144 #endif 9145 9146 ; 9147 return 0; 9148} 9149_ACEOF 9150if ac_fn_c_try_compile "$LINENO"; then : 9151 # It does; now see whether it defined to BIG_ENDIAN or not. 9152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9153/* end confdefs.h. */ 9154#include <sys/types.h> 9155 #include <sys/param.h> 9156 9157int 9158main () 9159{ 9160#if BYTE_ORDER != BIG_ENDIAN 9161 not big endian 9162 #endif 9163 9164 ; 9165 return 0; 9166} 9167_ACEOF 9168if ac_fn_c_try_compile "$LINENO"; then : 9169 ac_cv_c_bigendian=yes 9170else 9171 ac_cv_c_bigendian=no 9172fi 9173rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9174fi 9175rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9176 fi 9177 if test $ac_cv_c_bigendian = unknown; then 9178 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). 9179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9180/* end confdefs.h. */ 9181#include <limits.h> 9182 9183int 9184main () 9185{ 9186#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) 9187 bogus endian macros 9188 #endif 9189 9190 ; 9191 return 0; 9192} 9193_ACEOF 9194if ac_fn_c_try_compile "$LINENO"; then : 9195 # It does; now see whether it defined to _BIG_ENDIAN or not. 9196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9197/* end confdefs.h. */ 9198#include <limits.h> 9199 9200int 9201main () 9202{ 9203#ifndef _BIG_ENDIAN 9204 not big endian 9205 #endif 9206 9207 ; 9208 return 0; 9209} 9210_ACEOF 9211if ac_fn_c_try_compile "$LINENO"; then : 9212 ac_cv_c_bigendian=yes 9213else 9214 ac_cv_c_bigendian=no 9215fi 9216rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9217fi 9218rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9219 fi 9220 if test $ac_cv_c_bigendian = unknown; then 9221 # Compile a test program. 9222 if test "$cross_compiling" = yes; then : 9223 # Try to guess by grepping values from an object file. 9224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9225/* end confdefs.h. */ 9226short int ascii_mm[] = 9227 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; 9228 short int ascii_ii[] = 9229 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; 9230 int use_ascii (int i) { 9231 return ascii_mm[i] + ascii_ii[i]; 9232 } 9233 short int ebcdic_ii[] = 9234 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; 9235 short int ebcdic_mm[] = 9236 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; 9237 int use_ebcdic (int i) { 9238 return ebcdic_mm[i] + ebcdic_ii[i]; 9239 } 9240 extern int foo; 9241 9242int 9243main () 9244{ 9245return use_ascii (foo) == use_ebcdic (foo); 9246 ; 9247 return 0; 9248} 9249_ACEOF 9250if ac_fn_c_try_compile "$LINENO"; then : 9251 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then 9252 ac_cv_c_bigendian=yes 9253 fi 9254 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then 9255 if test "$ac_cv_c_bigendian" = unknown; then 9256 ac_cv_c_bigendian=no 9257 else 9258 # finding both strings is unlikely to happen, but who knows? 9259 ac_cv_c_bigendian=unknown 9260 fi 9261 fi 9262fi 9263rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9264else 9265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9266/* end confdefs.h. */ 9267$ac_includes_default 9268int 9269main () 9270{ 9271 9272 /* Are we little or big endian? From Harbison&Steele. */ 9273 union 9274 { 9275 long int l; 9276 char c[sizeof (long int)]; 9277 } u; 9278 u.l = 1; 9279 return u.c[sizeof (long int) - 1] == 1; 9280 9281 ; 9282 return 0; 9283} 9284_ACEOF 9285if ac_fn_c_try_run "$LINENO"; then : 9286 ac_cv_c_bigendian=no 9287else 9288 ac_cv_c_bigendian=yes 9289fi 9290rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 9291 conftest.$ac_objext conftest.beam conftest.$ac_ext 9292fi 9293 9294 fi 9295fi 9296{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 9297$as_echo "$ac_cv_c_bigendian" >&6; } 9298 case $ac_cv_c_bigendian in #( 9299 yes) 9300 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h 9301;; #( 9302 no) 9303 ;; #( 9304 universal) 9305 9306$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h 9307 9308 ;; #( 9309 *) 9310 as_fn_error $? "unknown endianness 9311 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; 9312 esac 9313 9314 9315{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5 9316$as_echo_n "checking for library containing socket... " >&6; } 9317if ${ac_cv_search_socket+:} false; then : 9318 $as_echo_n "(cached) " >&6 9319else 9320 ac_func_search_save_LIBS=$LIBS 9321cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9322/* end confdefs.h. */ 9323 9324/* Override any GCC internal prototype to avoid an error. 9325 Use char because int might match the return type of a GCC 9326 builtin and then its argument prototype would still apply. */ 9327#ifdef __cplusplus 9328extern "C" 9329#endif 9330char socket (); 9331int 9332main () 9333{ 9334return socket (); 9335 ; 9336 return 0; 9337} 9338_ACEOF 9339for ac_lib in '' socket network; do 9340 if test -z "$ac_lib"; then 9341 ac_res="none required" 9342 else 9343 ac_res=-l$ac_lib 9344 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 9345 fi 9346 if ac_fn_c_try_link "$LINENO"; then : 9347 ac_cv_search_socket=$ac_res 9348fi 9349rm -f core conftest.err conftest.$ac_objext \ 9350 conftest$ac_exeext 9351 if ${ac_cv_search_socket+:} false; then : 9352 break 9353fi 9354done 9355if ${ac_cv_search_socket+:} false; then : 9356 9357else 9358 ac_cv_search_socket=no 9359fi 9360rm conftest.$ac_ext 9361LIBS=$ac_func_search_save_LIBS 9362fi 9363{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5 9364$as_echo "$ac_cv_search_socket" >&6; } 9365ac_res=$ac_cv_search_socket 9366if test "$ac_res" != no; then : 9367 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 9368 9369fi 9370 9371{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5 9372$as_echo_n "checking for library containing gethostbyname... " >&6; } 9373if ${ac_cv_search_gethostbyname+:} false; then : 9374 $as_echo_n "(cached) " >&6 9375else 9376 ac_func_search_save_LIBS=$LIBS 9377cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9378/* end confdefs.h. */ 9379 9380/* Override any GCC internal prototype to avoid an error. 9381 Use char because int might match the return type of a GCC 9382 builtin and then its argument prototype would still apply. */ 9383#ifdef __cplusplus 9384extern "C" 9385#endif 9386char gethostbyname (); 9387int 9388main () 9389{ 9390return gethostbyname (); 9391 ; 9392 return 0; 9393} 9394_ACEOF 9395for ac_lib in '' nsl; do 9396 if test -z "$ac_lib"; then 9397 ac_res="none required" 9398 else 9399 ac_res=-l$ac_lib 9400 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 9401 fi 9402 if ac_fn_c_try_link "$LINENO"; then : 9403 ac_cv_search_gethostbyname=$ac_res 9404fi 9405rm -f core conftest.err conftest.$ac_objext \ 9406 conftest$ac_exeext 9407 if ${ac_cv_search_gethostbyname+:} false; then : 9408 break 9409fi 9410done 9411if ${ac_cv_search_gethostbyname+:} false; then : 9412 9413else 9414 ac_cv_search_gethostbyname=no 9415fi 9416rm conftest.$ac_ext 9417LIBS=$ac_func_search_save_LIBS 9418fi 9419{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5 9420$as_echo "$ac_cv_search_gethostbyname" >&6; } 9421ac_res=$ac_cv_search_gethostbyname 9422if test "$ac_res" != no; then : 9423 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 9424 9425fi 9426 9427{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5 9428$as_echo_n "checking for library containing dlopen... " >&6; } 9429if ${ac_cv_search_dlopen+:} false; then : 9430 $as_echo_n "(cached) " >&6 9431else 9432 ac_func_search_save_LIBS=$LIBS 9433cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9434/* end confdefs.h. */ 9435 9436/* Override any GCC internal prototype to avoid an error. 9437 Use char because int might match the return type of a GCC 9438 builtin and then its argument prototype would still apply. */ 9439#ifdef __cplusplus 9440extern "C" 9441#endif 9442char dlopen (); 9443int 9444main () 9445{ 9446return dlopen (); 9447 ; 9448 return 0; 9449} 9450_ACEOF 9451for ac_lib in '' dl; do 9452 if test -z "$ac_lib"; then 9453 ac_res="none required" 9454 else 9455 ac_res=-l$ac_lib 9456 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 9457 fi 9458 if ac_fn_c_try_link "$LINENO"; then : 9459 ac_cv_search_dlopen=$ac_res 9460fi 9461rm -f core conftest.err conftest.$ac_objext \ 9462 conftest$ac_exeext 9463 if ${ac_cv_search_dlopen+:} false; then : 9464 break 9465fi 9466done 9467if ${ac_cv_search_dlopen+:} false; then : 9468 9469else 9470 ac_cv_search_dlopen=no 9471fi 9472rm conftest.$ac_ext 9473LIBS=$ac_func_search_save_LIBS 9474fi 9475{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5 9476$as_echo "$ac_cv_search_dlopen" >&6; } 9477ac_res=$ac_cv_search_dlopen 9478if test "$ac_res" != no; then : 9479 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 9480 9481fi 9482 9483{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_aton" >&5 9484$as_echo_n "checking for library containing inet_aton... " >&6; } 9485if ${ac_cv_search_inet_aton+:} false; then : 9486 $as_echo_n "(cached) " >&6 9487else 9488 ac_func_search_save_LIBS=$LIBS 9489cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9490/* end confdefs.h. */ 9491 9492/* Override any GCC internal prototype to avoid an error. 9493 Use char because int might match the return type of a GCC 9494 builtin and then its argument prototype would still apply. */ 9495#ifdef __cplusplus 9496extern "C" 9497#endif 9498char inet_aton (); 9499int 9500main () 9501{ 9502return inet_aton (); 9503 ; 9504 return 0; 9505} 9506_ACEOF 9507for ac_lib in '' resolv; do 9508 if test -z "$ac_lib"; then 9509 ac_res="none required" 9510 else 9511 ac_res=-l$ac_lib 9512 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 9513 fi 9514 if ac_fn_c_try_link "$LINENO"; then : 9515 ac_cv_search_inet_aton=$ac_res 9516fi 9517rm -f core conftest.err conftest.$ac_objext \ 9518 conftest$ac_exeext 9519 if ${ac_cv_search_inet_aton+:} false; then : 9520 break 9521fi 9522done 9523if ${ac_cv_search_inet_aton+:} false; then : 9524 9525else 9526 ac_cv_search_inet_aton=no 9527fi 9528rm conftest.$ac_ext 9529LIBS=$ac_func_search_save_LIBS 9530fi 9531{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_aton" >&5 9532$as_echo "$ac_cv_search_inet_aton" >&6; } 9533ac_res=$ac_cv_search_inet_aton 9534if test "$ac_res" != no; then : 9535 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 9536 9537fi 9538 9539{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing backtrace" >&5 9540$as_echo_n "checking for library containing backtrace... " >&6; } 9541if ${ac_cv_search_backtrace+:} false; then : 9542 $as_echo_n "(cached) " >&6 9543else 9544 ac_func_search_save_LIBS=$LIBS 9545cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9546/* end confdefs.h. */ 9547 9548/* Override any GCC internal prototype to avoid an error. 9549 Use char because int might match the return type of a GCC 9550 builtin and then its argument prototype would still apply. */ 9551#ifdef __cplusplus 9552extern "C" 9553#endif 9554char backtrace (); 9555int 9556main () 9557{ 9558return backtrace (); 9559 ; 9560 return 0; 9561} 9562_ACEOF 9563for ac_lib in '' execinfo; do 9564 if test -z "$ac_lib"; then 9565 ac_res="none required" 9566 else 9567 ac_res=-l$ac_lib 9568 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 9569 fi 9570 if ac_fn_c_try_link "$LINENO"; then : 9571 ac_cv_search_backtrace=$ac_res 9572fi 9573rm -f core conftest.err conftest.$ac_objext \ 9574 conftest$ac_exeext 9575 if ${ac_cv_search_backtrace+:} false; then : 9576 break 9577fi 9578done 9579if ${ac_cv_search_backtrace+:} false; then : 9580 9581else 9582 ac_cv_search_backtrace=no 9583fi 9584rm conftest.$ac_ext 9585LIBS=$ac_func_search_save_LIBS 9586fi 9587{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_backtrace" >&5 9588$as_echo "$ac_cv_search_backtrace" >&6; } 9589ac_res=$ac_cv_search_backtrace 9590if test "$ac_res" != no; then : 9591 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 9592 9593fi 9594 9595saved_LIBS="$LIBS" 9596{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5 9597$as_echo_n "checking for library containing clock_gettime... " >&6; } 9598if ${ac_cv_search_clock_gettime+:} false; then : 9599 $as_echo_n "(cached) " >&6 9600else 9601 ac_func_search_save_LIBS=$LIBS 9602cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9603/* end confdefs.h. */ 9604 9605/* Override any GCC internal prototype to avoid an error. 9606 Use char because int might match the return type of a GCC 9607 builtin and then its argument prototype would still apply. */ 9608#ifdef __cplusplus 9609extern "C" 9610#endif 9611char clock_gettime (); 9612int 9613main () 9614{ 9615return clock_gettime (); 9616 ; 9617 return 0; 9618} 9619_ACEOF 9620for ac_lib in '' rt; do 9621 if test -z "$ac_lib"; then 9622 ac_res="none required" 9623 else 9624 ac_res=-l$ac_lib 9625 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 9626 fi 9627 if ac_fn_c_try_link "$LINENO"; then : 9628 ac_cv_search_clock_gettime=$ac_res 9629fi 9630rm -f core conftest.err conftest.$ac_objext \ 9631 conftest$ac_exeext 9632 if ${ac_cv_search_clock_gettime+:} false; then : 9633 break 9634fi 9635done 9636if ${ac_cv_search_clock_gettime+:} false; then : 9637 9638else 9639 ac_cv_search_clock_gettime=no 9640fi 9641rm conftest.$ac_ext 9642LIBS=$ac_func_search_save_LIBS 9643fi 9644{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5 9645$as_echo "$ac_cv_search_clock_gettime" >&6; } 9646ac_res=$ac_cv_search_clock_gettime 9647if test "$ac_res" != no; then : 9648 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 9649 9650fi 9651 9652if test "$LIBS" != "$saved_LIBS"; then 9653 # Looks like we need -lrt for clock_gettime(). 9654 have_rt=yes 9655fi 9656 9657if test "$bwin32" = "false"; then 9658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_create" >&5 9659$as_echo_n "checking for library containing pthread_create... " >&6; } 9660if ${ac_cv_search_pthread_create+:} false; then : 9661 $as_echo_n "(cached) " >&6 9662else 9663 ac_func_search_save_LIBS=$LIBS 9664cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9665/* end confdefs.h. */ 9666 9667/* Override any GCC internal prototype to avoid an error. 9668 Use char because int might match the return type of a GCC 9669 builtin and then its argument prototype would still apply. */ 9670#ifdef __cplusplus 9671extern "C" 9672#endif 9673char pthread_create (); 9674int 9675main () 9676{ 9677return pthread_create (); 9678 ; 9679 return 0; 9680} 9681_ACEOF 9682for ac_lib in '' pthread; do 9683 if test -z "$ac_lib"; then 9684 ac_res="none required" 9685 else 9686 ac_res=-l$ac_lib 9687 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 9688 fi 9689 if ac_fn_c_try_link "$LINENO"; then : 9690 ac_cv_search_pthread_create=$ac_res 9691fi 9692rm -f core conftest.err conftest.$ac_objext \ 9693 conftest$ac_exeext 9694 if ${ac_cv_search_pthread_create+:} false; then : 9695 break 9696fi 9697done 9698if ${ac_cv_search_pthread_create+:} false; then : 9699 9700else 9701 ac_cv_search_pthread_create=no 9702fi 9703rm conftest.$ac_ext 9704LIBS=$ac_func_search_save_LIBS 9705fi 9706{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_create" >&5 9707$as_echo "$ac_cv_search_pthread_create" >&6; } 9708ac_res=$ac_cv_search_pthread_create 9709if test "$ac_res" != no; then : 9710 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 9711 9712fi 9713 9714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_detach" >&5 9715$as_echo_n "checking for library containing pthread_detach... " >&6; } 9716if ${ac_cv_search_pthread_detach+:} false; then : 9717 $as_echo_n "(cached) " >&6 9718else 9719 ac_func_search_save_LIBS=$LIBS 9720cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9721/* end confdefs.h. */ 9722 9723/* Override any GCC internal prototype to avoid an error. 9724 Use char because int might match the return type of a GCC 9725 builtin and then its argument prototype would still apply. */ 9726#ifdef __cplusplus 9727extern "C" 9728#endif 9729char pthread_detach (); 9730int 9731main () 9732{ 9733return pthread_detach (); 9734 ; 9735 return 0; 9736} 9737_ACEOF 9738for ac_lib in '' pthread; do 9739 if test -z "$ac_lib"; then 9740 ac_res="none required" 9741 else 9742 ac_res=-l$ac_lib 9743 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 9744 fi 9745 if ac_fn_c_try_link "$LINENO"; then : 9746 ac_cv_search_pthread_detach=$ac_res 9747fi 9748rm -f core conftest.err conftest.$ac_objext \ 9749 conftest$ac_exeext 9750 if ${ac_cv_search_pthread_detach+:} false; then : 9751 break 9752fi 9753done 9754if ${ac_cv_search_pthread_detach+:} false; then : 9755 9756else 9757 ac_cv_search_pthread_detach=no 9758fi 9759rm conftest.$ac_ext 9760LIBS=$ac_func_search_save_LIBS 9761fi 9762{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_detach" >&5 9763$as_echo "$ac_cv_search_pthread_detach" >&6; } 9764ac_res=$ac_cv_search_pthread_detach 9765if test "$ac_res" != no; then : 9766 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 9767 9768fi 9769 9770fi 9771 9772 if test "$bwin32" = "true"; then 9773 THREADS_WIN32_TRUE= 9774 THREADS_WIN32_FALSE='#' 9775else 9776 THREADS_WIN32_TRUE='#' 9777 THREADS_WIN32_FALSE= 9778fi 9779 9780 if test "$bwin32" = "false"; then 9781 THREADS_PTHREADS_TRUE= 9782 THREADS_PTHREADS_FALSE='#' 9783else 9784 THREADS_PTHREADS_TRUE='#' 9785 THREADS_PTHREADS_FALSE= 9786fi 9787 9788 9789for ac_func in _NSGetEnviron \ 9790 RtlSecureZeroMemory \ 9791 SecureZeroMemory \ 9792 accept4 \ 9793 backtrace \ 9794 backtrace_symbols_fd \ 9795 eventfd \ 9796 explicit_bzero \ 9797 timingsafe_memcmp \ 9798 flock \ 9799 fsync \ 9800 ftime \ 9801 get_current_dir_name \ 9802 getaddrinfo \ 9803 getdelim \ 9804 getifaddrs \ 9805 getline \ 9806 getrlimit \ 9807 gettimeofday \ 9808 gmtime_r \ 9809 gnu_get_libc_version \ 9810 inet_aton \ 9811 ioctl \ 9812 issetugid \ 9813 llround \ 9814 localtime_r \ 9815 lround \ 9816 madvise \ 9817 memmem \ 9818 memset_s \ 9819 minherit \ 9820 mmap \ 9821 pipe \ 9822 pipe2 \ 9823 prctl \ 9824 readpassphrase \ 9825 rint \ 9826 sigaction \ 9827 socketpair \ 9828 statvfs \ 9829 strncasecmp \ 9830 strcasecmp \ 9831 strlcat \ 9832 strlcpy \ 9833 strnlen \ 9834 strptime \ 9835 strtok_r \ 9836 strtoull \ 9837 sysconf \ 9838 sysctl \ 9839 timegm \ 9840 truncate \ 9841 uname \ 9842 usleep \ 9843 vasprintf \ 9844 _vscprintf 9845 9846do : 9847 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 9848ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 9849if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 9850 cat >>confdefs.h <<_ACEOF 9851#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 9852_ACEOF 9853 9854fi 9855done 9856 9857 9858# Apple messed up when they added some functions: they 9859# forgot to decorate them with appropriate AVAILABLE_MAC_OS_VERSION 9860# checks. 9861 9862# We should only probe for these functions if we are sure that we 9863# are not targeting OS X 10.9 or earlier. 9864{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a pre-Yosemite OS X build target" >&5 9865$as_echo_n "checking for a pre-Yosemite OS X build target... " >&6; } 9866cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9867/* end confdefs.h. */ 9868 9869#ifdef __APPLE__ 9870# include <AvailabilityMacros.h> 9871# ifndef MAC_OS_X_VERSION_10_10 9872# define MAC_OS_X_VERSION_10_10 101000 9873# endif 9874# if defined(MAC_OS_X_VERSION_MIN_REQUIRED) 9875# if MAC_OS_X_VERSION_MIN_REQUIRED < MAC_OS_X_VERSION_10_10 9876# error "Running on Mac OS X 10.9 or earlier" 9877# endif 9878# endif 9879#endif 9880 9881int 9882main () 9883{ 9884 9885 ; 9886 return 0; 9887} 9888_ACEOF 9889if ac_fn_c_try_compile "$LINENO"; then : 9890 on_macos_pre_10_10=no ; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9891$as_echo "no" >&6; } 9892else 9893 on_macos_pre_10_10=yes; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 9894$as_echo "yes" >&6; } 9895fi 9896rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9897 9898if test "$on_macos_pre_10_10" = "no"; then 9899 for ac_func in mach_approximate_time \ 9900 9901do : 9902 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 9903ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 9904if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 9905 cat >>confdefs.h <<_ACEOF 9906#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 9907_ACEOF 9908 9909fi 9910done 9911 9912fi 9913 9914# We should only probe for these functions if we are sure that we 9915# are not targeting OSX 10.11 or earlier. 9916{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a pre-Sierra OSX build target" >&5 9917$as_echo_n "checking for a pre-Sierra OSX build target... " >&6; } 9918cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9919/* end confdefs.h. */ 9920 9921#ifdef __APPLE__ 9922# include <AvailabilityMacros.h> 9923# ifndef MAC_OS_X_VERSION_10_12 9924# define MAC_OS_X_VERSION_10_12 101200 9925# endif 9926# if defined(MAC_OS_X_VERSION_MIN_REQUIRED) 9927# if MAC_OS_X_VERSION_MIN_REQUIRED < MAC_OS_X_VERSION_10_12 9928# error "Running on Mac OSX 10.11 or earlier" 9929# endif 9930# endif 9931#endif 9932 9933int 9934main () 9935{ 9936 9937 ; 9938 return 0; 9939} 9940_ACEOF 9941if ac_fn_c_try_compile "$LINENO"; then : 9942 on_macos_pre_10_12=no ; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9943$as_echo "no" >&6; } 9944else 9945 on_macos_pre_10_12=yes; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 9946$as_echo "yes" >&6; } 9947fi 9948rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9949 9950if test "$on_macos_pre_10_12" = "no"; then 9951 for ac_func in clock_gettime \ 9952 getentropy \ 9953 9954do : 9955 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 9956ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 9957if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 9958 cat >>confdefs.h <<_ACEOF 9959#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 9960_ACEOF 9961 9962fi 9963done 9964 9965fi 9966 9967if test "$bwin32" != "true"; then 9968 for ac_header in pthread.h 9969do : 9970 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default" 9971if test "x$ac_cv_header_pthread_h" = xyes; then : 9972 cat >>confdefs.h <<_ACEOF 9973#define HAVE_PTHREAD_H 1 9974_ACEOF 9975 9976fi 9977 9978done 9979 9980 for ac_func in pthread_create 9981do : 9982 ac_fn_c_check_func "$LINENO" "pthread_create" "ac_cv_func_pthread_create" 9983if test "x$ac_cv_func_pthread_create" = xyes; then : 9984 cat >>confdefs.h <<_ACEOF 9985#define HAVE_PTHREAD_CREATE 1 9986_ACEOF 9987 9988fi 9989done 9990 9991 for ac_func in pthread_condattr_setclock 9992do : 9993 ac_fn_c_check_func "$LINENO" "pthread_condattr_setclock" "ac_cv_func_pthread_condattr_setclock" 9994if test "x$ac_cv_func_pthread_condattr_setclock" = xyes; then : 9995 cat >>confdefs.h <<_ACEOF 9996#define HAVE_PTHREAD_CONDATTR_SETCLOCK 1 9997_ACEOF 9998 9999fi 10000done 10001 10002fi 10003 10004if test "$bwin32" = "true"; then 10005 ac_fn_c_check_decl "$LINENO" "SecureZeroMemory" "ac_cv_have_decl_SecureZeroMemory" " 10006#include <windows.h> 10007#include <conio.h> 10008#include <wchar.h> 10009 10010" 10011if test "x$ac_cv_have_decl_SecureZeroMemory" = xyes; then : 10012 ac_have_decl=1 10013else 10014 ac_have_decl=0 10015fi 10016 10017cat >>confdefs.h <<_ACEOF 10018#define HAVE_DECL_SECUREZEROMEMORY $ac_have_decl 10019_ACEOF 10020ac_fn_c_check_decl "$LINENO" "_getwch" "ac_cv_have_decl__getwch" " 10021#include <windows.h> 10022#include <conio.h> 10023#include <wchar.h> 10024 10025" 10026if test "x$ac_cv_have_decl__getwch" = xyes; then : 10027 ac_have_decl=1 10028else 10029 ac_have_decl=0 10030fi 10031 10032cat >>confdefs.h <<_ACEOF 10033#define HAVE_DECL__GETWCH $ac_have_decl 10034_ACEOF 10035 10036fi 10037 10038 if test "x$ac_cv_func_readpassphrase" = "xno" && test "$bwin32" = "false"; then 10039 BUILD_READPASSPHRASE_C_TRUE= 10040 BUILD_READPASSPHRASE_C_FALSE='#' 10041else 10042 BUILD_READPASSPHRASE_C_TRUE='#' 10043 BUILD_READPASSPHRASE_C_FALSE= 10044fi 10045 10046 10047for ac_func in glob 10048do : 10049 ac_fn_c_check_func "$LINENO" "glob" "ac_cv_func_glob" 10050if test "x$ac_cv_func_glob" = xyes; then : 10051 cat >>confdefs.h <<_ACEOF 10052#define HAVE_GLOB 1 10053_ACEOF 10054 10055fi 10056done 10057 10058 10059{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether free(NULL) works" >&5 10060$as_echo_n "checking whether free(NULL) works... " >&6; } 10061if test "$cross_compiling" = yes; then : 10062 free_null_ok=cross; { $as_echo "$as_me:${as_lineno-$LINENO}: result: cross" >&5 10063$as_echo "cross" >&6; } 10064else 10065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10066/* end confdefs.h. */ 10067 10068 #include <stdlib.h> 10069 10070int 10071main () 10072{ 10073 10074char *p = NULL; 10075free(p); 10076 10077 ; 10078 return 0; 10079} 10080_ACEOF 10081if ac_fn_c_try_run "$LINENO"; then : 10082 free_null_ok=true; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10083$as_echo "yes" >&6; } 10084else 10085 free_null_ok=false; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10086$as_echo "no" >&6; } 10087fi 10088rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 10089 conftest.$ac_objext conftest.beam conftest.$ac_ext 10090fi 10091 10092 10093if test "$free_null_ok" = "false"; then 10094 as_fn_error $? "Your libc implementation doesn't allow free(NULL), as required by C99." "$LINENO" 5 10095fi 10096 10097 10098if test "$bwin32" = "true"; then 10099 TOR_LIB_WS32=-lws2_32 10100 TOR_LIB_IPHLPAPI=-liphlpapi 10101 TOR_LIB_SHLWAPI=-lshlwapi 10102 TOR_LIB_GDI=-lgdi32 10103 TOR_LIB_USERENV=-luserenv 10104 TOR_LIB_BCRYPT=-lbcrypt 10105 TOR_LIB_CRYPT32=-lcrypt32 10106else 10107 TOR_LIB_WS32= 10108 TOR_LIB_GDI= 10109 TOR_LIB_USERENV= 10110fi 10111 10112 10113 10114 10115 10116 10117 10118 10119tor_libevent_pkg_redhat="libevent" 10120tor_libevent_pkg_debian="libevent-dev" 10121tor_libevent_devpkg_redhat="libevent-devel" 10122tor_libevent_devpkg_debian="libevent-dev" 10123 10124STATIC_LIBEVENT_FLAGS="" 10125if test "$enable_static_libevent" = "yes"; then 10126 if test "$have_rt" = "yes"; then 10127 STATIC_LIBEVENT_FLAGS=" -lrt " 10128 fi 10129fi 10130 10131 10132trylibeventdir="" 10133 10134# Check whether --with-libevent-dir was given. 10135if test "${with_libevent_dir+set}" = set; then : 10136 withval=$with_libevent_dir; 10137 if test x$withval != xno ; then 10138 trylibeventdir="$withval" 10139 fi 10140 10141fi 10142 10143if test "x$trylibeventdir" = x && test "x$ALT_libevent_WITHVAL" != x ; then 10144 trylibeventdir="$ALT_libevent_WITHVAL" 10145fi 10146 10147tor_saved_LIBS="$LIBS" 10148tor_saved_LDFLAGS="$LDFLAGS" 10149tor_saved_CPPFLAGS="$CPPFLAGS" 10150{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libevent directory" >&5 10151$as_echo_n "checking for libevent directory... " >&6; } 10152if ${tor_cv_library_libevent_dir+:} false; then : 10153 $as_echo_n "(cached) " >&6 10154else 10155 10156 tor_libevent_dir_found=no 10157 tor_libevent_any_linkable=no 10158 10159 for tor_trydir in "$trylibeventdir" "(system)" "$prefix" /usr/local /usr/pkg /opt/libevent; do 10160 LDFLAGS="$tor_saved_LDFLAGS" 10161 LIBS="-levent $STATIC_LIBEVENT_FLAGS $TOR_LIB_IPHLPAPI $TOR_LIB_BCRYPT $TOR_LIB_WS32 $tor_saved_LIBS" 10162 CPPFLAGS="$tor_saved_CPPFLAGS" 10163 10164 if test -z "$tor_trydir" ; then 10165 continue; 10166 fi 10167 10168 # Skip the directory if it isn't there. 10169 if test ! -d "$tor_trydir" && test "$tor_trydir" != "(system)"; then 10170 continue; 10171 fi 10172 10173 # If this isn't blank, try adding the directory (or appropriate 10174 # include/libs subdirectories) to the command line. 10175 if test "$tor_trydir" != "(system)"; then 10176 10177 if test -d "$tor_trydir/lib"; then 10178 LDFLAGS="-L$tor_trydir/lib $LDFLAGS" 10179 else 10180 LDFLAGS="-L$tor_trydir $LDFLAGS" 10181 fi 10182 if test -d "$tor_trydir/include"; then 10183 CPPFLAGS="-I$tor_trydir/include $CPPFLAGS" 10184 else 10185 CPPFLAGS="-I$tor_trydir $CPPFLAGS" 10186 fi 10187 10188 fi 10189 10190 # Can we link against (but not necessarily run, or find the headers for) 10191 # the binary? 10192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10193/* end confdefs.h. */ 10194 10195#ifdef _WIN32 10196#include <winsock2.h> 10197#endif 10198struct event_base; 10199struct event_base *event_base_new(void); 10200void event_base_free(struct event_base *); 10201int 10202main () 10203{ 10204 10205#ifdef _WIN32 10206{WSADATA d; WSAStartup(0x101,&d); } 10207#endif 10208event_base_free(event_base_new()); 10209 10210 ; 10211 return 0; 10212} 10213_ACEOF 10214if ac_fn_c_try_link "$LINENO"; then : 10215 linkable=yes 10216else 10217 linkable=no 10218fi 10219rm -f core conftest.err conftest.$ac_objext \ 10220 conftest$ac_exeext conftest.$ac_ext 10221 10222 if test "$linkable" = yes; then 10223 tor_libevent_any_linkable=yes 10224 # Okay, we can link against it. Can we find the headers? 10225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10226/* end confdefs.h. */ 10227 10228#ifdef _WIN32 10229#include <winsock2.h> 10230#endif 10231#include <sys/time.h> 10232#include <sys/types.h> 10233#include <event2/event.h> 10234int 10235main () 10236{ 10237 10238#ifdef _WIN32 10239{WSADATA d; WSAStartup(0x101,&d); } 10240#endif 10241event_base_free(event_base_new()); 10242 10243 ; 10244 return 0; 10245} 10246_ACEOF 10247if ac_fn_c_try_compile "$LINENO"; then : 10248 buildable=yes 10249else 10250 buildable=no 10251fi 10252rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10253 if test "$buildable" = yes; then 10254 tor_cv_library_libevent_dir=$tor_trydir 10255 tor_libevent_dir_found=yes 10256 break 10257 fi 10258 fi 10259 done 10260 10261 if test "$tor_libevent_dir_found" = no; then 10262 if test "$tor_libevent_any_linkable" = no ; then 10263 { $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 10264$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;} 10265 10266h="" 10267if test xpkg = xdevpkg; then 10268 h=" headers for" 10269fi 10270if test -f /etc/debian_version && test x"$tor_libevent_pkg_debian" != x; then 10271 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: On Debian, you can install$h libevent using \"apt-get install $tor_libevent_pkg_debian\"" >&5 10272$as_echo "$as_me: WARNING: On Debian, you can install$h libevent using \"apt-get install $tor_libevent_pkg_debian\"" >&2;} 10273 if test x"$tor_libevent_pkg_debian" != x"$tor_libevent_devpkg_debian"; then 10274 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You will probably need $tor_libevent_devpkg_debian too." >&5 10275$as_echo "$as_me: WARNING: You will probably need $tor_libevent_devpkg_debian too." >&2;} 10276 fi 10277fi 10278if test -f /etc/fedora-release && test x"$tor_libevent_pkg_redhat" != x; then 10279 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: On Fedora, you can install$h libevent using \"dnf install $tor_libevent_pkg_redhat\"" >&5 10280$as_echo "$as_me: WARNING: On Fedora, you can install$h libevent using \"dnf install $tor_libevent_pkg_redhat\"" >&2;} 10281 if test x"$tor_libevent_pkg_redhat" != x"$tor_libevent_devpkg_redhat"; then 10282 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You will probably need to install $tor_libevent_devpkg_redhat too." >&5 10283$as_echo "$as_me: WARNING: You will probably need to install $tor_libevent_devpkg_redhat too." >&2;} 10284 fi 10285else 10286 if test -f /etc/redhat-release && test x"$tor_libevent_pkg_redhat" != x; then 10287 { $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 10288$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;} 10289 if test x"$tor_libevent_pkg_redhat" != x"$tor_libevent_devpkg_redhat"; then 10290 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You will probably need to install $tor_libevent_devpkg_redhat too." >&5 10291$as_echo "$as_me: WARNING: You will probably need to install $tor_libevent_devpkg_redhat too." >&2;} 10292 fi 10293 fi 10294fi 10295 10296 as_fn_error $? "Missing libraries; unable to proceed." "$LINENO" 5 10297 else 10298 { $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 10299$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;} 10300 10301h="" 10302if test xdevpkg = xdevpkg; then 10303 h=" headers for" 10304fi 10305if test -f /etc/debian_version && test x"$tor_libevent_devpkg_debian" != x; then 10306 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: On Debian, you can install$h libevent using \"apt-get install $tor_libevent_devpkg_debian\"" >&5 10307$as_echo "$as_me: WARNING: On Debian, you can install$h libevent using \"apt-get install $tor_libevent_devpkg_debian\"" >&2;} 10308 if test x"$tor_libevent_devpkg_debian" != x"$tor_libevent_devpkg_debian"; then 10309 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You will probably need $tor_libevent_devpkg_debian too." >&5 10310$as_echo "$as_me: WARNING: You will probably need $tor_libevent_devpkg_debian too." >&2;} 10311 fi 10312fi 10313if test -f /etc/fedora-release && test x"$tor_libevent_devpkg_redhat" != x; then 10314 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: On Fedora, you can install$h libevent using \"dnf install $tor_libevent_devpkg_redhat\"" >&5 10315$as_echo "$as_me: WARNING: On Fedora, you can install$h libevent using \"dnf install $tor_libevent_devpkg_redhat\"" >&2;} 10316 if test x"$tor_libevent_devpkg_redhat" != x"$tor_libevent_devpkg_redhat"; then 10317 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You will probably need to install $tor_libevent_devpkg_redhat too." >&5 10318$as_echo "$as_me: WARNING: You will probably need to install $tor_libevent_devpkg_redhat too." >&2;} 10319 fi 10320else 10321 if test -f /etc/redhat-release && test x"$tor_libevent_devpkg_redhat" != x; then 10322 { $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 10323$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;} 10324 if test x"$tor_libevent_devpkg_redhat" != x"$tor_libevent_devpkg_redhat"; then 10325 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You will probably need to install $tor_libevent_devpkg_redhat too." >&5 10326$as_echo "$as_me: WARNING: You will probably need to install $tor_libevent_devpkg_redhat too." >&2;} 10327 fi 10328 fi 10329fi 10330 10331 as_fn_error $? "Missing headers; unable to proceed." "$LINENO" 5 10332 fi 10333 fi 10334 10335 LDFLAGS="$tor_saved_LDFLAGS" 10336 LIBS="$tor_saved_LIBS" 10337 CPPFLAGS="$tor_saved_CPPFLAGS" 10338 10339fi 10340{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_library_libevent_dir" >&5 10341$as_echo "$tor_cv_library_libevent_dir" >&6; } 10342LIBS="-levent $STATIC_LIBEVENT_FLAGS $TOR_LIB_IPHLPAPI $TOR_LIB_BCRYPT $TOR_LIB_WS32 $LIBS" 10343if test "$tor_cv_library_libevent_dir" != "(system)"; then 10344 10345 if test -d "$tor_cv_library_libevent_dir/lib"; then 10346 LDFLAGS="-L$tor_cv_library_libevent_dir/lib $LDFLAGS" 10347 else 10348 LDFLAGS="-L$tor_cv_library_libevent_dir $LDFLAGS" 10349 fi 10350 if test -d "$tor_cv_library_libevent_dir/include"; then 10351 CPPFLAGS="-I$tor_cv_library_libevent_dir/include $CPPFLAGS" 10352 else 10353 CPPFLAGS="-I$tor_cv_library_libevent_dir $CPPFLAGS" 10354 fi 10355 10356fi 10357 10358 10359 if test x$tor_cv_library_libevent_dir = "x(system)"; then 10360 TOR_LDFLAGS_libevent="" 10361 TOR_CPPFLAGS_libevent="" 10362 else 10363 if test -d "$tor_cv_library_libevent_dir/lib"; then 10364 TOR_LDFLAGS_libevent="-L$tor_cv_library_libevent_dir/lib" 10365 TOR_LIBDIR_libevent="$tor_cv_library_libevent_dir/lib" 10366 else 10367 TOR_LDFLAGS_libevent="-L$tor_cv_library_libevent_dir" 10368 TOR_LIBDIR_libevent="$tor_cv_library_libevent_dir" 10369 fi 10370 if test -d "$tor_cv_library_libevent_dir/include"; then 10371 TOR_CPPFLAGS_libevent="-I$tor_cv_library_libevent_dir/include" 10372 else 10373 TOR_CPPFLAGS_libevent="-I$tor_cv_library_libevent_dir" 10374 fi 10375 fi 10376 10377 10378 10379 10380if test "$cross_compiling" != yes; then 10381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need extra options to link libevent" >&5 10382$as_echo_n "checking whether we need extra options to link libevent... " >&6; } 10383if ${tor_cv_library_libevent_linker_option+:} false; then : 10384 $as_echo_n "(cached) " >&6 10385else 10386 10387 orig_LDFLAGS="$LDFLAGS" 10388 runs=no 10389 linked_with=nothing 10390 if test -d "$tor_cv_library_libevent_dir/lib"; then 10391 tor_trydir="$tor_cv_library_libevent_dir/lib" 10392 else 10393 tor_trydir="$tor_cv_library_libevent_dir" 10394 fi 10395 for tor_tryextra in "(none)" "-Wl,-R$tor_trydir" "-R$tor_trydir" \ 10396 "-Wl,-rpath,$tor_trydir" ; do 10397 if test "$tor_tryextra" = "(none)"; then 10398 LDFLAGS="$orig_LDFLAGS" 10399 else 10400 LDFLAGS="$tor_tryextra $orig_LDFLAGS" 10401 fi 10402 if test "$cross_compiling" = yes; then : 10403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10404/* end confdefs.h. */ 10405 10406int 10407main () 10408{ 10409 10410 ; 10411 return 0; 10412} 10413_ACEOF 10414if ac_fn_c_try_link "$LINENO"; then : 10415 runnable=yes 10416else 10417 runnable=no 10418fi 10419rm -f core conftest.err conftest.$ac_objext \ 10420 conftest$ac_exeext conftest.$ac_ext 10421else 10422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10423/* end confdefs.h. */ 10424 10425#ifdef _WIN32 10426#include <winsock2.h> 10427#endif 10428struct event_base; 10429struct event_base *event_base_new(void); 10430void event_base_free(struct event_base *); 10431int 10432main () 10433{ 10434 10435#ifdef _WIN32 10436{WSADATA d; WSAStartup(0x101,&d); } 10437#endif 10438event_base_free(event_base_new()); 10439 10440 ; 10441 return 0; 10442} 10443_ACEOF 10444if ac_fn_c_try_run "$LINENO"; then : 10445 runnable=yes 10446else 10447 runnable=no 10448fi 10449rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 10450 conftest.$ac_objext conftest.beam conftest.$ac_ext 10451fi 10452 10453 if test "$runnable" = yes; then 10454 tor_cv_library_libevent_linker_option=$tor_tryextra 10455 break 10456 fi 10457 done 10458 10459 if test "$runnable" = no; then 10460 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 10461 fi 10462 LDFLAGS="$orig_LDFLAGS" 10463 10464fi 10465{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_library_libevent_linker_option" >&5 10466$as_echo "$tor_cv_library_libevent_linker_option" >&6; } 10467 if test "$tor_cv_library_libevent_linker_option" != "(none)" ; then 10468 TOR_LDFLAGS_libevent="$TOR_LDFLAGS_libevent $tor_cv_library_libevent_linker_option" 10469 fi 10470fi # cross-compile 10471 10472LIBS="$tor_saved_LIBS" 10473LDFLAGS="$tor_saved_LDFLAGS" 10474CPPFLAGS="$tor_saved_CPPFLAGS" 10475 10476 10477 10478save_LIBS="$LIBS" 10479save_LDFLAGS="$LDFLAGS" 10480save_CPPFLAGS="$CPPFLAGS" 10481 10482LIBS="$STATIC_LIBEVENT_FLAGS $TOR_LIB_WS32 $save_LIBS" 10483LDFLAGS="$TOR_LDFLAGS_libevent $LDFLAGS" 10484CPPFLAGS="$TOR_CPPFLAGS_libevent $CPPFLAGS" 10485 10486for ac_header in event2/event.h event2/dns.h event2/bufferevent_ssl.h 10487do : 10488 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 10489ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 10490if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 10491 cat >>confdefs.h <<_ACEOF 10492#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 10493_ACEOF 10494 10495fi 10496 10497done 10498 10499 10500if test "$enable_static_libevent" = "yes"; then 10501 if test "$tor_cv_library_libevent_dir" = "(system)"; then 10502 as_fn_error $? "\"You must specify an explicit --with-libevent-dir=x option when using --enable-static-libevent\"" "$LINENO" 5 10503 else 10504 TOR_LIBEVENT_LIBS="$TOR_LIBDIR_libevent/libevent.a $STATIC_LIBEVENT_FLAGS" 10505 fi 10506else 10507 if test "x$ac_cv_header_event2_event_h" = "xyes"; then 10508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing event_new" >&5 10509$as_echo_n "checking for library containing event_new... " >&6; } 10510if ${ac_cv_search_event_new+:} false; then : 10511 $as_echo_n "(cached) " >&6 10512else 10513 ac_func_search_save_LIBS=$LIBS 10514cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10515/* end confdefs.h. */ 10516 10517/* Override any GCC internal prototype to avoid an error. 10518 Use char because int might match the return type of a GCC 10519 builtin and then its argument prototype would still apply. */ 10520#ifdef __cplusplus 10521extern "C" 10522#endif 10523char event_new (); 10524int 10525main () 10526{ 10527return event_new (); 10528 ; 10529 return 0; 10530} 10531_ACEOF 10532for ac_lib in '' event event_core; do 10533 if test -z "$ac_lib"; then 10534 ac_res="none required" 10535 else 10536 ac_res=-l$ac_lib 10537 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 10538 fi 10539 if ac_fn_c_try_link "$LINENO"; then : 10540 ac_cv_search_event_new=$ac_res 10541fi 10542rm -f core conftest.err conftest.$ac_objext \ 10543 conftest$ac_exeext 10544 if ${ac_cv_search_event_new+:} false; then : 10545 break 10546fi 10547done 10548if ${ac_cv_search_event_new+:} false; then : 10549 10550else 10551 ac_cv_search_event_new=no 10552fi 10553rm conftest.$ac_ext 10554LIBS=$ac_func_search_save_LIBS 10555fi 10556{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_event_new" >&5 10557$as_echo "$ac_cv_search_event_new" >&6; } 10558ac_res=$ac_cv_search_event_new 10559if test "$ac_res" != no; then : 10560 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 10561 10562else 10563 as_fn_error $? "\"libevent2 is installed but linking it failed while searching for event_new\"" "$LINENO" 5 10564fi 10565 10566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing evdns_base_new" >&5 10567$as_echo_n "checking for library containing evdns_base_new... " >&6; } 10568if ${ac_cv_search_evdns_base_new+:} false; then : 10569 $as_echo_n "(cached) " >&6 10570else 10571 ac_func_search_save_LIBS=$LIBS 10572cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10573/* end confdefs.h. */ 10574 10575/* Override any GCC internal prototype to avoid an error. 10576 Use char because int might match the return type of a GCC 10577 builtin and then its argument prototype would still apply. */ 10578#ifdef __cplusplus 10579extern "C" 10580#endif 10581char evdns_base_new (); 10582int 10583main () 10584{ 10585return evdns_base_new (); 10586 ; 10587 return 0; 10588} 10589_ACEOF 10590for ac_lib in '' event event_extra; do 10591 if test -z "$ac_lib"; then 10592 ac_res="none required" 10593 else 10594 ac_res=-l$ac_lib 10595 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 10596 fi 10597 if ac_fn_c_try_link "$LINENO"; then : 10598 ac_cv_search_evdns_base_new=$ac_res 10599fi 10600rm -f core conftest.err conftest.$ac_objext \ 10601 conftest$ac_exeext 10602 if ${ac_cv_search_evdns_base_new+:} false; then : 10603 break 10604fi 10605done 10606if ${ac_cv_search_evdns_base_new+:} false; then : 10607 10608else 10609 ac_cv_search_evdns_base_new=no 10610fi 10611rm conftest.$ac_ext 10612LIBS=$ac_func_search_save_LIBS 10613fi 10614{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_evdns_base_new" >&5 10615$as_echo "$ac_cv_search_evdns_base_new" >&6; } 10616ac_res=$ac_cv_search_evdns_base_new 10617if test "$ac_res" != no; then : 10618 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 10619 10620else 10621 as_fn_error $? "\"libevent2 is installed but linking it failed while searching for evdns_base_new\"" "$LINENO" 5 10622fi 10623 10624 10625 if test "$ac_cv_search_event_new" != "none required"; then 10626 TOR_LIBEVENT_LIBS="$ac_cv_search_event_new" 10627 fi 10628 if test "$ac_cv_search_evdns_base_new" != "none required"; then 10629 TOR_LIBEVENT_LIBS="$ac_cv_search_evdns_base_new $TOR_LIBEVENT_LIBS" 10630 fi 10631 else 10632 as_fn_error $? "\"libevent2 is required but the headers could not be found\"" "$LINENO" 5 10633 fi 10634fi 10635 10636for ac_func in evutil_secure_rng_set_urandom_device_file \ 10637 evutil_secure_rng_add_bytes \ 10638 evdns_base_get_nameserver_addr \ 10639 10640 10641do : 10642 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 10643ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 10644if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 10645 cat >>confdefs.h <<_ACEOF 10646#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 10647_ACEOF 10648 10649fi 10650done 10651 10652 10653LIBS="$save_LIBS" 10654LDFLAGS="$save_LDFLAGS" 10655CPPFLAGS="$save_CPPFLAGS" 10656 10657CPPFLAGS="$CPPFLAGS $TOR_CPPFLAGS_libevent" 10658{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Libevent is new enough" >&5 10659$as_echo_n "checking whether Libevent is new enough... " >&6; } 10660cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10661/* end confdefs.h. */ 10662 10663#include <event2/event.h> 10664#if !defined(LIBEVENT_VERSION_NUMBER) || LIBEVENT_VERSION_NUMBER < 0x02000a00 10665#error 10666int x = y(zz); 10667#else 10668int x = 1; 10669#endif 10670 10671_ACEOF 10672if ac_fn_c_try_compile "$LINENO"; then : 10673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10674$as_echo "yes" >&6; } 10675else 10676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10677$as_echo "no" >&6; } 10678 as_fn_error $? "Libevent is not new enough. We require 2.0.10-stable or later" "$LINENO" 5 10679fi 10680rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10681 10682LIBS="$save_LIBS" 10683LDFLAGS="$save_LDFLAGS" 10684CPPFLAGS="$save_CPPFLAGS" 10685 10686 10687 10688 10689TOR_LIB_MATH="" 10690save_LIBS="$LIBS" 10691{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pow" >&5 10692$as_echo_n "checking for library containing pow... " >&6; } 10693if ${ac_cv_search_pow+:} false; then : 10694 $as_echo_n "(cached) " >&6 10695else 10696 ac_func_search_save_LIBS=$LIBS 10697cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10698/* end confdefs.h. */ 10699 10700/* Override any GCC internal prototype to avoid an error. 10701 Use char because int might match the return type of a GCC 10702 builtin and then its argument prototype would still apply. */ 10703#ifdef __cplusplus 10704extern "C" 10705#endif 10706char pow (); 10707int 10708main () 10709{ 10710return pow (); 10711 ; 10712 return 0; 10713} 10714_ACEOF 10715for ac_lib in '' m; do 10716 if test -z "$ac_lib"; then 10717 ac_res="none required" 10718 else 10719 ac_res=-l$ac_lib 10720 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 10721 fi 10722 if ac_fn_c_try_link "$LINENO"; then : 10723 ac_cv_search_pow=$ac_res 10724fi 10725rm -f core conftest.err conftest.$ac_objext \ 10726 conftest$ac_exeext 10727 if ${ac_cv_search_pow+:} false; then : 10728 break 10729fi 10730done 10731if ${ac_cv_search_pow+:} false; then : 10732 10733else 10734 ac_cv_search_pow=no 10735fi 10736rm conftest.$ac_ext 10737LIBS=$ac_func_search_save_LIBS 10738fi 10739{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pow" >&5 10740$as_echo "$ac_cv_search_pow" >&6; } 10741ac_res=$ac_cv_search_pow 10742if test "$ac_res" != no; then : 10743 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 10744 10745else 10746 as_fn_error $? "Could not find pow in libm or libc." "$LINENO" 5 10747fi 10748 10749if test "$ac_cv_search_pow" != "none required"; then 10750 TOR_LIB_MATH="$ac_cv_search_pow" 10751fi 10752LIBS="$save_LIBS" 10753 10754 10755if test "x$enable_nss" = "xyes"; then 10756 10757pkg_failed=no 10758{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for NSS" >&5 10759$as_echo_n "checking for NSS... " >&6; } 10760 10761if test -n "$NSS_CFLAGS"; then 10762 pkg_cv_NSS_CFLAGS="$NSS_CFLAGS" 10763 elif test -n "$PKG_CONFIG"; then 10764 if test -n "$PKG_CONFIG" && \ 10765 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"nss\""; } >&5 10766 ($PKG_CONFIG --exists --print-errors "nss") 2>&5 10767 ac_status=$? 10768 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10769 test $ac_status = 0; }; then 10770 pkg_cv_NSS_CFLAGS=`$PKG_CONFIG --cflags "nss" 2>/dev/null` 10771 test "x$?" != "x0" && pkg_failed=yes 10772else 10773 pkg_failed=yes 10774fi 10775 else 10776 pkg_failed=untried 10777fi 10778if test -n "$NSS_LIBS"; then 10779 pkg_cv_NSS_LIBS="$NSS_LIBS" 10780 elif test -n "$PKG_CONFIG"; then 10781 if test -n "$PKG_CONFIG" && \ 10782 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"nss\""; } >&5 10783 ($PKG_CONFIG --exists --print-errors "nss") 2>&5 10784 ac_status=$? 10785 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10786 test $ac_status = 0; }; then 10787 pkg_cv_NSS_LIBS=`$PKG_CONFIG --libs "nss" 2>/dev/null` 10788 test "x$?" != "x0" && pkg_failed=yes 10789else 10790 pkg_failed=yes 10791fi 10792 else 10793 pkg_failed=untried 10794fi 10795 10796 10797 10798if test $pkg_failed = yes; then 10799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10800$as_echo "no" >&6; } 10801 10802if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 10803 _pkg_short_errors_supported=yes 10804else 10805 _pkg_short_errors_supported=no 10806fi 10807 if test $_pkg_short_errors_supported = yes; then 10808 NSS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "nss" 2>&1` 10809 else 10810 NSS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "nss" 2>&1` 10811 fi 10812 # Put the nasty error message in config.log where it belongs 10813 echo "$NSS_PKG_ERRORS" >&5 10814 10815 have_nss=no; as_fn_error $? "You asked for NSS but I can't find it, $pkg_config_user_action, or set NSS_CFLAGS and NSS_LIBS." "$LINENO" 5 10816elif test $pkg_failed = untried; then 10817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10818$as_echo "no" >&6; } 10819 have_nss=no; as_fn_error $? "You asked for NSS but I can't find it, $pkg_config_user_action, or set NSS_CFLAGS and NSS_LIBS." "$LINENO" 5 10820else 10821 NSS_CFLAGS=$pkg_cv_NSS_CFLAGS 10822 NSS_LIBS=$pkg_cv_NSS_LIBS 10823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10824$as_echo "yes" >&6; } 10825 have_nss=yes 10826fi 10827 10828 10829fi 10830 10831 10832if test "x$enable_nss" != "xyes"; then 10833 10834tor_openssl_pkg_redhat="openssl" 10835tor_openssl_pkg_debian="libssl-dev" 10836tor_openssl_devpkg_redhat="openssl-devel" 10837tor_openssl_devpkg_debian="libssl-dev" 10838 10839ALT_openssl_WITHVAL="" 10840 10841# Check whether --with-ssl-dir was given. 10842if test "${with_ssl_dir+set}" = set; then : 10843 withval=$with_ssl_dir; 10844 if test "x$withval" != "xno" && test "x$withval" != "x"; then 10845 ALT_openssl_WITHVAL="$withval" 10846 fi 10847 10848fi 10849 10850 10851{ $as_echo "$as_me:${as_lineno-$LINENO}: Now, we'll look for OpenSSL >= 1.0.1" >&5 10852$as_echo "$as_me: Now, we'll look for OpenSSL >= 1.0.1" >&6;} 10853 10854tryopenssldir="" 10855 10856# Check whether --with-openssl-dir was given. 10857if test "${with_openssl_dir+set}" = set; then : 10858 withval=$with_openssl_dir; 10859 if test x$withval != xno ; then 10860 tryopenssldir="$withval" 10861 fi 10862 10863fi 10864 10865if test "x$tryopenssldir" = x && test "x$ALT_openssl_WITHVAL" != x ; then 10866 tryopenssldir="$ALT_openssl_WITHVAL" 10867fi 10868 10869tor_saved_LIBS="$LIBS" 10870tor_saved_LDFLAGS="$LDFLAGS" 10871tor_saved_CPPFLAGS="$CPPFLAGS" 10872{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for openssl directory" >&5 10873$as_echo_n "checking for openssl directory... " >&6; } 10874if ${tor_cv_library_openssl_dir+:} false; then : 10875 $as_echo_n "(cached) " >&6 10876else 10877 10878 tor_openssl_dir_found=no 10879 tor_openssl_any_linkable=no 10880 10881 for tor_trydir in "$tryopenssldir" "(system)" "$prefix" /usr/local /usr/pkg /usr/local/opt/openssl /usr/local/openssl /usr/lib/openssl /usr/local/ssl /usr/lib/ssl /usr/local /opt/openssl; do 10882 LDFLAGS="$tor_saved_LDFLAGS" 10883 LIBS="-lssl -lcrypto $TOR_LIB_GDI $TOR_LIB_WS32 $TOR_LIB_CRYPT32 $tor_saved_LIBS" 10884 CPPFLAGS="$tor_saved_CPPFLAGS" 10885 10886 if test -z "$tor_trydir" ; then 10887 continue; 10888 fi 10889 10890 # Skip the directory if it isn't there. 10891 if test ! -d "$tor_trydir" && test "$tor_trydir" != "(system)"; then 10892 continue; 10893 fi 10894 10895 # If this isn't blank, try adding the directory (or appropriate 10896 # include/libs subdirectories) to the command line. 10897 if test "$tor_trydir" != "(system)"; then 10898 10899 if test -d "$tor_trydir/lib"; then 10900 LDFLAGS="-L$tor_trydir/lib $LDFLAGS" 10901 else 10902 LDFLAGS="-L$tor_trydir $LDFLAGS" 10903 fi 10904 if test -d "$tor_trydir/include"; then 10905 CPPFLAGS="-I$tor_trydir/include $CPPFLAGS" 10906 else 10907 CPPFLAGS="-I$tor_trydir $CPPFLAGS" 10908 fi 10909 10910 fi 10911 10912 # Can we link against (but not necessarily run, or find the headers for) 10913 # the binary? 10914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10915/* end confdefs.h. */ 10916struct ssl_cipher_st; 10917 unsigned SSL_CIPHER_get_id(const struct ssl_cipher_st *); 10918 char *getenv(const char *); 10919int 10920main () 10921{ 10922 if (getenv("THIS_SHOULDNT_BE_SET_X201803")) SSL_CIPHER_get_id((void *)0); 10923 ; 10924 return 0; 10925} 10926_ACEOF 10927if ac_fn_c_try_link "$LINENO"; then : 10928 linkable=yes 10929else 10930 linkable=no 10931fi 10932rm -f core conftest.err conftest.$ac_objext \ 10933 conftest$ac_exeext conftest.$ac_ext 10934 10935 if test "$linkable" = yes; then 10936 tor_openssl_any_linkable=yes 10937 # Okay, we can link against it. Can we find the headers? 10938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10939/* end confdefs.h. */ 10940#include <openssl/ssl.h> 10941 char *getenv(const char *); 10942int 10943main () 10944{ 10945 if (getenv("THIS_SHOULDNT_BE_SET_X201803")) SSL_CIPHER_get_id((void *)0); 10946 ; 10947 return 0; 10948} 10949_ACEOF 10950if ac_fn_c_try_compile "$LINENO"; then : 10951 buildable=yes 10952else 10953 buildable=no 10954fi 10955rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10956 if test "$buildable" = yes; then 10957 tor_cv_library_openssl_dir=$tor_trydir 10958 tor_openssl_dir_found=yes 10959 break 10960 fi 10961 fi 10962 done 10963 10964 if test "$tor_openssl_dir_found" = no; then 10965 if test "$tor_openssl_any_linkable" = no ; then 10966 { $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 10967$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;} 10968 10969h="" 10970if test xpkg = xdevpkg; then 10971 h=" headers for" 10972fi 10973if test -f /etc/debian_version && test x"$tor_openssl_pkg_debian" != x; then 10974 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: On Debian, you can install$h openssl using \"apt-get install $tor_openssl_pkg_debian\"" >&5 10975$as_echo "$as_me: WARNING: On Debian, you can install$h openssl using \"apt-get install $tor_openssl_pkg_debian\"" >&2;} 10976 if test x"$tor_openssl_pkg_debian" != x"$tor_openssl_devpkg_debian"; then 10977 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You will probably need $tor_openssl_devpkg_debian too." >&5 10978$as_echo "$as_me: WARNING: You will probably need $tor_openssl_devpkg_debian too." >&2;} 10979 fi 10980fi 10981if test -f /etc/fedora-release && test x"$tor_openssl_pkg_redhat" != x; then 10982 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: On Fedora, you can install$h openssl using \"dnf install $tor_openssl_pkg_redhat\"" >&5 10983$as_echo "$as_me: WARNING: On Fedora, you can install$h openssl using \"dnf install $tor_openssl_pkg_redhat\"" >&2;} 10984 if test x"$tor_openssl_pkg_redhat" != x"$tor_openssl_devpkg_redhat"; then 10985 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You will probably need to install $tor_openssl_devpkg_redhat too." >&5 10986$as_echo "$as_me: WARNING: You will probably need to install $tor_openssl_devpkg_redhat too." >&2;} 10987 fi 10988else 10989 if test -f /etc/redhat-release && test x"$tor_openssl_pkg_redhat" != x; then 10990 { $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 10991$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;} 10992 if test x"$tor_openssl_pkg_redhat" != x"$tor_openssl_devpkg_redhat"; then 10993 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You will probably need to install $tor_openssl_devpkg_redhat too." >&5 10994$as_echo "$as_me: WARNING: You will probably need to install $tor_openssl_devpkg_redhat too." >&2;} 10995 fi 10996 fi 10997fi 10998 10999 as_fn_error $? "Missing libraries; unable to proceed." "$LINENO" 5 11000 else 11001 { $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 11002$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;} 11003 11004h="" 11005if test xdevpkg = xdevpkg; then 11006 h=" headers for" 11007fi 11008if test -f /etc/debian_version && test x"$tor_openssl_devpkg_debian" != x; then 11009 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: On Debian, you can install$h openssl using \"apt-get install $tor_openssl_devpkg_debian\"" >&5 11010$as_echo "$as_me: WARNING: On Debian, you can install$h openssl using \"apt-get install $tor_openssl_devpkg_debian\"" >&2;} 11011 if test x"$tor_openssl_devpkg_debian" != x"$tor_openssl_devpkg_debian"; then 11012 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You will probably need $tor_openssl_devpkg_debian too." >&5 11013$as_echo "$as_me: WARNING: You will probably need $tor_openssl_devpkg_debian too." >&2;} 11014 fi 11015fi 11016if test -f /etc/fedora-release && test x"$tor_openssl_devpkg_redhat" != x; then 11017 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: On Fedora, you can install$h openssl using \"dnf install $tor_openssl_devpkg_redhat\"" >&5 11018$as_echo "$as_me: WARNING: On Fedora, you can install$h openssl using \"dnf install $tor_openssl_devpkg_redhat\"" >&2;} 11019 if test x"$tor_openssl_devpkg_redhat" != x"$tor_openssl_devpkg_redhat"; then 11020 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You will probably need to install $tor_openssl_devpkg_redhat too." >&5 11021$as_echo "$as_me: WARNING: You will probably need to install $tor_openssl_devpkg_redhat too." >&2;} 11022 fi 11023else 11024 if test -f /etc/redhat-release && test x"$tor_openssl_devpkg_redhat" != x; then 11025 { $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 11026$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;} 11027 if test x"$tor_openssl_devpkg_redhat" != x"$tor_openssl_devpkg_redhat"; then 11028 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You will probably need to install $tor_openssl_devpkg_redhat too." >&5 11029$as_echo "$as_me: WARNING: You will probably need to install $tor_openssl_devpkg_redhat too." >&2;} 11030 fi 11031 fi 11032fi 11033 11034 as_fn_error $? "Missing headers; unable to proceed." "$LINENO" 5 11035 fi 11036 fi 11037 11038 LDFLAGS="$tor_saved_LDFLAGS" 11039 LIBS="$tor_saved_LIBS" 11040 CPPFLAGS="$tor_saved_CPPFLAGS" 11041 11042fi 11043{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_library_openssl_dir" >&5 11044$as_echo "$tor_cv_library_openssl_dir" >&6; } 11045LIBS="-lssl -lcrypto $TOR_LIB_GDI $TOR_LIB_WS32 $TOR_LIB_CRYPT32 $LIBS" 11046if test "$tor_cv_library_openssl_dir" != "(system)"; then 11047 11048 if test -d "$tor_cv_library_openssl_dir/lib"; then 11049 LDFLAGS="-L$tor_cv_library_openssl_dir/lib $LDFLAGS" 11050 else 11051 LDFLAGS="-L$tor_cv_library_openssl_dir $LDFLAGS" 11052 fi 11053 if test -d "$tor_cv_library_openssl_dir/include"; then 11054 CPPFLAGS="-I$tor_cv_library_openssl_dir/include $CPPFLAGS" 11055 else 11056 CPPFLAGS="-I$tor_cv_library_openssl_dir $CPPFLAGS" 11057 fi 11058 11059fi 11060 11061 11062 if test x$tor_cv_library_openssl_dir = "x(system)"; then 11063 TOR_LDFLAGS_openssl="" 11064 TOR_CPPFLAGS_openssl="" 11065 else 11066 if test -d "$tor_cv_library_openssl_dir/lib"; then 11067 TOR_LDFLAGS_openssl="-L$tor_cv_library_openssl_dir/lib" 11068 TOR_LIBDIR_openssl="$tor_cv_library_openssl_dir/lib" 11069 else 11070 TOR_LDFLAGS_openssl="-L$tor_cv_library_openssl_dir" 11071 TOR_LIBDIR_openssl="$tor_cv_library_openssl_dir" 11072 fi 11073 if test -d "$tor_cv_library_openssl_dir/include"; then 11074 TOR_CPPFLAGS_openssl="-I$tor_cv_library_openssl_dir/include" 11075 else 11076 TOR_CPPFLAGS_openssl="-I$tor_cv_library_openssl_dir" 11077 fi 11078 fi 11079 11080 11081 11082 11083if test "$cross_compiling" != yes; then 11084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need extra options to link openssl" >&5 11085$as_echo_n "checking whether we need extra options to link openssl... " >&6; } 11086if ${tor_cv_library_openssl_linker_option+:} false; then : 11087 $as_echo_n "(cached) " >&6 11088else 11089 11090 orig_LDFLAGS="$LDFLAGS" 11091 runs=no 11092 linked_with=nothing 11093 if test -d "$tor_cv_library_openssl_dir/lib"; then 11094 tor_trydir="$tor_cv_library_openssl_dir/lib" 11095 else 11096 tor_trydir="$tor_cv_library_openssl_dir" 11097 fi 11098 for tor_tryextra in "(none)" "-Wl,-R$tor_trydir" "-R$tor_trydir" \ 11099 "-Wl,-rpath,$tor_trydir" ; do 11100 if test "$tor_tryextra" = "(none)"; then 11101 LDFLAGS="$orig_LDFLAGS" 11102 else 11103 LDFLAGS="$tor_tryextra $orig_LDFLAGS" 11104 fi 11105 if test "$cross_compiling" = yes; then : 11106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11107/* end confdefs.h. */ 11108 11109int 11110main () 11111{ 11112 11113 ; 11114 return 0; 11115} 11116_ACEOF 11117if ac_fn_c_try_link "$LINENO"; then : 11118 runnable=yes 11119else 11120 runnable=no 11121fi 11122rm -f core conftest.err conftest.$ac_objext \ 11123 conftest$ac_exeext conftest.$ac_ext 11124else 11125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11126/* end confdefs.h. */ 11127struct ssl_cipher_st; 11128 unsigned SSL_CIPHER_get_id(const struct ssl_cipher_st *); 11129 char *getenv(const char *); 11130int 11131main () 11132{ 11133 if (getenv("THIS_SHOULDNT_BE_SET_X201803")) SSL_CIPHER_get_id((void *)0); 11134 ; 11135 return 0; 11136} 11137_ACEOF 11138if ac_fn_c_try_run "$LINENO"; then : 11139 runnable=yes 11140else 11141 runnable=no 11142fi 11143rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 11144 conftest.$ac_objext conftest.beam conftest.$ac_ext 11145fi 11146 11147 if test "$runnable" = yes; then 11148 tor_cv_library_openssl_linker_option=$tor_tryextra 11149 break 11150 fi 11151 done 11152 11153 if test "$runnable" = no; then 11154 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 11155 fi 11156 LDFLAGS="$orig_LDFLAGS" 11157 11158fi 11159{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_library_openssl_linker_option" >&5 11160$as_echo "$tor_cv_library_openssl_linker_option" >&6; } 11161 if test "$tor_cv_library_openssl_linker_option" != "(none)" ; then 11162 TOR_LDFLAGS_openssl="$TOR_LDFLAGS_openssl $tor_cv_library_openssl_linker_option" 11163 fi 11164fi # cross-compile 11165 11166LIBS="$tor_saved_LIBS" 11167LDFLAGS="$tor_saved_LDFLAGS" 11168CPPFLAGS="$tor_saved_CPPFLAGS" 11169 11170 11171 11172if test "$enable_static_openssl" = "yes"; then 11173 if test "$tor_cv_library_openssl_dir" = "(system)"; then 11174 as_fn_error $? "\"You must specify an explicit --with-openssl-dir=x option when using --enable-static-openssl\"" "$LINENO" 5 11175 else 11176 TOR_OPENSSL_LIBS="$TOR_LIBDIR_openssl/libssl.a $TOR_LIBDIR_openssl/libcrypto.a $TOR_LIB_WS32 $TOR_LIB_CRYPT32 $TOR_LIB_BCRYPT" 11177 fi 11178else 11179 TOR_OPENSSL_LIBS="-lssl -lcrypto" 11180fi 11181 11182 11183save_LIBS="$LIBS" 11184save_LDFLAGS="$LDFLAGS" 11185save_CPPFLAGS="$CPPFLAGS" 11186LIBS="$TOR_OPENSSL_LIBS $LIBS" 11187LDFLAGS="$TOR_LDFLAGS_openssl $LDFLAGS" 11188CPPFLAGS="$TOR_CPPFLAGS_openssl $CPPFLAGS" 11189 11190 11191{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL >= 3.0.0" >&5 11192$as_echo_n "checking for OpenSSL >= 3.0.0... " >&6; } 11193cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11194/* end confdefs.h. */ 11195 11196#include <openssl/opensslv.h> 11197#if !defined(LIBRESSL_VERSION_NUMBER) && OPENSSL_VERSION_NUMBER <= 0x30000000L 11198#error "you_have_version_3" 11199#endif 11200 11201int 11202main () 11203{ 11204 11205 ; 11206 return 0; 11207} 11208_ACEOF 11209if ac_fn_c_try_compile "$LINENO"; then : 11210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11211$as_echo "no" >&6; } 11212else 11213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11214$as_echo "yes" >&6; }; 11215 11216$as_echo "#define OPENSSL_SUPPRESS_DEPRECATED 1" >>confdefs.h 11217 11218fi 11219rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11220 11221{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL < 1.0.1" >&5 11222$as_echo_n "checking for OpenSSL < 1.0.1... " >&6; } 11223cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11224/* end confdefs.h. */ 11225 11226#include <openssl/opensslv.h> 11227#if !defined(LIBRESSL_VERSION_NUMBER) && OPENSSL_VERSION_NUMBER < 0x1000100fL 11228#error "too old" 11229#endif 11230 11231int 11232main () 11233{ 11234 11235 ; 11236 return 0; 11237} 11238_ACEOF 11239if ac_fn_c_try_compile "$LINENO"; then : 11240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11241$as_echo "no" >&6; } 11242else 11243 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 11244fi 11245rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11246 11247cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11248/* end confdefs.h. */ 11249 11250#include <openssl/opensslv.h> 11251#include <openssl/evp.h> 11252#if defined(OPENSSL_NO_EC) || defined(OPENSSL_NO_ECDH) || defined(OPENSSL_NO_ECDSA) 11253#error "no ECC" 11254#endif 11255#if !defined(NID_X9_62_prime256v1) || !defined(NID_secp224r1) 11256#error "curves unavailable" 11257#endif 11258 11259int 11260main () 11261{ 11262 11263 ; 11264 return 0; 11265} 11266_ACEOF 11267if ac_fn_c_try_compile "$LINENO"; then : 11268 : 11269else 11270 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 11271fi 11272rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11273 11274{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for significant mismatch between openssl headers and libraries" >&5 11275$as_echo_n "checking for significant mismatch between openssl headers and libraries... " >&6; } 11276ac_retval=foo 11277if test "$cross_compiling" = yes; then : 11278 openssl_ver_mismatch=cross 11279else 11280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11281/* end confdefs.h. */ 11282 11283 #include <openssl/opensslv.h> 11284 #include <openssl/crypto.h> 11285 11286int 11287main () 11288{ 11289 11290 /* Include major, minor, and fix, but not patch or status. */ 11291 unsigned long mask = 0xfffff000; 11292 unsigned long linking = OpenSSL_version_num() & mask; 11293 unsigned long running = OPENSSL_VERSION_NUMBER & mask; 11294 return !(linking==running); 11295 11296 ; 11297 return 0; 11298} 11299_ACEOF 11300if ac_fn_c_try_run "$LINENO"; then : 11301 openssl_ver_mismatch=no 11302else 11303 11304 # This is a kludge to figure out whether compilation failed, or whether 11305 # running the program failed. 11306 if test "$ac_retval" = "1"; then 11307 openssl_ver_mismatch=inconclusive 11308 else 11309 openssl_ver_mismatch=yes 11310 fi 11311fi 11312rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 11313 conftest.$ac_objext conftest.beam conftest.$ac_ext 11314fi 11315 11316{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $openssl_ver_mismatch" >&5 11317$as_echo "$openssl_ver_mismatch" >&6; } 11318 11319ac_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> 11320 11321" 11322if test "x$ac_cv_member_struct_ssl_method_st_get_cipher_by_char" = xyes; then : 11323 11324cat >>confdefs.h <<_ACEOF 11325#define HAVE_STRUCT_SSL_METHOD_ST_GET_CIPHER_BY_CHAR 1 11326_ACEOF 11327 11328 11329fi 11330 11331 11332for ac_func in \ 11333 ERR_load_KDF_strings \ 11334 EVP_PBE_scrypt \ 11335 SSL_CIPHER_find \ 11336 SSL_CTX_set1_groups_list \ 11337 SSL_CTX_set_security_level \ 11338 SSL_SESSION_get_master_key \ 11339 SSL_get_client_ciphers \ 11340 SSL_get_client_random \ 11341 SSL_get_server_random \ 11342 TLS_method \ 11343 11344do : 11345 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 11346ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 11347if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 11348 cat >>confdefs.h <<_ACEOF 11349#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 11350_ACEOF 11351 11352fi 11353done 11354 11355 11356ac_fn_c_check_member "$LINENO" "SSL" "state" "ac_cv_member_SSL_state" "#include <openssl/ssl.h> 11357 11358" 11359if test "x$ac_cv_member_SSL_state" = xyes; then : 11360 11361cat >>confdefs.h <<_ACEOF 11362#define HAVE_SSL_STATE 1 11363_ACEOF 11364 11365 11366fi 11367 11368 11369# The cast to long int works around a bug in the HP C Compiler 11370# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 11371# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 11372# This bug is HP SR number 8606223364. 11373{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of SHA_CTX" >&5 11374$as_echo_n "checking size of SHA_CTX... " >&6; } 11375if ${ac_cv_sizeof_SHA_CTX+:} false; then : 11376 $as_echo_n "(cached) " >&6 11377else 11378 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (SHA_CTX))" "ac_cv_sizeof_SHA_CTX" "$ac_includes_default 11379#include <openssl/sha.h> 11380 11381"; then : 11382 11383else 11384 if test "$ac_cv_type_SHA_CTX" = yes; then 11385 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 11386$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 11387as_fn_error 77 "cannot compute sizeof (SHA_CTX) 11388See \`config.log' for more details" "$LINENO" 5; } 11389 else 11390 ac_cv_sizeof_SHA_CTX=0 11391 fi 11392fi 11393 11394fi 11395{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_SHA_CTX" >&5 11396$as_echo "$ac_cv_sizeof_SHA_CTX" >&6; } 11397 11398 11399 11400cat >>confdefs.h <<_ACEOF 11401#define SIZEOF_SHA_CTX $ac_cv_sizeof_SHA_CTX 11402_ACEOF 11403 11404 11405 11406fi # enable_nss 11407 11408 11409 11410 if true; then 11411 BUILD_KECCAK_TINY_TRUE= 11412 BUILD_KECCAK_TINY_FALSE='#' 11413else 11414 BUILD_KECCAK_TINY_TRUE='#' 11415 BUILD_KECCAK_TINY_FALSE= 11416fi 11417 11418 11419 11420 11421 11422 ac_fn_c_check_member "$LINENO" "struct tcp_info" "tcpi_unacked" "ac_cv_member_struct_tcp_info_tcpi_unacked" "#include <netinet/tcp.h> 11423" 11424if test "x$ac_cv_member_struct_tcp_info_tcpi_unacked" = xyes; then : 11425 11426cat >>confdefs.h <<_ACEOF 11427#define HAVE_STRUCT_TCP_INFO_TCPI_UNACKED 1 11428_ACEOF 11429 11430 11431fi 11432ac_fn_c_check_member "$LINENO" "struct tcp_info" "tcpi_snd_mss" "ac_cv_member_struct_tcp_info_tcpi_snd_mss" "#include <netinet/tcp.h> 11433" 11434if test "x$ac_cv_member_struct_tcp_info_tcpi_snd_mss" = xyes; then : 11435 11436cat >>confdefs.h <<_ACEOF 11437#define HAVE_STRUCT_TCP_INFO_TCPI_SND_MSS 1 11438_ACEOF 11439 11440 11441fi 11442 11443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11444/* end confdefs.h. */ 11445 11446int 11447main () 11448{ 11449 11450 #include <linux/sockios.h> 11451 #ifndef SIOCOUTQNSD 11452 #error 11453 #endif 11454 11455 ; 11456 return 0; 11457} 11458_ACEOF 11459if ac_fn_c_try_compile "$LINENO"; then : 11460 have_siocoutqnsd=yes 11461else 11462 have_siocoutqnsd=no 11463fi 11464rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11465 if test "x$have_siocoutqnsd" = "xyes"; then 11466 if test "x$ac_cv_member_struct_tcp_info_tcpi_unacked" = "xyes"; then 11467 if test "x$ac_cv_member_struct_tcp_info_tcpi_snd_mss" = "xyes"; then 11468 have_kist_support=yes 11469 fi 11470 fi 11471 fi 11472 11473if test "x$have_kist_support" = "xyes"; then : 11474 11475$as_echo "#define HAVE_KIST_SUPPORT 1" >>confdefs.h 11476 11477else 11478 { $as_echo "$as_me:${as_lineno-$LINENO}: KIST scheduler can't be used. Missing support." >&5 11479$as_echo "$as_me: KIST scheduler can't be used. Missing support." >&6;} 11480fi 11481 11482LIBS="$save_LIBS" 11483LDFLAGS="$save_LDFLAGS" 11484CPPFLAGS="$save_CPPFLAGS" 11485 11486 11487tor_zlib_pkg_redhat="zlib" 11488tor_zlib_pkg_debian="zlib1g" 11489tor_zlib_devpkg_redhat="zlib-devel" 11490tor_zlib_devpkg_debian="zlib1g-dev" 11491 11492 11493tryzlibdir="" 11494 11495# Check whether --with-zlib-dir was given. 11496if test "${with_zlib_dir+set}" = set; then : 11497 withval=$with_zlib_dir; 11498 if test x$withval != xno ; then 11499 tryzlibdir="$withval" 11500 fi 11501 11502fi 11503 11504if test "x$tryzlibdir" = x && test "x$ALT_zlib_WITHVAL" != x ; then 11505 tryzlibdir="$ALT_zlib_WITHVAL" 11506fi 11507 11508tor_saved_LIBS="$LIBS" 11509tor_saved_LDFLAGS="$LDFLAGS" 11510tor_saved_CPPFLAGS="$CPPFLAGS" 11511{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for zlib directory" >&5 11512$as_echo_n "checking for zlib directory... " >&6; } 11513if ${tor_cv_library_zlib_dir+:} false; then : 11514 $as_echo_n "(cached) " >&6 11515else 11516 11517 tor_zlib_dir_found=no 11518 tor_zlib_any_linkable=no 11519 11520 for tor_trydir in "$tryzlibdir" "(system)" "$prefix" /usr/local /usr/pkg /opt/zlib; do 11521 LDFLAGS="$tor_saved_LDFLAGS" 11522 LIBS="-lz $tor_saved_LIBS" 11523 CPPFLAGS="$tor_saved_CPPFLAGS" 11524 11525 if test -z "$tor_trydir" ; then 11526 continue; 11527 fi 11528 11529 # Skip the directory if it isn't there. 11530 if test ! -d "$tor_trydir" && test "$tor_trydir" != "(system)"; then 11531 continue; 11532 fi 11533 11534 # If this isn't blank, try adding the directory (or appropriate 11535 # include/libs subdirectories) to the command line. 11536 if test "$tor_trydir" != "(system)"; then 11537 11538 if test -d "$tor_trydir/lib"; then 11539 LDFLAGS="-L$tor_trydir/lib $LDFLAGS" 11540 else 11541 LDFLAGS="-L$tor_trydir $LDFLAGS" 11542 fi 11543 if test -d "$tor_trydir/include"; then 11544 CPPFLAGS="-I$tor_trydir/include $CPPFLAGS" 11545 else 11546 CPPFLAGS="-I$tor_trydir $CPPFLAGS" 11547 fi 11548 11549 fi 11550 11551 # Can we link against (but not necessarily run, or find the headers for) 11552 # the binary? 11553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11554/* end confdefs.h. */ 11555const char * zlibVersion(void); 11556int 11557main () 11558{ 11559zlibVersion(); 11560 ; 11561 return 0; 11562} 11563_ACEOF 11564if ac_fn_c_try_link "$LINENO"; then : 11565 linkable=yes 11566else 11567 linkable=no 11568fi 11569rm -f core conftest.err conftest.$ac_objext \ 11570 conftest$ac_exeext conftest.$ac_ext 11571 11572 if test "$linkable" = yes; then 11573 tor_zlib_any_linkable=yes 11574 # Okay, we can link against it. Can we find the headers? 11575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11576/* end confdefs.h. */ 11577#include <zlib.h> 11578int 11579main () 11580{ 11581zlibVersion(); 11582 ; 11583 return 0; 11584} 11585_ACEOF 11586if ac_fn_c_try_compile "$LINENO"; then : 11587 buildable=yes 11588else 11589 buildable=no 11590fi 11591rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11592 if test "$buildable" = yes; then 11593 tor_cv_library_zlib_dir=$tor_trydir 11594 tor_zlib_dir_found=yes 11595 break 11596 fi 11597 fi 11598 done 11599 11600 if test "$tor_zlib_dir_found" = no; then 11601 if test "$tor_zlib_any_linkable" = no ; then 11602 { $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 11603$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;} 11604 11605h="" 11606if test xpkg = xdevpkg; then 11607 h=" headers for" 11608fi 11609if test -f /etc/debian_version && test x"$tor_zlib_pkg_debian" != x; then 11610 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: On Debian, you can install$h zlib using \"apt-get install $tor_zlib_pkg_debian\"" >&5 11611$as_echo "$as_me: WARNING: On Debian, you can install$h zlib using \"apt-get install $tor_zlib_pkg_debian\"" >&2;} 11612 if test x"$tor_zlib_pkg_debian" != x"$tor_zlib_devpkg_debian"; then 11613 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You will probably need $tor_zlib_devpkg_debian too." >&5 11614$as_echo "$as_me: WARNING: You will probably need $tor_zlib_devpkg_debian too." >&2;} 11615 fi 11616fi 11617if test -f /etc/fedora-release && test x"$tor_zlib_pkg_redhat" != x; then 11618 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: On Fedora, you can install$h zlib using \"dnf install $tor_zlib_pkg_redhat\"" >&5 11619$as_echo "$as_me: WARNING: On Fedora, you can install$h zlib using \"dnf install $tor_zlib_pkg_redhat\"" >&2;} 11620 if test x"$tor_zlib_pkg_redhat" != x"$tor_zlib_devpkg_redhat"; then 11621 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You will probably need to install $tor_zlib_devpkg_redhat too." >&5 11622$as_echo "$as_me: WARNING: You will probably need to install $tor_zlib_devpkg_redhat too." >&2;} 11623 fi 11624else 11625 if test -f /etc/redhat-release && test x"$tor_zlib_pkg_redhat" != x; then 11626 { $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 11627$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;} 11628 if test x"$tor_zlib_pkg_redhat" != x"$tor_zlib_devpkg_redhat"; then 11629 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You will probably need to install $tor_zlib_devpkg_redhat too." >&5 11630$as_echo "$as_me: WARNING: You will probably need to install $tor_zlib_devpkg_redhat too." >&2;} 11631 fi 11632 fi 11633fi 11634 11635 as_fn_error $? "Missing libraries; unable to proceed." "$LINENO" 5 11636 else 11637 { $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 11638$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;} 11639 11640h="" 11641if test xdevpkg = xdevpkg; then 11642 h=" headers for" 11643fi 11644if test -f /etc/debian_version && test x"$tor_zlib_devpkg_debian" != x; then 11645 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: On Debian, you can install$h zlib using \"apt-get install $tor_zlib_devpkg_debian\"" >&5 11646$as_echo "$as_me: WARNING: On Debian, you can install$h zlib using \"apt-get install $tor_zlib_devpkg_debian\"" >&2;} 11647 if test x"$tor_zlib_devpkg_debian" != x"$tor_zlib_devpkg_debian"; then 11648 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You will probably need $tor_zlib_devpkg_debian too." >&5 11649$as_echo "$as_me: WARNING: You will probably need $tor_zlib_devpkg_debian too." >&2;} 11650 fi 11651fi 11652if test -f /etc/fedora-release && test x"$tor_zlib_devpkg_redhat" != x; then 11653 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: On Fedora, you can install$h zlib using \"dnf install $tor_zlib_devpkg_redhat\"" >&5 11654$as_echo "$as_me: WARNING: On Fedora, you can install$h zlib using \"dnf install $tor_zlib_devpkg_redhat\"" >&2;} 11655 if test x"$tor_zlib_devpkg_redhat" != x"$tor_zlib_devpkg_redhat"; then 11656 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You will probably need to install $tor_zlib_devpkg_redhat too." >&5 11657$as_echo "$as_me: WARNING: You will probably need to install $tor_zlib_devpkg_redhat too." >&2;} 11658 fi 11659else 11660 if test -f /etc/redhat-release && test x"$tor_zlib_devpkg_redhat" != x; then 11661 { $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 11662$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;} 11663 if test x"$tor_zlib_devpkg_redhat" != x"$tor_zlib_devpkg_redhat"; then 11664 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You will probably need to install $tor_zlib_devpkg_redhat too." >&5 11665$as_echo "$as_me: WARNING: You will probably need to install $tor_zlib_devpkg_redhat too." >&2;} 11666 fi 11667 fi 11668fi 11669 11670 as_fn_error $? "Missing headers; unable to proceed." "$LINENO" 5 11671 fi 11672 fi 11673 11674 LDFLAGS="$tor_saved_LDFLAGS" 11675 LIBS="$tor_saved_LIBS" 11676 CPPFLAGS="$tor_saved_CPPFLAGS" 11677 11678fi 11679{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_library_zlib_dir" >&5 11680$as_echo "$tor_cv_library_zlib_dir" >&6; } 11681LIBS="-lz $LIBS" 11682if test "$tor_cv_library_zlib_dir" != "(system)"; then 11683 11684 if test -d "$tor_cv_library_zlib_dir/lib"; then 11685 LDFLAGS="-L$tor_cv_library_zlib_dir/lib $LDFLAGS" 11686 else 11687 LDFLAGS="-L$tor_cv_library_zlib_dir $LDFLAGS" 11688 fi 11689 if test -d "$tor_cv_library_zlib_dir/include"; then 11690 CPPFLAGS="-I$tor_cv_library_zlib_dir/include $CPPFLAGS" 11691 else 11692 CPPFLAGS="-I$tor_cv_library_zlib_dir $CPPFLAGS" 11693 fi 11694 11695fi 11696 11697 11698 if test x$tor_cv_library_zlib_dir = "x(system)"; then 11699 TOR_LDFLAGS_zlib="" 11700 TOR_CPPFLAGS_zlib="" 11701 else 11702 if test -d "$tor_cv_library_zlib_dir/lib"; then 11703 TOR_LDFLAGS_zlib="-L$tor_cv_library_zlib_dir/lib" 11704 TOR_LIBDIR_zlib="$tor_cv_library_zlib_dir/lib" 11705 else 11706 TOR_LDFLAGS_zlib="-L$tor_cv_library_zlib_dir" 11707 TOR_LIBDIR_zlib="$tor_cv_library_zlib_dir" 11708 fi 11709 if test -d "$tor_cv_library_zlib_dir/include"; then 11710 TOR_CPPFLAGS_zlib="-I$tor_cv_library_zlib_dir/include" 11711 else 11712 TOR_CPPFLAGS_zlib="-I$tor_cv_library_zlib_dir" 11713 fi 11714 fi 11715 11716 11717 11718 11719if test "$cross_compiling" != yes; then 11720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need extra options to link zlib" >&5 11721$as_echo_n "checking whether we need extra options to link zlib... " >&6; } 11722if ${tor_cv_library_zlib_linker_option+:} false; then : 11723 $as_echo_n "(cached) " >&6 11724else 11725 11726 orig_LDFLAGS="$LDFLAGS" 11727 runs=no 11728 linked_with=nothing 11729 if test -d "$tor_cv_library_zlib_dir/lib"; then 11730 tor_trydir="$tor_cv_library_zlib_dir/lib" 11731 else 11732 tor_trydir="$tor_cv_library_zlib_dir" 11733 fi 11734 for tor_tryextra in "(none)" "-Wl,-R$tor_trydir" "-R$tor_trydir" \ 11735 "-Wl,-rpath,$tor_trydir" ; do 11736 if test "$tor_tryextra" = "(none)"; then 11737 LDFLAGS="$orig_LDFLAGS" 11738 else 11739 LDFLAGS="$tor_tryextra $orig_LDFLAGS" 11740 fi 11741 if test "$cross_compiling" = yes; then : 11742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11743/* end confdefs.h. */ 11744 11745int 11746main () 11747{ 11748 11749 ; 11750 return 0; 11751} 11752_ACEOF 11753if ac_fn_c_try_link "$LINENO"; then : 11754 runnable=yes 11755else 11756 runnable=no 11757fi 11758rm -f core conftest.err conftest.$ac_objext \ 11759 conftest$ac_exeext conftest.$ac_ext 11760else 11761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11762/* end confdefs.h. */ 11763const char * zlibVersion(void); 11764int 11765main () 11766{ 11767zlibVersion(); 11768 ; 11769 return 0; 11770} 11771_ACEOF 11772if ac_fn_c_try_run "$LINENO"; then : 11773 runnable=yes 11774else 11775 runnable=no 11776fi 11777rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 11778 conftest.$ac_objext conftest.beam conftest.$ac_ext 11779fi 11780 11781 if test "$runnable" = yes; then 11782 tor_cv_library_zlib_linker_option=$tor_tryextra 11783 break 11784 fi 11785 done 11786 11787 if test "$runnable" = no; then 11788 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 11789 fi 11790 LDFLAGS="$orig_LDFLAGS" 11791 11792fi 11793{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_library_zlib_linker_option" >&5 11794$as_echo "$tor_cv_library_zlib_linker_option" >&6; } 11795 if test "$tor_cv_library_zlib_linker_option" != "(none)" ; then 11796 TOR_LDFLAGS_zlib="$TOR_LDFLAGS_zlib $tor_cv_library_zlib_linker_option" 11797 fi 11798fi # cross-compile 11799 11800LIBS="$tor_saved_LIBS" 11801LDFLAGS="$tor_saved_LDFLAGS" 11802CPPFLAGS="$tor_saved_CPPFLAGS" 11803 11804 11805 11806if test "$enable_static_zlib" = "yes"; then 11807 if test "$tor_cv_library_zlib_dir" = "(system)"; then 11808 as_fn_error $? "\"You must specify an explicit --with-zlib-dir=x option when 11809 using --enable-static-zlib\"" "$LINENO" 5 11810 else 11811 TOR_ZLIB_LIBS="$TOR_LIBDIR_zlib/libz.a" 11812 fi 11813else 11814 TOR_ZLIB_LIBS="-lz" 11815fi 11816 11817 11818 11819# Check whether --enable-lzma was given. 11820if test "${enable_lzma+set}" = set; then : 11821 enableval=$enable_lzma; case "${enableval}" in 11822 "yes") ;; 11823 "no") ;; 11824 * ) as_fn_error $? "bad value for --enable-lzma" "$LINENO" 5 ;; 11825 esac 11826else 11827 enable_lzma=auto 11828fi 11829 11830 11831if test "x$enable_lzma" = "xno"; then 11832 have_lzma=no; 11833else 11834 11835pkg_failed=no 11836{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LZMA" >&5 11837$as_echo_n "checking for LZMA... " >&6; } 11838 11839if test -n "$LZMA_CFLAGS"; then 11840 pkg_cv_LZMA_CFLAGS="$LZMA_CFLAGS" 11841 elif test -n "$PKG_CONFIG"; then 11842 if test -n "$PKG_CONFIG" && \ 11843 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"liblzma\""; } >&5 11844 ($PKG_CONFIG --exists --print-errors "liblzma") 2>&5 11845 ac_status=$? 11846 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11847 test $ac_status = 0; }; then 11848 pkg_cv_LZMA_CFLAGS=`$PKG_CONFIG --cflags "liblzma" 2>/dev/null` 11849 test "x$?" != "x0" && pkg_failed=yes 11850else 11851 pkg_failed=yes 11852fi 11853 else 11854 pkg_failed=untried 11855fi 11856if test -n "$LZMA_LIBS"; then 11857 pkg_cv_LZMA_LIBS="$LZMA_LIBS" 11858 elif test -n "$PKG_CONFIG"; then 11859 if test -n "$PKG_CONFIG" && \ 11860 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"liblzma\""; } >&5 11861 ($PKG_CONFIG --exists --print-errors "liblzma") 2>&5 11862 ac_status=$? 11863 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11864 test $ac_status = 0; }; then 11865 pkg_cv_LZMA_LIBS=`$PKG_CONFIG --libs "liblzma" 2>/dev/null` 11866 test "x$?" != "x0" && pkg_failed=yes 11867else 11868 pkg_failed=yes 11869fi 11870 else 11871 pkg_failed=untried 11872fi 11873 11874 11875 11876if test $pkg_failed = yes; then 11877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11878$as_echo "no" >&6; } 11879 11880if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 11881 _pkg_short_errors_supported=yes 11882else 11883 _pkg_short_errors_supported=no 11884fi 11885 if test $_pkg_short_errors_supported = yes; then 11886 LZMA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "liblzma" 2>&1` 11887 else 11888 LZMA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "liblzma" 2>&1` 11889 fi 11890 # Put the nasty error message in config.log where it belongs 11891 echo "$LZMA_PKG_ERRORS" >&5 11892 11893 have_lzma=no 11894elif test $pkg_failed = untried; then 11895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11896$as_echo "no" >&6; } 11897 have_lzma=no 11898else 11899 LZMA_CFLAGS=$pkg_cv_LZMA_CFLAGS 11900 LZMA_LIBS=$pkg_cv_LZMA_LIBS 11901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11902$as_echo "yes" >&6; } 11903 have_lzma=yes 11904fi 11905 11906 if test "x$have_lzma" = "xno" ; then 11907 tor_incr_n_warnings 11908 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to find liblzma, $pkg_config_user_action, or set LZMA_CFLAGS and LZMA_LIBS." >&5 11909$as_echo "$as_me: WARNING: Unable to find liblzma, $pkg_config_user_action, or set LZMA_CFLAGS and LZMA_LIBS." >&2;} 11910 fi 11911fi 11912 11913if test "x$have_lzma" = "xyes"; then 11914 11915$as_echo "#define HAVE_LZMA 1" >>confdefs.h 11916 11917 TOR_LZMA_CFLAGS="${LZMA_CFLAGS}" 11918 TOR_LZMA_LIBS="${LZMA_LIBS}" 11919fi 11920 11921 11922 11923 11924# Check whether --enable-zstd was given. 11925if test "${enable_zstd+set}" = set; then : 11926 enableval=$enable_zstd; case "${enableval}" in 11927 "yes") ;; 11928 "no") ;; 11929 * ) as_fn_error $? "bad value for --enable-zstd" "$LINENO" 5 ;; 11930 esac 11931else 11932 enable_zstd=auto 11933fi 11934 11935 11936if test "x$enable_zstd" = "xno"; then 11937 have_zstd=no; 11938else 11939 11940pkg_failed=no 11941{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZSTD" >&5 11942$as_echo_n "checking for ZSTD... " >&6; } 11943 11944if test -n "$ZSTD_CFLAGS"; then 11945 pkg_cv_ZSTD_CFLAGS="$ZSTD_CFLAGS" 11946 elif test -n "$PKG_CONFIG"; then 11947 if test -n "$PKG_CONFIG" && \ 11948 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libzstd >= 1.1\""; } >&5 11949 ($PKG_CONFIG --exists --print-errors "libzstd >= 1.1") 2>&5 11950 ac_status=$? 11951 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11952 test $ac_status = 0; }; then 11953 pkg_cv_ZSTD_CFLAGS=`$PKG_CONFIG --cflags "libzstd >= 1.1" 2>/dev/null` 11954 test "x$?" != "x0" && pkg_failed=yes 11955else 11956 pkg_failed=yes 11957fi 11958 else 11959 pkg_failed=untried 11960fi 11961if test -n "$ZSTD_LIBS"; then 11962 pkg_cv_ZSTD_LIBS="$ZSTD_LIBS" 11963 elif test -n "$PKG_CONFIG"; then 11964 if test -n "$PKG_CONFIG" && \ 11965 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libzstd >= 1.1\""; } >&5 11966 ($PKG_CONFIG --exists --print-errors "libzstd >= 1.1") 2>&5 11967 ac_status=$? 11968 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11969 test $ac_status = 0; }; then 11970 pkg_cv_ZSTD_LIBS=`$PKG_CONFIG --libs "libzstd >= 1.1" 2>/dev/null` 11971 test "x$?" != "x0" && pkg_failed=yes 11972else 11973 pkg_failed=yes 11974fi 11975 else 11976 pkg_failed=untried 11977fi 11978 11979 11980 11981if test $pkg_failed = yes; then 11982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11983$as_echo "no" >&6; } 11984 11985if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 11986 _pkg_short_errors_supported=yes 11987else 11988 _pkg_short_errors_supported=no 11989fi 11990 if test $_pkg_short_errors_supported = yes; then 11991 ZSTD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libzstd >= 1.1" 2>&1` 11992 else 11993 ZSTD_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libzstd >= 1.1" 2>&1` 11994 fi 11995 # Put the nasty error message in config.log where it belongs 11996 echo "$ZSTD_PKG_ERRORS" >&5 11997 11998 have_zstd=no 11999elif test $pkg_failed = untried; then 12000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12001$as_echo "no" >&6; } 12002 have_zstd=no 12003else 12004 ZSTD_CFLAGS=$pkg_cv_ZSTD_CFLAGS 12005 ZSTD_LIBS=$pkg_cv_ZSTD_LIBS 12006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12007$as_echo "yes" >&6; } 12008 have_zstd=yes 12009fi 12010 12011 if test "x$have_zstd" = "xno" ; then 12012 tor_incr_n_warnings 12013 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to find libzstd, $pkg_config_user_action, or set ZSTD_CFLAGS and ZSTD_LIBS." >&5 12014$as_echo "$as_me: WARNING: Unable to find libzstd, $pkg_config_user_action, or set ZSTD_CFLAGS and ZSTD_LIBS." >&2;} 12015 fi 12016fi 12017 12018if test "x$have_zstd" = "xyes"; then 12019 12020$as_echo "#define HAVE_ZSTD 1" >>confdefs.h 12021 12022 TOR_ZSTD_CFLAGS="${ZSTD_CFLAGS}" 12023 TOR_ZSTD_LIBS="${ZSTD_LIBS}" 12024 12025 save_LIBS="$LIBS" 12026 save_CFLAGS="$CFLAGS" 12027 LIBS="$LIBS $ZSTD_LIBS" 12028 CFLAGS="$CFLAGS $ZSTD_CFLAGS" 12029 for ac_func in ZSTD_estimateCStreamSize \ 12030 ZSTD_estimateDCtxSize 12031do : 12032 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 12033ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 12034if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 12035 cat >>confdefs.h <<_ACEOF 12036#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 12037_ACEOF 12038 12039fi 12040done 12041 12042 LIBS="$save_LIBS" 12043 CFLAGS="$save_CFLAGS" 12044fi 12045 12046 12047 12048 12049tor_cap_pkg_debian="libcap2" 12050tor_cap_pkg_redhat="libcap" 12051tor_cap_devpkg_debian="libcap-dev" 12052tor_cap_devpkg_redhat="libcap-devel" 12053 12054{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for cap_init in -lcap" >&5 12055$as_echo_n "checking for cap_init in -lcap... " >&6; } 12056if ${ac_cv_lib_cap_cap_init+:} false; then : 12057 $as_echo_n "(cached) " >&6 12058else 12059 ac_check_lib_save_LIBS=$LIBS 12060LIBS="-lcap $LIBS" 12061cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12062/* end confdefs.h. */ 12063 12064/* Override any GCC internal prototype to avoid an error. 12065 Use char because int might match the return type of a GCC 12066 builtin and then its argument prototype would still apply. */ 12067#ifdef __cplusplus 12068extern "C" 12069#endif 12070char cap_init (); 12071int 12072main () 12073{ 12074return cap_init (); 12075 ; 12076 return 0; 12077} 12078_ACEOF 12079if ac_fn_c_try_link "$LINENO"; then : 12080 ac_cv_lib_cap_cap_init=yes 12081else 12082 ac_cv_lib_cap_cap_init=no 12083fi 12084rm -f core conftest.err conftest.$ac_objext \ 12085 conftest$ac_exeext conftest.$ac_ext 12086LIBS=$ac_check_lib_save_LIBS 12087fi 12088{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cap_cap_init" >&5 12089$as_echo "$ac_cv_lib_cap_cap_init" >&6; } 12090if test "x$ac_cv_lib_cap_cap_init" = xyes; then : 12091 cat >>confdefs.h <<_ACEOF 12092#define HAVE_LIBCAP 1 12093_ACEOF 12094 12095 LIBS="-lcap $LIBS" 12096 12097else 12098 { $as_echo "$as_me:${as_lineno-$LINENO}: Libcap was not found. Capabilities will not be usable." >&5 12099$as_echo "$as_me: Libcap was not found. Capabilities will not be usable." >&6;} 12100 12101fi 12102 12103for ac_func in cap_set_proc 12104do : 12105 ac_fn_c_check_func "$LINENO" "cap_set_proc" "ac_cv_func_cap_set_proc" 12106if test "x$ac_cv_func_cap_set_proc" = xyes; then : 12107 cat >>confdefs.h <<_ACEOF 12108#define HAVE_CAP_SET_PROC 1 12109_ACEOF 12110 12111fi 12112done 12113 12114 12115 12116all_ldflags_for_check="$TOR_LDFLAGS_zlib $TOR_LDFLAGS_openssl $TOR_LDFLAGS_libevent" 12117all_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_LIB_USERENV $TOR_CAP_LIBS" 12118 12119CFLAGS_FTRAPV= 12120CFLAGS_FWRAPV= 12121CFLAGS_ASAN= 12122CFLAGS_UBSAN= 12123 12124 12125cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12126/* end confdefs.h. */ 12127 12128int 12129main () 12130{ 12131 12132#if !defined(__clang__) 12133#error 12134#endif 12135 ; 12136 return 0; 12137} 12138_ACEOF 12139if ac_fn_c_try_compile "$LINENO"; then : 12140 have_clang=yes 12141else 12142 have_clang=no 12143fi 12144rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12145 12146if test "x$enable_pic" = "xyes"; then 12147 12148 12149 12150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -fPIC" >&5 12151$as_echo_n "checking whether the compiler accepts -fPIC... " >&6; } 12152if ${tor_cv_cflags__fPIC+:} false; then : 12153 $as_echo_n "(cached) " >&6 12154else 12155 12156 tor_saved_CFLAGS="$CFLAGS" 12157 CFLAGS="$CFLAGS -pedantic -Werror -fPIC" 12158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12159/* end confdefs.h. */ 12160 12161int 12162main () 12163{ 12164 12165 ; 12166 return 0; 12167} 12168_ACEOF 12169if ac_fn_c_try_compile "$LINENO"; then : 12170 tor_cv_cflags__fPIC=yes 12171else 12172 tor_cv_cflags__fPIC=no 12173fi 12174rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12175 if test x != x; then 12176 12177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12178/* end confdefs.h. */ 12179 12180int 12181main () 12182{ 12183 12184 ; 12185 return 0; 12186} 12187_ACEOF 12188if ac_fn_c_try_link "$LINENO"; then : 12189 tor_can_link__fPIC=yes 12190else 12191 tor_can_link__fPIC=no 12192fi 12193rm -f core conftest.err conftest.$ac_objext \ 12194 conftest$ac_exeext conftest.$ac_ext 12195 12196 fi 12197 CFLAGS="$tor_saved_CFLAGS" 12198 12199fi 12200{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__fPIC" >&5 12201$as_echo "$tor_cv_cflags__fPIC" >&6; } 12202 if test x$tor_cv_cflags__fPIC = xyes; then 12203 CFLAGS="$CFLAGS -fPIC" 12204 else 12205 true 12206 fi 12207 12208 12209 12210fi 12211 12212if test "x$enable_gcc_hardening" != "xno"; then 12213 CFLAGS="$CFLAGS -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2" 12214 if test "x$have_clang" = "xyes"; then 12215 12216 12217 12218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Qunused-arguments" >&5 12219$as_echo_n "checking whether the compiler accepts -Qunused-arguments... " >&6; } 12220if ${tor_cv_cflags__Qunused_arguments+:} false; then : 12221 $as_echo_n "(cached) " >&6 12222else 12223 12224 tor_saved_CFLAGS="$CFLAGS" 12225 CFLAGS="$CFLAGS -pedantic -Werror -Qunused-arguments" 12226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12227/* end confdefs.h. */ 12228 12229int 12230main () 12231{ 12232 12233 ; 12234 return 0; 12235} 12236_ACEOF 12237if ac_fn_c_try_compile "$LINENO"; then : 12238 tor_cv_cflags__Qunused_arguments=yes 12239else 12240 tor_cv_cflags__Qunused_arguments=no 12241fi 12242rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12243 if test x != x; then 12244 12245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12246/* end confdefs.h. */ 12247 12248int 12249main () 12250{ 12251 12252 ; 12253 return 0; 12254} 12255_ACEOF 12256if ac_fn_c_try_link "$LINENO"; then : 12257 tor_can_link__Qunused_arguments=yes 12258else 12259 tor_can_link__Qunused_arguments=no 12260fi 12261rm -f core conftest.err conftest.$ac_objext \ 12262 conftest$ac_exeext conftest.$ac_ext 12263 12264 fi 12265 CFLAGS="$tor_saved_CFLAGS" 12266 12267fi 12268{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Qunused_arguments" >&5 12269$as_echo "$tor_cv_cflags__Qunused_arguments" >&6; } 12270 if test x$tor_cv_cflags__Qunused_arguments = xyes; then 12271 CFLAGS="$CFLAGS -Qunused-arguments" 12272 else 12273 true 12274 fi 12275 12276 12277 12278 fi 12279 12280 12281 12282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -fstack-protector-all" >&5 12283$as_echo_n "checking whether the compiler accepts -fstack-protector-all... " >&6; } 12284if ${tor_cv_cflags__fstack_protector_all+:} false; then : 12285 $as_echo_n "(cached) " >&6 12286else 12287 12288 tor_saved_CFLAGS="$CFLAGS" 12289 CFLAGS="$CFLAGS -pedantic -Werror -fstack-protector-all" 12290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12291/* end confdefs.h. */ 12292 12293int 12294main () 12295{ 12296 12297 ; 12298 return 0; 12299} 12300_ACEOF 12301if ac_fn_c_try_compile "$LINENO"; then : 12302 tor_cv_cflags__fstack_protector_all=yes 12303else 12304 tor_cv_cflags__fstack_protector_all=no 12305fi 12306rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12307 if test xalso_link != x; then 12308 12309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12310/* end confdefs.h. */ 12311 12312int 12313main () 12314{ 12315 12316 ; 12317 return 0; 12318} 12319_ACEOF 12320if ac_fn_c_try_link "$LINENO"; then : 12321 tor_can_link__fstack_protector_all=yes 12322else 12323 tor_can_link__fstack_protector_all=no 12324fi 12325rm -f core conftest.err conftest.$ac_objext \ 12326 conftest$ac_exeext conftest.$ac_ext 12327 12328 fi 12329 CFLAGS="$tor_saved_CFLAGS" 12330 12331fi 12332{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__fstack_protector_all" >&5 12333$as_echo "$tor_cv_cflags__fstack_protector_all" >&6; } 12334 if test x$tor_cv_cflags__fstack_protector_all = xyes; then 12335 CFLAGS="$CFLAGS -fstack-protector-all" 12336 else 12337 true 12338 fi 12339 12340 12341 12342 12343 12344 12345 if test "x$tor_cv_cflags__fstack_protector_all" = xyes; then : 12346 if test "x$tor_can_link__fstack_protector_all" = xyes; then : 12347 12348else 12349 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 12350fi 12351 12352fi 12353 12354 12355 12356 12357 12358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wstack-protector" >&5 12359$as_echo_n "checking whether the compiler accepts -Wstack-protector... " >&6; } 12360if ${tor_cv_cflags__Wstack_protector+:} false; then : 12361 $as_echo_n "(cached) " >&6 12362else 12363 12364 tor_saved_CFLAGS="$CFLAGS" 12365 CFLAGS="$CFLAGS -pedantic -Werror -Wstack-protector" 12366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12367/* end confdefs.h. */ 12368 12369int 12370main () 12371{ 12372 12373 ; 12374 return 0; 12375} 12376_ACEOF 12377if ac_fn_c_try_compile "$LINENO"; then : 12378 tor_cv_cflags__Wstack_protector=yes 12379else 12380 tor_cv_cflags__Wstack_protector=no 12381fi 12382rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12383 if test x != x; then 12384 12385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12386/* end confdefs.h. */ 12387 12388int 12389main () 12390{ 12391 12392 ; 12393 return 0; 12394} 12395_ACEOF 12396if ac_fn_c_try_link "$LINENO"; then : 12397 tor_can_link__Wstack_protector=yes 12398else 12399 tor_can_link__Wstack_protector=no 12400fi 12401rm -f core conftest.err conftest.$ac_objext \ 12402 conftest$ac_exeext conftest.$ac_ext 12403 12404 fi 12405 CFLAGS="$tor_saved_CFLAGS" 12406 12407fi 12408{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wstack_protector" >&5 12409$as_echo "$tor_cv_cflags__Wstack_protector" >&6; } 12410 if test x$tor_cv_cflags__Wstack_protector = xyes; then 12411 CFLAGS="$CFLAGS -Wstack-protector" 12412 else 12413 true 12414 fi 12415 12416 12417 12418 12419 12420 12421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts --param ssp-buffer-size=1" >&5 12422$as_echo_n "checking whether the compiler accepts --param ssp-buffer-size=1... " >&6; } 12423if ${tor_cv_cflags___param_ssp_buffer_size_1+:} false; then : 12424 $as_echo_n "(cached) " >&6 12425else 12426 12427 tor_saved_CFLAGS="$CFLAGS" 12428 CFLAGS="$CFLAGS -pedantic -Werror --param ssp-buffer-size=1" 12429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12430/* end confdefs.h. */ 12431 12432int 12433main () 12434{ 12435 12436 ; 12437 return 0; 12438} 12439_ACEOF 12440if ac_fn_c_try_compile "$LINENO"; then : 12441 tor_cv_cflags___param_ssp_buffer_size_1=yes 12442else 12443 tor_cv_cflags___param_ssp_buffer_size_1=no 12444fi 12445rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12446 if test x != x; then 12447 12448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12449/* end confdefs.h. */ 12450 12451int 12452main () 12453{ 12454 12455 ; 12456 return 0; 12457} 12458_ACEOF 12459if ac_fn_c_try_link "$LINENO"; then : 12460 tor_can_link___param_ssp_buffer_size_1=yes 12461else 12462 tor_can_link___param_ssp_buffer_size_1=no 12463fi 12464rm -f core conftest.err conftest.$ac_objext \ 12465 conftest$ac_exeext conftest.$ac_ext 12466 12467 fi 12468 CFLAGS="$tor_saved_CFLAGS" 12469 12470fi 12471{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags___param_ssp_buffer_size_1" >&5 12472$as_echo "$tor_cv_cflags___param_ssp_buffer_size_1" >&6; } 12473 if test x$tor_cv_cflags___param_ssp_buffer_size_1 = xyes; then 12474 CFLAGS="$CFLAGS --param ssp-buffer-size=1" 12475 else 12476 true 12477 fi 12478 12479 12480 12481 if test "$bwin32" = "false" && test "$enable_libfuzzer" != "yes" && test "$enable_oss_fuzz" != "yes"; then 12482 if test "$enable_pic" != "yes"; then 12483 # If we have already enabled -fPIC, then we don't also need to 12484 # compile with -fPIE... 12485 12486 12487 12488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -fPIE" >&5 12489$as_echo_n "checking whether the compiler accepts -fPIE... " >&6; } 12490if ${tor_cv_cflags__fPIE+:} false; then : 12491 $as_echo_n "(cached) " >&6 12492else 12493 12494 tor_saved_CFLAGS="$CFLAGS" 12495 CFLAGS="$CFLAGS -pedantic -Werror -fPIE" 12496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12497/* end confdefs.h. */ 12498 12499int 12500main () 12501{ 12502 12503 ; 12504 return 0; 12505} 12506_ACEOF 12507if ac_fn_c_try_compile "$LINENO"; then : 12508 tor_cv_cflags__fPIE=yes 12509else 12510 tor_cv_cflags__fPIE=no 12511fi 12512rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12513 if test x != x; then 12514 12515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12516/* end confdefs.h. */ 12517 12518int 12519main () 12520{ 12521 12522 ; 12523 return 0; 12524} 12525_ACEOF 12526if ac_fn_c_try_link "$LINENO"; then : 12527 tor_can_link__fPIE=yes 12528else 12529 tor_can_link__fPIE=no 12530fi 12531rm -f core conftest.err conftest.$ac_objext \ 12532 conftest$ac_exeext conftest.$ac_ext 12533 12534 fi 12535 CFLAGS="$tor_saved_CFLAGS" 12536 12537fi 12538{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__fPIE" >&5 12539$as_echo "$tor_cv_cflags__fPIE" >&6; } 12540 if test x$tor_cv_cflags__fPIE = xyes; then 12541 CFLAGS="$CFLAGS -fPIE" 12542 else 12543 true 12544 fi 12545 12546 12547 12548 fi 12549 # ... but we want to link our executables with -pie in any case, since 12550 # they're executables, not a library. 12551 12552 12553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -pie" >&5 12554$as_echo_n "checking whether the linker accepts -pie... " >&6; } 12555if ${tor_cv_ldflags__pie+:} false; then : 12556 $as_echo_n "(cached) " >&6 12557else 12558 12559 tor_saved_CFLAGS="$CFLAGS" 12560 tor_saved_LDFLAGS="$LDFLAGS" 12561 tor_saved_LIBS="$LIBS" 12562 CFLAGS="$CFLAGS -pedantic -Werror" 12563 LDFLAGS="$LDFLAGS "$all_ldflags_for_check" -pie" 12564 LIBS="$LIBS "$all_libs_for_check"" 12565 if test "$cross_compiling" = yes; then : 12566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12567/* end confdefs.h. */ 12568 12569int 12570main () 12571{ 12572 12573 ; 12574 return 0; 12575} 12576_ACEOF 12577if ac_fn_c_try_link "$LINENO"; then : 12578 tor_cv_ldflags__pie=yes 12579else 12580 tor_cv_ldflags__pie=no 12581fi 12582rm -f core conftest.err conftest.$ac_objext \ 12583 conftest$ac_exeext conftest.$ac_ext 12584else 12585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12586/* end confdefs.h. */ 12587#include <stdio.h> 12588int 12589main () 12590{ 12591fputs("", stdout) 12592 ; 12593 return 0; 12594} 12595_ACEOF 12596if ac_fn_c_try_run "$LINENO"; then : 12597 tor_cv_ldflags__pie=yes 12598else 12599 tor_cv_ldflags__pie=no 12600fi 12601rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 12602 conftest.$ac_objext conftest.beam conftest.$ac_ext 12603fi 12604 12605 CFLAGS="$tor_saved_CFLAGS" 12606 LDFLAGS="$tor_saved_LDFLAGS" 12607 LIBS="$tor_saved_LIBS" 12608 12609fi 12610{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_ldflags__pie" >&5 12611$as_echo "$tor_cv_ldflags__pie" >&6; } 12612 if test x$tor_cv_ldflags__pie = xyes; then 12613 LDFLAGS="$LDFLAGS -pie" 12614 fi 12615 12616 12617 fi 12618 12619 12620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -fwrapv" >&5 12621$as_echo_n "checking whether the compiler accepts -fwrapv... " >&6; } 12622if ${tor_cv_cflags__fwrapv+:} false; then : 12623 $as_echo_n "(cached) " >&6 12624else 12625 12626 tor_saved_CFLAGS="$CFLAGS" 12627 CFLAGS="$CFLAGS -pedantic -Werror -fwrapv" 12628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12629/* end confdefs.h. */ 12630 12631int 12632main () 12633{ 12634 12635 ; 12636 return 0; 12637} 12638_ACEOF 12639if ac_fn_c_try_compile "$LINENO"; then : 12640 tor_cv_cflags__fwrapv=yes 12641else 12642 tor_cv_cflags__fwrapv=no 12643fi 12644rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12645 if test xalso_link != x; then 12646 12647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12648/* end confdefs.h. */ 12649 12650int 12651main () 12652{ 12653 12654 ; 12655 return 0; 12656} 12657_ACEOF 12658if ac_fn_c_try_link "$LINENO"; then : 12659 tor_can_link__fwrapv=yes 12660else 12661 tor_can_link__fwrapv=no 12662fi 12663rm -f core conftest.err conftest.$ac_objext \ 12664 conftest$ac_exeext conftest.$ac_ext 12665 12666 fi 12667 CFLAGS="$tor_saved_CFLAGS" 12668 12669fi 12670{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__fwrapv" >&5 12671$as_echo "$tor_cv_cflags__fwrapv" >&6; } 12672 if test x$tor_cv_cflags__fwrapv = xyes; then 12673 CFLAGS_FWRAPV="-fwrapv" 12674 else 12675 true 12676 fi 12677 12678 12679 12680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can run hardened binaries" >&5 12681$as_echo_n "checking whether we can run hardened binaries... " >&6; } 12682 if test "$cross_compiling" = yes; then : 12683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cross" >&5 12684$as_echo "cross" >&6; } 12685else 12686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12687/* end confdefs.h. */ 12688 12689int 12690main () 12691{ 12692return 0; 12693 ; 12694 return 0; 12695} 12696_ACEOF 12697if ac_fn_c_try_run "$LINENO"; then : 12698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12699$as_echo "yes" >&6; } 12700else 12701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12702$as_echo "no" >&6; } 12703 as_fn_error $? " We can link with compiler hardening options, but we can't run with them. 12704 That's a bad sign! If you must, you can pass --disable-gcc-hardening to 12705 configure, but it would be better to figure out what the underlying problem 12706 is." "$LINENO" 5 12707fi 12708rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 12709 conftest.$ac_objext conftest.beam conftest.$ac_ext 12710fi 12711 12712fi 12713 12714if test "$fragile_hardening" = "yes"; then 12715 12716 12717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -ftrapv" >&5 12718$as_echo_n "checking whether the compiler accepts -ftrapv... " >&6; } 12719if ${tor_cv_cflags__ftrapv+:} false; then : 12720 $as_echo_n "(cached) " >&6 12721else 12722 12723 tor_saved_CFLAGS="$CFLAGS" 12724 CFLAGS="$CFLAGS -pedantic -Werror -ftrapv" 12725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12726/* end confdefs.h. */ 12727 12728int 12729main () 12730{ 12731 12732 ; 12733 return 0; 12734} 12735_ACEOF 12736if ac_fn_c_try_compile "$LINENO"; then : 12737 tor_cv_cflags__ftrapv=yes 12738else 12739 tor_cv_cflags__ftrapv=no 12740fi 12741rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12742 if test xalso_link != x; then 12743 12744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12745/* end confdefs.h. */ 12746 12747int 12748main () 12749{ 12750 12751 ; 12752 return 0; 12753} 12754_ACEOF 12755if ac_fn_c_try_link "$LINENO"; then : 12756 tor_can_link__ftrapv=yes 12757else 12758 tor_can_link__ftrapv=no 12759fi 12760rm -f core conftest.err conftest.$ac_objext \ 12761 conftest$ac_exeext conftest.$ac_ext 12762 12763 fi 12764 CFLAGS="$tor_saved_CFLAGS" 12765 12766fi 12767{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__ftrapv" >&5 12768$as_echo "$tor_cv_cflags__ftrapv" >&6; } 12769 if test x$tor_cv_cflags__ftrapv = xyes; then 12770 CFLAGS_FTRAPV="-ftrapv" 12771 else 12772 true 12773 fi 12774 12775 12776 if test "$tor_cv_cflags__ftrapv" = "yes" && test "$tor_can_link__ftrapv" != "yes"; then 12777 tor_incr_n_warnings 12778 { $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 12779$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;} 12780 fi 12781 12782 if test "$tor_cv_cflags__ftrapv" != "yes"; then 12783 as_fn_error $? "You requested fragile hardening, but the compiler does not seem to support -ftrapv." "$LINENO" 5 12784 fi 12785 12786 12787 12788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -fsanitize=address" >&5 12789$as_echo_n "checking whether the compiler accepts -fsanitize=address... " >&6; } 12790if ${tor_cv_cflags__fsanitize_address+:} false; then : 12791 $as_echo_n "(cached) " >&6 12792else 12793 12794 tor_saved_CFLAGS="$CFLAGS" 12795 CFLAGS="$CFLAGS -pedantic -Werror -fsanitize=address" 12796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12797/* end confdefs.h. */ 12798 12799int 12800main () 12801{ 12802 12803 ; 12804 return 0; 12805} 12806_ACEOF 12807if ac_fn_c_try_compile "$LINENO"; then : 12808 tor_cv_cflags__fsanitize_address=yes 12809else 12810 tor_cv_cflags__fsanitize_address=no 12811fi 12812rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12813 if test xalso_link != x; then 12814 12815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12816/* end confdefs.h. */ 12817 12818int 12819main () 12820{ 12821 12822 ; 12823 return 0; 12824} 12825_ACEOF 12826if ac_fn_c_try_link "$LINENO"; then : 12827 tor_can_link__fsanitize_address=yes 12828else 12829 tor_can_link__fsanitize_address=no 12830fi 12831rm -f core conftest.err conftest.$ac_objext \ 12832 conftest$ac_exeext conftest.$ac_ext 12833 12834 fi 12835 CFLAGS="$tor_saved_CFLAGS" 12836 12837fi 12838{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__fsanitize_address" >&5 12839$as_echo "$tor_cv_cflags__fsanitize_address" >&6; } 12840 if test x$tor_cv_cflags__fsanitize_address = xyes; then 12841 CFLAGS_ASAN="-fsanitize=address" 12842 else 12843 true 12844 fi 12845 12846 12847 if test "$tor_cv_cflags__fsanitize_address" = "yes" && test "$tor_can_link__fsanitize_address" != "yes"; then 12848 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.*, and with Clang you need libclang_rt.ubsan*" "$LINENO" 5 12849 fi 12850 12851 12852 12853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -fsanitize=undefined" >&5 12854$as_echo_n "checking whether the compiler accepts -fsanitize=undefined... " >&6; } 12855if ${tor_cv_cflags__fsanitize_undefined+:} false; then : 12856 $as_echo_n "(cached) " >&6 12857else 12858 12859 tor_saved_CFLAGS="$CFLAGS" 12860 CFLAGS="$CFLAGS -pedantic -Werror -fsanitize=undefined" 12861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12862/* end confdefs.h. */ 12863 12864int 12865main () 12866{ 12867 12868 ; 12869 return 0; 12870} 12871_ACEOF 12872if ac_fn_c_try_compile "$LINENO"; then : 12873 tor_cv_cflags__fsanitize_undefined=yes 12874else 12875 tor_cv_cflags__fsanitize_undefined=no 12876fi 12877rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12878 if test xalso_link != x; then 12879 12880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12881/* end confdefs.h. */ 12882 12883int 12884main () 12885{ 12886 12887 ; 12888 return 0; 12889} 12890_ACEOF 12891if ac_fn_c_try_link "$LINENO"; then : 12892 tor_can_link__fsanitize_undefined=yes 12893else 12894 tor_can_link__fsanitize_undefined=no 12895fi 12896rm -f core conftest.err conftest.$ac_objext \ 12897 conftest$ac_exeext conftest.$ac_ext 12898 12899 fi 12900 CFLAGS="$tor_saved_CFLAGS" 12901 12902fi 12903{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__fsanitize_undefined" >&5 12904$as_echo "$tor_cv_cflags__fsanitize_undefined" >&6; } 12905 if test x$tor_cv_cflags__fsanitize_undefined = xyes; then 12906 CFLAGS_UBSAN="-fsanitize=undefined" 12907 else 12908 true 12909 fi 12910 12911 12912 if test "$tor_cv_cflags__fsanitize_address" = "yes" && test "$tor_can_link__fsanitize_address" != "yes"; then 12913 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.*, and with Clang you need libclang_rt.ubsan*" "$LINENO" 5 12914 fi 12915 12916 12917 12918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -fno-sanitize=float-divide-by-zero" >&5 12919$as_echo_n "checking whether the compiler accepts -fno-sanitize=float-divide-by-zero... " >&6; } 12920if ${tor_cv_cflags__fno_sanitize_float_divide_by_zero+:} false; then : 12921 $as_echo_n "(cached) " >&6 12922else 12923 12924 tor_saved_CFLAGS="$CFLAGS" 12925 CFLAGS="$CFLAGS -pedantic -Werror -fno-sanitize=float-divide-by-zero" 12926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12927/* end confdefs.h. */ 12928 12929int 12930main () 12931{ 12932 12933 ; 12934 return 0; 12935} 12936_ACEOF 12937if ac_fn_c_try_compile "$LINENO"; then : 12938 tor_cv_cflags__fno_sanitize_float_divide_by_zero=yes 12939else 12940 tor_cv_cflags__fno_sanitize_float_divide_by_zero=no 12941fi 12942rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12943 if test xalso_link != x; then 12944 12945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12946/* end confdefs.h. */ 12947 12948int 12949main () 12950{ 12951 12952 ; 12953 return 0; 12954} 12955_ACEOF 12956if ac_fn_c_try_link "$LINENO"; then : 12957 tor_can_link__fno_sanitize_float_divide_by_zero=yes 12958else 12959 tor_can_link__fno_sanitize_float_divide_by_zero=no 12960fi 12961rm -f core conftest.err conftest.$ac_objext \ 12962 conftest$ac_exeext conftest.$ac_ext 12963 12964 fi 12965 CFLAGS="$tor_saved_CFLAGS" 12966 12967fi 12968{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__fno_sanitize_float_divide_by_zero" >&5 12969$as_echo "$tor_cv_cflags__fno_sanitize_float_divide_by_zero" >&6; } 12970 if test x$tor_cv_cflags__fno_sanitize_float_divide_by_zero = xyes; then 12971 CFLAGS_UBSAN="-fno-sanitize=float-divide-by-zero" 12972 else 12973 true 12974 fi 12975 12976 12977 if test "$tor_cv_cflags__fno_sanitize_float_divide_by_zero" = "yes" && test "$tor_can_link__fno_sanitize_float_divide_by_zero" != "yes"; then 12978 as_fn_error $? "The compiler supports -fno-sanitize=float-divide-by-zero, but for some reason I was not able to link when using it. Are you missing run-time support? With GCC you need libasan.*, and with Clang you need libclang_rt.ubsan*" "$LINENO" 5 12979 fi 12980 12981 12982 12983 12984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -fno-omit-frame-pointer" >&5 12985$as_echo_n "checking whether the compiler accepts -fno-omit-frame-pointer... " >&6; } 12986if ${tor_cv_cflags__fno_omit_frame_pointer+:} false; then : 12987 $as_echo_n "(cached) " >&6 12988else 12989 12990 tor_saved_CFLAGS="$CFLAGS" 12991 CFLAGS="$CFLAGS -pedantic -Werror -fno-omit-frame-pointer" 12992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12993/* end confdefs.h. */ 12994 12995int 12996main () 12997{ 12998 12999 ; 13000 return 0; 13001} 13002_ACEOF 13003if ac_fn_c_try_compile "$LINENO"; then : 13004 tor_cv_cflags__fno_omit_frame_pointer=yes 13005else 13006 tor_cv_cflags__fno_omit_frame_pointer=no 13007fi 13008rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13009 if test x != x; then 13010 13011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13012/* end confdefs.h. */ 13013 13014int 13015main () 13016{ 13017 13018 ; 13019 return 0; 13020} 13021_ACEOF 13022if ac_fn_c_try_link "$LINENO"; then : 13023 tor_can_link__fno_omit_frame_pointer=yes 13024else 13025 tor_can_link__fno_omit_frame_pointer=no 13026fi 13027rm -f core conftest.err conftest.$ac_objext \ 13028 conftest$ac_exeext conftest.$ac_ext 13029 13030 fi 13031 CFLAGS="$tor_saved_CFLAGS" 13032 13033fi 13034{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__fno_omit_frame_pointer" >&5 13035$as_echo "$tor_cv_cflags__fno_omit_frame_pointer" >&6; } 13036 if test x$tor_cv_cflags__fno_omit_frame_pointer = xyes; then 13037 CFLAGS="$CFLAGS -fno-omit-frame-pointer" 13038 else 13039 true 13040 fi 13041 13042 13043 13044fi 13045 13046CFLAGS_BUGTRAP="$CFLAGS_FTRAPV $CFLAGS_ASAN $CFLAGS_UBSAN" 13047CFLAGS_CONSTTIME="$CFLAGS_FWRAPV" 13048 13049mulodi_fixes_ftrapv=no 13050if test "$have_clang" = "yes"; then 13051 saved_CFLAGS="$CFLAGS" 13052 CFLAGS="$CFLAGS $CFLAGS_FTRAPV" 13053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether clang -ftrapv can link a 64-bit int multiply" >&5 13054$as_echo_n "checking whether clang -ftrapv can link a 64-bit int multiply... " >&6; } 13055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13056/* end confdefs.h. */ 13057 13058 13059 #include <stdint.h> 13060 #include <stdlib.h> 13061 int main(int argc, char **argv) 13062 { 13063 int64_t x = ((int64_t)atoi(argv[1])) * (int64_t)atoi(argv[2]) 13064 * (int64_t)atoi(argv[3]); 13065 return x == 9; 13066 } 13067_ACEOF 13068if ac_fn_c_try_link "$LINENO"; then : 13069 ftrapv_can_link=yes; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13070$as_echo "yes" >&6; } 13071else 13072 ftrapv_can_link=no; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13073$as_echo "no" >&6; } 13074fi 13075rm -f core conftest.err conftest.$ac_objext \ 13076 conftest$ac_exeext conftest.$ac_ext 13077 if test "$ftrapv_can_link" = "no"; then 13078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether defining __mulodi4 fixes that" >&5 13079$as_echo_n "checking whether defining __mulodi4 fixes that... " >&6; } 13080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13081/* end confdefs.h. */ 13082 13083 13084 #include <stdint.h> 13085 #include <stdlib.h> 13086 int64_t __mulodi4(int64_t a, int64_t b, int *overflow) { 13087 *overflow=0; 13088 return a; 13089 } 13090 int main(int argc, char **argv) 13091 { 13092 int64_t x = ((int64_t)atoi(argv[1])) * (int64_t)atoi(argv[2]) 13093 * (int64_t)atoi(argv[3]); 13094 return x == 9; 13095 } 13096_ACEOF 13097if ac_fn_c_try_link "$LINENO"; then : 13098 mulodi_fixes_ftrapv=yes; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13099$as_echo "yes" >&6; } 13100else 13101 mulodi_fixes_ftrapv=no; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13102$as_echo "no" >&6; } 13103fi 13104rm -f core conftest.err conftest.$ac_objext \ 13105 conftest$ac_exeext conftest.$ac_ext 13106 fi 13107 CFLAGS="$saved_CFLAGS" 13108fi 13109 13110 if test "$mulodi_fixes_ftrapv" = "yes"; then 13111 ADD_MULODI4_TRUE= 13112 ADD_MULODI4_FALSE='#' 13113else 13114 ADD_MULODI4_TRUE='#' 13115 ADD_MULODI4_FALSE= 13116fi 13117 13118 13119 13120 13121 13122if test "x$enable_linker_hardening" != "xno"; then 13123 13124 13125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -Wl,-z,relro -Wl,-z,now" >&5 13126$as_echo_n "checking whether the linker accepts -Wl,-z,relro -Wl,-z,now... " >&6; } 13127if ${tor_cv_ldflags__z_relro__z_now+:} false; then : 13128 $as_echo_n "(cached) " >&6 13129else 13130 13131 tor_saved_CFLAGS="$CFLAGS" 13132 tor_saved_LDFLAGS="$LDFLAGS" 13133 tor_saved_LIBS="$LIBS" 13134 CFLAGS="$CFLAGS -pedantic -Werror" 13135 LDFLAGS="$LDFLAGS "$all_ldflags_for_check" -Wl,-z,relro -Wl,-z,now" 13136 LIBS="$LIBS "$all_libs_for_check"" 13137 if test "$cross_compiling" = yes; then : 13138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13139/* end confdefs.h. */ 13140 13141int 13142main () 13143{ 13144 13145 ; 13146 return 0; 13147} 13148_ACEOF 13149if ac_fn_c_try_link "$LINENO"; then : 13150 tor_cv_ldflags__z_relro__z_now=yes 13151else 13152 tor_cv_ldflags__z_relro__z_now=no 13153fi 13154rm -f core conftest.err conftest.$ac_objext \ 13155 conftest$ac_exeext conftest.$ac_ext 13156else 13157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13158/* end confdefs.h. */ 13159#include <stdio.h> 13160int 13161main () 13162{ 13163fputs("", stdout) 13164 ; 13165 return 0; 13166} 13167_ACEOF 13168if ac_fn_c_try_run "$LINENO"; then : 13169 tor_cv_ldflags__z_relro__z_now=yes 13170else 13171 tor_cv_ldflags__z_relro__z_now=no 13172fi 13173rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 13174 conftest.$ac_objext conftest.beam conftest.$ac_ext 13175fi 13176 13177 CFLAGS="$tor_saved_CFLAGS" 13178 LDFLAGS="$tor_saved_LDFLAGS" 13179 LIBS="$tor_saved_LIBS" 13180 13181fi 13182{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_ldflags__z_relro__z_now" >&5 13183$as_echo "$tor_cv_ldflags__z_relro__z_now" >&6; } 13184 if test x$tor_cv_ldflags__z_relro__z_now = xyes; then 13185 LDFLAGS="$LDFLAGS -Wl,-z,relro -Wl,-z,now" 13186 fi 13187 13188 13189fi 13190 13191# For backtrace support 13192 13193 13194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -rdynamic" >&5 13195$as_echo_n "checking whether the linker accepts -rdynamic... " >&6; } 13196if ${tor_cv_ldflags__rdynamic+:} false; then : 13197 $as_echo_n "(cached) " >&6 13198else 13199 13200 tor_saved_CFLAGS="$CFLAGS" 13201 tor_saved_LDFLAGS="$LDFLAGS" 13202 tor_saved_LIBS="$LIBS" 13203 CFLAGS="$CFLAGS -pedantic -Werror" 13204 LDFLAGS="$LDFLAGS -rdynamic" 13205 LIBS="$LIBS " 13206 if test "$cross_compiling" = yes; then : 13207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13208/* end confdefs.h. */ 13209 13210int 13211main () 13212{ 13213 13214 ; 13215 return 0; 13216} 13217_ACEOF 13218if ac_fn_c_try_link "$LINENO"; then : 13219 tor_cv_ldflags__rdynamic=yes 13220else 13221 tor_cv_ldflags__rdynamic=no 13222fi 13223rm -f core conftest.err conftest.$ac_objext \ 13224 conftest$ac_exeext conftest.$ac_ext 13225else 13226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13227/* end confdefs.h. */ 13228#include <stdio.h> 13229int 13230main () 13231{ 13232fputs("", stdout) 13233 ; 13234 return 0; 13235} 13236_ACEOF 13237if ac_fn_c_try_run "$LINENO"; then : 13238 tor_cv_ldflags__rdynamic=yes 13239else 13240 tor_cv_ldflags__rdynamic=no 13241fi 13242rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 13243 conftest.$ac_objext conftest.beam conftest.$ac_ext 13244fi 13245 13246 CFLAGS="$tor_saved_CFLAGS" 13247 LDFLAGS="$tor_saved_LDFLAGS" 13248 LIBS="$tor_saved_LIBS" 13249 13250fi 13251{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_ldflags__rdynamic" >&5 13252$as_echo "$tor_cv_ldflags__rdynamic" >&6; } 13253 if test x$tor_cv_ldflags__rdynamic = xyes; then 13254 LDFLAGS="$LDFLAGS -rdynamic" 13255 fi 13256 13257 13258 13259 13260saved_CFLAGS="$CFLAGS" 13261 13262 13263 13264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -fomit-frame-pointer" >&5 13265$as_echo_n "checking whether the compiler accepts -fomit-frame-pointer... " >&6; } 13266if ${tor_cv_cflags__fomit_frame_pointer+:} false; then : 13267 $as_echo_n "(cached) " >&6 13268else 13269 13270 tor_saved_CFLAGS="$CFLAGS" 13271 CFLAGS="$CFLAGS -pedantic -Werror -fomit-frame-pointer" 13272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13273/* end confdefs.h. */ 13274 13275int 13276main () 13277{ 13278 13279 ; 13280 return 0; 13281} 13282_ACEOF 13283if ac_fn_c_try_compile "$LINENO"; then : 13284 tor_cv_cflags__fomit_frame_pointer=yes 13285else 13286 tor_cv_cflags__fomit_frame_pointer=no 13287fi 13288rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13289 if test x != x; then 13290 13291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13292/* end confdefs.h. */ 13293 13294int 13295main () 13296{ 13297 13298 ; 13299 return 0; 13300} 13301_ACEOF 13302if ac_fn_c_try_link "$LINENO"; then : 13303 tor_can_link__fomit_frame_pointer=yes 13304else 13305 tor_can_link__fomit_frame_pointer=no 13306fi 13307rm -f core conftest.err conftest.$ac_objext \ 13308 conftest$ac_exeext conftest.$ac_ext 13309 13310 fi 13311 CFLAGS="$tor_saved_CFLAGS" 13312 13313fi 13314{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__fomit_frame_pointer" >&5 13315$as_echo "$tor_cv_cflags__fomit_frame_pointer" >&6; } 13316 if test x$tor_cv_cflags__fomit_frame_pointer = xyes; then 13317 CFLAGS="$CFLAGS -fomit-frame-pointer" 13318 else 13319 true 13320 fi 13321 13322 13323 13324F_OMIT_FRAME_POINTER='' 13325if test "$saved_CFLAGS" != "$CFLAGS"; then 13326 if test "$fragile_hardening" = "yes"; then 13327 F_OMIT_FRAME_POINTER='-fomit-frame-pointer' 13328 fi 13329fi 13330CFLAGS="$saved_CFLAGS" 13331 13332 13333 13334 13335 13336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -fasynchronous-unwind-tables" >&5 13337$as_echo_n "checking whether the compiler accepts -fasynchronous-unwind-tables... " >&6; } 13338if ${tor_cv_cflags__fasynchronous_unwind_tables+:} false; then : 13339 $as_echo_n "(cached) " >&6 13340else 13341 13342 tor_saved_CFLAGS="$CFLAGS" 13343 CFLAGS="$CFLAGS -pedantic -Werror -fasynchronous-unwind-tables" 13344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13345/* end confdefs.h. */ 13346 13347int 13348main () 13349{ 13350 13351 ; 13352 return 0; 13353} 13354_ACEOF 13355if ac_fn_c_try_compile "$LINENO"; then : 13356 tor_cv_cflags__fasynchronous_unwind_tables=yes 13357else 13358 tor_cv_cflags__fasynchronous_unwind_tables=no 13359fi 13360rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13361 if test x != x; then 13362 13363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13364/* end confdefs.h. */ 13365 13366int 13367main () 13368{ 13369 13370 ; 13371 return 0; 13372} 13373_ACEOF 13374if ac_fn_c_try_link "$LINENO"; then : 13375 tor_can_link__fasynchronous_unwind_tables=yes 13376else 13377 tor_can_link__fasynchronous_unwind_tables=no 13378fi 13379rm -f core conftest.err conftest.$ac_objext \ 13380 conftest$ac_exeext conftest.$ac_ext 13381 13382 fi 13383 CFLAGS="$tor_saved_CFLAGS" 13384 13385fi 13386{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__fasynchronous_unwind_tables" >&5 13387$as_echo "$tor_cv_cflags__fasynchronous_unwind_tables" >&6; } 13388 if test x$tor_cv_cflags__fasynchronous_unwind_tables = xyes; then 13389 CFLAGS="$CFLAGS -fasynchronous-unwind-tables" 13390 else 13391 true 13392 fi 13393 13394 13395 13396 13397 13398if test "x$enable_seccomp" != "xno"; then 13399 for ac_header in seccomp.h 13400do : 13401 ac_fn_c_check_header_mongrel "$LINENO" "seccomp.h" "ac_cv_header_seccomp_h" "$ac_includes_default" 13402if test "x$ac_cv_header_seccomp_h" = xyes; then : 13403 cat >>confdefs.h <<_ACEOF 13404#define HAVE_SECCOMP_H 1 13405_ACEOF 13406 13407fi 13408 13409done 13410 13411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing seccomp_init" >&5 13412$as_echo_n "checking for library containing seccomp_init... " >&6; } 13413if ${ac_cv_search_seccomp_init+:} false; then : 13414 $as_echo_n "(cached) " >&6 13415else 13416 ac_func_search_save_LIBS=$LIBS 13417cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13418/* end confdefs.h. */ 13419 13420/* Override any GCC internal prototype to avoid an error. 13421 Use char because int might match the return type of a GCC 13422 builtin and then its argument prototype would still apply. */ 13423#ifdef __cplusplus 13424extern "C" 13425#endif 13426char seccomp_init (); 13427int 13428main () 13429{ 13430return seccomp_init (); 13431 ; 13432 return 0; 13433} 13434_ACEOF 13435for ac_lib in '' seccomp; do 13436 if test -z "$ac_lib"; then 13437 ac_res="none required" 13438 else 13439 ac_res=-l$ac_lib 13440 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 13441 fi 13442 if ac_fn_c_try_link "$LINENO"; then : 13443 ac_cv_search_seccomp_init=$ac_res 13444fi 13445rm -f core conftest.err conftest.$ac_objext \ 13446 conftest$ac_exeext 13447 if ${ac_cv_search_seccomp_init+:} false; then : 13448 break 13449fi 13450done 13451if ${ac_cv_search_seccomp_init+:} false; then : 13452 13453else 13454 ac_cv_search_seccomp_init=no 13455fi 13456rm conftest.$ac_ext 13457LIBS=$ac_func_search_save_LIBS 13458fi 13459{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_seccomp_init" >&5 13460$as_echo "$ac_cv_search_seccomp_init" >&6; } 13461ac_res=$ac_cv_search_seccomp_init 13462if test "$ac_res" != no; then : 13463 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 13464 13465fi 13466 13467fi 13468 13469 13470if test "x$enable_libscrypt" != "xno"; then 13471 for ac_header in libscrypt.h 13472do : 13473 ac_fn_c_check_header_mongrel "$LINENO" "libscrypt.h" "ac_cv_header_libscrypt_h" "$ac_includes_default" 13474if test "x$ac_cv_header_libscrypt_h" = xyes; then : 13475 cat >>confdefs.h <<_ACEOF 13476#define HAVE_LIBSCRYPT_H 1 13477_ACEOF 13478 13479fi 13480 13481done 13482 13483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing libscrypt_scrypt" >&5 13484$as_echo_n "checking for library containing libscrypt_scrypt... " >&6; } 13485if ${ac_cv_search_libscrypt_scrypt+:} false; then : 13486 $as_echo_n "(cached) " >&6 13487else 13488 ac_func_search_save_LIBS=$LIBS 13489cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13490/* end confdefs.h. */ 13491 13492/* Override any GCC internal prototype to avoid an error. 13493 Use char because int might match the return type of a GCC 13494 builtin and then its argument prototype would still apply. */ 13495#ifdef __cplusplus 13496extern "C" 13497#endif 13498char libscrypt_scrypt (); 13499int 13500main () 13501{ 13502return libscrypt_scrypt (); 13503 ; 13504 return 0; 13505} 13506_ACEOF 13507for ac_lib in '' scrypt; do 13508 if test -z "$ac_lib"; then 13509 ac_res="none required" 13510 else 13511 ac_res=-l$ac_lib 13512 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 13513 fi 13514 if ac_fn_c_try_link "$LINENO"; then : 13515 ac_cv_search_libscrypt_scrypt=$ac_res 13516fi 13517rm -f core conftest.err conftest.$ac_objext \ 13518 conftest$ac_exeext 13519 if ${ac_cv_search_libscrypt_scrypt+:} false; then : 13520 break 13521fi 13522done 13523if ${ac_cv_search_libscrypt_scrypt+:} false; then : 13524 13525else 13526 ac_cv_search_libscrypt_scrypt=no 13527fi 13528rm conftest.$ac_ext 13529LIBS=$ac_func_search_save_LIBS 13530fi 13531{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_libscrypt_scrypt" >&5 13532$as_echo "$ac_cv_search_libscrypt_scrypt" >&6; } 13533ac_res=$ac_cv_search_libscrypt_scrypt 13534if test "$ac_res" != no; then : 13535 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 13536 13537fi 13538 13539 for ac_func in libscrypt_scrypt 13540do : 13541 ac_fn_c_check_func "$LINENO" "libscrypt_scrypt" "ac_cv_func_libscrypt_scrypt" 13542if test "x$ac_cv_func_libscrypt_scrypt" = xyes; then : 13543 cat >>confdefs.h <<_ACEOF 13544#define HAVE_LIBSCRYPT_SCRYPT 1 13545_ACEOF 13546 13547fi 13548done 13549 13550fi 13551 13552 13553build_curve25519_donna=no 13554build_curve25519_donna_c64=no 13555use_curve25519_donna=no 13556use_curve25519_nacl=no 13557CURVE25519_LIBS= 13558 13559{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can use curve25519-donna-c64" >&5 13560$as_echo_n "checking whether we can use curve25519-donna-c64... " >&6; } 13561if ${tor_cv_can_use_curve25519_donna_c64+:} false; then : 13562 $as_echo_n "(cached) " >&6 13563else 13564 if test "$cross_compiling" = yes; then : 13565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13566/* end confdefs.h. */ 13567 #include <stdint.h> 13568 typedef unsigned uint128_t __attribute__((mode(TI))); 13569 int func(uint64_t a, uint64_t b) { 13570 uint128_t c = ((uint128_t)a) * b; 13571 int ok = ((uint64_t)(c>>96)) == 522859 && 13572 (((uint64_t)(c>>64))&0xffffffffL) == 3604448702L && 13573 (((uint64_t)(c>>32))&0xffffffffL) == 2351960064L && 13574 (((uint64_t)(c))&0xffffffffL) == 0; 13575 return ok; 13576 } 13577 13578int 13579main () 13580{ 13581 int ok = func( ((uint64_t)2000000000) * 1000000000, 13582 ((uint64_t)1234567890) << 24); 13583 return !ok; 13584 13585 ; 13586 return 0; 13587} 13588_ACEOF 13589if ac_fn_c_try_link "$LINENO"; then : 13590 tor_cv_can_use_curve25519_donna_c64=cross 13591else 13592 tor_cv_can_use_curve25519_donna_c64=no 13593fi 13594rm -f core conftest.err conftest.$ac_objext \ 13595 conftest$ac_exeext conftest.$ac_ext 13596else 13597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13598/* end confdefs.h. */ 13599 #include <stdint.h> 13600 typedef unsigned uint128_t __attribute__((mode(TI))); 13601 int func(uint64_t a, uint64_t b) { 13602 uint128_t c = ((uint128_t)a) * b; 13603 int ok = ((uint64_t)(c>>96)) == 522859 && 13604 (((uint64_t)(c>>64))&0xffffffffL) == 3604448702L && 13605 (((uint64_t)(c>>32))&0xffffffffL) == 2351960064L && 13606 (((uint64_t)(c))&0xffffffffL) == 0; 13607 return ok; 13608 } 13609 13610int 13611main () 13612{ 13613 int ok = func( ((uint64_t)2000000000) * 1000000000, 13614 ((uint64_t)1234567890) << 24); 13615 return !ok; 13616 13617 ; 13618 return 0; 13619} 13620_ACEOF 13621if ac_fn_c_try_run "$LINENO"; then : 13622 tor_cv_can_use_curve25519_donna_c64=yes 13623else 13624 tor_cv_can_use_curve25519_donna_c64=no 13625fi 13626rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 13627 conftest.$ac_objext conftest.beam conftest.$ac_ext 13628fi 13629 13630fi 13631{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_can_use_curve25519_donna_c64" >&5 13632$as_echo "$tor_cv_can_use_curve25519_donna_c64" >&6; } 13633 13634for ac_header in crypto_scalarmult_curve25519.h \ 13635 nacl/crypto_scalarmult_curve25519.h 13636do : 13637 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 13638ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 13639if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 13640 cat >>confdefs.h <<_ACEOF 13641#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 13642_ACEOF 13643 13644fi 13645 13646done 13647 13648 13649{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for nacl compiled with a fast curve25519 implementation" >&5 13650$as_echo_n "checking for nacl compiled with a fast curve25519 implementation... " >&6; } 13651if ${tor_cv_can_use_curve25519_nacl+:} false; then : 13652 $as_echo_n "(cached) " >&6 13653else 13654 tor_saved_LIBS="$LIBS" 13655 LIBS="$LIBS -lnacl" 13656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13657/* end confdefs.h. */ 13658 #ifdef HAVE_CRYPTO_SCALARMULT_CURVE25519_H 13659 #include <crypto_scalarmult_curve25519.h> 13660 #elif defined(HAVE_NACL_CRYPTO_SCALARMULT_CURVE25519_H) 13661 #include <nacl/crypto_scalarmult_curve25519.h> 13662 #endif 13663 #ifdef crypto_scalarmult_curve25519_ref_BYTES 13664 #error Hey, this is the reference implementation! That's not fast. 13665 #endif 13666 13667int 13668main () 13669{ 13670 13671 unsigned char *a, *b, *c; crypto_scalarmult_curve25519(a,b,c); 13672 13673 ; 13674 return 0; 13675} 13676_ACEOF 13677if ac_fn_c_try_link "$LINENO"; then : 13678 tor_cv_can_use_curve25519_nacl=yes 13679else 13680 tor_cv_can_use_curve25519_nacl=no 13681fi 13682rm -f core conftest.err conftest.$ac_objext \ 13683 conftest$ac_exeext conftest.$ac_ext 13684 LIBS="$tor_saved_LIBS" 13685fi 13686{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_can_use_curve25519_nacl" >&5 13687$as_echo "$tor_cv_can_use_curve25519_nacl" >&6; } 13688 13689 13690 if test "x$tor_cv_can_use_curve25519_donna_c64" != "xno"; then 13691 build_curve25519_donna_c64=yes 13692 use_curve25519_donna=yes 13693 elif test "x$tor_cv_can_use_curve25519_nacl" = "xyes"; then 13694 use_curve25519_nacl=yes 13695 CURVE25519_LIBS=-lnacl 13696 else 13697 build_curve25519_donna=yes 13698 use_curve25519_donna=yes 13699 fi 13700 13701if test "x$use_curve25519_donna" = "xyes"; then 13702 13703$as_echo "#define USE_CURVE25519_DONNA 1" >>confdefs.h 13704 13705fi 13706if test "x$use_curve25519_nacl" = "xyes"; then 13707 13708$as_echo "#define USE_CURVE25519_NACL 1" >>confdefs.h 13709 13710fi 13711 if test "x$build_curve25519_donna" = "xyes"; then 13712 BUILD_CURVE25519_DONNA_TRUE= 13713 BUILD_CURVE25519_DONNA_FALSE='#' 13714else 13715 BUILD_CURVE25519_DONNA_TRUE='#' 13716 BUILD_CURVE25519_DONNA_FALSE= 13717fi 13718 13719 if test "x$build_curve25519_donna_c64" = "xyes"; then 13720 BUILD_CURVE25519_DONNA_C64_TRUE= 13721 BUILD_CURVE25519_DONNA_C64_FALSE='#' 13722else 13723 BUILD_CURVE25519_DONNA_C64_TRUE='#' 13724 BUILD_CURVE25519_DONNA_C64_FALSE= 13725fi 13726 13727 13728 13729# Check whether --enable-largefile was given. 13730if test "${enable_largefile+set}" = set; then : 13731 enableval=$enable_largefile; 13732fi 13733 13734if test "$enable_largefile" != no; then 13735 13736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5 13737$as_echo_n "checking for special C compiler options needed for large files... " >&6; } 13738if ${ac_cv_sys_largefile_CC+:} false; then : 13739 $as_echo_n "(cached) " >&6 13740else 13741 ac_cv_sys_largefile_CC=no 13742 if test "$GCC" != yes; then 13743 ac_save_CC=$CC 13744 while :; do 13745 # IRIX 6.2 and later do not support large files by default, 13746 # so use the C compiler's -n32 option if that helps. 13747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13748/* end confdefs.h. */ 13749#include <sys/types.h> 13750 /* Check that off_t can represent 2**63 - 1 correctly. 13751 We can't simply define LARGE_OFF_T to be 9223372036854775807, 13752 since some C++ compilers masquerading as C compilers 13753 incorrectly reject 9223372036854775807. */ 13754#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31)) 13755 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 13756 && LARGE_OFF_T % 2147483647 == 1) 13757 ? 1 : -1]; 13758int 13759main () 13760{ 13761 13762 ; 13763 return 0; 13764} 13765_ACEOF 13766 if ac_fn_c_try_compile "$LINENO"; then : 13767 break 13768fi 13769rm -f core conftest.err conftest.$ac_objext 13770 CC="$CC -n32" 13771 if ac_fn_c_try_compile "$LINENO"; then : 13772 ac_cv_sys_largefile_CC=' -n32'; break 13773fi 13774rm -f core conftest.err conftest.$ac_objext 13775 break 13776 done 13777 CC=$ac_save_CC 13778 rm -f conftest.$ac_ext 13779 fi 13780fi 13781{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5 13782$as_echo "$ac_cv_sys_largefile_CC" >&6; } 13783 if test "$ac_cv_sys_largefile_CC" != no; then 13784 CC=$CC$ac_cv_sys_largefile_CC 13785 fi 13786 13787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5 13788$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } 13789if ${ac_cv_sys_file_offset_bits+:} false; then : 13790 $as_echo_n "(cached) " >&6 13791else 13792 while :; do 13793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13794/* end confdefs.h. */ 13795#include <sys/types.h> 13796 /* Check that off_t can represent 2**63 - 1 correctly. 13797 We can't simply define LARGE_OFF_T to be 9223372036854775807, 13798 since some C++ compilers masquerading as C compilers 13799 incorrectly reject 9223372036854775807. */ 13800#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31)) 13801 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 13802 && LARGE_OFF_T % 2147483647 == 1) 13803 ? 1 : -1]; 13804int 13805main () 13806{ 13807 13808 ; 13809 return 0; 13810} 13811_ACEOF 13812if ac_fn_c_try_compile "$LINENO"; then : 13813 ac_cv_sys_file_offset_bits=no; break 13814fi 13815rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13817/* end confdefs.h. */ 13818#define _FILE_OFFSET_BITS 64 13819#include <sys/types.h> 13820 /* Check that off_t can represent 2**63 - 1 correctly. 13821 We can't simply define LARGE_OFF_T to be 9223372036854775807, 13822 since some C++ compilers masquerading as C compilers 13823 incorrectly reject 9223372036854775807. */ 13824#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31)) 13825 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 13826 && LARGE_OFF_T % 2147483647 == 1) 13827 ? 1 : -1]; 13828int 13829main () 13830{ 13831 13832 ; 13833 return 0; 13834} 13835_ACEOF 13836if ac_fn_c_try_compile "$LINENO"; then : 13837 ac_cv_sys_file_offset_bits=64; break 13838fi 13839rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13840 ac_cv_sys_file_offset_bits=unknown 13841 break 13842done 13843fi 13844{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5 13845$as_echo "$ac_cv_sys_file_offset_bits" >&6; } 13846case $ac_cv_sys_file_offset_bits in #( 13847 no | unknown) ;; 13848 *) 13849cat >>confdefs.h <<_ACEOF 13850#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits 13851_ACEOF 13852;; 13853esac 13854rm -rf conftest* 13855 if test $ac_cv_sys_file_offset_bits = unknown; then 13856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5 13857$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; } 13858if ${ac_cv_sys_large_files+:} false; then : 13859 $as_echo_n "(cached) " >&6 13860else 13861 while :; do 13862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13863/* end confdefs.h. */ 13864#include <sys/types.h> 13865 /* Check that off_t can represent 2**63 - 1 correctly. 13866 We can't simply define LARGE_OFF_T to be 9223372036854775807, 13867 since some C++ compilers masquerading as C compilers 13868 incorrectly reject 9223372036854775807. */ 13869#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31)) 13870 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 13871 && LARGE_OFF_T % 2147483647 == 1) 13872 ? 1 : -1]; 13873int 13874main () 13875{ 13876 13877 ; 13878 return 0; 13879} 13880_ACEOF 13881if ac_fn_c_try_compile "$LINENO"; then : 13882 ac_cv_sys_large_files=no; break 13883fi 13884rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13886/* end confdefs.h. */ 13887#define _LARGE_FILES 1 13888#include <sys/types.h> 13889 /* Check that off_t can represent 2**63 - 1 correctly. 13890 We can't simply define LARGE_OFF_T to be 9223372036854775807, 13891 since some C++ compilers masquerading as C compilers 13892 incorrectly reject 9223372036854775807. */ 13893#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31)) 13894 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 13895 && LARGE_OFF_T % 2147483647 == 1) 13896 ? 1 : -1]; 13897int 13898main () 13899{ 13900 13901 ; 13902 return 0; 13903} 13904_ACEOF 13905if ac_fn_c_try_compile "$LINENO"; then : 13906 ac_cv_sys_large_files=1; break 13907fi 13908rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13909 ac_cv_sys_large_files=unknown 13910 break 13911done 13912fi 13913{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5 13914$as_echo "$ac_cv_sys_large_files" >&6; } 13915case $ac_cv_sys_large_files in #( 13916 no | unknown) ;; 13917 *) 13918cat >>confdefs.h <<_ACEOF 13919#define _LARGE_FILES $ac_cv_sys_large_files 13920_ACEOF 13921;; 13922esac 13923rm -rf conftest* 13924 fi 13925 13926 13927fi 13928 13929 13930for ac_header in errno.h \ 13931 fcntl.h \ 13932 signal.h \ 13933 string.h \ 13934 sys/capability.h \ 13935 sys/fcntl.h \ 13936 sys/stat.h \ 13937 sys/time.h \ 13938 sys/types.h \ 13939 time.h \ 13940 unistd.h \ 13941 arpa/inet.h \ 13942 crt_externs.h \ 13943 execinfo.h \ 13944 gnu/libc-version.h \ 13945 grp.h \ 13946 ifaddrs.h \ 13947 inttypes.h \ 13948 limits.h \ 13949 linux/types.h \ 13950 mach/vm_inherit.h \ 13951 machine/limits.h \ 13952 malloc.h \ 13953 netdb.h \ 13954 netinet/in.h \ 13955 netinet/in6.h \ 13956 pwd.h \ 13957 readpassphrase.h \ 13958 stdatomic.h \ 13959 sys/eventfd.h \ 13960 sys/file.h \ 13961 sys/ioctl.h \ 13962 sys/limits.h \ 13963 sys/mman.h \ 13964 sys/param.h \ 13965 sys/prctl.h \ 13966 sys/random.h \ 13967 sys/resource.h \ 13968 sys/select.h \ 13969 sys/socket.h \ 13970 sys/statvfs.h \ 13971 sys/syscall.h \ 13972 sys/sysctl.h \ 13973 sys/time.h \ 13974 sys/types.h \ 13975 sys/un.h \ 13976 sys/utime.h \ 13977 sys/wait.h \ 13978 syslog.h \ 13979 utime.h \ 13980 glob.h 13981do : 13982 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 13983ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 13984if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 13985 cat >>confdefs.h <<_ACEOF 13986#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 13987_ACEOF 13988 13989fi 13990 13991done 13992 13993 13994for ac_header in sys/param.h 13995do : 13996 ac_fn_c_check_header_mongrel "$LINENO" "sys/param.h" "ac_cv_header_sys_param_h" "$ac_includes_default" 13997if test "x$ac_cv_header_sys_param_h" = xyes; then : 13998 cat >>confdefs.h <<_ACEOF 13999#define HAVE_SYS_PARAM_H 1 14000_ACEOF 14001 14002fi 14003 14004done 14005 14006 14007for ac_header in net/if.h 14008do : 14009 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "#ifdef HAVE_SYS_TYPES_H 14010#include <sys/types.h> 14011#endif 14012#ifdef HAVE_SYS_SOCKET_H 14013#include <sys/socket.h> 14014#endif 14015" 14016if test "x$ac_cv_header_net_if_h" = xyes; then : 14017 cat >>confdefs.h <<_ACEOF 14018#define HAVE_NET_IF_H 1 14019_ACEOF 14020 net_if_found=1 14021else 14022 net_if_found=0 14023fi 14024 14025done 14026 14027for ac_header in net/pfvar.h 14028do : 14029 ac_fn_c_check_header_compile "$LINENO" "net/pfvar.h" "ac_cv_header_net_pfvar_h" "#ifdef HAVE_SYS_TYPES_H 14030#include <sys/types.h> 14031#endif 14032#ifdef HAVE_SYS_SOCKET_H 14033#include <sys/socket.h> 14034#endif 14035#ifdef HAVE_NET_IF_H 14036#include <net/if.h> 14037#endif 14038#ifdef HAVE_NETINET_IN_H 14039#include <netinet/in.h> 14040#endif 14041" 14042if test "x$ac_cv_header_net_pfvar_h" = xyes; then : 14043 cat >>confdefs.h <<_ACEOF 14044#define HAVE_NET_PFVAR_H 1 14045_ACEOF 14046 net_pfvar_found=1 14047else 14048 net_pfvar_found=0 14049fi 14050 14051done 14052 14053 14054for ac_header in linux/if.h 14055do : 14056 ac_fn_c_check_header_compile "$LINENO" "linux/if.h" "ac_cv_header_linux_if_h" " 14057#ifdef HAVE_SYS_SOCKET_H 14058#include <sys/socket.h> 14059#endif 14060 14061" 14062if test "x$ac_cv_header_linux_if_h" = xyes; then : 14063 cat >>confdefs.h <<_ACEOF 14064#define HAVE_LINUX_IF_H 1 14065_ACEOF 14066 14067fi 14068 14069done 14070 14071 14072for ac_header in linux/netfilter_ipv4.h 14073do : 14074 ac_fn_c_check_header_compile "$LINENO" "linux/netfilter_ipv4.h" "ac_cv_header_linux_netfilter_ipv4_h" "#ifdef HAVE_SYS_TYPES_H 14075#include <sys/types.h> 14076#endif 14077#ifdef HAVE_SYS_SOCKET_H 14078#include <sys/socket.h> 14079#endif 14080#ifdef HAVE_LIMITS_H 14081#include <limits.h> 14082#endif 14083#ifdef HAVE_LINUX_TYPES_H 14084#include <linux/types.h> 14085#endif 14086#ifdef HAVE_NETINET_IN6_H 14087#include <netinet/in6.h> 14088#endif 14089#ifdef HAVE_NETINET_IN_H 14090#include <netinet/in.h> 14091#endif 14092" 14093if test "x$ac_cv_header_linux_netfilter_ipv4_h" = xyes; then : 14094 cat >>confdefs.h <<_ACEOF 14095#define HAVE_LINUX_NETFILTER_IPV4_H 1 14096_ACEOF 14097 linux_netfilter_ipv4=1 14098else 14099 linux_netfilter_ipv4=0 14100fi 14101 14102done 14103 14104 14105for ac_header in linux/netfilter_ipv6/ip6_tables.h 14106do : 14107 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 14108#include <sys/types.h> 14109#endif 14110#ifdef HAVE_SYS_SOCKET_H 14111#include <sys/socket.h> 14112#endif 14113#ifdef HAVE_LIMITS_H 14114#include <limits.h> 14115#endif 14116#ifdef HAVE_LINUX_TYPES_H 14117#include <linux/types.h> 14118#endif 14119#ifdef HAVE_NETINET_IN6_H 14120#include <netinet/in6.h> 14121#endif 14122#ifdef HAVE_NETINET_IN_H 14123#include <netinet/in.h> 14124#endif 14125#ifdef HAVE_LINUX_IF_H 14126#include <linux/if.h> 14127#endif 14128" 14129if test "x$ac_cv_header_linux_netfilter_ipv6_ip6_tables_h" = xyes; then : 14130 cat >>confdefs.h <<_ACEOF 14131#define HAVE_LINUX_NETFILTER_IPV6_IP6_TABLES_H 1 14132_ACEOF 14133 linux_netfilter_ipv6_ip6_tables=1 14134else 14135 linux_netfilter_ipv6_ip6_tables=0 14136fi 14137 14138done 14139 14140 14141transparent_ok=0 14142if test "x$net_if_found" = "x1" && test "x$net_pfvar_found" = "x1"; then 14143 transparent_ok=1 14144fi 14145if test "x$linux_netfilter_ipv4" = "x1"; then 14146 transparent_ok=1 14147fi 14148if test "x$linux_netfilter_ipv6_ip6_tables" = "x1"; then 14149 transparent_ok=1 14150fi 14151if test "x$transparent_ok" = "x1"; then 14152 14153$as_echo "#define USE_TRANSPARENT 1" >>confdefs.h 14154 14155else 14156 { $as_echo "$as_me:${as_lineno-$LINENO}: Transparent proxy support enabled, but missing headers." >&5 14157$as_echo "$as_me: Transparent proxy support enabled, but missing headers." >&6;} 14158fi 14159 14160ac_fn_c_check_member "$LINENO" "struct timeval" "tv_sec" "ac_cv_member_struct_timeval_tv_sec" "#ifdef HAVE_SYS_TYPES_H 14161#include <sys/types.h> 14162#endif 14163#ifdef HAVE_SYS_TIME_H 14164#include <sys/time.h> 14165#endif 14166" 14167if test "x$ac_cv_member_struct_timeval_tv_sec" = xyes; then : 14168 14169cat >>confdefs.h <<_ACEOF 14170#define HAVE_STRUCT_TIMEVAL_TV_SEC 1 14171_ACEOF 14172 14173 14174fi 14175 14176 14177# The cast to long int works around a bug in the HP C Compiler 14178# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 14179# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 14180# This bug is HP SR number 8606223364. 14181{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5 14182$as_echo_n "checking size of char... " >&6; } 14183if ${ac_cv_sizeof_char+:} false; then : 14184 $as_echo_n "(cached) " >&6 14185else 14186 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char" "$ac_includes_default"; then : 14187 14188else 14189 if test "$ac_cv_type_char" = yes; then 14190 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 14191$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 14192as_fn_error 77 "cannot compute sizeof (char) 14193See \`config.log' for more details" "$LINENO" 5; } 14194 else 14195 ac_cv_sizeof_char=0 14196 fi 14197fi 14198 14199fi 14200{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5 14201$as_echo "$ac_cv_sizeof_char" >&6; } 14202 14203 14204 14205cat >>confdefs.h <<_ACEOF 14206#define SIZEOF_CHAR $ac_cv_sizeof_char 14207_ACEOF 14208 14209 14210# The cast to long int works around a bug in the HP C Compiler 14211# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 14212# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 14213# This bug is HP SR number 8606223364. 14214{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5 14215$as_echo_n "checking size of short... " >&6; } 14216if ${ac_cv_sizeof_short+:} false; then : 14217 $as_echo_n "(cached) " >&6 14218else 14219 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then : 14220 14221else 14222 if test "$ac_cv_type_short" = yes; then 14223 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 14224$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 14225as_fn_error 77 "cannot compute sizeof (short) 14226See \`config.log' for more details" "$LINENO" 5; } 14227 else 14228 ac_cv_sizeof_short=0 14229 fi 14230fi 14231 14232fi 14233{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5 14234$as_echo "$ac_cv_sizeof_short" >&6; } 14235 14236 14237 14238cat >>confdefs.h <<_ACEOF 14239#define SIZEOF_SHORT $ac_cv_sizeof_short 14240_ACEOF 14241 14242 14243# The cast to long int works around a bug in the HP C Compiler 14244# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 14245# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 14246# This bug is HP SR number 8606223364. 14247{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5 14248$as_echo_n "checking size of int... " >&6; } 14249if ${ac_cv_sizeof_int+:} false; then : 14250 $as_echo_n "(cached) " >&6 14251else 14252 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then : 14253 14254else 14255 if test "$ac_cv_type_int" = yes; then 14256 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 14257$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 14258as_fn_error 77 "cannot compute sizeof (int) 14259See \`config.log' for more details" "$LINENO" 5; } 14260 else 14261 ac_cv_sizeof_int=0 14262 fi 14263fi 14264 14265fi 14266{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5 14267$as_echo "$ac_cv_sizeof_int" >&6; } 14268 14269 14270 14271cat >>confdefs.h <<_ACEOF 14272#define SIZEOF_INT $ac_cv_sizeof_int 14273_ACEOF 14274 14275 14276# The cast to long int works around a bug in the HP C Compiler 14277# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 14278# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 14279# This bug is HP SR number 8606223364. 14280{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5 14281$as_echo_n "checking size of unsigned int... " >&6; } 14282if ${ac_cv_sizeof_unsigned_int+:} false; then : 14283 $as_echo_n "(cached) " >&6 14284else 14285 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned int))" "ac_cv_sizeof_unsigned_int" "$ac_includes_default"; then : 14286 14287else 14288 if test "$ac_cv_type_unsigned_int" = yes; then 14289 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 14290$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 14291as_fn_error 77 "cannot compute sizeof (unsigned int) 14292See \`config.log' for more details" "$LINENO" 5; } 14293 else 14294 ac_cv_sizeof_unsigned_int=0 14295 fi 14296fi 14297 14298fi 14299{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5 14300$as_echo "$ac_cv_sizeof_unsigned_int" >&6; } 14301 14302 14303 14304cat >>confdefs.h <<_ACEOF 14305#define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int 14306_ACEOF 14307 14308 14309# The cast to long int works around a bug in the HP C Compiler 14310# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 14311# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 14312# This bug is HP SR number 8606223364. 14313{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5 14314$as_echo_n "checking size of long... " >&6; } 14315if ${ac_cv_sizeof_long+:} false; then : 14316 $as_echo_n "(cached) " >&6 14317else 14318 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then : 14319 14320else 14321 if test "$ac_cv_type_long" = yes; then 14322 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 14323$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 14324as_fn_error 77 "cannot compute sizeof (long) 14325See \`config.log' for more details" "$LINENO" 5; } 14326 else 14327 ac_cv_sizeof_long=0 14328 fi 14329fi 14330 14331fi 14332{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5 14333$as_echo "$ac_cv_sizeof_long" >&6; } 14334 14335 14336 14337cat >>confdefs.h <<_ACEOF 14338#define SIZEOF_LONG $ac_cv_sizeof_long 14339_ACEOF 14340 14341 14342# The cast to long int works around a bug in the HP C Compiler 14343# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 14344# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 14345# This bug is HP SR number 8606223364. 14346{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5 14347$as_echo_n "checking size of long long... " >&6; } 14348if ${ac_cv_sizeof_long_long+:} false; then : 14349 $as_echo_n "(cached) " >&6 14350else 14351 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then : 14352 14353else 14354 if test "$ac_cv_type_long_long" = yes; then 14355 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 14356$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 14357as_fn_error 77 "cannot compute sizeof (long long) 14358See \`config.log' for more details" "$LINENO" 5; } 14359 else 14360 ac_cv_sizeof_long_long=0 14361 fi 14362fi 14363 14364fi 14365{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5 14366$as_echo "$ac_cv_sizeof_long_long" >&6; } 14367 14368 14369 14370cat >>confdefs.h <<_ACEOF 14371#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long 14372_ACEOF 14373 14374 14375# The cast to long int works around a bug in the HP C Compiler 14376# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 14377# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 14378# This bug is HP SR number 8606223364. 14379{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of __int64" >&5 14380$as_echo_n "checking size of __int64... " >&6; } 14381if ${ac_cv_sizeof___int64+:} false; then : 14382 $as_echo_n "(cached) " >&6 14383else 14384 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (__int64))" "ac_cv_sizeof___int64" "$ac_includes_default"; then : 14385 14386else 14387 if test "$ac_cv_type___int64" = yes; then 14388 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 14389$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 14390as_fn_error 77 "cannot compute sizeof (__int64) 14391See \`config.log' for more details" "$LINENO" 5; } 14392 else 14393 ac_cv_sizeof___int64=0 14394 fi 14395fi 14396 14397fi 14398{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof___int64" >&5 14399$as_echo "$ac_cv_sizeof___int64" >&6; } 14400 14401 14402 14403cat >>confdefs.h <<_ACEOF 14404#define SIZEOF___INT64 $ac_cv_sizeof___int64 14405_ACEOF 14406 14407 14408# The cast to long int works around a bug in the HP C Compiler 14409# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 14410# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 14411# This bug is HP SR number 8606223364. 14412{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5 14413$as_echo_n "checking size of void *... " >&6; } 14414if ${ac_cv_sizeof_void_p+:} false; then : 14415 $as_echo_n "(cached) " >&6 14416else 14417 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then : 14418 14419else 14420 if test "$ac_cv_type_void_p" = yes; then 14421 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 14422$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 14423as_fn_error 77 "cannot compute sizeof (void *) 14424See \`config.log' for more details" "$LINENO" 5; } 14425 else 14426 ac_cv_sizeof_void_p=0 14427 fi 14428fi 14429 14430fi 14431{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5 14432$as_echo "$ac_cv_sizeof_void_p" >&6; } 14433 14434 14435 14436cat >>confdefs.h <<_ACEOF 14437#define SIZEOF_VOID_P $ac_cv_sizeof_void_p 14438_ACEOF 14439 14440 14441# The cast to long int works around a bug in the HP C Compiler 14442# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 14443# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 14444# This bug is HP SR number 8606223364. 14445{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5 14446$as_echo_n "checking size of time_t... " >&6; } 14447if ${ac_cv_sizeof_time_t+:} false; then : 14448 $as_echo_n "(cached) " >&6 14449else 14450 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t" "$ac_includes_default"; then : 14451 14452else 14453 if test "$ac_cv_type_time_t" = yes; then 14454 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 14455$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 14456as_fn_error 77 "cannot compute sizeof (time_t) 14457See \`config.log' for more details" "$LINENO" 5; } 14458 else 14459 ac_cv_sizeof_time_t=0 14460 fi 14461fi 14462 14463fi 14464{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5 14465$as_echo "$ac_cv_sizeof_time_t" >&6; } 14466 14467 14468 14469cat >>confdefs.h <<_ACEOF 14470#define SIZEOF_TIME_T $ac_cv_sizeof_time_t 14471_ACEOF 14472 14473 14474# The cast to long int works around a bug in the HP C Compiler 14475# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 14476# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 14477# This bug is HP SR number 8606223364. 14478{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5 14479$as_echo_n "checking size of size_t... " >&6; } 14480if ${ac_cv_sizeof_size_t+:} false; then : 14481 $as_echo_n "(cached) " >&6 14482else 14483 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default"; then : 14484 14485else 14486 if test "$ac_cv_type_size_t" = yes; then 14487 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 14488$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 14489as_fn_error 77 "cannot compute sizeof (size_t) 14490See \`config.log' for more details" "$LINENO" 5; } 14491 else 14492 ac_cv_sizeof_size_t=0 14493 fi 14494fi 14495 14496fi 14497{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5 14498$as_echo "$ac_cv_sizeof_size_t" >&6; } 14499 14500 14501 14502cat >>confdefs.h <<_ACEOF 14503#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t 14504_ACEOF 14505 14506 14507# The cast to long int works around a bug in the HP C Compiler 14508# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 14509# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 14510# This bug is HP SR number 8606223364. 14511{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of pid_t" >&5 14512$as_echo_n "checking size of pid_t... " >&6; } 14513if ${ac_cv_sizeof_pid_t+:} false; then : 14514 $as_echo_n "(cached) " >&6 14515else 14516 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (pid_t))" "ac_cv_sizeof_pid_t" "$ac_includes_default"; then : 14517 14518else 14519 if test "$ac_cv_type_pid_t" = yes; then 14520 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 14521$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 14522as_fn_error 77 "cannot compute sizeof (pid_t) 14523See \`config.log' for more details" "$LINENO" 5; } 14524 else 14525 ac_cv_sizeof_pid_t=0 14526 fi 14527fi 14528 14529fi 14530{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_pid_t" >&5 14531$as_echo "$ac_cv_sizeof_pid_t" >&6; } 14532 14533 14534 14535cat >>confdefs.h <<_ACEOF 14536#define SIZEOF_PID_T $ac_cv_sizeof_pid_t 14537_ACEOF 14538 14539 14540 14541ac_fn_c_check_type "$LINENO" "uint" "ac_cv_type_uint" "$ac_includes_default" 14542if test "x$ac_cv_type_uint" = xyes; then : 14543 14544cat >>confdefs.h <<_ACEOF 14545#define HAVE_UINT 1 14546_ACEOF 14547 14548 14549fi 14550ac_fn_c_check_type "$LINENO" "u_char" "ac_cv_type_u_char" "$ac_includes_default" 14551if test "x$ac_cv_type_u_char" = xyes; then : 14552 14553cat >>confdefs.h <<_ACEOF 14554#define HAVE_U_CHAR 1 14555_ACEOF 14556 14557 14558fi 14559ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default" 14560if test "x$ac_cv_type_ssize_t" = xyes; then : 14561 14562cat >>confdefs.h <<_ACEOF 14563#define HAVE_SSIZE_T 1 14564_ACEOF 14565 14566 14567fi 14568 14569 14570for ac_header in ucontext.h 14571do : 14572 ac_fn_c_check_header_mongrel "$LINENO" "ucontext.h" "ac_cv_header_ucontext_h" "$ac_includes_default" 14573if test "x$ac_cv_header_ucontext_h" = xyes; then : 14574 cat >>confdefs.h <<_ACEOF 14575#define HAVE_UCONTEXT_H 1 14576_ACEOF 14577 14578fi 14579 14580done 14581 14582 # Redhat 7 has <sys/ucontext.h>, but it barfs if we #include it directly 14583 # (this was fixed in later redhats). <ucontext.h> works fine, so use that. 14584 if grep "Red Hat Linux release 7" /etc/redhat-release >/dev/null 2>&1; then 14585 14586$as_echo "#define HAVE_SYS_UCONTEXT_H 0" >>confdefs.h 14587 14588 ac_cv_header_sys_ucontext_h=no 14589 else 14590 for ac_header in sys/ucontext.h 14591do : 14592 ac_fn_c_check_header_mongrel "$LINENO" "sys/ucontext.h" "ac_cv_header_sys_ucontext_h" "$ac_includes_default" 14593if test "x$ac_cv_header_sys_ucontext_h" = xyes; then : 14594 cat >>confdefs.h <<_ACEOF 14595#define HAVE_SYS_UCONTEXT_H 1 14596_ACEOF 14597 14598fi 14599 14600done 14601 # ucontext on OS X 10.6 (at least) 14602 fi 14603 for ac_header in cygwin/signal.h 14604do : 14605 ac_fn_c_check_header_mongrel "$LINENO" "cygwin/signal.h" "ac_cv_header_cygwin_signal_h" "$ac_includes_default" 14606if test "x$ac_cv_header_cygwin_signal_h" = xyes; then : 14607 cat >>confdefs.h <<_ACEOF 14608#define HAVE_CYGWIN_SIGNAL_H 1 14609_ACEOF 14610 14611fi 14612 14613done 14614 # ucontext on cygwin 14615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to access the program counter from a struct ucontext" >&5 14616$as_echo_n "checking how to access the program counter from a struct ucontext... " >&6; } 14617 pc_fields=" uc_mcontext.gregs[REG_PC]" # Solaris x86 (32 + 64 bit) 14618 pc_fields="$pc_fields uc_mcontext.gregs[REG_EIP]" # Linux (i386) 14619 pc_fields="$pc_fields uc_mcontext.gregs[REG_RIP]" # Linux (x86_64) 14620 pc_fields="$pc_fields uc_mcontext.sc_ip" # Linux (ia64) 14621 pc_fields="$pc_fields uc_mcontext.uc_regs->gregs[PT_NIP]" # Linux (ppc) 14622 pc_fields="$pc_fields uc_mcontext.gregs[R15]" # Linux (arm old [untested]) 14623 pc_fields="$pc_fields uc_mcontext.arm_pc" # Linux (arm arch 5) 14624 pc_fields="$pc_fields uc_mcontext.gp_regs[PT_NIP]" # Suse SLES 11 (ppc64) 14625 pc_fields="$pc_fields uc_mcontext.mc_eip" # FreeBSD (i386) 14626 pc_fields="$pc_fields uc_mcontext.mc_rip" # FreeBSD (x86_64 [untested]) 14627 pc_fields="$pc_fields uc_mcontext.__gregs[_REG_EIP]" # NetBSD (i386) 14628 pc_fields="$pc_fields uc_mcontext.__gregs[_REG_RIP]" # NetBSD (x86_64) 14629 pc_fields="$pc_fields uc_mcontext->ss.eip" # OS X (i386, <=10.4) 14630 pc_fields="$pc_fields uc_mcontext->__ss.__eip" # OS X (i386, >=10.5) 14631 pc_fields="$pc_fields uc_mcontext->ss.rip" # OS X (x86_64) 14632 pc_fields="$pc_fields uc_mcontext->__ss.__rip" # OS X (>=10.5 [untested]) 14633 pc_fields="$pc_fields uc_mcontext->ss.srr0" # OS X (ppc, ppc64 [untested]) 14634 pc_fields="$pc_fields uc_mcontext->__ss.__srr0" # OS X (>=10.5 [untested]) 14635 pc_field_found=false 14636 for pc_field in $pc_fields; do 14637 if ! $pc_field_found; then 14638 # Prefer sys/ucontext.h to ucontext.h, for OS X's sake. 14639 if test "x$ac_cv_header_cygwin_signal_h" = xyes; then 14640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14641/* end confdefs.h. */ 14642#include <cygwin/signal.h> 14643int 14644main () 14645{ 14646ucontext_t u; return u.$pc_field == 0; 14647 ; 14648 return 0; 14649} 14650_ACEOF 14651if ac_fn_c_try_compile "$LINENO"; then : 14652 14653cat >>confdefs.h <<_ACEOF 14654#define PC_FROM_UCONTEXT $pc_field 14655_ACEOF 14656 14657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pc_field" >&5 14658$as_echo "$pc_field" >&6; } 14659 pc_field_found=true 14660fi 14661rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14662 elif test "x$ac_cv_header_sys_ucontext_h" = xyes; then 14663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14664/* end confdefs.h. */ 14665#include <sys/ucontext.h> 14666int 14667main () 14668{ 14669ucontext_t u; return u.$pc_field == 0; 14670 ; 14671 return 0; 14672} 14673_ACEOF 14674if ac_fn_c_try_compile "$LINENO"; then : 14675 14676cat >>confdefs.h <<_ACEOF 14677#define PC_FROM_UCONTEXT $pc_field 14678_ACEOF 14679 14680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pc_field" >&5 14681$as_echo "$pc_field" >&6; } 14682 pc_field_found=true 14683fi 14684rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14685 elif test "x$ac_cv_header_ucontext_h" = xyes; then 14686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14687/* end confdefs.h. */ 14688#include <ucontext.h> 14689int 14690main () 14691{ 14692ucontext_t u; return u.$pc_field == 0; 14693 ; 14694 return 0; 14695} 14696_ACEOF 14697if ac_fn_c_try_compile "$LINENO"; then : 14698 14699cat >>confdefs.h <<_ACEOF 14700#define PC_FROM_UCONTEXT $pc_field 14701_ACEOF 14702 14703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pc_field" >&5 14704$as_echo "$pc_field" >&6; } 14705 pc_field_found=true 14706fi 14707rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14708 else # hope some standard header gives it to us 14709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14710/* end confdefs.h. */ 14711 14712int 14713main () 14714{ 14715ucontext_t u; return u.$pc_field == 0; 14716 ; 14717 return 0; 14718} 14719_ACEOF 14720if ac_fn_c_try_compile "$LINENO"; then : 14721 14722cat >>confdefs.h <<_ACEOF 14723#define PC_FROM_UCONTEXT $pc_field 14724_ACEOF 14725 14726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pc_field" >&5 14727$as_echo "$pc_field" >&6; } 14728 pc_field_found=true 14729fi 14730rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14731 fi 14732 fi 14733 done 14734 if ! $pc_field_found; then 14735 pc_fields=" sc_eip" # OpenBSD (i386) 14736 pc_fields="$pc_fields sc_rip" # OpenBSD (x86_64) 14737 for pc_field in $pc_fields; do 14738 if ! $pc_field_found; then 14739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14740/* end confdefs.h. */ 14741#include <signal.h> 14742int 14743main () 14744{ 14745ucontext_t u; return u.$pc_field == 0; 14746 ; 14747 return 0; 14748} 14749_ACEOF 14750if ac_fn_c_try_compile "$LINENO"; then : 14751 14752cat >>confdefs.h <<_ACEOF 14753#define PC_FROM_UCONTEXT $pc_field 14754_ACEOF 14755 14756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pc_field" >&5 14757$as_echo "$pc_field" >&6; } 14758 pc_field_found=true 14759fi 14760rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14761 fi 14762 done 14763 fi 14764 if ! $pc_field_found; then 14765 : 14766 fi 14767 14768ac_fn_c_check_type "$LINENO" "struct in6_addr" "ac_cv_type_struct_in6_addr" "#ifdef HAVE_SYS_TYPES_H 14769#include <sys/types.h> 14770#endif 14771#ifdef HAVE_NETINET_IN_H 14772#include <netinet/in.h> 14773#endif 14774#ifdef HAVE_NETINET_IN6_H 14775#include <netinet/in6.h> 14776#endif 14777#ifdef HAVE_SYS_SOCKET_H 14778#include <sys/socket.h> 14779#endif 14780#ifdef _WIN32 14781#define _WIN32_WINNT 0x0501 14782#define WIN32_LEAN_AND_MEAN 14783#include <winsock2.h> 14784#include <ws2tcpip.h> 14785#endif 14786 14787" 14788if test "x$ac_cv_type_struct_in6_addr" = xyes; then : 14789 14790cat >>confdefs.h <<_ACEOF 14791#define HAVE_STRUCT_IN6_ADDR 1 14792_ACEOF 14793 14794 14795fi 14796ac_fn_c_check_type "$LINENO" "struct sockaddr_in6" "ac_cv_type_struct_sockaddr_in6" "#ifdef HAVE_SYS_TYPES_H 14797#include <sys/types.h> 14798#endif 14799#ifdef HAVE_NETINET_IN_H 14800#include <netinet/in.h> 14801#endif 14802#ifdef HAVE_NETINET_IN6_H 14803#include <netinet/in6.h> 14804#endif 14805#ifdef HAVE_SYS_SOCKET_H 14806#include <sys/socket.h> 14807#endif 14808#ifdef _WIN32 14809#define _WIN32_WINNT 0x0501 14810#define WIN32_LEAN_AND_MEAN 14811#include <winsock2.h> 14812#include <ws2tcpip.h> 14813#endif 14814 14815" 14816if test "x$ac_cv_type_struct_sockaddr_in6" = xyes; then : 14817 14818cat >>confdefs.h <<_ACEOF 14819#define HAVE_STRUCT_SOCKADDR_IN6 1 14820_ACEOF 14821 14822 14823fi 14824ac_fn_c_check_type "$LINENO" "sa_family_t" "ac_cv_type_sa_family_t" "#ifdef HAVE_SYS_TYPES_H 14825#include <sys/types.h> 14826#endif 14827#ifdef HAVE_NETINET_IN_H 14828#include <netinet/in.h> 14829#endif 14830#ifdef HAVE_NETINET_IN6_H 14831#include <netinet/in6.h> 14832#endif 14833#ifdef HAVE_SYS_SOCKET_H 14834#include <sys/socket.h> 14835#endif 14836#ifdef _WIN32 14837#define _WIN32_WINNT 0x0501 14838#define WIN32_LEAN_AND_MEAN 14839#include <winsock2.h> 14840#include <ws2tcpip.h> 14841#endif 14842 14843" 14844if test "x$ac_cv_type_sa_family_t" = xyes; then : 14845 14846cat >>confdefs.h <<_ACEOF 14847#define HAVE_SA_FAMILY_T 1 14848_ACEOF 14849 14850 14851fi 14852 14853ac_fn_c_check_member "$LINENO" "struct in6_addr" "s6_addr32" "ac_cv_member_struct_in6_addr_s6_addr32" "#ifdef HAVE_SYS_TYPES_H 14854#include <sys/types.h> 14855#endif 14856#ifdef HAVE_NETINET_IN_H 14857#include <netinet/in.h> 14858#endif 14859#ifdef HAVE_NETINET_IN6_H 14860#include <netinet/in6.h> 14861#endif 14862#ifdef HAVE_SYS_SOCKET_H 14863#include <sys/socket.h> 14864#endif 14865#ifdef _WIN32 14866#define _WIN32_WINNT 0x0501 14867#define WIN32_LEAN_AND_MEAN 14868#include <winsock2.h> 14869#include <ws2tcpip.h> 14870#endif 14871 14872" 14873if test "x$ac_cv_member_struct_in6_addr_s6_addr32" = xyes; then : 14874 14875cat >>confdefs.h <<_ACEOF 14876#define HAVE_STRUCT_IN6_ADDR_S6_ADDR32 1 14877_ACEOF 14878 14879 14880fi 14881ac_fn_c_check_member "$LINENO" "struct in6_addr" "s6_addr16" "ac_cv_member_struct_in6_addr_s6_addr16" "#ifdef HAVE_SYS_TYPES_H 14882#include <sys/types.h> 14883#endif 14884#ifdef HAVE_NETINET_IN_H 14885#include <netinet/in.h> 14886#endif 14887#ifdef HAVE_NETINET_IN6_H 14888#include <netinet/in6.h> 14889#endif 14890#ifdef HAVE_SYS_SOCKET_H 14891#include <sys/socket.h> 14892#endif 14893#ifdef _WIN32 14894#define _WIN32_WINNT 0x0501 14895#define WIN32_LEAN_AND_MEAN 14896#include <winsock2.h> 14897#include <ws2tcpip.h> 14898#endif 14899 14900" 14901if test "x$ac_cv_member_struct_in6_addr_s6_addr16" = xyes; then : 14902 14903cat >>confdefs.h <<_ACEOF 14904#define HAVE_STRUCT_IN6_ADDR_S6_ADDR16 1 14905_ACEOF 14906 14907 14908fi 14909ac_fn_c_check_member "$LINENO" "struct sockaddr_in" "sin_len" "ac_cv_member_struct_sockaddr_in_sin_len" "#ifdef HAVE_SYS_TYPES_H 14910#include <sys/types.h> 14911#endif 14912#ifdef HAVE_NETINET_IN_H 14913#include <netinet/in.h> 14914#endif 14915#ifdef HAVE_NETINET_IN6_H 14916#include <netinet/in6.h> 14917#endif 14918#ifdef HAVE_SYS_SOCKET_H 14919#include <sys/socket.h> 14920#endif 14921#ifdef _WIN32 14922#define _WIN32_WINNT 0x0501 14923#define WIN32_LEAN_AND_MEAN 14924#include <winsock2.h> 14925#include <ws2tcpip.h> 14926#endif 14927 14928" 14929if test "x$ac_cv_member_struct_sockaddr_in_sin_len" = xyes; then : 14930 14931cat >>confdefs.h <<_ACEOF 14932#define HAVE_STRUCT_SOCKADDR_IN_SIN_LEN 1 14933_ACEOF 14934 14935 14936fi 14937ac_fn_c_check_member "$LINENO" "struct sockaddr_in6" "sin6_len" "ac_cv_member_struct_sockaddr_in6_sin6_len" "#ifdef HAVE_SYS_TYPES_H 14938#include <sys/types.h> 14939#endif 14940#ifdef HAVE_NETINET_IN_H 14941#include <netinet/in.h> 14942#endif 14943#ifdef HAVE_NETINET_IN6_H 14944#include <netinet/in6.h> 14945#endif 14946#ifdef HAVE_SYS_SOCKET_H 14947#include <sys/socket.h> 14948#endif 14949#ifdef _WIN32 14950#define _WIN32_WINNT 0x0501 14951#define WIN32_LEAN_AND_MEAN 14952#include <winsock2.h> 14953#include <ws2tcpip.h> 14954#endif 14955 14956" 14957if test "x$ac_cv_member_struct_sockaddr_in6_sin6_len" = xyes; then : 14958 14959cat >>confdefs.h <<_ACEOF 14960#define HAVE_STRUCT_SOCKADDR_IN6_SIN6_LEN 1 14961_ACEOF 14962 14963 14964fi 14965 14966 14967ac_fn_c_check_type "$LINENO" "rlim_t" "ac_cv_type_rlim_t" "#ifdef HAVE_SYS_TYPES_H 14968#include <sys/types.h> 14969#endif 14970#ifdef HAVE_SYS_TIME_H 14971#include <sys/time.h> 14972#endif 14973#ifdef HAVE_SYS_RESOURCE_H 14974#include <sys/resource.h> 14975#endif 14976 14977" 14978if test "x$ac_cv_type_rlim_t" = xyes; then : 14979 14980cat >>confdefs.h <<_ACEOF 14981#define HAVE_RLIM_T 1 14982_ACEOF 14983 14984 14985fi 14986 14987 14988 14989 typename=`echo time_t | sed "s/[^a-zA-Z0-9_]/_/g"` 14990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time_t is signed" >&5 14991$as_echo_n "checking whether time_t is signed... " >&6; } 14992if eval \${ax_cv_decl_${typename}_signed+:} false; then : 14993 $as_echo_n "(cached) " >&6 14994else 14995 14996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14997/* end confdefs.h. */ 14998 14999#ifdef HAVE_SYS_TYPES_H 15000#include <sys/types.h> 15001#endif 15002#ifdef HAVE_SYS_TIME_H 15003#include <sys/time.h> 15004#endif 15005#ifdef HAVE_TIME_H 15006#include <time.h> 15007#endif 15008 15009int 15010main () 15011{ 15012 int foo [ 1 - 2 * !(((time_t) -1) < 0) ] 15013 ; 15014 return 0; 15015} 15016_ACEOF 15017if ac_fn_c_try_compile "$LINENO"; then : 15018 eval "ax_cv_decl_${typename}_signed=\"yes\"" 15019else 15020 eval "ax_cv_decl_${typename}_signed=\"no\"" 15021fi 15022rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15023fi 15024eval ac_res=\$ax_cv_decl_${typename}_signed 15025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 15026$as_echo "$ac_res" >&6; } 15027 symbolname=`echo time_t | sed "s/[^a-zA-Z0-9_]/_/g" | tr "a-z" "A-Z"` 15028 if eval "test \"\${ax_cv_decl_${typename}_signed}\" = \"yes\""; then 15029 : 15030 elif eval "test \"\${ax_cv_decl_${typename}_signed}\" = \"no\""; then 15031 : 15032 fi 15033 15034 15035if test "$ax_cv_decl_time_t_signed" = "no"; then 15036 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 15037fi 15038 15039 15040 typename=`echo size_t | sed "s/[^a-zA-Z0-9_]/_/g"` 15041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether size_t is signed" >&5 15042$as_echo_n "checking whether size_t is signed... " >&6; } 15043if eval \${ax_cv_decl_${typename}_signed+:} false; then : 15044 $as_echo_n "(cached) " >&6 15045else 15046 15047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15048/* end confdefs.h. */ 15049 15050#ifdef HAVE_SYS_TYPES_H 15051#include <sys/types.h> 15052#endif 15053 15054int 15055main () 15056{ 15057 int foo [ 1 - 2 * !(((size_t) -1) < 0) ] 15058 ; 15059 return 0; 15060} 15061_ACEOF 15062if ac_fn_c_try_compile "$LINENO"; then : 15063 eval "ax_cv_decl_${typename}_signed=\"yes\"" 15064else 15065 eval "ax_cv_decl_${typename}_signed=\"no\"" 15066fi 15067rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15068fi 15069eval ac_res=\$ax_cv_decl_${typename}_signed 15070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 15071$as_echo "$ac_res" >&6; } 15072 symbolname=`echo size_t | sed "s/[^a-zA-Z0-9_]/_/g" | tr "a-z" "A-Z"` 15073 if eval "test \"\${ax_cv_decl_${typename}_signed}\" = \"yes\""; then 15074 tor_cv_size_t_signed=yes 15075 elif eval "test \"\${ax_cv_decl_${typename}_signed}\" = \"no\""; then 15076 tor_cv_size_t_signed=no 15077 fi 15078 15079 15080if test "$ax_cv_decl_size_t_signed" = "yes"; then 15081 as_fn_error $? "You have a signed size_t; that's grossly nonconformant." "$LINENO" 5 15082fi 15083 15084 15085 typename=`echo enum always | sed "s/[^a-zA-Z0-9_]/_/g"` 15086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether enum always is signed" >&5 15087$as_echo_n "checking whether enum always is signed... " >&6; } 15088if eval \${ax_cv_decl_${typename}_signed+:} false; then : 15089 $as_echo_n "(cached) " >&6 15090else 15091 15092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15093/* end confdefs.h. */ 15094 15095 enum always { AAA, BBB, CCC }; 15096 15097int 15098main () 15099{ 15100 int foo [ 1 - 2 * !(((enum always) -1) < 0) ] 15101 ; 15102 return 0; 15103} 15104_ACEOF 15105if ac_fn_c_try_compile "$LINENO"; then : 15106 eval "ax_cv_decl_${typename}_signed=\"yes\"" 15107else 15108 eval "ax_cv_decl_${typename}_signed=\"no\"" 15109fi 15110rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15111fi 15112eval ac_res=\$ax_cv_decl_${typename}_signed 15113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 15114$as_echo "$ac_res" >&6; } 15115 symbolname=`echo enum always | sed "s/[^a-zA-Z0-9_]/_/g" | tr "a-z" "A-Z"` 15116 if eval "test \"\${ax_cv_decl_${typename}_signed}\" = \"yes\""; then 15117 15118$as_echo "#define ENUM_VALS_ARE_SIGNED 1" >>confdefs.h 15119 15120 elif eval "test \"\${ax_cv_decl_${typename}_signed}\" = \"no\""; then 15121 : 15122 fi 15123 15124 15125# The cast to long int works around a bug in the HP C Compiler 15126# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 15127# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 15128# This bug is HP SR number 8606223364. 15129{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of socklen_t" >&5 15130$as_echo_n "checking size of socklen_t... " >&6; } 15131if ${ac_cv_sizeof_socklen_t+:} false; then : 15132 $as_echo_n "(cached) " >&6 15133else 15134 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (socklen_t))" "ac_cv_sizeof_socklen_t" "$ac_includes_default 15135#ifdef HAVE_SYS_SOCKET_H 15136#include <sys/socket.h> 15137#endif 15138 15139"; then : 15140 15141else 15142 if test "$ac_cv_type_socklen_t" = yes; then 15143 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 15144$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 15145as_fn_error 77 "cannot compute sizeof (socklen_t) 15146See \`config.log' for more details" "$LINENO" 5; } 15147 else 15148 ac_cv_sizeof_socklen_t=0 15149 fi 15150fi 15151 15152fi 15153{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_socklen_t" >&5 15154$as_echo "$ac_cv_sizeof_socklen_t" >&6; } 15155 15156 15157 15158cat >>confdefs.h <<_ACEOF 15159#define SIZEOF_SOCKLEN_T $ac_cv_sizeof_socklen_t 15160_ACEOF 15161 15162 15163 15164# We want to make sure that we _don't_ have a cell_t defined, like IRIX does. 15165 15166# The cast to long int works around a bug in the HP C Compiler 15167# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 15168# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 15169# This bug is HP SR number 8606223364. 15170{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of cell_t" >&5 15171$as_echo_n "checking size of cell_t... " >&6; } 15172if ${ac_cv_sizeof_cell_t+:} false; then : 15173 $as_echo_n "(cached) " >&6 15174else 15175 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (cell_t))" "ac_cv_sizeof_cell_t" "$ac_includes_default"; then : 15176 15177else 15178 if test "$ac_cv_type_cell_t" = yes; then 15179 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 15180$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 15181as_fn_error 77 "cannot compute sizeof (cell_t) 15182See \`config.log' for more details" "$LINENO" 5; } 15183 else 15184 ac_cv_sizeof_cell_t=0 15185 fi 15186fi 15187 15188fi 15189{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_cell_t" >&5 15190$as_echo "$ac_cv_sizeof_cell_t" >&6; } 15191 15192 15193 15194cat >>confdefs.h <<_ACEOF 15195#define SIZEOF_CELL_T $ac_cv_sizeof_cell_t 15196_ACEOF 15197 15198 15199 15200# Let's see if stdatomic works. (There are some debian clangs that screw it 15201# up; see Tor bug #26779 and debian bug 903709.) 15202{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C11 stdatomic.h actually works" >&5 15203$as_echo_n "checking whether C11 stdatomic.h actually works... " >&6; } 15204if ${tor_cv_stdatomic_works+:} false; then : 15205 $as_echo_n "(cached) " >&6 15206else 15207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15208/* end confdefs.h. */ 15209 15210#include <stdatomic.h> 15211struct x { atomic_size_t y; }; 15212void try_atomic_init(struct x *xx) 15213{ 15214 atomic_init(&xx->y, 99); 15215 atomic_fetch_add(&xx->y, 1); 15216} 15217 15218_ACEOF 15219if ac_fn_c_try_compile "$LINENO"; then : 15220 tor_cv_stdatomic_works=yes 15221else 15222 tor_cv_stdatomic_works=no 15223fi 15224rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15225fi 15226{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_stdatomic_works" >&5 15227$as_echo "$tor_cv_stdatomic_works" >&6; } 15228 15229if test "$tor_cv_stdatomic_works" = "yes"; then 15230 15231$as_echo "#define STDATOMIC_WORKS 1" >>confdefs.h 15232 15233elif test "$ac_cv_header_stdatomic_h" = "yes"; then 15234 tor_incr_n_warnings 15235 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Your compiler provides the stdatomic.h header, but it doesn't seem to work. I'll pretend it isn't there. If you are using Clang on Debian, maybe this is because of https://bugs.debian.org/903709 " >&5 15236$as_echo "$as_me: WARNING: Your compiler provides the stdatomic.h header, but it doesn't seem to work. I'll pretend it isn't there. If you are using Clang on Debian, maybe this is because of https://bugs.debian.org/903709 " >&2;} 15237fi 15238 15239# Now make sure that NULL can be represented as zero bytes. 15240{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memset(0) sets pointers to NULL" >&5 15241$as_echo_n "checking whether memset(0) sets pointers to NULL... " >&6; } 15242if ${tor_cv_null_is_zero+:} false; then : 15243 $as_echo_n "(cached) " >&6 15244else 15245 if test "$cross_compiling" = yes; then : 15246 tor_cv_null_is_zero=cross 15247else 15248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15249/* end confdefs.h. */ 15250#include <stdlib.h> 15251#include <string.h> 15252#include <stdio.h> 15253#ifdef HAVE_STDDEF_H 15254#include <stddef.h> 15255#endif 15256int main () { char *p1,*p2; p1=NULL; memset(&p2,0,sizeof(p2)); 15257return memcmp(&p1,&p2,sizeof(char*))?1:0; } 15258_ACEOF 15259if ac_fn_c_try_run "$LINENO"; then : 15260 tor_cv_null_is_zero=yes 15261else 15262 tor_cv_null_is_zero=no 15263fi 15264rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 15265 conftest.$ac_objext conftest.beam conftest.$ac_ext 15266fi 15267 15268fi 15269{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_null_is_zero" >&5 15270$as_echo "$tor_cv_null_is_zero" >&6; } 15271 15272if test "$tor_cv_null_is_zero" = "cross"; then 15273 # Cross-compiling; let's hope that the target isn't raving mad. 15274 { $as_echo "$as_me:${as_lineno-$LINENO}: Cross-compiling: we'll assume that NULL is represented as a sequence of 0-valued bytes." >&5 15275$as_echo "$as_me: Cross-compiling: we'll assume that NULL is represented as a sequence of 0-valued bytes." >&6;} 15276fi 15277 15278if test "$tor_cv_null_is_zero" != "no"; then 15279 15280$as_echo "#define NULL_REP_IS_ZERO_BYTES 1" >>confdefs.h 15281 15282fi 15283 15284{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memset(0) sets doubles to 0.0" >&5 15285$as_echo_n "checking whether memset(0) sets doubles to 0.0... " >&6; } 15286if ${tor_cv_dbl0_is_zero+:} false; then : 15287 $as_echo_n "(cached) " >&6 15288else 15289 if test "$cross_compiling" = yes; then : 15290 tor_cv_dbl0_is_zero=cross 15291else 15292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15293/* end confdefs.h. */ 15294#include <stdlib.h> 15295#include <string.h> 15296#include <stdio.h> 15297#ifdef HAVE_STDDEF_H 15298#include <stddef.h> 15299#endif 15300int main () { double d1,d2; d1=0; memset(&d2,0,sizeof(d2)); 15301return memcmp(&d1,&d2,sizeof(d1))?1:0; } 15302_ACEOF 15303if ac_fn_c_try_run "$LINENO"; then : 15304 tor_cv_dbl0_is_zero=yes 15305else 15306 tor_cv_dbl0_is_zero=no 15307fi 15308rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 15309 conftest.$ac_objext conftest.beam conftest.$ac_ext 15310fi 15311 15312fi 15313{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_dbl0_is_zero" >&5 15314$as_echo "$tor_cv_dbl0_is_zero" >&6; } 15315 15316if test "$tor_cv_dbl0_is_zero" = "cross"; then 15317 # Cross-compiling; let's hope that the target isn't raving mad. 15318 { $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 15319$as_echo "$as_me: Cross-compiling: we'll assume that 0.0 can be represented as a sequence of 0-valued bytes." >&6;} 15320fi 15321 15322if test "$tor_cv_dbl0_is_zero" != "no"; then 15323 15324$as_echo "#define DOUBLE_0_REP_IS_ZERO_BYTES 1" >>confdefs.h 15325 15326fi 15327 15328# And what happens when we malloc zero? 15329{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can malloc(0) safely." >&5 15330$as_echo_n "checking whether we can malloc(0) safely.... " >&6; } 15331if ${tor_cv_malloc_zero_works+:} false; then : 15332 $as_echo_n "(cached) " >&6 15333else 15334 if test "$cross_compiling" = yes; then : 15335 tor_cv_malloc_zero_works=cross 15336else 15337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15338/* end confdefs.h. */ 15339#include <stdlib.h> 15340#include <string.h> 15341#include <stdio.h> 15342#ifdef HAVE_STDDEF_H 15343#include <stddef.h> 15344#endif 15345int main () { return malloc(0)?0:1; } 15346_ACEOF 15347if ac_fn_c_try_run "$LINENO"; then : 15348 tor_cv_malloc_zero_works=yes 15349else 15350 tor_cv_malloc_zero_works=no 15351fi 15352rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 15353 conftest.$ac_objext conftest.beam conftest.$ac_ext 15354fi 15355 15356fi 15357{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_malloc_zero_works" >&5 15358$as_echo "$tor_cv_malloc_zero_works" >&6; } 15359 15360if test "$tor_cv_malloc_zero_works" = "cross"; then 15361 # Cross-compiling; let's hope that the target isn't raving mad. 15362 { $as_echo "$as_me:${as_lineno-$LINENO}: Cross-compiling: we'll assume that we need to check malloc() arguments for 0." >&5 15363$as_echo "$as_me: Cross-compiling: we'll assume that we need to check malloc() arguments for 0." >&6;} 15364fi 15365 15366if test "$tor_cv_malloc_zero_works" = "yes"; then 15367 15368$as_echo "#define MALLOC_ZERO_WORKS 1" >>confdefs.h 15369 15370fi 15371 15372# whether we seem to be in a 2s-complement world. 15373{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using 2s-complement arithmetic" >&5 15374$as_echo_n "checking whether we are using 2s-complement arithmetic... " >&6; } 15375if ${tor_cv_twos_complement+:} false; then : 15376 $as_echo_n "(cached) " >&6 15377else 15378 if test "$cross_compiling" = yes; then : 15379 tor_cv_twos_complement=cross 15380else 15381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15382/* end confdefs.h. */ 15383int main () { int problem = ((-99) != (~99)+1); 15384return problem ? 1 : 0; } 15385_ACEOF 15386if ac_fn_c_try_run "$LINENO"; then : 15387 tor_cv_twos_complement=yes 15388else 15389 tor_cv_twos_complement=no 15390fi 15391rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 15392 conftest.$ac_objext conftest.beam conftest.$ac_ext 15393fi 15394 15395fi 15396{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_twos_complement" >&5 15397$as_echo "$tor_cv_twos_complement" >&6; } 15398 15399if test "$tor_cv_twos_complement" = "cross"; then 15400 # Cross-compiling; let's hope that the target isn't raving mad. 15401 { $as_echo "$as_me:${as_lineno-$LINENO}: Cross-compiling: we'll assume that negative integers are represented with two's complement." >&5 15402$as_echo "$as_me: Cross-compiling: we'll assume that negative integers are represented with two's complement." >&6;} 15403fi 15404 15405if test "$tor_cv_twos_complement" != "no"; then 15406 15407$as_echo "#define USING_TWOS_COMPLEMENT 1" >>confdefs.h 15408 15409fi 15410 15411# What does shifting a negative value do? 15412{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether right-shift on negative values does sign-extension" >&5 15413$as_echo_n "checking whether right-shift on negative values does sign-extension... " >&6; } 15414if ${tor_cv_sign_extend+:} false; then : 15415 $as_echo_n "(cached) " >&6 15416else 15417 if test "$cross_compiling" = yes; then : 15418 tor_cv_sign_extend=cross 15419else 15420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15421/* end confdefs.h. */ 15422int main () { int okay = (-60 >> 8) == -1; return okay ? 0 : 1; } 15423_ACEOF 15424if ac_fn_c_try_run "$LINENO"; then : 15425 tor_cv_sign_extend=yes 15426else 15427 tor_cv_sign_extend=no 15428fi 15429rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 15430 conftest.$ac_objext conftest.beam conftest.$ac_ext 15431fi 15432 15433fi 15434{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_sign_extend" >&5 15435$as_echo "$tor_cv_sign_extend" >&6; } 15436 15437if test "$tor_cv_sign_extend" = "cross"; then 15438 # Cross-compiling; let's hope that the target isn't raving mad. 15439 { $as_echo "$as_me:${as_lineno-$LINENO}: Cross-compiling: we'll assume that right-shifting negative integers causes sign-extension" >&5 15440$as_echo "$as_me: Cross-compiling: we'll assume that right-shifting negative integers causes sign-extension" >&6;} 15441fi 15442 15443if test "$tor_cv_sign_extend" != "no"; then 15444 15445$as_echo "#define RSHIFT_DOES_SIGN_EXTEND 1" >>confdefs.h 15446 15447fi 15448 15449# Is uint8_t the same type as unsigned char? 15450{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether uint8_t is the same type as unsigned char" >&5 15451$as_echo_n "checking whether uint8_t is the same type as unsigned char... " >&6; } 15452if ${tor_cv_uint8_uchar+:} false; then : 15453 $as_echo_n "(cached) " >&6 15454else 15455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15456/* end confdefs.h. */ 15457 15458#include <stdint.h> 15459extern uint8_t c; 15460unsigned char c; 15461_ACEOF 15462if ac_fn_c_try_compile "$LINENO"; then : 15463 tor_cv_uint8_uchar=yes 15464else 15465 tor_cv_uint8_uchar=no 15466fi 15467rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15468fi 15469{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_uint8_uchar" >&5 15470$as_echo "$tor_cv_uint8_uchar" >&6; } 15471 15472if test "$tor_cv_uint8_uchar" = "cross"; then 15473 { $as_echo "$as_me:${as_lineno-$LINENO}: Cross-compiling: we'll assume that uint8_t is the same type as unsigned char" >&5 15474$as_echo "$as_me: Cross-compiling: we'll assume that uint8_t is the same type as unsigned char" >&6;} 15475fi 15476 15477if test "$tor_cv_uint8_uchar" = "no"; then 15478 as_fn_error $? "We assume that uint8_t is the same type as unsigned char, but your compiler disagrees." "$LINENO" 5 15479fi 15480 15481 15482# Check whether --with-tcmalloc was given. 15483if test "${with_tcmalloc+set}" = set; then : 15484 withval=$with_tcmalloc; 15485fi 15486 15487 15488default_malloc=system 15489 15490if test "x$enable_openbsd_malloc" = "xyes" ; then 15491 { $as_echo "$as_me:${as_lineno-$LINENO}: The --enable-openbsd-malloc argument is deprecated; use --with-malloc=openbsd instead." >&5 15492$as_echo "$as_me: The --enable-openbsd-malloc argument is deprecated; use --with-malloc=openbsd instead." >&6;} 15493 default_malloc=openbsd 15494fi 15495 15496if test "x$with_tcmalloc" = "xyes"; then 15497 { $as_echo "$as_me:${as_lineno-$LINENO}: The --with-tcmalloc argument is deprecated; use --with-malloc=tcmalloc instead." >&5 15498$as_echo "$as_me: The --with-tcmalloc argument is deprecated; use --with-malloc=tcmalloc instead." >&6;} 15499 default_malloc=tcmalloc 15500fi 15501 15502 15503# Check whether --with-malloc was given. 15504if test "${with_malloc+set}" = set; then : 15505 withval=$with_malloc; malloc="$with_malloc" 15506else 15507 malloc="$default_malloc" 15508fi 15509 15510 15511case $malloc in #( 15512 tcmalloc) : 15513 15514 15515pkg_failed=no 15516{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for TCMALLOC" >&5 15517$as_echo_n "checking for TCMALLOC... " >&6; } 15518 15519if test -n "$TCMALLOC_CFLAGS"; then 15520 pkg_cv_TCMALLOC_CFLAGS="$TCMALLOC_CFLAGS" 15521 elif test -n "$PKG_CONFIG"; then 15522 if test -n "$PKG_CONFIG" && \ 15523 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libtcmalloc\""; } >&5 15524 ($PKG_CONFIG --exists --print-errors "libtcmalloc") 2>&5 15525 ac_status=$? 15526 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15527 test $ac_status = 0; }; then 15528 pkg_cv_TCMALLOC_CFLAGS=`$PKG_CONFIG --cflags "libtcmalloc" 2>/dev/null` 15529 test "x$?" != "x0" && pkg_failed=yes 15530else 15531 pkg_failed=yes 15532fi 15533 else 15534 pkg_failed=untried 15535fi 15536if test -n "$TCMALLOC_LIBS"; then 15537 pkg_cv_TCMALLOC_LIBS="$TCMALLOC_LIBS" 15538 elif test -n "$PKG_CONFIG"; then 15539 if test -n "$PKG_CONFIG" && \ 15540 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libtcmalloc\""; } >&5 15541 ($PKG_CONFIG --exists --print-errors "libtcmalloc") 2>&5 15542 ac_status=$? 15543 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15544 test $ac_status = 0; }; then 15545 pkg_cv_TCMALLOC_LIBS=`$PKG_CONFIG --libs "libtcmalloc" 2>/dev/null` 15546 test "x$?" != "x0" && pkg_failed=yes 15547else 15548 pkg_failed=yes 15549fi 15550 else 15551 pkg_failed=untried 15552fi 15553 15554 15555 15556if test $pkg_failed = yes; then 15557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15558$as_echo "no" >&6; } 15559 15560if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 15561 _pkg_short_errors_supported=yes 15562else 15563 _pkg_short_errors_supported=no 15564fi 15565 if test $_pkg_short_errors_supported = yes; then 15566 TCMALLOC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libtcmalloc" 2>&1` 15567 else 15568 TCMALLOC_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libtcmalloc" 2>&1` 15569 fi 15570 # Put the nasty error message in config.log where it belongs 15571 echo "$TCMALLOC_PKG_ERRORS" >&5 15572 15573 have_tcmalloc=no 15574elif test $pkg_failed = untried; then 15575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15576$as_echo "no" >&6; } 15577 have_tcmalloc=no 15578else 15579 TCMALLOC_CFLAGS=$pkg_cv_TCMALLOC_CFLAGS 15580 TCMALLOC_LIBS=$pkg_cv_TCMALLOC_LIBS 15581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15582$as_echo "yes" >&6; } 15583 have_tcmalloc=yes 15584fi 15585 15586 if test "x$have_tcmalloc" = "xno" ; then 15587 as_fn_error $? "Unable to find tcmalloc requested by --with-malloc, $pkg_config_user_action, or set TCMALLOC_CFLAGS and TCMALLOC_LIBS." "$LINENO" 5 15588 fi 15589 15590 CFLAGS="$CFLAGS $TCMALLOC_CFLAGS" 15591 LIBS="$TCMALLOC_LIBS $LIBS" 15592 ;; #( 15593 jemalloc) : 15594 15595 15596pkg_failed=no 15597{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for JEMALLOC" >&5 15598$as_echo_n "checking for JEMALLOC... " >&6; } 15599 15600if test -n "$JEMALLOC_CFLAGS"; then 15601 pkg_cv_JEMALLOC_CFLAGS="$JEMALLOC_CFLAGS" 15602 elif test -n "$PKG_CONFIG"; then 15603 if test -n "$PKG_CONFIG" && \ 15604 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"jemalloc\""; } >&5 15605 ($PKG_CONFIG --exists --print-errors "jemalloc") 2>&5 15606 ac_status=$? 15607 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15608 test $ac_status = 0; }; then 15609 pkg_cv_JEMALLOC_CFLAGS=`$PKG_CONFIG --cflags "jemalloc" 2>/dev/null` 15610 test "x$?" != "x0" && pkg_failed=yes 15611else 15612 pkg_failed=yes 15613fi 15614 else 15615 pkg_failed=untried 15616fi 15617if test -n "$JEMALLOC_LIBS"; then 15618 pkg_cv_JEMALLOC_LIBS="$JEMALLOC_LIBS" 15619 elif test -n "$PKG_CONFIG"; then 15620 if test -n "$PKG_CONFIG" && \ 15621 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"jemalloc\""; } >&5 15622 ($PKG_CONFIG --exists --print-errors "jemalloc") 2>&5 15623 ac_status=$? 15624 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15625 test $ac_status = 0; }; then 15626 pkg_cv_JEMALLOC_LIBS=`$PKG_CONFIG --libs "jemalloc" 2>/dev/null` 15627 test "x$?" != "x0" && pkg_failed=yes 15628else 15629 pkg_failed=yes 15630fi 15631 else 15632 pkg_failed=untried 15633fi 15634 15635 15636 15637if test $pkg_failed = yes; then 15638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15639$as_echo "no" >&6; } 15640 15641if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 15642 _pkg_short_errors_supported=yes 15643else 15644 _pkg_short_errors_supported=no 15645fi 15646 if test $_pkg_short_errors_supported = yes; then 15647 JEMALLOC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "jemalloc" 2>&1` 15648 else 15649 JEMALLOC_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "jemalloc" 2>&1` 15650 fi 15651 # Put the nasty error message in config.log where it belongs 15652 echo "$JEMALLOC_PKG_ERRORS" >&5 15653 15654 have_jemalloc=no 15655elif test $pkg_failed = untried; then 15656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15657$as_echo "no" >&6; } 15658 have_jemalloc=no 15659else 15660 JEMALLOC_CFLAGS=$pkg_cv_JEMALLOC_CFLAGS 15661 JEMALLOC_LIBS=$pkg_cv_JEMALLOC_LIBS 15662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15663$as_echo "yes" >&6; } 15664 have_jemalloc=yes 15665fi 15666 15667 if test "x$have_jemalloc" = "xno" ; then 15668 as_fn_error $? "Unable to find jemalloc requested by --with-malloc, $pkg_config_user_action, or set JEMALLOC_CFLAGS and JEMALLOC_LIBS." "$LINENO" 5 15669 fi 15670 15671 CFLAGS="$CFLAGS $JEMALLOC_CFLAGS" 15672 LIBS="$JEMALLOC_LIBS $LIBS" 15673 using_custom_malloc=yes 15674 ;; #( 15675 openbsd) : 15676 15677 tor_incr_n_warnings 15678 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The openbsd malloc port is deprecated in Tor 0.3.5 and will be removed in a future version." >&5 15679$as_echo "$as_me: WARNING: The openbsd malloc port is deprecated in Tor 0.3.5 and will be removed in a future version." >&2;} 15680 enable_openbsd_malloc=yes 15681 ;; #( 15682 system) : 15683 15684 # handle this later, including the jemalloc fallback 15685 ;; #( 15686 *) : 15687 as_fn_error $? "--with-malloc=\`$with_malloc' not supported, see --help" "$LINENO" 5 15688 ;; 15689esac 15690 15691 if test "x$enable_openbsd_malloc" = "xyes"; then 15692 USE_OPENBSD_MALLOC_TRUE= 15693 USE_OPENBSD_MALLOC_FALSE='#' 15694else 15695 USE_OPENBSD_MALLOC_TRUE='#' 15696 USE_OPENBSD_MALLOC_FALSE= 15697fi 15698 15699 15700if test "$malloc" != "system"; then 15701 # Tell the C compiler not to use the system allocator functions. 15702 15703 15704 15705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -fno-builtin-malloc -fno-builtin-realloc -fno-builtin-calloc -fno-builtin-free" >&5 15706$as_echo_n "checking whether the compiler accepts -fno-builtin-malloc -fno-builtin-realloc -fno-builtin-calloc -fno-builtin-free... " >&6; } 15707if ${tor_cv_cflags__fno_builtin_malloc__fno_builtin_realloc__fno_builtin_calloc__fno_builtin_free+:} false; then : 15708 $as_echo_n "(cached) " >&6 15709else 15710 15711 tor_saved_CFLAGS="$CFLAGS" 15712 CFLAGS="$CFLAGS -pedantic -Werror -fno-builtin-malloc -fno-builtin-realloc -fno-builtin-calloc -fno-builtin-free" 15713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15714/* end confdefs.h. */ 15715 15716int 15717main () 15718{ 15719 15720 ; 15721 return 0; 15722} 15723_ACEOF 15724if ac_fn_c_try_compile "$LINENO"; then : 15725 tor_cv_cflags__fno_builtin_malloc__fno_builtin_realloc__fno_builtin_calloc__fno_builtin_free=yes 15726else 15727 tor_cv_cflags__fno_builtin_malloc__fno_builtin_realloc__fno_builtin_calloc__fno_builtin_free=no 15728fi 15729rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15730 if test x != x; then 15731 15732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15733/* end confdefs.h. */ 15734 15735int 15736main () 15737{ 15738 15739 ; 15740 return 0; 15741} 15742_ACEOF 15743if ac_fn_c_try_link "$LINENO"; then : 15744 tor_can_link__fno_builtin_malloc__fno_builtin_realloc__fno_builtin_calloc__fno_builtin_free=yes 15745else 15746 tor_can_link__fno_builtin_malloc__fno_builtin_realloc__fno_builtin_calloc__fno_builtin_free=no 15747fi 15748rm -f core conftest.err conftest.$ac_objext \ 15749 conftest$ac_exeext conftest.$ac_ext 15750 15751 fi 15752 CFLAGS="$tor_saved_CFLAGS" 15753 15754fi 15755{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__fno_builtin_malloc__fno_builtin_realloc__fno_builtin_calloc__fno_builtin_free" >&5 15756$as_echo "$tor_cv_cflags__fno_builtin_malloc__fno_builtin_realloc__fno_builtin_calloc__fno_builtin_free" >&6; } 15757 if test x$tor_cv_cflags__fno_builtin_malloc__fno_builtin_realloc__fno_builtin_calloc__fno_builtin_free = xyes; then 15758 CFLAGS="$CFLAGS -fno-builtin-malloc -fno-builtin-realloc -fno-builtin-calloc -fno-builtin-free" 15759 else 15760 true 15761 fi 15762 15763 15764 15765fi 15766if test "$using_custom_malloc" = "yes"; then 15767 # Tell the C compiler not to use the system allocator functions. 15768 15769 15770 15771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -fno-builtin-malloc -fno-builtin-realloc -fno-builtin-calloc -fno-builtin-free" >&5 15772$as_echo_n "checking whether the compiler accepts -fno-builtin-malloc -fno-builtin-realloc -fno-builtin-calloc -fno-builtin-free... " >&6; } 15773if ${tor_cv_cflags__fno_builtin_malloc__fno_builtin_realloc__fno_builtin_calloc__fno_builtin_free+:} false; then : 15774 $as_echo_n "(cached) " >&6 15775else 15776 15777 tor_saved_CFLAGS="$CFLAGS" 15778 CFLAGS="$CFLAGS -pedantic -Werror -fno-builtin-malloc -fno-builtin-realloc -fno-builtin-calloc -fno-builtin-free" 15779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15780/* end confdefs.h. */ 15781 15782int 15783main () 15784{ 15785 15786 ; 15787 return 0; 15788} 15789_ACEOF 15790if ac_fn_c_try_compile "$LINENO"; then : 15791 tor_cv_cflags__fno_builtin_malloc__fno_builtin_realloc__fno_builtin_calloc__fno_builtin_free=yes 15792else 15793 tor_cv_cflags__fno_builtin_malloc__fno_builtin_realloc__fno_builtin_calloc__fno_builtin_free=no 15794fi 15795rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15796 if test x != x; then 15797 15798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15799/* end confdefs.h. */ 15800 15801int 15802main () 15803{ 15804 15805 ; 15806 return 0; 15807} 15808_ACEOF 15809if ac_fn_c_try_link "$LINENO"; then : 15810 tor_can_link__fno_builtin_malloc__fno_builtin_realloc__fno_builtin_calloc__fno_builtin_free=yes 15811else 15812 tor_can_link__fno_builtin_malloc__fno_builtin_realloc__fno_builtin_calloc__fno_builtin_free=no 15813fi 15814rm -f core conftest.err conftest.$ac_objext \ 15815 conftest$ac_exeext conftest.$ac_ext 15816 15817 fi 15818 CFLAGS="$tor_saved_CFLAGS" 15819 15820fi 15821{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__fno_builtin_malloc__fno_builtin_realloc__fno_builtin_calloc__fno_builtin_free" >&5 15822$as_echo "$tor_cv_cflags__fno_builtin_malloc__fno_builtin_realloc__fno_builtin_calloc__fno_builtin_free" >&6; } 15823 if test x$tor_cv_cflags__fno_builtin_malloc__fno_builtin_realloc__fno_builtin_calloc__fno_builtin_free = xyes; then 15824 CFLAGS="$CFLAGS -fno-builtin-malloc -fno-builtin-realloc -fno-builtin-calloc -fno-builtin-free" 15825 else 15826 true 15827 fi 15828 15829 15830 15831fi 15832 15833# By default, we're going to assume we don't have mlockall() 15834# bionic and other platforms have various broken mlockall subsystems. 15835# Some systems don't have a working mlockall, some aren't linkable, 15836# and some have it but don't declare it. 15837for ac_func in mlockall 15838do : 15839 ac_fn_c_check_func "$LINENO" "mlockall" "ac_cv_func_mlockall" 15840if test "x$ac_cv_func_mlockall" = xyes; then : 15841 cat >>confdefs.h <<_ACEOF 15842#define HAVE_MLOCKALL 1 15843_ACEOF 15844 15845fi 15846done 15847 15848ac_fn_c_check_decl "$LINENO" "mlockall" "ac_cv_have_decl_mlockall" " 15849#ifdef HAVE_SYS_MMAN_H 15850#include <sys/mman.h> 15851#endif 15852" 15853if test "x$ac_cv_have_decl_mlockall" = xyes; then : 15854 ac_have_decl=1 15855else 15856 ac_have_decl=0 15857fi 15858 15859cat >>confdefs.h <<_ACEOF 15860#define HAVE_DECL_MLOCKALL $ac_have_decl 15861_ACEOF 15862 15863 15864# Allow user to specify an alternate syslog facility 15865 15866# Check whether --with-syslog-facility was given. 15867if test "${with_syslog_facility+set}" = set; then : 15868 withval=$with_syslog_facility; syslog_facility="$withval" 15869else 15870 syslog_facility="LOG_DAEMON" 15871fi 15872 15873 15874cat >>confdefs.h <<_ACEOF 15875#define LOGFACILITY $syslog_facility 15876_ACEOF 15877 15878 15879 15880# Check if we have getresuid and getresgid 15881for ac_func in getresuid getresgid 15882do : 15883 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 15884ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 15885if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 15886 cat >>confdefs.h <<_ACEOF 15887#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 15888_ACEOF 15889 15890fi 15891done 15892 15893 15894# Check for gethostbyname_r in all its glorious incompatible versions. 15895# (This logic is based on that in Python's configure.in) 15896 15897 15898ac_fn_c_check_func "$LINENO" "gethostbyname_r" "ac_cv_func_gethostbyname_r" 15899if test "x$ac_cv_func_gethostbyname_r" = xyes; then : 15900 15901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how many arguments gethostbyname_r() wants" >&5 15902$as_echo_n "checking how many arguments gethostbyname_r() wants... " >&6; } 15903 OLD_CFLAGS=$CFLAGS 15904 CFLAGS="$CFLAGS $MY_CPPFLAGS $MY_THREAD_CPPFLAGS $MY_CFLAGS" 15905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15906/* end confdefs.h. */ 15907 15908#include <netdb.h> 15909 15910int 15911main () 15912{ 15913 15914 char *cp1, *cp2; 15915 struct hostent *h1, *h2; 15916 int i1, i2; 15917 (void)gethostbyname_r(cp1,h1,cp2,i1,&h2,&i2); 15918 15919 ; 15920 return 0; 15921} 15922_ACEOF 15923if ac_fn_c_try_compile "$LINENO"; then : 15924 15925 $as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h 15926 15927 15928$as_echo "#define HAVE_GETHOSTBYNAME_R_6_ARG 1" >>confdefs.h 15929 15930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6" >&5 15931$as_echo "6" >&6; } 15932 15933else 15934 15935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15936/* end confdefs.h. */ 15937 15938#include <netdb.h> 15939 15940int 15941main () 15942{ 15943 15944 char *cp1, *cp2; 15945 struct hostent *h1; 15946 int i1, i2; 15947 (void)gethostbyname_r(cp1,h1,cp2,i1,&i2); 15948 15949 ; 15950 return 0; 15951} 15952_ACEOF 15953if ac_fn_c_try_compile "$LINENO"; then : 15954 15955 $as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h 15956 15957 15958$as_echo "#define HAVE_GETHOSTBYNAME_R_5_ARG 1" >>confdefs.h 15959 15960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 5" >&5 15961$as_echo "5" >&6; } 15962 15963else 15964 15965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15966/* end confdefs.h. */ 15967 15968#include <netdb.h> 15969 15970int 15971main () 15972{ 15973 15974 char *cp1; 15975 struct hostent *h1; 15976 struct hostent_data hd; 15977 (void) gethostbyname_r(cp1,h1,&hd); 15978 15979 ; 15980 return 0; 15981} 15982_ACEOF 15983if ac_fn_c_try_compile "$LINENO"; then : 15984 15985 $as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h 15986 15987 15988$as_echo "#define HAVE_GETHOSTBYNAME_R_3_ARG 1" >>confdefs.h 15989 15990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 3" >&5 15991$as_echo "3" >&6; } 15992 15993else 15994 15995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 0" >&5 15996$as_echo "0" >&6; } 15997 15998fi 15999rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16000 16001fi 16002rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16003 16004fi 16005rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16006 CFLAGS=$OLD_CFLAGS 16007 16008fi 16009 16010 16011{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler supports __func__" >&5 16012$as_echo_n "checking whether the C compiler supports __func__... " >&6; } 16013if ${tor_cv_have_func_macro+:} false; then : 16014 $as_echo_n "(cached) " >&6 16015else 16016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16017/* end confdefs.h. */ 16018 16019#include <stdio.h> 16020int main(int c, char **v) { puts(__func__); } 16021_ACEOF 16022if ac_fn_c_try_compile "$LINENO"; then : 16023 tor_cv_have_func_macro=yes 16024else 16025 tor_cv_have_func_macro=no 16026fi 16027rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16028fi 16029{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_have_func_macro" >&5 16030$as_echo "$tor_cv_have_func_macro" >&6; } 16031 16032{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler supports __FUNC__" >&5 16033$as_echo_n "checking whether the C compiler supports __FUNC__... " >&6; } 16034if ${tor_cv_have_FUNC_macro+:} false; then : 16035 $as_echo_n "(cached) " >&6 16036else 16037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16038/* end confdefs.h. */ 16039 16040#include <stdio.h> 16041int main(int c, char **v) { puts(__FUNC__); } 16042_ACEOF 16043if ac_fn_c_try_compile "$LINENO"; then : 16044 tor_cv_have_FUNC_macro=yes 16045else 16046 tor_cv_have_FUNC_macro=no 16047fi 16048rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16049fi 16050{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_have_FUNC_macro" >&5 16051$as_echo "$tor_cv_have_FUNC_macro" >&6; } 16052 16053{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler supports __FUNCTION__" >&5 16054$as_echo_n "checking whether the C compiler supports __FUNCTION__... " >&6; } 16055if ${tor_cv_have_FUNCTION_macro+:} false; then : 16056 $as_echo_n "(cached) " >&6 16057else 16058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16059/* end confdefs.h. */ 16060 16061#include <stdio.h> 16062int main(int c, char **v) { puts(__FUNCTION__); } 16063_ACEOF 16064if ac_fn_c_try_compile "$LINENO"; then : 16065 tor_cv_have_FUNCTION_macro=yes 16066else 16067 tor_cv_have_FUNCTION_macro=no 16068fi 16069rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16070fi 16071{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_have_FUNCTION_macro" >&5 16072$as_echo "$tor_cv_have_FUNCTION_macro" >&6; } 16073 16074{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have extern char **environ already declared" >&5 16075$as_echo_n "checking whether we have extern char **environ already declared... " >&6; } 16076if ${tor_cv_have_environ_declared+:} false; then : 16077 $as_echo_n "(cached) " >&6 16078else 16079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16080/* end confdefs.h. */ 16081 16082#ifdef HAVE_UNISTD_H 16083#include <unistd.h> 16084#endif 16085#include <stdlib.h> 16086int main(int c, char **v) { char **t = environ; } 16087_ACEOF 16088if ac_fn_c_try_compile "$LINENO"; then : 16089 tor_cv_have_environ_declared=yes 16090else 16091 tor_cv_have_environ_declared=no 16092fi 16093rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16094fi 16095{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_have_environ_declared" >&5 16096$as_echo "$tor_cv_have_environ_declared" >&6; } 16097 16098if test "$tor_cv_have_func_macro" = "yes"; then 16099 16100$as_echo "#define HAVE_MACRO__func__ 1" >>confdefs.h 16101 16102fi 16103 16104if test "$tor_cv_have_FUNC_macro" = "yes"; then 16105 16106$as_echo "#define HAVE_MACRO__FUNC__ 1" >>confdefs.h 16107 16108fi 16109 16110if test "$tor_cv_have_FUNCTION_macro" = "yes"; then 16111 16112$as_echo "#define HAVE_MACRO__FUNCTION__ 1" >>confdefs.h 16113 16114fi 16115 16116if test "$tor_cv_have_environ_declared" = "yes"; then 16117 16118$as_echo "#define HAVE_EXTERN_ENVIRON_DECLARED 1" >>confdefs.h 16119 16120fi 16121 16122# $prefix stores the value of the --prefix command line option, or 16123# NONE if the option wasn't set. In the case that it wasn't set, make 16124# it be the default, so that we can use it to expand directories now. 16125if test "x$prefix" = "xNONE"; then 16126 prefix=$ac_default_prefix 16127fi 16128 16129# and similarly for $exec_prefix 16130if test "x$exec_prefix" = "xNONE"; then 16131 exec_prefix=$prefix 16132fi 16133 16134if test "x$BUILDDIR" = "x"; then 16135 BUILDDIR=`pwd` 16136fi 16137 16138 16139cat >>confdefs.h <<_ACEOF 16140#define BUILDDIR "$BUILDDIR" 16141_ACEOF 16142 16143 16144if test "x$SRCDIR" = "x"; then 16145 SRCDIR=$(cd "$srcdir"; pwd) 16146fi 16147 16148cat >>confdefs.h <<_ACEOF 16149#define SRCDIR "$SRCDIR" 16150_ACEOF 16151 16152 16153if test "x$CONFDIR" = "x"; then 16154 CONFDIR=`eval echo $sysconfdir/tor` 16155fi 16156 16157 16158cat >>confdefs.h <<_ACEOF 16159#define CONFDIR "$CONFDIR" 16160_ACEOF 16161 16162 16163BINDIR=`eval echo $bindir` 16164 16165LOCALSTATEDIR=`eval echo $localstatedir` 16166 16167 16168if test "$bwin32" = "true"; then 16169 # Test if the linker supports the --nxcompat and --dynamicbase options 16170 # for Windows 16171 save_LDFLAGS="$LDFLAGS" 16172 LDFLAGS="-Wl,--nxcompat -Wl,--dynamicbase" 16173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker supports DllCharacteristics" >&5 16174$as_echo_n "checking whether the linker supports DllCharacteristics... " >&6; } 16175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16176/* end confdefs.h. */ 16177 16178int 16179main () 16180{ 16181 16182 ; 16183 return 0; 16184} 16185_ACEOF 16186if ac_fn_c_try_link "$LINENO"; then : 16187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16188$as_echo "yes" >&6; } 16189 save_LDFLAGS="$save_LDFLAGS $LDFLAGS" 16190else 16191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16192$as_echo "no" >&6; } 16193 16194fi 16195rm -f core conftest.err conftest.$ac_objext \ 16196 conftest$ac_exeext conftest.$ac_ext 16197 LDFLAGS="$save_LDFLAGS" 16198fi 16199 16200# Set CFLAGS _after_ all the above checks, since our warnings are stricter 16201# than autoconf's macros like. 16202if test "$GCC" = "yes"; then 16203 # Disable GCC's strict aliasing checks. They are an hours-to-debug 16204 # accident waiting to happen. 16205 CFLAGS="$CFLAGS -Wall -fno-strict-aliasing" 16206else 16207 # Override optimization level for non-gcc compilers 16208 CFLAGS="$CFLAGS -O" 16209 enable_gcc_warnings=no 16210 enable_gcc_warnings_advisory=no 16211fi 16212 16213# Warnings implies advisory-warnings and -Werror. 16214if test "$enable_gcc_warnings" = "yes"; then 16215 enable_gcc_warnings_advisory=yes 16216 enable_fatal_warnings=yes 16217fi 16218 16219# OS X Lion started deprecating the system openssl. Let's just disable 16220# all deprecation warnings on OS X. Also, to potentially make the binary 16221# a little smaller, let's enable dead_strip. 16222case "$host_os" in 16223 16224 darwin*) 16225 CFLAGS="$CFLAGS -Wno-deprecated-declarations" 16226 LDFLAGS="$LDFLAGS -dead_strip" ;; 16227esac 16228 16229TOR_WARNING_FLAGS="" 16230 16231# Add some more warnings which we use in development but not in the 16232# released versions. (Some relevant gcc versions can't handle these.) 16233# 16234# Note that we have to do this near the end of the autoconf process, or 16235# else we may run into problems when these warnings hit on the testing C 16236# programs that autoconf wants to build. 16237if test "x$enable_gcc_warnings_advisory" != "xno"; then 16238 16239 case "$host" in 16240 *-*-openbsd* | *-*-bitrig*) 16241 # Some OpenBSD versions (like 4.8) have -Wsystem-headers by default. 16242 # That's fine, except that the headers don't pass -Wredundant-decls. 16243 # Therefore, let's disable -Wsystem-headers when we're building 16244 # with maximal warnings on OpenBSD. 16245 CFLAGS="$CFLAGS -Wno-system-headers" ;; 16246 esac 16247 16248 CFLAGS_NOWARNINGS="$CFLAGS" 16249 16250 # GCC4.3 users once report trouble with -Wstrict-overflow=5. GCC5 users 16251 # have it work better. 16252 # CFLAGS="$CFLAGS -Wstrict-overflow=1" 16253 16254 # This warning was added in gcc 4.3, but it appears to generate 16255 # spurious warnings in gcc 4.4. I don't know if it works in 4.5. 16256 #CFLAGS="$CFLAGS -Wlogical-op" 16257 16258 16259 16260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Waddress" >&5 16261$as_echo_n "checking whether the compiler accepts -Waddress... " >&6; } 16262if ${tor_cv_cflags__Waddress+:} false; then : 16263 $as_echo_n "(cached) " >&6 16264else 16265 16266 tor_saved_CFLAGS="$CFLAGS" 16267 CFLAGS="$CFLAGS -pedantic -Werror -Waddress" 16268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16269/* end confdefs.h. */ 16270 16271int 16272main () 16273{ 16274 16275 ; 16276 return 0; 16277} 16278_ACEOF 16279if ac_fn_c_try_compile "$LINENO"; then : 16280 tor_cv_cflags__Waddress=yes 16281else 16282 tor_cv_cflags__Waddress=no 16283fi 16284rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16285 if test x != x; then 16286 16287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16288/* end confdefs.h. */ 16289 16290int 16291main () 16292{ 16293 16294 ; 16295 return 0; 16296} 16297_ACEOF 16298if ac_fn_c_try_link "$LINENO"; then : 16299 tor_can_link__Waddress=yes 16300else 16301 tor_can_link__Waddress=no 16302fi 16303rm -f core conftest.err conftest.$ac_objext \ 16304 conftest$ac_exeext conftest.$ac_ext 16305 16306 fi 16307 CFLAGS="$tor_saved_CFLAGS" 16308 16309fi 16310{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Waddress" >&5 16311$as_echo "$tor_cv_cflags__Waddress" >&6; } 16312 if test x$tor_cv_cflags__Waddress = xyes; then 16313 TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Waddress" CFLAGS="$CFLAGS -Waddress" 16314 else 16315 true 16316 fi 16317 16318 16319 16320 16321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Waddress-of-array-temporary" >&5 16322$as_echo_n "checking whether the compiler accepts -Waddress-of-array-temporary... " >&6; } 16323if ${tor_cv_cflags__Waddress_of_array_temporary+:} false; then : 16324 $as_echo_n "(cached) " >&6 16325else 16326 16327 tor_saved_CFLAGS="$CFLAGS" 16328 CFLAGS="$CFLAGS -pedantic -Werror -Waddress-of-array-temporary" 16329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16330/* end confdefs.h. */ 16331 16332int 16333main () 16334{ 16335 16336 ; 16337 return 0; 16338} 16339_ACEOF 16340if ac_fn_c_try_compile "$LINENO"; then : 16341 tor_cv_cflags__Waddress_of_array_temporary=yes 16342else 16343 tor_cv_cflags__Waddress_of_array_temporary=no 16344fi 16345rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16346 if test x != x; then 16347 16348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16349/* end confdefs.h. */ 16350 16351int 16352main () 16353{ 16354 16355 ; 16356 return 0; 16357} 16358_ACEOF 16359if ac_fn_c_try_link "$LINENO"; then : 16360 tor_can_link__Waddress_of_array_temporary=yes 16361else 16362 tor_can_link__Waddress_of_array_temporary=no 16363fi 16364rm -f core conftest.err conftest.$ac_objext \ 16365 conftest$ac_exeext conftest.$ac_ext 16366 16367 fi 16368 CFLAGS="$tor_saved_CFLAGS" 16369 16370fi 16371{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Waddress_of_array_temporary" >&5 16372$as_echo "$tor_cv_cflags__Waddress_of_array_temporary" >&6; } 16373 if test x$tor_cv_cflags__Waddress_of_array_temporary = xyes; then 16374 TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Waddress-of-array-temporary" CFLAGS="$CFLAGS -Waddress-of-array-temporary" 16375 else 16376 true 16377 fi 16378 16379 16380 16381 16382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Waddress-of-temporary" >&5 16383$as_echo_n "checking whether the compiler accepts -Waddress-of-temporary... " >&6; } 16384if ${tor_cv_cflags__Waddress_of_temporary+:} false; then : 16385 $as_echo_n "(cached) " >&6 16386else 16387 16388 tor_saved_CFLAGS="$CFLAGS" 16389 CFLAGS="$CFLAGS -pedantic -Werror -Waddress-of-temporary" 16390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16391/* end confdefs.h. */ 16392 16393int 16394main () 16395{ 16396 16397 ; 16398 return 0; 16399} 16400_ACEOF 16401if ac_fn_c_try_compile "$LINENO"; then : 16402 tor_cv_cflags__Waddress_of_temporary=yes 16403else 16404 tor_cv_cflags__Waddress_of_temporary=no 16405fi 16406rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16407 if test x != x; then 16408 16409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16410/* end confdefs.h. */ 16411 16412int 16413main () 16414{ 16415 16416 ; 16417 return 0; 16418} 16419_ACEOF 16420if ac_fn_c_try_link "$LINENO"; then : 16421 tor_can_link__Waddress_of_temporary=yes 16422else 16423 tor_can_link__Waddress_of_temporary=no 16424fi 16425rm -f core conftest.err conftest.$ac_objext \ 16426 conftest$ac_exeext conftest.$ac_ext 16427 16428 fi 16429 CFLAGS="$tor_saved_CFLAGS" 16430 16431fi 16432{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Waddress_of_temporary" >&5 16433$as_echo "$tor_cv_cflags__Waddress_of_temporary" >&6; } 16434 if test x$tor_cv_cflags__Waddress_of_temporary = xyes; then 16435 TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Waddress-of-temporary" CFLAGS="$CFLAGS -Waddress-of-temporary" 16436 else 16437 true 16438 fi 16439 16440 16441 16442 16443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wambiguous-macro" >&5 16444$as_echo_n "checking whether the compiler accepts -Wambiguous-macro... " >&6; } 16445if ${tor_cv_cflags__Wambiguous_macro+:} false; then : 16446 $as_echo_n "(cached) " >&6 16447else 16448 16449 tor_saved_CFLAGS="$CFLAGS" 16450 CFLAGS="$CFLAGS -pedantic -Werror -Wambiguous-macro" 16451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16452/* end confdefs.h. */ 16453 16454int 16455main () 16456{ 16457 16458 ; 16459 return 0; 16460} 16461_ACEOF 16462if ac_fn_c_try_compile "$LINENO"; then : 16463 tor_cv_cflags__Wambiguous_macro=yes 16464else 16465 tor_cv_cflags__Wambiguous_macro=no 16466fi 16467rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16468 if test x != x; then 16469 16470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16471/* end confdefs.h. */ 16472 16473int 16474main () 16475{ 16476 16477 ; 16478 return 0; 16479} 16480_ACEOF 16481if ac_fn_c_try_link "$LINENO"; then : 16482 tor_can_link__Wambiguous_macro=yes 16483else 16484 tor_can_link__Wambiguous_macro=no 16485fi 16486rm -f core conftest.err conftest.$ac_objext \ 16487 conftest$ac_exeext conftest.$ac_ext 16488 16489 fi 16490 CFLAGS="$tor_saved_CFLAGS" 16491 16492fi 16493{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wambiguous_macro" >&5 16494$as_echo "$tor_cv_cflags__Wambiguous_macro" >&6; } 16495 if test x$tor_cv_cflags__Wambiguous_macro = xyes; then 16496 TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Wambiguous-macro" CFLAGS="$CFLAGS -Wambiguous-macro" 16497 else 16498 true 16499 fi 16500 16501 16502 16503 16504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wanonymous-pack-parens" >&5 16505$as_echo_n "checking whether the compiler accepts -Wanonymous-pack-parens... " >&6; } 16506if ${tor_cv_cflags__Wanonymous_pack_parens+:} false; then : 16507 $as_echo_n "(cached) " >&6 16508else 16509 16510 tor_saved_CFLAGS="$CFLAGS" 16511 CFLAGS="$CFLAGS -pedantic -Werror -Wanonymous-pack-parens" 16512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16513/* end confdefs.h. */ 16514 16515int 16516main () 16517{ 16518 16519 ; 16520 return 0; 16521} 16522_ACEOF 16523if ac_fn_c_try_compile "$LINENO"; then : 16524 tor_cv_cflags__Wanonymous_pack_parens=yes 16525else 16526 tor_cv_cflags__Wanonymous_pack_parens=no 16527fi 16528rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16529 if test x != x; then 16530 16531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16532/* end confdefs.h. */ 16533 16534int 16535main () 16536{ 16537 16538 ; 16539 return 0; 16540} 16541_ACEOF 16542if ac_fn_c_try_link "$LINENO"; then : 16543 tor_can_link__Wanonymous_pack_parens=yes 16544else 16545 tor_can_link__Wanonymous_pack_parens=no 16546fi 16547rm -f core conftest.err conftest.$ac_objext \ 16548 conftest$ac_exeext conftest.$ac_ext 16549 16550 fi 16551 CFLAGS="$tor_saved_CFLAGS" 16552 16553fi 16554{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wanonymous_pack_parens" >&5 16555$as_echo "$tor_cv_cflags__Wanonymous_pack_parens" >&6; } 16556 if test x$tor_cv_cflags__Wanonymous_pack_parens = xyes; then 16557 TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Wanonymous-pack-parens" CFLAGS="$CFLAGS -Wanonymous-pack-parens" 16558 else 16559 true 16560 fi 16561 16562 16563 16564 16565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Warc" >&5 16566$as_echo_n "checking whether the compiler accepts -Warc... " >&6; } 16567if ${tor_cv_cflags__Warc+:} false; then : 16568 $as_echo_n "(cached) " >&6 16569else 16570 16571 tor_saved_CFLAGS="$CFLAGS" 16572 CFLAGS="$CFLAGS -pedantic -Werror -Warc" 16573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16574/* end confdefs.h. */ 16575 16576int 16577main () 16578{ 16579 16580 ; 16581 return 0; 16582} 16583_ACEOF 16584if ac_fn_c_try_compile "$LINENO"; then : 16585 tor_cv_cflags__Warc=yes 16586else 16587 tor_cv_cflags__Warc=no 16588fi 16589rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16590 if test x != x; then 16591 16592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16593/* end confdefs.h. */ 16594 16595int 16596main () 16597{ 16598 16599 ; 16600 return 0; 16601} 16602_ACEOF 16603if ac_fn_c_try_link "$LINENO"; then : 16604 tor_can_link__Warc=yes 16605else 16606 tor_can_link__Warc=no 16607fi 16608rm -f core conftest.err conftest.$ac_objext \ 16609 conftest$ac_exeext conftest.$ac_ext 16610 16611 fi 16612 CFLAGS="$tor_saved_CFLAGS" 16613 16614fi 16615{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Warc" >&5 16616$as_echo "$tor_cv_cflags__Warc" >&6; } 16617 if test x$tor_cv_cflags__Warc = xyes; then 16618 TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Warc" CFLAGS="$CFLAGS -Warc" 16619 else 16620 true 16621 fi 16622 16623 16624 16625 16626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Warc-abi" >&5 16627$as_echo_n "checking whether the compiler accepts -Warc-abi... " >&6; } 16628if ${tor_cv_cflags__Warc_abi+:} false; then : 16629 $as_echo_n "(cached) " >&6 16630else 16631 16632 tor_saved_CFLAGS="$CFLAGS" 16633 CFLAGS="$CFLAGS -pedantic -Werror -Warc-abi" 16634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16635/* end confdefs.h. */ 16636 16637int 16638main () 16639{ 16640 16641 ; 16642 return 0; 16643} 16644_ACEOF 16645if ac_fn_c_try_compile "$LINENO"; then : 16646 tor_cv_cflags__Warc_abi=yes 16647else 16648 tor_cv_cflags__Warc_abi=no 16649fi 16650rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16651 if test x != x; then 16652 16653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16654/* end confdefs.h. */ 16655 16656int 16657main () 16658{ 16659 16660 ; 16661 return 0; 16662} 16663_ACEOF 16664if ac_fn_c_try_link "$LINENO"; then : 16665 tor_can_link__Warc_abi=yes 16666else 16667 tor_can_link__Warc_abi=no 16668fi 16669rm -f core conftest.err conftest.$ac_objext \ 16670 conftest$ac_exeext conftest.$ac_ext 16671 16672 fi 16673 CFLAGS="$tor_saved_CFLAGS" 16674 16675fi 16676{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Warc_abi" >&5 16677$as_echo "$tor_cv_cflags__Warc_abi" >&6; } 16678 if test x$tor_cv_cflags__Warc_abi = xyes; then 16679 TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Warc-abi" CFLAGS="$CFLAGS -Warc-abi" 16680 else 16681 true 16682 fi 16683 16684 16685 16686 16687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Warc-bridge-casts-disallowed-in-nonarc" >&5 16688$as_echo_n "checking whether the compiler accepts -Warc-bridge-casts-disallowed-in-nonarc... " >&6; } 16689if ${tor_cv_cflags__Warc_bridge_casts_disallowed_in_nonarc+:} false; then : 16690 $as_echo_n "(cached) " >&6 16691else 16692 16693 tor_saved_CFLAGS="$CFLAGS" 16694 CFLAGS="$CFLAGS -pedantic -Werror -Warc-bridge-casts-disallowed-in-nonarc" 16695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16696/* end confdefs.h. */ 16697 16698int 16699main () 16700{ 16701 16702 ; 16703 return 0; 16704} 16705_ACEOF 16706if ac_fn_c_try_compile "$LINENO"; then : 16707 tor_cv_cflags__Warc_bridge_casts_disallowed_in_nonarc=yes 16708else 16709 tor_cv_cflags__Warc_bridge_casts_disallowed_in_nonarc=no 16710fi 16711rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16712 if test x != x; then 16713 16714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16715/* end confdefs.h. */ 16716 16717int 16718main () 16719{ 16720 16721 ; 16722 return 0; 16723} 16724_ACEOF 16725if ac_fn_c_try_link "$LINENO"; then : 16726 tor_can_link__Warc_bridge_casts_disallowed_in_nonarc=yes 16727else 16728 tor_can_link__Warc_bridge_casts_disallowed_in_nonarc=no 16729fi 16730rm -f core conftest.err conftest.$ac_objext \ 16731 conftest$ac_exeext conftest.$ac_ext 16732 16733 fi 16734 CFLAGS="$tor_saved_CFLAGS" 16735 16736fi 16737{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Warc_bridge_casts_disallowed_in_nonarc" >&5 16738$as_echo "$tor_cv_cflags__Warc_bridge_casts_disallowed_in_nonarc" >&6; } 16739 if test x$tor_cv_cflags__Warc_bridge_casts_disallowed_in_nonarc = xyes; then 16740 TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Warc-bridge-casts-disallowed-in-nonarc" CFLAGS="$CFLAGS -Warc-bridge-casts-disallowed-in-nonarc" 16741 else 16742 true 16743 fi 16744 16745 16746 16747 16748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Warc-maybe-repeated-use-of-weak" >&5 16749$as_echo_n "checking whether the compiler accepts -Warc-maybe-repeated-use-of-weak... " >&6; } 16750if ${tor_cv_cflags__Warc_maybe_repeated_use_of_weak+:} false; then : 16751 $as_echo_n "(cached) " >&6 16752else 16753 16754 tor_saved_CFLAGS="$CFLAGS" 16755 CFLAGS="$CFLAGS -pedantic -Werror -Warc-maybe-repeated-use-of-weak" 16756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16757/* end confdefs.h. */ 16758 16759int 16760main () 16761{ 16762 16763 ; 16764 return 0; 16765} 16766_ACEOF 16767if ac_fn_c_try_compile "$LINENO"; then : 16768 tor_cv_cflags__Warc_maybe_repeated_use_of_weak=yes 16769else 16770 tor_cv_cflags__Warc_maybe_repeated_use_of_weak=no 16771fi 16772rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16773 if test x != x; then 16774 16775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16776/* end confdefs.h. */ 16777 16778int 16779main () 16780{ 16781 16782 ; 16783 return 0; 16784} 16785_ACEOF 16786if ac_fn_c_try_link "$LINENO"; then : 16787 tor_can_link__Warc_maybe_repeated_use_of_weak=yes 16788else 16789 tor_can_link__Warc_maybe_repeated_use_of_weak=no 16790fi 16791rm -f core conftest.err conftest.$ac_objext \ 16792 conftest$ac_exeext conftest.$ac_ext 16793 16794 fi 16795 CFLAGS="$tor_saved_CFLAGS" 16796 16797fi 16798{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Warc_maybe_repeated_use_of_weak" >&5 16799$as_echo "$tor_cv_cflags__Warc_maybe_repeated_use_of_weak" >&6; } 16800 if test x$tor_cv_cflags__Warc_maybe_repeated_use_of_weak = xyes; then 16801 TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Warc-maybe-repeated-use-of-weak" CFLAGS="$CFLAGS -Warc-maybe-repeated-use-of-weak" 16802 else 16803 true 16804 fi 16805 16806 16807 16808 16809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Warc-performSelector-leaks" >&5 16810$as_echo_n "checking whether the compiler accepts -Warc-performSelector-leaks... " >&6; } 16811if ${tor_cv_cflags__Warc_performSelector_leaks+:} false; then : 16812 $as_echo_n "(cached) " >&6 16813else 16814 16815 tor_saved_CFLAGS="$CFLAGS" 16816 CFLAGS="$CFLAGS -pedantic -Werror -Warc-performSelector-leaks" 16817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16818/* end confdefs.h. */ 16819 16820int 16821main () 16822{ 16823 16824 ; 16825 return 0; 16826} 16827_ACEOF 16828if ac_fn_c_try_compile "$LINENO"; then : 16829 tor_cv_cflags__Warc_performSelector_leaks=yes 16830else 16831 tor_cv_cflags__Warc_performSelector_leaks=no 16832fi 16833rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16834 if test x != x; then 16835 16836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16837/* end confdefs.h. */ 16838 16839int 16840main () 16841{ 16842 16843 ; 16844 return 0; 16845} 16846_ACEOF 16847if ac_fn_c_try_link "$LINENO"; then : 16848 tor_can_link__Warc_performSelector_leaks=yes 16849else 16850 tor_can_link__Warc_performSelector_leaks=no 16851fi 16852rm -f core conftest.err conftest.$ac_objext \ 16853 conftest$ac_exeext conftest.$ac_ext 16854 16855 fi 16856 CFLAGS="$tor_saved_CFLAGS" 16857 16858fi 16859{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Warc_performSelector_leaks" >&5 16860$as_echo "$tor_cv_cflags__Warc_performSelector_leaks" >&6; } 16861 if test x$tor_cv_cflags__Warc_performSelector_leaks = xyes; then 16862 TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Warc-performSelector-leaks" CFLAGS="$CFLAGS -Warc-performSelector-leaks" 16863 else 16864 true 16865 fi 16866 16867 16868 16869 16870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Warc-repeated-use-of-weak" >&5 16871$as_echo_n "checking whether the compiler accepts -Warc-repeated-use-of-weak... " >&6; } 16872if ${tor_cv_cflags__Warc_repeated_use_of_weak+:} false; then : 16873 $as_echo_n "(cached) " >&6 16874else 16875 16876 tor_saved_CFLAGS="$CFLAGS" 16877 CFLAGS="$CFLAGS -pedantic -Werror -Warc-repeated-use-of-weak" 16878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16879/* end confdefs.h. */ 16880 16881int 16882main () 16883{ 16884 16885 ; 16886 return 0; 16887} 16888_ACEOF 16889if ac_fn_c_try_compile "$LINENO"; then : 16890 tor_cv_cflags__Warc_repeated_use_of_weak=yes 16891else 16892 tor_cv_cflags__Warc_repeated_use_of_weak=no 16893fi 16894rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16895 if test x != x; then 16896 16897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16898/* end confdefs.h. */ 16899 16900int 16901main () 16902{ 16903 16904 ; 16905 return 0; 16906} 16907_ACEOF 16908if ac_fn_c_try_link "$LINENO"; then : 16909 tor_can_link__Warc_repeated_use_of_weak=yes 16910else 16911 tor_can_link__Warc_repeated_use_of_weak=no 16912fi 16913rm -f core conftest.err conftest.$ac_objext \ 16914 conftest$ac_exeext conftest.$ac_ext 16915 16916 fi 16917 CFLAGS="$tor_saved_CFLAGS" 16918 16919fi 16920{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Warc_repeated_use_of_weak" >&5 16921$as_echo "$tor_cv_cflags__Warc_repeated_use_of_weak" >&6; } 16922 if test x$tor_cv_cflags__Warc_repeated_use_of_weak = xyes; then 16923 TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Warc-repeated-use-of-weak" CFLAGS="$CFLAGS -Warc-repeated-use-of-weak" 16924 else 16925 true 16926 fi 16927 16928 16929 16930 16931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Warray-bounds" >&5 16932$as_echo_n "checking whether the compiler accepts -Warray-bounds... " >&6; } 16933if ${tor_cv_cflags__Warray_bounds+:} false; then : 16934 $as_echo_n "(cached) " >&6 16935else 16936 16937 tor_saved_CFLAGS="$CFLAGS" 16938 CFLAGS="$CFLAGS -pedantic -Werror -Warray-bounds" 16939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16940/* end confdefs.h. */ 16941 16942int 16943main () 16944{ 16945 16946 ; 16947 return 0; 16948} 16949_ACEOF 16950if ac_fn_c_try_compile "$LINENO"; then : 16951 tor_cv_cflags__Warray_bounds=yes 16952else 16953 tor_cv_cflags__Warray_bounds=no 16954fi 16955rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16956 if test x != x; then 16957 16958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16959/* end confdefs.h. */ 16960 16961int 16962main () 16963{ 16964 16965 ; 16966 return 0; 16967} 16968_ACEOF 16969if ac_fn_c_try_link "$LINENO"; then : 16970 tor_can_link__Warray_bounds=yes 16971else 16972 tor_can_link__Warray_bounds=no 16973fi 16974rm -f core conftest.err conftest.$ac_objext \ 16975 conftest$ac_exeext conftest.$ac_ext 16976 16977 fi 16978 CFLAGS="$tor_saved_CFLAGS" 16979 16980fi 16981{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Warray_bounds" >&5 16982$as_echo "$tor_cv_cflags__Warray_bounds" >&6; } 16983 if test x$tor_cv_cflags__Warray_bounds = xyes; then 16984 TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Warray-bounds" CFLAGS="$CFLAGS -Warray-bounds" 16985 else 16986 true 16987 fi 16988 16989 16990 16991 16992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Warray-bounds-pointer-arithmetic" >&5 16993$as_echo_n "checking whether the compiler accepts -Warray-bounds-pointer-arithmetic... " >&6; } 16994if ${tor_cv_cflags__Warray_bounds_pointer_arithmetic+:} false; then : 16995 $as_echo_n "(cached) " >&6 16996else 16997 16998 tor_saved_CFLAGS="$CFLAGS" 16999 CFLAGS="$CFLAGS -pedantic -Werror -Warray-bounds-pointer-arithmetic" 17000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17001/* end confdefs.h. */ 17002 17003int 17004main () 17005{ 17006 17007 ; 17008 return 0; 17009} 17010_ACEOF 17011if ac_fn_c_try_compile "$LINENO"; then : 17012 tor_cv_cflags__Warray_bounds_pointer_arithmetic=yes 17013else 17014 tor_cv_cflags__Warray_bounds_pointer_arithmetic=no 17015fi 17016rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17017 if test x != x; then 17018 17019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17020/* end confdefs.h. */ 17021 17022int 17023main () 17024{ 17025 17026 ; 17027 return 0; 17028} 17029_ACEOF 17030if ac_fn_c_try_link "$LINENO"; then : 17031 tor_can_link__Warray_bounds_pointer_arithmetic=yes 17032else 17033 tor_can_link__Warray_bounds_pointer_arithmetic=no 17034fi 17035rm -f core conftest.err conftest.$ac_objext \ 17036 conftest$ac_exeext conftest.$ac_ext 17037 17038 fi 17039 CFLAGS="$tor_saved_CFLAGS" 17040 17041fi 17042{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Warray_bounds_pointer_arithmetic" >&5 17043$as_echo "$tor_cv_cflags__Warray_bounds_pointer_arithmetic" >&6; } 17044 if test x$tor_cv_cflags__Warray_bounds_pointer_arithmetic = xyes; then 17045 TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Warray-bounds-pointer-arithmetic" CFLAGS="$CFLAGS -Warray-bounds-pointer-arithmetic" 17046 else 17047 true 17048 fi 17049 17050 17051 17052 17053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wasm" >&5 17054$as_echo_n "checking whether the compiler accepts -Wasm... " >&6; } 17055if ${tor_cv_cflags__Wasm+:} false; then : 17056 $as_echo_n "(cached) " >&6 17057else 17058 17059 tor_saved_CFLAGS="$CFLAGS" 17060 CFLAGS="$CFLAGS -pedantic -Werror -Wasm" 17061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17062/* end confdefs.h. */ 17063 17064int 17065main () 17066{ 17067 17068 ; 17069 return 0; 17070} 17071_ACEOF 17072if ac_fn_c_try_compile "$LINENO"; then : 17073 tor_cv_cflags__Wasm=yes 17074else 17075 tor_cv_cflags__Wasm=no 17076fi 17077rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17078 if test x != x; then 17079 17080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17081/* end confdefs.h. */ 17082 17083int 17084main () 17085{ 17086 17087 ; 17088 return 0; 17089} 17090_ACEOF 17091if ac_fn_c_try_link "$LINENO"; then : 17092 tor_can_link__Wasm=yes 17093else 17094 tor_can_link__Wasm=no 17095fi 17096rm -f core conftest.err conftest.$ac_objext \ 17097 conftest$ac_exeext conftest.$ac_ext 17098 17099 fi 17100 CFLAGS="$tor_saved_CFLAGS" 17101 17102fi 17103{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wasm" >&5 17104$as_echo "$tor_cv_cflags__Wasm" >&6; } 17105 if test x$tor_cv_cflags__Wasm = xyes; then 17106 TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Wasm" CFLAGS="$CFLAGS -Wasm" 17107 else 17108 true 17109 fi 17110 17111 17112 17113 17114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wasm-operand-widths" >&5 17115$as_echo_n "checking whether the compiler accepts -Wasm-operand-widths... " >&6; } 17116if ${tor_cv_cflags__Wasm_operand_widths+:} false; then : 17117 $as_echo_n "(cached) " >&6 17118else 17119 17120 tor_saved_CFLAGS="$CFLAGS" 17121 CFLAGS="$CFLAGS -pedantic -Werror -Wasm-operand-widths" 17122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17123/* end confdefs.h. */ 17124 17125int 17126main () 17127{ 17128 17129 ; 17130 return 0; 17131} 17132_ACEOF 17133if ac_fn_c_try_compile "$LINENO"; then : 17134 tor_cv_cflags__Wasm_operand_widths=yes 17135else 17136 tor_cv_cflags__Wasm_operand_widths=no 17137fi 17138rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17139 if test x != x; then 17140 17141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17142/* end confdefs.h. */ 17143 17144int 17145main () 17146{ 17147 17148 ; 17149 return 0; 17150} 17151_ACEOF 17152if ac_fn_c_try_link "$LINENO"; then : 17153 tor_can_link__Wasm_operand_widths=yes 17154else 17155 tor_can_link__Wasm_operand_widths=no 17156fi 17157rm -f core conftest.err conftest.$ac_objext \ 17158 conftest$ac_exeext conftest.$ac_ext 17159 17160 fi 17161 CFLAGS="$tor_saved_CFLAGS" 17162 17163fi 17164{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wasm_operand_widths" >&5 17165$as_echo "$tor_cv_cflags__Wasm_operand_widths" >&6; } 17166 if test x$tor_cv_cflags__Wasm_operand_widths = xyes; then 17167 TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Wasm-operand-widths" CFLAGS="$CFLAGS -Wasm-operand-widths" 17168 else 17169 true 17170 fi 17171 17172 17173 17174 17175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Watomic-properties" >&5 17176$as_echo_n "checking whether the compiler accepts -Watomic-properties... " >&6; } 17177if ${tor_cv_cflags__Watomic_properties+:} false; then : 17178 $as_echo_n "(cached) " >&6 17179else 17180 17181 tor_saved_CFLAGS="$CFLAGS" 17182 CFLAGS="$CFLAGS -pedantic -Werror -Watomic-properties" 17183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17184/* end confdefs.h. */ 17185 17186int 17187main () 17188{ 17189 17190 ; 17191 return 0; 17192} 17193_ACEOF 17194if ac_fn_c_try_compile "$LINENO"; then : 17195 tor_cv_cflags__Watomic_properties=yes 17196else 17197 tor_cv_cflags__Watomic_properties=no 17198fi 17199rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17200 if test x != x; then 17201 17202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17203/* end confdefs.h. */ 17204 17205int 17206main () 17207{ 17208 17209 ; 17210 return 0; 17211} 17212_ACEOF 17213if ac_fn_c_try_link "$LINENO"; then : 17214 tor_can_link__Watomic_properties=yes 17215else 17216 tor_can_link__Watomic_properties=no 17217fi 17218rm -f core conftest.err conftest.$ac_objext \ 17219 conftest$ac_exeext conftest.$ac_ext 17220 17221 fi 17222 CFLAGS="$tor_saved_CFLAGS" 17223 17224fi 17225{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Watomic_properties" >&5 17226$as_echo "$tor_cv_cflags__Watomic_properties" >&6; } 17227 if test x$tor_cv_cflags__Watomic_properties = xyes; then 17228 TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Watomic-properties" CFLAGS="$CFLAGS -Watomic-properties" 17229 else 17230 true 17231 fi 17232 17233 17234 17235 17236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Watomic-property-with-user-defined-accessor" >&5 17237$as_echo_n "checking whether the compiler accepts -Watomic-property-with-user-defined-accessor... " >&6; } 17238if ${tor_cv_cflags__Watomic_property_with_user_defined_accessor+:} false; then : 17239 $as_echo_n "(cached) " >&6 17240else 17241 17242 tor_saved_CFLAGS="$CFLAGS" 17243 CFLAGS="$CFLAGS -pedantic -Werror -Watomic-property-with-user-defined-accessor" 17244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17245/* end confdefs.h. */ 17246 17247int 17248main () 17249{ 17250 17251 ; 17252 return 0; 17253} 17254_ACEOF 17255if ac_fn_c_try_compile "$LINENO"; then : 17256 tor_cv_cflags__Watomic_property_with_user_defined_accessor=yes 17257else 17258 tor_cv_cflags__Watomic_property_with_user_defined_accessor=no 17259fi 17260rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17261 if test x != x; then 17262 17263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17264/* end confdefs.h. */ 17265 17266int 17267main () 17268{ 17269 17270 ; 17271 return 0; 17272} 17273_ACEOF 17274if ac_fn_c_try_link "$LINENO"; then : 17275 tor_can_link__Watomic_property_with_user_defined_accessor=yes 17276else 17277 tor_can_link__Watomic_property_with_user_defined_accessor=no 17278fi 17279rm -f core conftest.err conftest.$ac_objext \ 17280 conftest$ac_exeext conftest.$ac_ext 17281 17282 fi 17283 CFLAGS="$tor_saved_CFLAGS" 17284 17285fi 17286{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Watomic_property_with_user_defined_accessor" >&5 17287$as_echo "$tor_cv_cflags__Watomic_property_with_user_defined_accessor" >&6; } 17288 if test x$tor_cv_cflags__Watomic_property_with_user_defined_accessor = xyes; then 17289 TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Watomic-property-with-user-defined-accessor" CFLAGS="$CFLAGS -Watomic-property-with-user-defined-accessor" 17290 else 17291 true 17292 fi 17293 17294 17295 17296 17297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wauto-import" >&5 17298$as_echo_n "checking whether the compiler accepts -Wauto-import... " >&6; } 17299if ${tor_cv_cflags__Wauto_import+:} false; then : 17300 $as_echo_n "(cached) " >&6 17301else 17302 17303 tor_saved_CFLAGS="$CFLAGS" 17304 CFLAGS="$CFLAGS -pedantic -Werror -Wauto-import" 17305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17306/* end confdefs.h. */ 17307 17308int 17309main () 17310{ 17311 17312 ; 17313 return 0; 17314} 17315_ACEOF 17316if ac_fn_c_try_compile "$LINENO"; then : 17317 tor_cv_cflags__Wauto_import=yes 17318else 17319 tor_cv_cflags__Wauto_import=no 17320fi 17321rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17322 if test x != x; then 17323 17324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17325/* end confdefs.h. */ 17326 17327int 17328main () 17329{ 17330 17331 ; 17332 return 0; 17333} 17334_ACEOF 17335if ac_fn_c_try_link "$LINENO"; then : 17336 tor_can_link__Wauto_import=yes 17337else 17338 tor_can_link__Wauto_import=no 17339fi 17340rm -f core conftest.err conftest.$ac_objext \ 17341 conftest$ac_exeext conftest.$ac_ext 17342 17343 fi 17344 CFLAGS="$tor_saved_CFLAGS" 17345 17346fi 17347{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wauto_import" >&5 17348$as_echo "$tor_cv_cflags__Wauto_import" >&6; } 17349 if test x$tor_cv_cflags__Wauto_import = xyes; then 17350 TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Wauto-import" CFLAGS="$CFLAGS -Wauto-import" 17351 else 17352 true 17353 fi 17354 17355 17356 17357 17358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wauto-storage-class" >&5 17359$as_echo_n "checking whether the compiler accepts -Wauto-storage-class... " >&6; } 17360if ${tor_cv_cflags__Wauto_storage_class+:} false; then : 17361 $as_echo_n "(cached) " >&6 17362else 17363 17364 tor_saved_CFLAGS="$CFLAGS" 17365 CFLAGS="$CFLAGS -pedantic -Werror -Wauto-storage-class" 17366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17367/* end confdefs.h. */ 17368 17369int 17370main () 17371{ 17372 17373 ; 17374 return 0; 17375} 17376_ACEOF 17377if ac_fn_c_try_compile "$LINENO"; then : 17378 tor_cv_cflags__Wauto_storage_class=yes 17379else 17380 tor_cv_cflags__Wauto_storage_class=no 17381fi 17382rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17383 if test x != x; then 17384 17385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17386/* end confdefs.h. */ 17387 17388int 17389main () 17390{ 17391 17392 ; 17393 return 0; 17394} 17395_ACEOF 17396if ac_fn_c_try_link "$LINENO"; then : 17397 tor_can_link__Wauto_storage_class=yes 17398else 17399 tor_can_link__Wauto_storage_class=no 17400fi 17401rm -f core conftest.err conftest.$ac_objext \ 17402 conftest$ac_exeext conftest.$ac_ext 17403 17404 fi 17405 CFLAGS="$tor_saved_CFLAGS" 17406 17407fi 17408{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wauto_storage_class" >&5 17409$as_echo "$tor_cv_cflags__Wauto_storage_class" >&6; } 17410 if test x$tor_cv_cflags__Wauto_storage_class = xyes; then 17411 TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Wauto-storage-class" CFLAGS="$CFLAGS -Wauto-storage-class" 17412 else 17413 true 17414 fi 17415 17416 17417 17418 17419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wauto-var-id" >&5 17420$as_echo_n "checking whether the compiler accepts -Wauto-var-id... " >&6; } 17421if ${tor_cv_cflags__Wauto_var_id+:} false; then : 17422 $as_echo_n "(cached) " >&6 17423else 17424 17425 tor_saved_CFLAGS="$CFLAGS" 17426 CFLAGS="$CFLAGS -pedantic -Werror -Wauto-var-id" 17427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17428/* end confdefs.h. */ 17429 17430int 17431main () 17432{ 17433 17434 ; 17435 return 0; 17436} 17437_ACEOF 17438if ac_fn_c_try_compile "$LINENO"; then : 17439 tor_cv_cflags__Wauto_var_id=yes 17440else 17441 tor_cv_cflags__Wauto_var_id=no 17442fi 17443rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17444 if test x != x; then 17445 17446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17447/* end confdefs.h. */ 17448 17449int 17450main () 17451{ 17452 17453 ; 17454 return 0; 17455} 17456_ACEOF 17457if ac_fn_c_try_link "$LINENO"; then : 17458 tor_can_link__Wauto_var_id=yes 17459else 17460 tor_can_link__Wauto_var_id=no 17461fi 17462rm -f core conftest.err conftest.$ac_objext \ 17463 conftest$ac_exeext conftest.$ac_ext 17464 17465 fi 17466 CFLAGS="$tor_saved_CFLAGS" 17467 17468fi 17469{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wauto_var_id" >&5 17470$as_echo "$tor_cv_cflags__Wauto_var_id" >&6; } 17471 if test x$tor_cv_cflags__Wauto_var_id = xyes; then 17472 TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Wauto-var-id" CFLAGS="$CFLAGS -Wauto-var-id" 17473 else 17474 true 17475 fi 17476 17477 17478 17479 17480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wavailability" >&5 17481$as_echo_n "checking whether the compiler accepts -Wavailability... " >&6; } 17482if ${tor_cv_cflags__Wavailability+:} false; then : 17483 $as_echo_n "(cached) " >&6 17484else 17485 17486 tor_saved_CFLAGS="$CFLAGS" 17487 CFLAGS="$CFLAGS -pedantic -Werror -Wavailability" 17488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17489/* end confdefs.h. */ 17490 17491int 17492main () 17493{ 17494 17495 ; 17496 return 0; 17497} 17498_ACEOF 17499if ac_fn_c_try_compile "$LINENO"; then : 17500 tor_cv_cflags__Wavailability=yes 17501else 17502 tor_cv_cflags__Wavailability=no 17503fi 17504rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17505 if test x != x; then 17506 17507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17508/* end confdefs.h. */ 17509 17510int 17511main () 17512{ 17513 17514 ; 17515 return 0; 17516} 17517_ACEOF 17518if ac_fn_c_try_link "$LINENO"; then : 17519 tor_can_link__Wavailability=yes 17520else 17521 tor_can_link__Wavailability=no 17522fi 17523rm -f core conftest.err conftest.$ac_objext \ 17524 conftest$ac_exeext conftest.$ac_ext 17525 17526 fi 17527 CFLAGS="$tor_saved_CFLAGS" 17528 17529fi 17530{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wavailability" >&5 17531$as_echo "$tor_cv_cflags__Wavailability" >&6; } 17532 if test x$tor_cv_cflags__Wavailability = xyes; then 17533 TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Wavailability" CFLAGS="$CFLAGS -Wavailability" 17534 else 17535 true 17536 fi 17537 17538 17539 17540 17541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wbackslash-newline-escape" >&5 17542$as_echo_n "checking whether the compiler accepts -Wbackslash-newline-escape... " >&6; } 17543if ${tor_cv_cflags__Wbackslash_newline_escape+:} false; then : 17544 $as_echo_n "(cached) " >&6 17545else 17546 17547 tor_saved_CFLAGS="$CFLAGS" 17548 CFLAGS="$CFLAGS -pedantic -Werror -Wbackslash-newline-escape" 17549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17550/* end confdefs.h. */ 17551 17552int 17553main () 17554{ 17555 17556 ; 17557 return 0; 17558} 17559_ACEOF 17560if ac_fn_c_try_compile "$LINENO"; then : 17561 tor_cv_cflags__Wbackslash_newline_escape=yes 17562else 17563 tor_cv_cflags__Wbackslash_newline_escape=no 17564fi 17565rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17566 if test x != x; then 17567 17568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17569/* end confdefs.h. */ 17570 17571int 17572main () 17573{ 17574 17575 ; 17576 return 0; 17577} 17578_ACEOF 17579if ac_fn_c_try_link "$LINENO"; then : 17580 tor_can_link__Wbackslash_newline_escape=yes 17581else 17582 tor_can_link__Wbackslash_newline_escape=no 17583fi 17584rm -f core conftest.err conftest.$ac_objext \ 17585 conftest$ac_exeext conftest.$ac_ext 17586 17587 fi 17588 CFLAGS="$tor_saved_CFLAGS" 17589 17590fi 17591{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wbackslash_newline_escape" >&5 17592$as_echo "$tor_cv_cflags__Wbackslash_newline_escape" >&6; } 17593 if test x$tor_cv_cflags__Wbackslash_newline_escape = xyes; then 17594 TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Wbackslash-newline-escape" CFLAGS="$CFLAGS -Wbackslash-newline-escape" 17595 else 17596 true 17597 fi 17598 17599 17600 17601 17602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wbad-array-new-length" >&5 17603$as_echo_n "checking whether the compiler accepts -Wbad-array-new-length... " >&6; } 17604if ${tor_cv_cflags__Wbad_array_new_length+:} false; then : 17605 $as_echo_n "(cached) " >&6 17606else 17607 17608 tor_saved_CFLAGS="$CFLAGS" 17609 CFLAGS="$CFLAGS -pedantic -Werror -Wbad-array-new-length" 17610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17611/* end confdefs.h. */ 17612 17613int 17614main () 17615{ 17616 17617 ; 17618 return 0; 17619} 17620_ACEOF 17621if ac_fn_c_try_compile "$LINENO"; then : 17622 tor_cv_cflags__Wbad_array_new_length=yes 17623else 17624 tor_cv_cflags__Wbad_array_new_length=no 17625fi 17626rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17627 if test x != x; then 17628 17629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17630/* end confdefs.h. */ 17631 17632int 17633main () 17634{ 17635 17636 ; 17637 return 0; 17638} 17639_ACEOF 17640if ac_fn_c_try_link "$LINENO"; then : 17641 tor_can_link__Wbad_array_new_length=yes 17642else 17643 tor_can_link__Wbad_array_new_length=no 17644fi 17645rm -f core conftest.err conftest.$ac_objext \ 17646 conftest$ac_exeext conftest.$ac_ext 17647 17648 fi 17649 CFLAGS="$tor_saved_CFLAGS" 17650 17651fi 17652{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wbad_array_new_length" >&5 17653$as_echo "$tor_cv_cflags__Wbad_array_new_length" >&6; } 17654 if test x$tor_cv_cflags__Wbad_array_new_length = xyes; then 17655 TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Wbad-array-new-length" CFLAGS="$CFLAGS -Wbad-array-new-length" 17656 else 17657 true 17658 fi 17659 17660 17661 17662 17663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wbind-to-temporary-copy" >&5 17664$as_echo_n "checking whether the compiler accepts -Wbind-to-temporary-copy... " >&6; } 17665if ${tor_cv_cflags__Wbind_to_temporary_copy+:} false; then : 17666 $as_echo_n "(cached) " >&6 17667else 17668 17669 tor_saved_CFLAGS="$CFLAGS" 17670 CFLAGS="$CFLAGS -pedantic -Werror -Wbind-to-temporary-copy" 17671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17672/* end confdefs.h. */ 17673 17674int 17675main () 17676{ 17677 17678 ; 17679 return 0; 17680} 17681_ACEOF 17682if ac_fn_c_try_compile "$LINENO"; then : 17683 tor_cv_cflags__Wbind_to_temporary_copy=yes 17684else 17685 tor_cv_cflags__Wbind_to_temporary_copy=no 17686fi 17687rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17688 if test x != x; then 17689 17690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17691/* end confdefs.h. */ 17692 17693int 17694main () 17695{ 17696 17697 ; 17698 return 0; 17699} 17700_ACEOF 17701if ac_fn_c_try_link "$LINENO"; then : 17702 tor_can_link__Wbind_to_temporary_copy=yes 17703else 17704 tor_can_link__Wbind_to_temporary_copy=no 17705fi 17706rm -f core conftest.err conftest.$ac_objext \ 17707 conftest$ac_exeext conftest.$ac_ext 17708 17709 fi 17710 CFLAGS="$tor_saved_CFLAGS" 17711 17712fi 17713{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wbind_to_temporary_copy" >&5 17714$as_echo "$tor_cv_cflags__Wbind_to_temporary_copy" >&6; } 17715 if test x$tor_cv_cflags__Wbind_to_temporary_copy = xyes; then 17716 TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Wbind-to-temporary-copy" CFLAGS="$CFLAGS -Wbind-to-temporary-copy" 17717 else 17718 true 17719 fi 17720 17721 17722 17723 17724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wbitfield-constant-conversion" >&5 17725$as_echo_n "checking whether the compiler accepts -Wbitfield-constant-conversion... " >&6; } 17726if ${tor_cv_cflags__Wbitfield_constant_conversion+:} false; then : 17727 $as_echo_n "(cached) " >&6 17728else 17729 17730 tor_saved_CFLAGS="$CFLAGS" 17731 CFLAGS="$CFLAGS -pedantic -Werror -Wbitfield-constant-conversion" 17732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17733/* end confdefs.h. */ 17734 17735int 17736main () 17737{ 17738 17739 ; 17740 return 0; 17741} 17742_ACEOF 17743if ac_fn_c_try_compile "$LINENO"; then : 17744 tor_cv_cflags__Wbitfield_constant_conversion=yes 17745else 17746 tor_cv_cflags__Wbitfield_constant_conversion=no 17747fi 17748rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17749 if test x != x; then 17750 17751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17752/* end confdefs.h. */ 17753 17754int 17755main () 17756{ 17757 17758 ; 17759 return 0; 17760} 17761_ACEOF 17762if ac_fn_c_try_link "$LINENO"; then : 17763 tor_can_link__Wbitfield_constant_conversion=yes 17764else 17765 tor_can_link__Wbitfield_constant_conversion=no 17766fi 17767rm -f core conftest.err conftest.$ac_objext \ 17768 conftest$ac_exeext conftest.$ac_ext 17769 17770 fi 17771 CFLAGS="$tor_saved_CFLAGS" 17772 17773fi 17774{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wbitfield_constant_conversion" >&5 17775$as_echo "$tor_cv_cflags__Wbitfield_constant_conversion" >&6; } 17776 if test x$tor_cv_cflags__Wbitfield_constant_conversion = xyes; then 17777 TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Wbitfield-constant-conversion" CFLAGS="$CFLAGS -Wbitfield-constant-conversion" 17778 else 17779 true 17780 fi 17781 17782 17783 17784 17785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wbool-conversion" >&5 17786$as_echo_n "checking whether the compiler accepts -Wbool-conversion... " >&6; } 17787if ${tor_cv_cflags__Wbool_conversion+:} false; then : 17788 $as_echo_n "(cached) " >&6 17789else 17790 17791 tor_saved_CFLAGS="$CFLAGS" 17792 CFLAGS="$CFLAGS -pedantic -Werror -Wbool-conversion" 17793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17794/* end confdefs.h. */ 17795 17796int 17797main () 17798{ 17799 17800 ; 17801 return 0; 17802} 17803_ACEOF 17804if ac_fn_c_try_compile "$LINENO"; then : 17805 tor_cv_cflags__Wbool_conversion=yes 17806else 17807 tor_cv_cflags__Wbool_conversion=no 17808fi 17809rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17810 if test x != x; then 17811 17812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17813/* end confdefs.h. */ 17814 17815int 17816main () 17817{ 17818 17819 ; 17820 return 0; 17821} 17822_ACEOF 17823if ac_fn_c_try_link "$LINENO"; then : 17824 tor_can_link__Wbool_conversion=yes 17825else 17826 tor_can_link__Wbool_conversion=no 17827fi 17828rm -f core conftest.err conftest.$ac_objext \ 17829 conftest$ac_exeext conftest.$ac_ext 17830 17831 fi 17832 CFLAGS="$tor_saved_CFLAGS" 17833 17834fi 17835{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wbool_conversion" >&5 17836$as_echo "$tor_cv_cflags__Wbool_conversion" >&6; } 17837 if test x$tor_cv_cflags__Wbool_conversion = xyes; then 17838 TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Wbool-conversion" CFLAGS="$CFLAGS -Wbool-conversion" 17839 else 17840 true 17841 fi 17842 17843 17844 17845 17846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wbool-conversions" >&5 17847$as_echo_n "checking whether the compiler accepts -Wbool-conversions... " >&6; } 17848if ${tor_cv_cflags__Wbool_conversions+:} false; then : 17849 $as_echo_n "(cached) " >&6 17850else 17851 17852 tor_saved_CFLAGS="$CFLAGS" 17853 CFLAGS="$CFLAGS -pedantic -Werror -Wbool-conversions" 17854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17855/* end confdefs.h. */ 17856 17857int 17858main () 17859{ 17860 17861 ; 17862 return 0; 17863} 17864_ACEOF 17865if ac_fn_c_try_compile "$LINENO"; then : 17866 tor_cv_cflags__Wbool_conversions=yes 17867else 17868 tor_cv_cflags__Wbool_conversions=no 17869fi 17870rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17871 if test x != x; then 17872 17873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17874/* end confdefs.h. */ 17875 17876int 17877main () 17878{ 17879 17880 ; 17881 return 0; 17882} 17883_ACEOF 17884if ac_fn_c_try_link "$LINENO"; then : 17885 tor_can_link__Wbool_conversions=yes 17886else 17887 tor_can_link__Wbool_conversions=no 17888fi 17889rm -f core conftest.err conftest.$ac_objext \ 17890 conftest$ac_exeext conftest.$ac_ext 17891 17892 fi 17893 CFLAGS="$tor_saved_CFLAGS" 17894 17895fi 17896{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wbool_conversions" >&5 17897$as_echo "$tor_cv_cflags__Wbool_conversions" >&6; } 17898 if test x$tor_cv_cflags__Wbool_conversions = xyes; then 17899 TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Wbool-conversions" CFLAGS="$CFLAGS -Wbool-conversions" 17900 else 17901 true 17902 fi 17903 17904 17905 17906 17907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wbuiltin-requires-header" >&5 17908$as_echo_n "checking whether the compiler accepts -Wbuiltin-requires-header... " >&6; } 17909if ${tor_cv_cflags__Wbuiltin_requires_header+:} false; then : 17910 $as_echo_n "(cached) " >&6 17911else 17912 17913 tor_saved_CFLAGS="$CFLAGS" 17914 CFLAGS="$CFLAGS -pedantic -Werror -Wbuiltin-requires-header" 17915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17916/* end confdefs.h. */ 17917 17918int 17919main () 17920{ 17921 17922 ; 17923 return 0; 17924} 17925_ACEOF 17926if ac_fn_c_try_compile "$LINENO"; then : 17927 tor_cv_cflags__Wbuiltin_requires_header=yes 17928else 17929 tor_cv_cflags__Wbuiltin_requires_header=no 17930fi 17931rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17932 if test x != x; then 17933 17934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17935/* end confdefs.h. */ 17936 17937int 17938main () 17939{ 17940 17941 ; 17942 return 0; 17943} 17944_ACEOF 17945if ac_fn_c_try_link "$LINENO"; then : 17946 tor_can_link__Wbuiltin_requires_header=yes 17947else 17948 tor_can_link__Wbuiltin_requires_header=no 17949fi 17950rm -f core conftest.err conftest.$ac_objext \ 17951 conftest$ac_exeext conftest.$ac_ext 17952 17953 fi 17954 CFLAGS="$tor_saved_CFLAGS" 17955 17956fi 17957{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wbuiltin_requires_header" >&5 17958$as_echo "$tor_cv_cflags__Wbuiltin_requires_header" >&6; } 17959 if test x$tor_cv_cflags__Wbuiltin_requires_header = xyes; then 17960 TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Wbuiltin-requires-header" CFLAGS="$CFLAGS -Wbuiltin-requires-header" 17961 else 17962 true 17963 fi 17964 17965 17966 17967 17968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wchar-align" >&5 17969$as_echo_n "checking whether the compiler accepts -Wchar-align... " >&6; } 17970if ${tor_cv_cflags__Wchar_align+:} false; then : 17971 $as_echo_n "(cached) " >&6 17972else 17973 17974 tor_saved_CFLAGS="$CFLAGS" 17975 CFLAGS="$CFLAGS -pedantic -Werror -Wchar-align" 17976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17977/* end confdefs.h. */ 17978 17979int 17980main () 17981{ 17982 17983 ; 17984 return 0; 17985} 17986_ACEOF 17987if ac_fn_c_try_compile "$LINENO"; then : 17988 tor_cv_cflags__Wchar_align=yes 17989else 17990 tor_cv_cflags__Wchar_align=no 17991fi 17992rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17993 if test x != x; then 17994 17995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17996/* end confdefs.h. */ 17997 17998int 17999main () 18000{ 18001 18002 ; 18003 return 0; 18004} 18005_ACEOF 18006if ac_fn_c_try_link "$LINENO"; then : 18007 tor_can_link__Wchar_align=yes 18008else 18009 tor_can_link__Wchar_align=no 18010fi 18011rm -f core conftest.err conftest.$ac_objext \ 18012 conftest$ac_exeext conftest.$ac_ext 18013 18014 fi 18015 CFLAGS="$tor_saved_CFLAGS" 18016 18017fi 18018{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wchar_align" >&5 18019$as_echo "$tor_cv_cflags__Wchar_align" >&6; } 18020 if test x$tor_cv_cflags__Wchar_align = xyes; then 18021 TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Wchar-align" CFLAGS="$CFLAGS -Wchar-align" 18022 else 18023 true 18024 fi 18025 18026 18027 18028 18029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wcompare-distinct-pointer-types" >&5 18030$as_echo_n "checking whether the compiler accepts -Wcompare-distinct-pointer-types... " >&6; } 18031if ${tor_cv_cflags__Wcompare_distinct_pointer_types+:} false; then : 18032 $as_echo_n "(cached) " >&6 18033else 18034 18035 tor_saved_CFLAGS="$CFLAGS" 18036 CFLAGS="$CFLAGS -pedantic -Werror -Wcompare-distinct-pointer-types" 18037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18038/* end confdefs.h. */ 18039 18040int 18041main () 18042{ 18043 18044 ; 18045 return 0; 18046} 18047_ACEOF 18048if ac_fn_c_try_compile "$LINENO"; then : 18049 tor_cv_cflags__Wcompare_distinct_pointer_types=yes 18050else 18051 tor_cv_cflags__Wcompare_distinct_pointer_types=no 18052fi 18053rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18054 if test x != x; then 18055 18056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18057/* end confdefs.h. */ 18058 18059int 18060main () 18061{ 18062 18063 ; 18064 return 0; 18065} 18066_ACEOF 18067if ac_fn_c_try_link "$LINENO"; then : 18068 tor_can_link__Wcompare_distinct_pointer_types=yes 18069else 18070 tor_can_link__Wcompare_distinct_pointer_types=no 18071fi 18072rm -f core conftest.err conftest.$ac_objext \ 18073 conftest$ac_exeext conftest.$ac_ext 18074 18075 fi 18076 CFLAGS="$tor_saved_CFLAGS" 18077 18078fi 18079{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wcompare_distinct_pointer_types" >&5 18080$as_echo "$tor_cv_cflags__Wcompare_distinct_pointer_types" >&6; } 18081 if test x$tor_cv_cflags__Wcompare_distinct_pointer_types = xyes; then 18082 TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Wcompare-distinct-pointer-types" CFLAGS="$CFLAGS -Wcompare-distinct-pointer-types" 18083 else 18084 true 18085 fi 18086 18087 18088 18089 18090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wcomplex-component-init" >&5 18091$as_echo_n "checking whether the compiler accepts -Wcomplex-component-init... " >&6; } 18092if ${tor_cv_cflags__Wcomplex_component_init+:} false; then : 18093 $as_echo_n "(cached) " >&6 18094else 18095 18096 tor_saved_CFLAGS="$CFLAGS" 18097 CFLAGS="$CFLAGS -pedantic -Werror -Wcomplex-component-init" 18098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18099/* end confdefs.h. */ 18100 18101int 18102main () 18103{ 18104 18105 ; 18106 return 0; 18107} 18108_ACEOF 18109if ac_fn_c_try_compile "$LINENO"; then : 18110 tor_cv_cflags__Wcomplex_component_init=yes 18111else 18112 tor_cv_cflags__Wcomplex_component_init=no 18113fi 18114rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18115 if test x != x; then 18116 18117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18118/* end confdefs.h. */ 18119 18120int 18121main () 18122{ 18123 18124 ; 18125 return 0; 18126} 18127_ACEOF 18128if ac_fn_c_try_link "$LINENO"; then : 18129 tor_can_link__Wcomplex_component_init=yes 18130else 18131 tor_can_link__Wcomplex_component_init=no 18132fi 18133rm -f core conftest.err conftest.$ac_objext \ 18134 conftest$ac_exeext conftest.$ac_ext 18135 18136 fi 18137 CFLAGS="$tor_saved_CFLAGS" 18138 18139fi 18140{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wcomplex_component_init" >&5 18141$as_echo "$tor_cv_cflags__Wcomplex_component_init" >&6; } 18142 if test x$tor_cv_cflags__Wcomplex_component_init = xyes; then 18143 TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Wcomplex-component-init" CFLAGS="$CFLAGS -Wcomplex-component-init" 18144 else 18145 true 18146 fi 18147 18148 18149 18150 18151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wconditional-type-mismatch" >&5 18152$as_echo_n "checking whether the compiler accepts -Wconditional-type-mismatch... " >&6; } 18153if ${tor_cv_cflags__Wconditional_type_mismatch+:} false; then : 18154 $as_echo_n "(cached) " >&6 18155else 18156 18157 tor_saved_CFLAGS="$CFLAGS" 18158 CFLAGS="$CFLAGS -pedantic -Werror -Wconditional-type-mismatch" 18159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18160/* end confdefs.h. */ 18161 18162int 18163main () 18164{ 18165 18166 ; 18167 return 0; 18168} 18169_ACEOF 18170if ac_fn_c_try_compile "$LINENO"; then : 18171 tor_cv_cflags__Wconditional_type_mismatch=yes 18172else 18173 tor_cv_cflags__Wconditional_type_mismatch=no 18174fi 18175rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18176 if test x != x; then 18177 18178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18179/* end confdefs.h. */ 18180 18181int 18182main () 18183{ 18184 18185 ; 18186 return 0; 18187} 18188_ACEOF 18189if ac_fn_c_try_link "$LINENO"; then : 18190 tor_can_link__Wconditional_type_mismatch=yes 18191else 18192 tor_can_link__Wconditional_type_mismatch=no 18193fi 18194rm -f core conftest.err conftest.$ac_objext \ 18195 conftest$ac_exeext conftest.$ac_ext 18196 18197 fi 18198 CFLAGS="$tor_saved_CFLAGS" 18199 18200fi 18201{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wconditional_type_mismatch" >&5 18202$as_echo "$tor_cv_cflags__Wconditional_type_mismatch" >&6; } 18203 if test x$tor_cv_cflags__Wconditional_type_mismatch = xyes; then 18204 TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Wconditional-type-mismatch" CFLAGS="$CFLAGS -Wconditional-type-mismatch" 18205 else 18206 true 18207 fi 18208 18209 18210 18211 18212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wconfig-macros" >&5 18213$as_echo_n "checking whether the compiler accepts -Wconfig-macros... " >&6; } 18214if ${tor_cv_cflags__Wconfig_macros+:} false; then : 18215 $as_echo_n "(cached) " >&6 18216else 18217 18218 tor_saved_CFLAGS="$CFLAGS" 18219 CFLAGS="$CFLAGS -pedantic -Werror -Wconfig-macros" 18220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18221/* end confdefs.h. */ 18222 18223int 18224main () 18225{ 18226 18227 ; 18228 return 0; 18229} 18230_ACEOF 18231if ac_fn_c_try_compile "$LINENO"; then : 18232 tor_cv_cflags__Wconfig_macros=yes 18233else 18234 tor_cv_cflags__Wconfig_macros=no 18235fi 18236rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18237 if test x != x; then 18238 18239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18240/* end confdefs.h. */ 18241 18242int 18243main () 18244{ 18245 18246 ; 18247 return 0; 18248} 18249_ACEOF 18250if ac_fn_c_try_link "$LINENO"; then : 18251 tor_can_link__Wconfig_macros=yes 18252else 18253 tor_can_link__Wconfig_macros=no 18254fi 18255rm -f core conftest.err conftest.$ac_objext \ 18256 conftest$ac_exeext conftest.$ac_ext 18257 18258 fi 18259 CFLAGS="$tor_saved_CFLAGS" 18260 18261fi 18262{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wconfig_macros" >&5 18263$as_echo "$tor_cv_cflags__Wconfig_macros" >&6; } 18264 if test x$tor_cv_cflags__Wconfig_macros = xyes; then 18265 TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Wconfig-macros" CFLAGS="$CFLAGS -Wconfig-macros" 18266 else 18267 true 18268 fi 18269 18270 18271 18272 18273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wconstant-conversion" >&5 18274$as_echo_n "checking whether the compiler accepts -Wconstant-conversion... " >&6; } 18275if ${tor_cv_cflags__Wconstant_conversion+:} false; then : 18276 $as_echo_n "(cached) " >&6 18277else 18278 18279 tor_saved_CFLAGS="$CFLAGS" 18280 CFLAGS="$CFLAGS -pedantic -Werror -Wconstant-conversion" 18281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18282/* end confdefs.h. */ 18283 18284int 18285main () 18286{ 18287 18288 ; 18289 return 0; 18290} 18291_ACEOF 18292if ac_fn_c_try_compile "$LINENO"; then : 18293 tor_cv_cflags__Wconstant_conversion=yes 18294else 18295 tor_cv_cflags__Wconstant_conversion=no 18296fi 18297rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18298 if test x != x; then 18299 18300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18301/* end confdefs.h. */ 18302 18303int 18304main () 18305{ 18306 18307 ; 18308 return 0; 18309} 18310_ACEOF 18311if ac_fn_c_try_link "$LINENO"; then : 18312 tor_can_link__Wconstant_conversion=yes 18313else 18314 tor_can_link__Wconstant_conversion=no 18315fi 18316rm -f core conftest.err conftest.$ac_objext \ 18317 conftest$ac_exeext conftest.$ac_ext 18318 18319 fi 18320 CFLAGS="$tor_saved_CFLAGS" 18321 18322fi 18323{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wconstant_conversion" >&5 18324$as_echo "$tor_cv_cflags__Wconstant_conversion" >&6; } 18325 if test x$tor_cv_cflags__Wconstant_conversion = xyes; then 18326 TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Wconstant-conversion" CFLAGS="$CFLAGS -Wconstant-conversion" 18327 else 18328 true 18329 fi 18330 18331 18332 18333 18334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wconstant-logical-operand" >&5 18335$as_echo_n "checking whether the compiler accepts -Wconstant-logical-operand... " >&6; } 18336if ${tor_cv_cflags__Wconstant_logical_operand+:} false; then : 18337 $as_echo_n "(cached) " >&6 18338else 18339 18340 tor_saved_CFLAGS="$CFLAGS" 18341 CFLAGS="$CFLAGS -pedantic -Werror -Wconstant-logical-operand" 18342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18343/* end confdefs.h. */ 18344 18345int 18346main () 18347{ 18348 18349 ; 18350 return 0; 18351} 18352_ACEOF 18353if ac_fn_c_try_compile "$LINENO"; then : 18354 tor_cv_cflags__Wconstant_logical_operand=yes 18355else 18356 tor_cv_cflags__Wconstant_logical_operand=no 18357fi 18358rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18359 if test x != x; then 18360 18361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18362/* end confdefs.h. */ 18363 18364int 18365main () 18366{ 18367 18368 ; 18369 return 0; 18370} 18371_ACEOF 18372if ac_fn_c_try_link "$LINENO"; then : 18373 tor_can_link__Wconstant_logical_operand=yes 18374else 18375 tor_can_link__Wconstant_logical_operand=no 18376fi 18377rm -f core conftest.err conftest.$ac_objext \ 18378 conftest$ac_exeext conftest.$ac_ext 18379 18380 fi 18381 CFLAGS="$tor_saved_CFLAGS" 18382 18383fi 18384{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wconstant_logical_operand" >&5 18385$as_echo "$tor_cv_cflags__Wconstant_logical_operand" >&6; } 18386 if test x$tor_cv_cflags__Wconstant_logical_operand = xyes; then 18387 TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Wconstant-logical-operand" CFLAGS="$CFLAGS -Wconstant-logical-operand" 18388 else 18389 true 18390 fi 18391 18392 18393 18394 18395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wconstexpr-not-const" >&5 18396$as_echo_n "checking whether the compiler accepts -Wconstexpr-not-const... " >&6; } 18397if ${tor_cv_cflags__Wconstexpr_not_const+:} false; then : 18398 $as_echo_n "(cached) " >&6 18399else 18400 18401 tor_saved_CFLAGS="$CFLAGS" 18402 CFLAGS="$CFLAGS -pedantic -Werror -Wconstexpr-not-const" 18403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18404/* end confdefs.h. */ 18405 18406int 18407main () 18408{ 18409 18410 ; 18411 return 0; 18412} 18413_ACEOF 18414if ac_fn_c_try_compile "$LINENO"; then : 18415 tor_cv_cflags__Wconstexpr_not_const=yes 18416else 18417 tor_cv_cflags__Wconstexpr_not_const=no 18418fi 18419rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18420 if test x != x; then 18421 18422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18423/* end confdefs.h. */ 18424 18425int 18426main () 18427{ 18428 18429 ; 18430 return 0; 18431} 18432_ACEOF 18433if ac_fn_c_try_link "$LINENO"; then : 18434 tor_can_link__Wconstexpr_not_const=yes 18435else 18436 tor_can_link__Wconstexpr_not_const=no 18437fi 18438rm -f core conftest.err conftest.$ac_objext \ 18439 conftest$ac_exeext conftest.$ac_ext 18440 18441 fi 18442 CFLAGS="$tor_saved_CFLAGS" 18443 18444fi 18445{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wconstexpr_not_const" >&5 18446$as_echo "$tor_cv_cflags__Wconstexpr_not_const" >&6; } 18447 if test x$tor_cv_cflags__Wconstexpr_not_const = xyes; then 18448 TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Wconstexpr-not-const" CFLAGS="$CFLAGS -Wconstexpr-not-const" 18449 else 18450 true 18451 fi 18452 18453 18454 18455 18456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wcustom-atomic-properties" >&5 18457$as_echo_n "checking whether the compiler accepts -Wcustom-atomic-properties... " >&6; } 18458if ${tor_cv_cflags__Wcustom_atomic_properties+:} false; then : 18459 $as_echo_n "(cached) " >&6 18460else 18461 18462 tor_saved_CFLAGS="$CFLAGS" 18463 CFLAGS="$CFLAGS -pedantic -Werror -Wcustom-atomic-properties" 18464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18465/* end confdefs.h. */ 18466 18467int 18468main () 18469{ 18470 18471 ; 18472 return 0; 18473} 18474_ACEOF 18475if ac_fn_c_try_compile "$LINENO"; then : 18476 tor_cv_cflags__Wcustom_atomic_properties=yes 18477else 18478 tor_cv_cflags__Wcustom_atomic_properties=no 18479fi 18480rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18481 if test x != x; then 18482 18483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18484/* end confdefs.h. */ 18485 18486int 18487main () 18488{ 18489 18490 ; 18491 return 0; 18492} 18493_ACEOF 18494if ac_fn_c_try_link "$LINENO"; then : 18495 tor_can_link__Wcustom_atomic_properties=yes 18496else 18497 tor_can_link__Wcustom_atomic_properties=no 18498fi 18499rm -f core conftest.err conftest.$ac_objext \ 18500 conftest$ac_exeext conftest.$ac_ext 18501 18502 fi 18503 CFLAGS="$tor_saved_CFLAGS" 18504 18505fi 18506{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wcustom_atomic_properties" >&5 18507$as_echo "$tor_cv_cflags__Wcustom_atomic_properties" >&6; } 18508 if test x$tor_cv_cflags__Wcustom_atomic_properties = xyes; then 18509 TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Wcustom-atomic-properties" CFLAGS="$CFLAGS -Wcustom-atomic-properties" 18510 else 18511 true 18512 fi 18513 18514 18515 18516 18517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wdangling-field" >&5 18518$as_echo_n "checking whether the compiler accepts -Wdangling-field... " >&6; } 18519if ${tor_cv_cflags__Wdangling_field+:} false; then : 18520 $as_echo_n "(cached) " >&6 18521else 18522 18523 tor_saved_CFLAGS="$CFLAGS" 18524 CFLAGS="$CFLAGS -pedantic -Werror -Wdangling-field" 18525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18526/* end confdefs.h. */ 18527 18528int 18529main () 18530{ 18531 18532 ; 18533 return 0; 18534} 18535_ACEOF 18536if ac_fn_c_try_compile "$LINENO"; then : 18537 tor_cv_cflags__Wdangling_field=yes 18538else 18539 tor_cv_cflags__Wdangling_field=no 18540fi 18541rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18542 if test x != x; then 18543 18544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18545/* end confdefs.h. */ 18546 18547int 18548main () 18549{ 18550 18551 ; 18552 return 0; 18553} 18554_ACEOF 18555if ac_fn_c_try_link "$LINENO"; then : 18556 tor_can_link__Wdangling_field=yes 18557else 18558 tor_can_link__Wdangling_field=no 18559fi 18560rm -f core conftest.err conftest.$ac_objext \ 18561 conftest$ac_exeext conftest.$ac_ext 18562 18563 fi 18564 CFLAGS="$tor_saved_CFLAGS" 18565 18566fi 18567{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wdangling_field" >&5 18568$as_echo "$tor_cv_cflags__Wdangling_field" >&6; } 18569 if test x$tor_cv_cflags__Wdangling_field = xyes; then 18570 TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Wdangling-field" CFLAGS="$CFLAGS -Wdangling-field" 18571 else 18572 true 18573 fi 18574 18575 18576 18577 18578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wdangling-initializer-list" >&5 18579$as_echo_n "checking whether the compiler accepts -Wdangling-initializer-list... " >&6; } 18580if ${tor_cv_cflags__Wdangling_initializer_list+:} false; then : 18581 $as_echo_n "(cached) " >&6 18582else 18583 18584 tor_saved_CFLAGS="$CFLAGS" 18585 CFLAGS="$CFLAGS -pedantic -Werror -Wdangling-initializer-list" 18586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18587/* end confdefs.h. */ 18588 18589int 18590main () 18591{ 18592 18593 ; 18594 return 0; 18595} 18596_ACEOF 18597if ac_fn_c_try_compile "$LINENO"; then : 18598 tor_cv_cflags__Wdangling_initializer_list=yes 18599else 18600 tor_cv_cflags__Wdangling_initializer_list=no 18601fi 18602rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18603 if test x != x; then 18604 18605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18606/* end confdefs.h. */ 18607 18608int 18609main () 18610{ 18611 18612 ; 18613 return 0; 18614} 18615_ACEOF 18616if ac_fn_c_try_link "$LINENO"; then : 18617 tor_can_link__Wdangling_initializer_list=yes 18618else 18619 tor_can_link__Wdangling_initializer_list=no 18620fi 18621rm -f core conftest.err conftest.$ac_objext \ 18622 conftest$ac_exeext conftest.$ac_ext 18623 18624 fi 18625 CFLAGS="$tor_saved_CFLAGS" 18626 18627fi 18628{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wdangling_initializer_list" >&5 18629$as_echo "$tor_cv_cflags__Wdangling_initializer_list" >&6; } 18630 if test x$tor_cv_cflags__Wdangling_initializer_list = xyes; then 18631 TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Wdangling-initializer-list" CFLAGS="$CFLAGS -Wdangling-initializer-list" 18632 else 18633 true 18634 fi 18635 18636 18637 18638 18639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wdate-time" >&5 18640$as_echo_n "checking whether the compiler accepts -Wdate-time... " >&6; } 18641if ${tor_cv_cflags__Wdate_time+:} false; then : 18642 $as_echo_n "(cached) " >&6 18643else 18644 18645 tor_saved_CFLAGS="$CFLAGS" 18646 CFLAGS="$CFLAGS -pedantic -Werror -Wdate-time" 18647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18648/* end confdefs.h. */ 18649 18650int 18651main () 18652{ 18653 18654 ; 18655 return 0; 18656} 18657_ACEOF 18658if ac_fn_c_try_compile "$LINENO"; then : 18659 tor_cv_cflags__Wdate_time=yes 18660else 18661 tor_cv_cflags__Wdate_time=no 18662fi 18663rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18664 if test x != x; then 18665 18666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18667/* end confdefs.h. */ 18668 18669int 18670main () 18671{ 18672 18673 ; 18674 return 0; 18675} 18676_ACEOF 18677if ac_fn_c_try_link "$LINENO"; then : 18678 tor_can_link__Wdate_time=yes 18679else 18680 tor_can_link__Wdate_time=no 18681fi 18682rm -f core conftest.err conftest.$ac_objext \ 18683 conftest$ac_exeext conftest.$ac_ext 18684 18685 fi 18686 CFLAGS="$tor_saved_CFLAGS" 18687 18688fi 18689{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wdate_time" >&5 18690$as_echo "$tor_cv_cflags__Wdate_time" >&6; } 18691 if test x$tor_cv_cflags__Wdate_time = xyes; then 18692 TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Wdate-time" CFLAGS="$CFLAGS -Wdate-time" 18693 else 18694 true 18695 fi 18696 18697 18698 18699 18700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wdelegating-ctor-cycles" >&5 18701$as_echo_n "checking whether the compiler accepts -Wdelegating-ctor-cycles... " >&6; } 18702if ${tor_cv_cflags__Wdelegating_ctor_cycles+:} false; then : 18703 $as_echo_n "(cached) " >&6 18704else 18705 18706 tor_saved_CFLAGS="$CFLAGS" 18707 CFLAGS="$CFLAGS -pedantic -Werror -Wdelegating-ctor-cycles" 18708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18709/* end confdefs.h. */ 18710 18711int 18712main () 18713{ 18714 18715 ; 18716 return 0; 18717} 18718_ACEOF 18719if ac_fn_c_try_compile "$LINENO"; then : 18720 tor_cv_cflags__Wdelegating_ctor_cycles=yes 18721else 18722 tor_cv_cflags__Wdelegating_ctor_cycles=no 18723fi 18724rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18725 if test x != x; then 18726 18727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18728/* end confdefs.h. */ 18729 18730int 18731main () 18732{ 18733 18734 ; 18735 return 0; 18736} 18737_ACEOF 18738if ac_fn_c_try_link "$LINENO"; then : 18739 tor_can_link__Wdelegating_ctor_cycles=yes 18740else 18741 tor_can_link__Wdelegating_ctor_cycles=no 18742fi 18743rm -f core conftest.err conftest.$ac_objext \ 18744 conftest$ac_exeext conftest.$ac_ext 18745 18746 fi 18747 CFLAGS="$tor_saved_CFLAGS" 18748 18749fi 18750{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wdelegating_ctor_cycles" >&5 18751$as_echo "$tor_cv_cflags__Wdelegating_ctor_cycles" >&6; } 18752 if test x$tor_cv_cflags__Wdelegating_ctor_cycles = xyes; then 18753 TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Wdelegating-ctor-cycles" CFLAGS="$CFLAGS -Wdelegating-ctor-cycles" 18754 else 18755 true 18756 fi 18757 18758 18759 18760 18761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wdeprecated-implementations" >&5 18762$as_echo_n "checking whether the compiler accepts -Wdeprecated-implementations... " >&6; } 18763if ${tor_cv_cflags__Wdeprecated_implementations+:} false; then : 18764 $as_echo_n "(cached) " >&6 18765else 18766 18767 tor_saved_CFLAGS="$CFLAGS" 18768 CFLAGS="$CFLAGS -pedantic -Werror -Wdeprecated-implementations" 18769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18770/* end confdefs.h. */ 18771 18772int 18773main () 18774{ 18775 18776 ; 18777 return 0; 18778} 18779_ACEOF 18780if ac_fn_c_try_compile "$LINENO"; then : 18781 tor_cv_cflags__Wdeprecated_implementations=yes 18782else 18783 tor_cv_cflags__Wdeprecated_implementations=no 18784fi 18785rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18786 if test x != x; then 18787 18788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18789/* end confdefs.h. */ 18790 18791int 18792main () 18793{ 18794 18795 ; 18796 return 0; 18797} 18798_ACEOF 18799if ac_fn_c_try_link "$LINENO"; then : 18800 tor_can_link__Wdeprecated_implementations=yes 18801else 18802 tor_can_link__Wdeprecated_implementations=no 18803fi 18804rm -f core conftest.err conftest.$ac_objext \ 18805 conftest$ac_exeext conftest.$ac_ext 18806 18807 fi 18808 CFLAGS="$tor_saved_CFLAGS" 18809 18810fi 18811{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wdeprecated_implementations" >&5 18812$as_echo "$tor_cv_cflags__Wdeprecated_implementations" >&6; } 18813 if test x$tor_cv_cflags__Wdeprecated_implementations = xyes; then 18814 TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Wdeprecated-implementations" CFLAGS="$CFLAGS -Wdeprecated-implementations" 18815 else 18816 true 18817 fi 18818 18819 18820 18821 18822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wdeprecated-register" >&5 18823$as_echo_n "checking whether the compiler accepts -Wdeprecated-register... " >&6; } 18824if ${tor_cv_cflags__Wdeprecated_register+:} false; then : 18825 $as_echo_n "(cached) " >&6 18826else 18827 18828 tor_saved_CFLAGS="$CFLAGS" 18829 CFLAGS="$CFLAGS -pedantic -Werror -Wdeprecated-register" 18830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18831/* end confdefs.h. */ 18832 18833int 18834main () 18835{ 18836 18837 ; 18838 return 0; 18839} 18840_ACEOF 18841if ac_fn_c_try_compile "$LINENO"; then : 18842 tor_cv_cflags__Wdeprecated_register=yes 18843else 18844 tor_cv_cflags__Wdeprecated_register=no 18845fi 18846rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18847 if test x != x; then 18848 18849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18850/* end confdefs.h. */ 18851 18852int 18853main () 18854{ 18855 18856 ; 18857 return 0; 18858} 18859_ACEOF 18860if ac_fn_c_try_link "$LINENO"; then : 18861 tor_can_link__Wdeprecated_register=yes 18862else 18863 tor_can_link__Wdeprecated_register=no 18864fi 18865rm -f core conftest.err conftest.$ac_objext \ 18866 conftest$ac_exeext conftest.$ac_ext 18867 18868 fi 18869 CFLAGS="$tor_saved_CFLAGS" 18870 18871fi 18872{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wdeprecated_register" >&5 18873$as_echo "$tor_cv_cflags__Wdeprecated_register" >&6; } 18874 if test x$tor_cv_cflags__Wdeprecated_register = xyes; then 18875 TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Wdeprecated-register" CFLAGS="$CFLAGS -Wdeprecated-register" 18876 else 18877 true 18878 fi 18879 18880 18881 18882 18883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wdirect-ivar-access" >&5 18884$as_echo_n "checking whether the compiler accepts -Wdirect-ivar-access... " >&6; } 18885if ${tor_cv_cflags__Wdirect_ivar_access+:} false; then : 18886 $as_echo_n "(cached) " >&6 18887else 18888 18889 tor_saved_CFLAGS="$CFLAGS" 18890 CFLAGS="$CFLAGS -pedantic -Werror -Wdirect-ivar-access" 18891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18892/* end confdefs.h. */ 18893 18894int 18895main () 18896{ 18897 18898 ; 18899 return 0; 18900} 18901_ACEOF 18902if ac_fn_c_try_compile "$LINENO"; then : 18903 tor_cv_cflags__Wdirect_ivar_access=yes 18904else 18905 tor_cv_cflags__Wdirect_ivar_access=no 18906fi 18907rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18908 if test x != x; then 18909 18910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18911/* end confdefs.h. */ 18912 18913int 18914main () 18915{ 18916 18917 ; 18918 return 0; 18919} 18920_ACEOF 18921if ac_fn_c_try_link "$LINENO"; then : 18922 tor_can_link__Wdirect_ivar_access=yes 18923else 18924 tor_can_link__Wdirect_ivar_access=no 18925fi 18926rm -f core conftest.err conftest.$ac_objext \ 18927 conftest$ac_exeext conftest.$ac_ext 18928 18929 fi 18930 CFLAGS="$tor_saved_CFLAGS" 18931 18932fi 18933{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wdirect_ivar_access" >&5 18934$as_echo "$tor_cv_cflags__Wdirect_ivar_access" >&6; } 18935 if test x$tor_cv_cflags__Wdirect_ivar_access = xyes; then 18936 TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Wdirect-ivar-access" CFLAGS="$CFLAGS -Wdirect-ivar-access" 18937 else 18938 true 18939 fi 18940 18941 18942 18943 18944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wdiscard-qual" >&5 18945$as_echo_n "checking whether the compiler accepts -Wdiscard-qual... " >&6; } 18946if ${tor_cv_cflags__Wdiscard_qual+:} false; then : 18947 $as_echo_n "(cached) " >&6 18948else 18949 18950 tor_saved_CFLAGS="$CFLAGS" 18951 CFLAGS="$CFLAGS -pedantic -Werror -Wdiscard-qual" 18952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18953/* end confdefs.h. */ 18954 18955int 18956main () 18957{ 18958 18959 ; 18960 return 0; 18961} 18962_ACEOF 18963if ac_fn_c_try_compile "$LINENO"; then : 18964 tor_cv_cflags__Wdiscard_qual=yes 18965else 18966 tor_cv_cflags__Wdiscard_qual=no 18967fi 18968rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18969 if test x != x; then 18970 18971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18972/* end confdefs.h. */ 18973 18974int 18975main () 18976{ 18977 18978 ; 18979 return 0; 18980} 18981_ACEOF 18982if ac_fn_c_try_link "$LINENO"; then : 18983 tor_can_link__Wdiscard_qual=yes 18984else 18985 tor_can_link__Wdiscard_qual=no 18986fi 18987rm -f core conftest.err conftest.$ac_objext \ 18988 conftest$ac_exeext conftest.$ac_ext 18989 18990 fi 18991 CFLAGS="$tor_saved_CFLAGS" 18992 18993fi 18994{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wdiscard_qual" >&5 18995$as_echo "$tor_cv_cflags__Wdiscard_qual" >&6; } 18996 if test x$tor_cv_cflags__Wdiscard_qual = xyes; then 18997 TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Wdiscard-qual" CFLAGS="$CFLAGS -Wdiscard-qual" 18998 else 18999 true 19000 fi 19001 19002 19003 19004 19005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wdistributed-object-modifiers" >&5 19006$as_echo_n "checking whether the compiler accepts -Wdistributed-object-modifiers... " >&6; } 19007if ${tor_cv_cflags__Wdistributed_object_modifiers+:} false; then : 19008 $as_echo_n "(cached) " >&6 19009else 19010 19011 tor_saved_CFLAGS="$CFLAGS" 19012 CFLAGS="$CFLAGS -pedantic -Werror -Wdistributed-object-modifiers" 19013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19014/* end confdefs.h. */ 19015 19016int 19017main () 19018{ 19019 19020 ; 19021 return 0; 19022} 19023_ACEOF 19024if ac_fn_c_try_compile "$LINENO"; then : 19025 tor_cv_cflags__Wdistributed_object_modifiers=yes 19026else 19027 tor_cv_cflags__Wdistributed_object_modifiers=no 19028fi 19029rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19030 if test x != x; then 19031 19032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19033/* end confdefs.h. */ 19034 19035int 19036main () 19037{ 19038 19039 ; 19040 return 0; 19041} 19042_ACEOF 19043if ac_fn_c_try_link "$LINENO"; then : 19044 tor_can_link__Wdistributed_object_modifiers=yes 19045else 19046 tor_can_link__Wdistributed_object_modifiers=no 19047fi 19048rm -f core conftest.err conftest.$ac_objext \ 19049 conftest$ac_exeext conftest.$ac_ext 19050 19051 fi 19052 CFLAGS="$tor_saved_CFLAGS" 19053 19054fi 19055{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wdistributed_object_modifiers" >&5 19056$as_echo "$tor_cv_cflags__Wdistributed_object_modifiers" >&6; } 19057 if test x$tor_cv_cflags__Wdistributed_object_modifiers = xyes; then 19058 TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Wdistributed-object-modifiers" CFLAGS="$CFLAGS -Wdistributed-object-modifiers" 19059 else 19060 true 19061 fi 19062 19063 19064 19065 19066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wdivision-by-zero" >&5 19067$as_echo_n "checking whether the compiler accepts -Wdivision-by-zero... " >&6; } 19068if ${tor_cv_cflags__Wdivision_by_zero+:} false; then : 19069 $as_echo_n "(cached) " >&6 19070else 19071 19072 tor_saved_CFLAGS="$CFLAGS" 19073 CFLAGS="$CFLAGS -pedantic -Werror -Wdivision-by-zero" 19074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19075/* end confdefs.h. */ 19076 19077int 19078main () 19079{ 19080 19081 ; 19082 return 0; 19083} 19084_ACEOF 19085if ac_fn_c_try_compile "$LINENO"; then : 19086 tor_cv_cflags__Wdivision_by_zero=yes 19087else 19088 tor_cv_cflags__Wdivision_by_zero=no 19089fi 19090rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19091 if test x != x; then 19092 19093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19094/* end confdefs.h. */ 19095 19096int 19097main () 19098{ 19099 19100 ; 19101 return 0; 19102} 19103_ACEOF 19104if ac_fn_c_try_link "$LINENO"; then : 19105 tor_can_link__Wdivision_by_zero=yes 19106else 19107 tor_can_link__Wdivision_by_zero=no 19108fi 19109rm -f core conftest.err conftest.$ac_objext \ 19110 conftest$ac_exeext conftest.$ac_ext 19111 19112 fi 19113 CFLAGS="$tor_saved_CFLAGS" 19114 19115fi 19116{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wdivision_by_zero" >&5 19117$as_echo "$tor_cv_cflags__Wdivision_by_zero" >&6; } 19118 if test x$tor_cv_cflags__Wdivision_by_zero = xyes; then 19119 TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Wdivision-by-zero" CFLAGS="$CFLAGS -Wdivision-by-zero" 19120 else 19121 true 19122 fi 19123 19124 19125 19126 19127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wdollar-in-identifier-extension" >&5 19128$as_echo_n "checking whether the compiler accepts -Wdollar-in-identifier-extension... " >&6; } 19129if ${tor_cv_cflags__Wdollar_in_identifier_extension+:} false; then : 19130 $as_echo_n "(cached) " >&6 19131else 19132 19133 tor_saved_CFLAGS="$CFLAGS" 19134 CFLAGS="$CFLAGS -pedantic -Werror -Wdollar-in-identifier-extension" 19135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19136/* end confdefs.h. */ 19137 19138int 19139main () 19140{ 19141 19142 ; 19143 return 0; 19144} 19145_ACEOF 19146if ac_fn_c_try_compile "$LINENO"; then : 19147 tor_cv_cflags__Wdollar_in_identifier_extension=yes 19148else 19149 tor_cv_cflags__Wdollar_in_identifier_extension=no 19150fi 19151rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19152 if test x != x; then 19153 19154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19155/* end confdefs.h. */ 19156 19157int 19158main () 19159{ 19160 19161 ; 19162 return 0; 19163} 19164_ACEOF 19165if ac_fn_c_try_link "$LINENO"; then : 19166 tor_can_link__Wdollar_in_identifier_extension=yes 19167else 19168 tor_can_link__Wdollar_in_identifier_extension=no 19169fi 19170rm -f core conftest.err conftest.$ac_objext \ 19171 conftest$ac_exeext conftest.$ac_ext 19172 19173 fi 19174 CFLAGS="$tor_saved_CFLAGS" 19175 19176fi 19177{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wdollar_in_identifier_extension" >&5 19178$as_echo "$tor_cv_cflags__Wdollar_in_identifier_extension" >&6; } 19179 if test x$tor_cv_cflags__Wdollar_in_identifier_extension = xyes; then 19180 TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Wdollar-in-identifier-extension" CFLAGS="$CFLAGS -Wdollar-in-identifier-extension" 19181 else 19182 true 19183 fi 19184 19185 19186 19187 19188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wdouble-promotion" >&5 19189$as_echo_n "checking whether the compiler accepts -Wdouble-promotion... " >&6; } 19190if ${tor_cv_cflags__Wdouble_promotion+:} false; then : 19191 $as_echo_n "(cached) " >&6 19192else 19193 19194 tor_saved_CFLAGS="$CFLAGS" 19195 CFLAGS="$CFLAGS -pedantic -Werror -Wdouble-promotion" 19196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19197/* end confdefs.h. */ 19198 19199int 19200main () 19201{ 19202 19203 ; 19204 return 0; 19205} 19206_ACEOF 19207if ac_fn_c_try_compile "$LINENO"; then : 19208 tor_cv_cflags__Wdouble_promotion=yes 19209else 19210 tor_cv_cflags__Wdouble_promotion=no 19211fi 19212rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19213 if test x != x; then 19214 19215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19216/* end confdefs.h. */ 19217 19218int 19219main () 19220{ 19221 19222 ; 19223 return 0; 19224} 19225_ACEOF 19226if ac_fn_c_try_link "$LINENO"; then : 19227 tor_can_link__Wdouble_promotion=yes 19228else 19229 tor_can_link__Wdouble_promotion=no 19230fi 19231rm -f core conftest.err conftest.$ac_objext \ 19232 conftest$ac_exeext conftest.$ac_ext 19233 19234 fi 19235 CFLAGS="$tor_saved_CFLAGS" 19236 19237fi 19238{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wdouble_promotion" >&5 19239$as_echo "$tor_cv_cflags__Wdouble_promotion" >&6; } 19240 if test x$tor_cv_cflags__Wdouble_promotion = xyes; then 19241 TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Wdouble-promotion" CFLAGS="$CFLAGS -Wdouble-promotion" 19242 else 19243 true 19244 fi 19245 19246 19247 19248 19249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wduplicate-decl-specifier" >&5 19250$as_echo_n "checking whether the compiler accepts -Wduplicate-decl-specifier... " >&6; } 19251if ${tor_cv_cflags__Wduplicate_decl_specifier+:} false; then : 19252 $as_echo_n "(cached) " >&6 19253else 19254 19255 tor_saved_CFLAGS="$CFLAGS" 19256 CFLAGS="$CFLAGS -pedantic -Werror -Wduplicate-decl-specifier" 19257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19258/* end confdefs.h. */ 19259 19260int 19261main () 19262{ 19263 19264 ; 19265 return 0; 19266} 19267_ACEOF 19268if ac_fn_c_try_compile "$LINENO"; then : 19269 tor_cv_cflags__Wduplicate_decl_specifier=yes 19270else 19271 tor_cv_cflags__Wduplicate_decl_specifier=no 19272fi 19273rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19274 if test x != x; then 19275 19276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19277/* end confdefs.h. */ 19278 19279int 19280main () 19281{ 19282 19283 ; 19284 return 0; 19285} 19286_ACEOF 19287if ac_fn_c_try_link "$LINENO"; then : 19288 tor_can_link__Wduplicate_decl_specifier=yes 19289else 19290 tor_can_link__Wduplicate_decl_specifier=no 19291fi 19292rm -f core conftest.err conftest.$ac_objext \ 19293 conftest$ac_exeext conftest.$ac_ext 19294 19295 fi 19296 CFLAGS="$tor_saved_CFLAGS" 19297 19298fi 19299{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wduplicate_decl_specifier" >&5 19300$as_echo "$tor_cv_cflags__Wduplicate_decl_specifier" >&6; } 19301 if test x$tor_cv_cflags__Wduplicate_decl_specifier = xyes; then 19302 TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Wduplicate-decl-specifier" CFLAGS="$CFLAGS -Wduplicate-decl-specifier" 19303 else 19304 true 19305 fi 19306 19307 19308 19309 19310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wduplicate-enum" >&5 19311$as_echo_n "checking whether the compiler accepts -Wduplicate-enum... " >&6; } 19312if ${tor_cv_cflags__Wduplicate_enum+:} false; then : 19313 $as_echo_n "(cached) " >&6 19314else 19315 19316 tor_saved_CFLAGS="$CFLAGS" 19317 CFLAGS="$CFLAGS -pedantic -Werror -Wduplicate-enum" 19318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19319/* end confdefs.h. */ 19320 19321int 19322main () 19323{ 19324 19325 ; 19326 return 0; 19327} 19328_ACEOF 19329if ac_fn_c_try_compile "$LINENO"; then : 19330 tor_cv_cflags__Wduplicate_enum=yes 19331else 19332 tor_cv_cflags__Wduplicate_enum=no 19333fi 19334rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19335 if test x != x; then 19336 19337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19338/* end confdefs.h. */ 19339 19340int 19341main () 19342{ 19343 19344 ; 19345 return 0; 19346} 19347_ACEOF 19348if ac_fn_c_try_link "$LINENO"; then : 19349 tor_can_link__Wduplicate_enum=yes 19350else 19351 tor_can_link__Wduplicate_enum=no 19352fi 19353rm -f core conftest.err conftest.$ac_objext \ 19354 conftest$ac_exeext conftest.$ac_ext 19355 19356 fi 19357 CFLAGS="$tor_saved_CFLAGS" 19358 19359fi 19360{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wduplicate_enum" >&5 19361$as_echo "$tor_cv_cflags__Wduplicate_enum" >&6; } 19362 if test x$tor_cv_cflags__Wduplicate_enum = xyes; then 19363 TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Wduplicate-enum" CFLAGS="$CFLAGS -Wduplicate-enum" 19364 else 19365 true 19366 fi 19367 19368 19369 19370 19371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wduplicate-method-arg" >&5 19372$as_echo_n "checking whether the compiler accepts -Wduplicate-method-arg... " >&6; } 19373if ${tor_cv_cflags__Wduplicate_method_arg+:} false; then : 19374 $as_echo_n "(cached) " >&6 19375else 19376 19377 tor_saved_CFLAGS="$CFLAGS" 19378 CFLAGS="$CFLAGS -pedantic -Werror -Wduplicate-method-arg" 19379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19380/* end confdefs.h. */ 19381 19382int 19383main () 19384{ 19385 19386 ; 19387 return 0; 19388} 19389_ACEOF 19390if ac_fn_c_try_compile "$LINENO"; then : 19391 tor_cv_cflags__Wduplicate_method_arg=yes 19392else 19393 tor_cv_cflags__Wduplicate_method_arg=no 19394fi 19395rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19396 if test x != x; then 19397 19398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19399/* end confdefs.h. */ 19400 19401int 19402main () 19403{ 19404 19405 ; 19406 return 0; 19407} 19408_ACEOF 19409if ac_fn_c_try_link "$LINENO"; then : 19410 tor_can_link__Wduplicate_method_arg=yes 19411else 19412 tor_can_link__Wduplicate_method_arg=no 19413fi 19414rm -f core conftest.err conftest.$ac_objext \ 19415 conftest$ac_exeext conftest.$ac_ext 19416 19417 fi 19418 CFLAGS="$tor_saved_CFLAGS" 19419 19420fi 19421{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wduplicate_method_arg" >&5 19422$as_echo "$tor_cv_cflags__Wduplicate_method_arg" >&6; } 19423 if test x$tor_cv_cflags__Wduplicate_method_arg = xyes; then 19424 TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Wduplicate-method-arg" CFLAGS="$CFLAGS -Wduplicate-method-arg" 19425 else 19426 true 19427 fi 19428 19429 19430 19431 19432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wduplicate-method-match" >&5 19433$as_echo_n "checking whether the compiler accepts -Wduplicate-method-match... " >&6; } 19434if ${tor_cv_cflags__Wduplicate_method_match+:} false; then : 19435 $as_echo_n "(cached) " >&6 19436else 19437 19438 tor_saved_CFLAGS="$CFLAGS" 19439 CFLAGS="$CFLAGS -pedantic -Werror -Wduplicate-method-match" 19440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19441/* end confdefs.h. */ 19442 19443int 19444main () 19445{ 19446 19447 ; 19448 return 0; 19449} 19450_ACEOF 19451if ac_fn_c_try_compile "$LINENO"; then : 19452 tor_cv_cflags__Wduplicate_method_match=yes 19453else 19454 tor_cv_cflags__Wduplicate_method_match=no 19455fi 19456rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19457 if test x != x; then 19458 19459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19460/* end confdefs.h. */ 19461 19462int 19463main () 19464{ 19465 19466 ; 19467 return 0; 19468} 19469_ACEOF 19470if ac_fn_c_try_link "$LINENO"; then : 19471 tor_can_link__Wduplicate_method_match=yes 19472else 19473 tor_can_link__Wduplicate_method_match=no 19474fi 19475rm -f core conftest.err conftest.$ac_objext \ 19476 conftest$ac_exeext conftest.$ac_ext 19477 19478 fi 19479 CFLAGS="$tor_saved_CFLAGS" 19480 19481fi 19482{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wduplicate_method_match" >&5 19483$as_echo "$tor_cv_cflags__Wduplicate_method_match" >&6; } 19484 if test x$tor_cv_cflags__Wduplicate_method_match = xyes; then 19485 TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Wduplicate-method-match" CFLAGS="$CFLAGS -Wduplicate-method-match" 19486 else 19487 true 19488 fi 19489 19490 19491 19492 19493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wduplicated-cond" >&5 19494$as_echo_n "checking whether the compiler accepts -Wduplicated-cond... " >&6; } 19495if ${tor_cv_cflags__Wduplicated_cond+:} false; then : 19496 $as_echo_n "(cached) " >&6 19497else 19498 19499 tor_saved_CFLAGS="$CFLAGS" 19500 CFLAGS="$CFLAGS -pedantic -Werror -Wduplicated-cond" 19501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19502/* end confdefs.h. */ 19503 19504int 19505main () 19506{ 19507 19508 ; 19509 return 0; 19510} 19511_ACEOF 19512if ac_fn_c_try_compile "$LINENO"; then : 19513 tor_cv_cflags__Wduplicated_cond=yes 19514else 19515 tor_cv_cflags__Wduplicated_cond=no 19516fi 19517rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19518 if test x != x; then 19519 19520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19521/* end confdefs.h. */ 19522 19523int 19524main () 19525{ 19526 19527 ; 19528 return 0; 19529} 19530_ACEOF 19531if ac_fn_c_try_link "$LINENO"; then : 19532 tor_can_link__Wduplicated_cond=yes 19533else 19534 tor_can_link__Wduplicated_cond=no 19535fi 19536rm -f core conftest.err conftest.$ac_objext \ 19537 conftest$ac_exeext conftest.$ac_ext 19538 19539 fi 19540 CFLAGS="$tor_saved_CFLAGS" 19541 19542fi 19543{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wduplicated_cond" >&5 19544$as_echo "$tor_cv_cflags__Wduplicated_cond" >&6; } 19545 if test x$tor_cv_cflags__Wduplicated_cond = xyes; then 19546 TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Wduplicated-cond" CFLAGS="$CFLAGS -Wduplicated-cond" 19547 else 19548 true 19549 fi 19550 19551 19552 19553 19554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wdynamic-class-memaccess" >&5 19555$as_echo_n "checking whether the compiler accepts -Wdynamic-class-memaccess... " >&6; } 19556if ${tor_cv_cflags__Wdynamic_class_memaccess+:} false; then : 19557 $as_echo_n "(cached) " >&6 19558else 19559 19560 tor_saved_CFLAGS="$CFLAGS" 19561 CFLAGS="$CFLAGS -pedantic -Werror -Wdynamic-class-memaccess" 19562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19563/* end confdefs.h. */ 19564 19565int 19566main () 19567{ 19568 19569 ; 19570 return 0; 19571} 19572_ACEOF 19573if ac_fn_c_try_compile "$LINENO"; then : 19574 tor_cv_cflags__Wdynamic_class_memaccess=yes 19575else 19576 tor_cv_cflags__Wdynamic_class_memaccess=no 19577fi 19578rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19579 if test x != x; then 19580 19581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19582/* end confdefs.h. */ 19583 19584int 19585main () 19586{ 19587 19588 ; 19589 return 0; 19590} 19591_ACEOF 19592if ac_fn_c_try_link "$LINENO"; then : 19593 tor_can_link__Wdynamic_class_memaccess=yes 19594else 19595 tor_can_link__Wdynamic_class_memaccess=no 19596fi 19597rm -f core conftest.err conftest.$ac_objext \ 19598 conftest$ac_exeext conftest.$ac_ext 19599 19600 fi 19601 CFLAGS="$tor_saved_CFLAGS" 19602 19603fi 19604{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wdynamic_class_memaccess" >&5 19605$as_echo "$tor_cv_cflags__Wdynamic_class_memaccess" >&6; } 19606 if test x$tor_cv_cflags__Wdynamic_class_memaccess = xyes; then 19607 TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Wdynamic-class-memaccess" CFLAGS="$CFLAGS -Wdynamic-class-memaccess" 19608 else 19609 true 19610 fi 19611 19612 19613 19614 19615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wembedded-directive" >&5 19616$as_echo_n "checking whether the compiler accepts -Wembedded-directive... " >&6; } 19617if ${tor_cv_cflags__Wembedded_directive+:} false; then : 19618 $as_echo_n "(cached) " >&6 19619else 19620 19621 tor_saved_CFLAGS="$CFLAGS" 19622 CFLAGS="$CFLAGS -pedantic -Werror -Wembedded-directive" 19623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19624/* end confdefs.h. */ 19625 19626int 19627main () 19628{ 19629 19630 ; 19631 return 0; 19632} 19633_ACEOF 19634if ac_fn_c_try_compile "$LINENO"; then : 19635 tor_cv_cflags__Wembedded_directive=yes 19636else 19637 tor_cv_cflags__Wembedded_directive=no 19638fi 19639rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19640 if test x != x; then 19641 19642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19643/* end confdefs.h. */ 19644 19645int 19646main () 19647{ 19648 19649 ; 19650 return 0; 19651} 19652_ACEOF 19653if ac_fn_c_try_link "$LINENO"; then : 19654 tor_can_link__Wembedded_directive=yes 19655else 19656 tor_can_link__Wembedded_directive=no 19657fi 19658rm -f core conftest.err conftest.$ac_objext \ 19659 conftest$ac_exeext conftest.$ac_ext 19660 19661 fi 19662 CFLAGS="$tor_saved_CFLAGS" 19663 19664fi 19665{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wembedded_directive" >&5 19666$as_echo "$tor_cv_cflags__Wembedded_directive" >&6; } 19667 if test x$tor_cv_cflags__Wembedded_directive = xyes; then 19668 TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Wembedded-directive" CFLAGS="$CFLAGS -Wembedded-directive" 19669 else 19670 true 19671 fi 19672 19673 19674 19675 19676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wempty-translation-unit" >&5 19677$as_echo_n "checking whether the compiler accepts -Wempty-translation-unit... " >&6; } 19678if ${tor_cv_cflags__Wempty_translation_unit+:} false; then : 19679 $as_echo_n "(cached) " >&6 19680else 19681 19682 tor_saved_CFLAGS="$CFLAGS" 19683 CFLAGS="$CFLAGS -pedantic -Werror -Wempty-translation-unit" 19684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19685/* end confdefs.h. */ 19686 19687int 19688main () 19689{ 19690 19691 ; 19692 return 0; 19693} 19694_ACEOF 19695if ac_fn_c_try_compile "$LINENO"; then : 19696 tor_cv_cflags__Wempty_translation_unit=yes 19697else 19698 tor_cv_cflags__Wempty_translation_unit=no 19699fi 19700rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19701 if test x != x; then 19702 19703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19704/* end confdefs.h. */ 19705 19706int 19707main () 19708{ 19709 19710 ; 19711 return 0; 19712} 19713_ACEOF 19714if ac_fn_c_try_link "$LINENO"; then : 19715 tor_can_link__Wempty_translation_unit=yes 19716else 19717 tor_can_link__Wempty_translation_unit=no 19718fi 19719rm -f core conftest.err conftest.$ac_objext \ 19720 conftest$ac_exeext conftest.$ac_ext 19721 19722 fi 19723 CFLAGS="$tor_saved_CFLAGS" 19724 19725fi 19726{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wempty_translation_unit" >&5 19727$as_echo "$tor_cv_cflags__Wempty_translation_unit" >&6; } 19728 if test x$tor_cv_cflags__Wempty_translation_unit = xyes; then 19729 TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Wempty-translation-unit" CFLAGS="$CFLAGS -Wempty-translation-unit" 19730 else 19731 true 19732 fi 19733 19734 19735 19736 19737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wenum-conversion" >&5 19738$as_echo_n "checking whether the compiler accepts -Wenum-conversion... " >&6; } 19739if ${tor_cv_cflags__Wenum_conversion+:} false; then : 19740 $as_echo_n "(cached) " >&6 19741else 19742 19743 tor_saved_CFLAGS="$CFLAGS" 19744 CFLAGS="$CFLAGS -pedantic -Werror -Wenum-conversion" 19745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19746/* end confdefs.h. */ 19747 19748int 19749main () 19750{ 19751 19752 ; 19753 return 0; 19754} 19755_ACEOF 19756if ac_fn_c_try_compile "$LINENO"; then : 19757 tor_cv_cflags__Wenum_conversion=yes 19758else 19759 tor_cv_cflags__Wenum_conversion=no 19760fi 19761rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19762 if test x != x; then 19763 19764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19765/* end confdefs.h. */ 19766 19767int 19768main () 19769{ 19770 19771 ; 19772 return 0; 19773} 19774_ACEOF 19775if ac_fn_c_try_link "$LINENO"; then : 19776 tor_can_link__Wenum_conversion=yes 19777else 19778 tor_can_link__Wenum_conversion=no 19779fi 19780rm -f core conftest.err conftest.$ac_objext \ 19781 conftest$ac_exeext conftest.$ac_ext 19782 19783 fi 19784 CFLAGS="$tor_saved_CFLAGS" 19785 19786fi 19787{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wenum_conversion" >&5 19788$as_echo "$tor_cv_cflags__Wenum_conversion" >&6; } 19789 if test x$tor_cv_cflags__Wenum_conversion = xyes; then 19790 TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Wenum-conversion" CFLAGS="$CFLAGS -Wenum-conversion" 19791 else 19792 true 19793 fi 19794 19795 19796 19797 19798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wexit-time-destructors" >&5 19799$as_echo_n "checking whether the compiler accepts -Wexit-time-destructors... " >&6; } 19800if ${tor_cv_cflags__Wexit_time_destructors+:} false; then : 19801 $as_echo_n "(cached) " >&6 19802else 19803 19804 tor_saved_CFLAGS="$CFLAGS" 19805 CFLAGS="$CFLAGS -pedantic -Werror -Wexit-time-destructors" 19806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19807/* end confdefs.h. */ 19808 19809int 19810main () 19811{ 19812 19813 ; 19814 return 0; 19815} 19816_ACEOF 19817if ac_fn_c_try_compile "$LINENO"; then : 19818 tor_cv_cflags__Wexit_time_destructors=yes 19819else 19820 tor_cv_cflags__Wexit_time_destructors=no 19821fi 19822rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19823 if test x != x; then 19824 19825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19826/* end confdefs.h. */ 19827 19828int 19829main () 19830{ 19831 19832 ; 19833 return 0; 19834} 19835_ACEOF 19836if ac_fn_c_try_link "$LINENO"; then : 19837 tor_can_link__Wexit_time_destructors=yes 19838else 19839 tor_can_link__Wexit_time_destructors=no 19840fi 19841rm -f core conftest.err conftest.$ac_objext \ 19842 conftest$ac_exeext conftest.$ac_ext 19843 19844 fi 19845 CFLAGS="$tor_saved_CFLAGS" 19846 19847fi 19848{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wexit_time_destructors" >&5 19849$as_echo "$tor_cv_cflags__Wexit_time_destructors" >&6; } 19850 if test x$tor_cv_cflags__Wexit_time_destructors = xyes; then 19851 TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Wexit-time-destructors" CFLAGS="$CFLAGS -Wexit-time-destructors" 19852 else 19853 true 19854 fi 19855 19856 19857 19858 19859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wexplicit-ownership-type" >&5 19860$as_echo_n "checking whether the compiler accepts -Wexplicit-ownership-type... " >&6; } 19861if ${tor_cv_cflags__Wexplicit_ownership_type+:} false; then : 19862 $as_echo_n "(cached) " >&6 19863else 19864 19865 tor_saved_CFLAGS="$CFLAGS" 19866 CFLAGS="$CFLAGS -pedantic -Werror -Wexplicit-ownership-type" 19867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19868/* end confdefs.h. */ 19869 19870int 19871main () 19872{ 19873 19874 ; 19875 return 0; 19876} 19877_ACEOF 19878if ac_fn_c_try_compile "$LINENO"; then : 19879 tor_cv_cflags__Wexplicit_ownership_type=yes 19880else 19881 tor_cv_cflags__Wexplicit_ownership_type=no 19882fi 19883rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19884 if test x != x; then 19885 19886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19887/* end confdefs.h. */ 19888 19889int 19890main () 19891{ 19892 19893 ; 19894 return 0; 19895} 19896_ACEOF 19897if ac_fn_c_try_link "$LINENO"; then : 19898 tor_can_link__Wexplicit_ownership_type=yes 19899else 19900 tor_can_link__Wexplicit_ownership_type=no 19901fi 19902rm -f core conftest.err conftest.$ac_objext \ 19903 conftest$ac_exeext conftest.$ac_ext 19904 19905 fi 19906 CFLAGS="$tor_saved_CFLAGS" 19907 19908fi 19909{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wexplicit_ownership_type" >&5 19910$as_echo "$tor_cv_cflags__Wexplicit_ownership_type" >&6; } 19911 if test x$tor_cv_cflags__Wexplicit_ownership_type = xyes; then 19912 TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Wexplicit-ownership-type" CFLAGS="$CFLAGS -Wexplicit-ownership-type" 19913 else 19914 true 19915 fi 19916 19917 19918 19919 19920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wextern-initializer" >&5 19921$as_echo_n "checking whether the compiler accepts -Wextern-initializer... " >&6; } 19922if ${tor_cv_cflags__Wextern_initializer+:} false; then : 19923 $as_echo_n "(cached) " >&6 19924else 19925 19926 tor_saved_CFLAGS="$CFLAGS" 19927 CFLAGS="$CFLAGS -pedantic -Werror -Wextern-initializer" 19928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19929/* end confdefs.h. */ 19930 19931int 19932main () 19933{ 19934 19935 ; 19936 return 0; 19937} 19938_ACEOF 19939if ac_fn_c_try_compile "$LINENO"; then : 19940 tor_cv_cflags__Wextern_initializer=yes 19941else 19942 tor_cv_cflags__Wextern_initializer=no 19943fi 19944rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19945 if test x != x; then 19946 19947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19948/* end confdefs.h. */ 19949 19950int 19951main () 19952{ 19953 19954 ; 19955 return 0; 19956} 19957_ACEOF 19958if ac_fn_c_try_link "$LINENO"; then : 19959 tor_can_link__Wextern_initializer=yes 19960else 19961 tor_can_link__Wextern_initializer=no 19962fi 19963rm -f core conftest.err conftest.$ac_objext \ 19964 conftest$ac_exeext conftest.$ac_ext 19965 19966 fi 19967 CFLAGS="$tor_saved_CFLAGS" 19968 19969fi 19970{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wextern_initializer" >&5 19971$as_echo "$tor_cv_cflags__Wextern_initializer" >&6; } 19972 if test x$tor_cv_cflags__Wextern_initializer = xyes; then 19973 TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Wextern-initializer" CFLAGS="$CFLAGS -Wextern-initializer" 19974 else 19975 true 19976 fi 19977 19978 19979 19980 19981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wextra" >&5 19982$as_echo_n "checking whether the compiler accepts -Wextra... " >&6; } 19983if ${tor_cv_cflags__Wextra+:} false; then : 19984 $as_echo_n "(cached) " >&6 19985else 19986 19987 tor_saved_CFLAGS="$CFLAGS" 19988 CFLAGS="$CFLAGS -pedantic -Werror -Wextra" 19989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19990/* end confdefs.h. */ 19991 19992int 19993main () 19994{ 19995 19996 ; 19997 return 0; 19998} 19999_ACEOF 20000if ac_fn_c_try_compile "$LINENO"; then : 20001 tor_cv_cflags__Wextra=yes 20002else 20003 tor_cv_cflags__Wextra=no 20004fi 20005rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20006 if test x != x; then 20007 20008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20009/* end confdefs.h. */ 20010 20011int 20012main () 20013{ 20014 20015 ; 20016 return 0; 20017} 20018_ACEOF 20019if ac_fn_c_try_link "$LINENO"; then : 20020 tor_can_link__Wextra=yes 20021else 20022 tor_can_link__Wextra=no 20023fi 20024rm -f core conftest.err conftest.$ac_objext \ 20025 conftest$ac_exeext conftest.$ac_ext 20026 20027 fi 20028 CFLAGS="$tor_saved_CFLAGS" 20029 20030fi 20031{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wextra" >&5 20032$as_echo "$tor_cv_cflags__Wextra" >&6; } 20033 if test x$tor_cv_cflags__Wextra = xyes; then 20034 TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Wextra" CFLAGS="$CFLAGS -Wextra" 20035 else 20036 true 20037 fi 20038 20039 20040 20041 20042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wextra-semi" >&5 20043$as_echo_n "checking whether the compiler accepts -Wextra-semi... " >&6; } 20044if ${tor_cv_cflags__Wextra_semi+:} false; then : 20045 $as_echo_n "(cached) " >&6 20046else 20047 20048 tor_saved_CFLAGS="$CFLAGS" 20049 CFLAGS="$CFLAGS -pedantic -Werror -Wextra-semi" 20050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20051/* end confdefs.h. */ 20052 20053int 20054main () 20055{ 20056 20057 ; 20058 return 0; 20059} 20060_ACEOF 20061if ac_fn_c_try_compile "$LINENO"; then : 20062 tor_cv_cflags__Wextra_semi=yes 20063else 20064 tor_cv_cflags__Wextra_semi=no 20065fi 20066rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20067 if test x != x; then 20068 20069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20070/* end confdefs.h. */ 20071 20072int 20073main () 20074{ 20075 20076 ; 20077 return 0; 20078} 20079_ACEOF 20080if ac_fn_c_try_link "$LINENO"; then : 20081 tor_can_link__Wextra_semi=yes 20082else 20083 tor_can_link__Wextra_semi=no 20084fi 20085rm -f core conftest.err conftest.$ac_objext \ 20086 conftest$ac_exeext conftest.$ac_ext 20087 20088 fi 20089 CFLAGS="$tor_saved_CFLAGS" 20090 20091fi 20092{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wextra_semi" >&5 20093$as_echo "$tor_cv_cflags__Wextra_semi" >&6; } 20094 if test x$tor_cv_cflags__Wextra_semi = xyes; then 20095 TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Wextra-semi" CFLAGS="$CFLAGS -Wextra-semi" 20096 else 20097 true 20098 fi 20099 20100 20101 20102 20103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wextra-tokens" >&5 20104$as_echo_n "checking whether the compiler accepts -Wextra-tokens... " >&6; } 20105if ${tor_cv_cflags__Wextra_tokens+:} false; then : 20106 $as_echo_n "(cached) " >&6 20107else 20108 20109 tor_saved_CFLAGS="$CFLAGS" 20110 CFLAGS="$CFLAGS -pedantic -Werror -Wextra-tokens" 20111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20112/* end confdefs.h. */ 20113 20114int 20115main () 20116{ 20117 20118 ; 20119 return 0; 20120} 20121_ACEOF 20122if ac_fn_c_try_compile "$LINENO"; then : 20123 tor_cv_cflags__Wextra_tokens=yes 20124else 20125 tor_cv_cflags__Wextra_tokens=no 20126fi 20127rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20128 if test x != x; then 20129 20130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20131/* end confdefs.h. */ 20132 20133int 20134main () 20135{ 20136 20137 ; 20138 return 0; 20139} 20140_ACEOF 20141if ac_fn_c_try_link "$LINENO"; then : 20142 tor_can_link__Wextra_tokens=yes 20143else 20144 tor_can_link__Wextra_tokens=no 20145fi 20146rm -f core conftest.err conftest.$ac_objext \ 20147 conftest$ac_exeext conftest.$ac_ext 20148 20149 fi 20150 CFLAGS="$tor_saved_CFLAGS" 20151 20152fi 20153{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wextra_tokens" >&5 20154$as_echo "$tor_cv_cflags__Wextra_tokens" >&6; } 20155 if test x$tor_cv_cflags__Wextra_tokens = xyes; then 20156 TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Wextra-tokens" CFLAGS="$CFLAGS -Wextra-tokens" 20157 else 20158 true 20159 fi 20160 20161 20162 20163 20164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wflexible-array-extensions" >&5 20165$as_echo_n "checking whether the compiler accepts -Wflexible-array-extensions... " >&6; } 20166if ${tor_cv_cflags__Wflexible_array_extensions+:} false; then : 20167 $as_echo_n "(cached) " >&6 20168else 20169 20170 tor_saved_CFLAGS="$CFLAGS" 20171 CFLAGS="$CFLAGS -pedantic -Werror -Wflexible-array-extensions" 20172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20173/* end confdefs.h. */ 20174 20175int 20176main () 20177{ 20178 20179 ; 20180 return 0; 20181} 20182_ACEOF 20183if ac_fn_c_try_compile "$LINENO"; then : 20184 tor_cv_cflags__Wflexible_array_extensions=yes 20185else 20186 tor_cv_cflags__Wflexible_array_extensions=no 20187fi 20188rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20189 if test x != x; then 20190 20191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20192/* end confdefs.h. */ 20193 20194int 20195main () 20196{ 20197 20198 ; 20199 return 0; 20200} 20201_ACEOF 20202if ac_fn_c_try_link "$LINENO"; then : 20203 tor_can_link__Wflexible_array_extensions=yes 20204else 20205 tor_can_link__Wflexible_array_extensions=no 20206fi 20207rm -f core conftest.err conftest.$ac_objext \ 20208 conftest$ac_exeext conftest.$ac_ext 20209 20210 fi 20211 CFLAGS="$tor_saved_CFLAGS" 20212 20213fi 20214{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wflexible_array_extensions" >&5 20215$as_echo "$tor_cv_cflags__Wflexible_array_extensions" >&6; } 20216 if test x$tor_cv_cflags__Wflexible_array_extensions = xyes; then 20217 TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Wflexible-array-extensions" CFLAGS="$CFLAGS -Wflexible-array-extensions" 20218 else 20219 true 20220 fi 20221 20222 20223 20224 20225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wfloat-conversion" >&5 20226$as_echo_n "checking whether the compiler accepts -Wfloat-conversion... " >&6; } 20227if ${tor_cv_cflags__Wfloat_conversion+:} false; then : 20228 $as_echo_n "(cached) " >&6 20229else 20230 20231 tor_saved_CFLAGS="$CFLAGS" 20232 CFLAGS="$CFLAGS -pedantic -Werror -Wfloat-conversion" 20233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20234/* end confdefs.h. */ 20235 20236int 20237main () 20238{ 20239 20240 ; 20241 return 0; 20242} 20243_ACEOF 20244if ac_fn_c_try_compile "$LINENO"; then : 20245 tor_cv_cflags__Wfloat_conversion=yes 20246else 20247 tor_cv_cflags__Wfloat_conversion=no 20248fi 20249rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20250 if test x != x; then 20251 20252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20253/* end confdefs.h. */ 20254 20255int 20256main () 20257{ 20258 20259 ; 20260 return 0; 20261} 20262_ACEOF 20263if ac_fn_c_try_link "$LINENO"; then : 20264 tor_can_link__Wfloat_conversion=yes 20265else 20266 tor_can_link__Wfloat_conversion=no 20267fi 20268rm -f core conftest.err conftest.$ac_objext \ 20269 conftest$ac_exeext conftest.$ac_ext 20270 20271 fi 20272 CFLAGS="$tor_saved_CFLAGS" 20273 20274fi 20275{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wfloat_conversion" >&5 20276$as_echo "$tor_cv_cflags__Wfloat_conversion" >&6; } 20277 if test x$tor_cv_cflags__Wfloat_conversion = xyes; then 20278 TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Wfloat-conversion" CFLAGS="$CFLAGS -Wfloat-conversion" 20279 else 20280 true 20281 fi 20282 20283 20284 20285 20286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wformat-non-iso" >&5 20287$as_echo_n "checking whether the compiler accepts -Wformat-non-iso... " >&6; } 20288if ${tor_cv_cflags__Wformat_non_iso+:} false; then : 20289 $as_echo_n "(cached) " >&6 20290else 20291 20292 tor_saved_CFLAGS="$CFLAGS" 20293 CFLAGS="$CFLAGS -pedantic -Werror -Wformat-non-iso" 20294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20295/* end confdefs.h. */ 20296 20297int 20298main () 20299{ 20300 20301 ; 20302 return 0; 20303} 20304_ACEOF 20305if ac_fn_c_try_compile "$LINENO"; then : 20306 tor_cv_cflags__Wformat_non_iso=yes 20307else 20308 tor_cv_cflags__Wformat_non_iso=no 20309fi 20310rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20311 if test x != x; then 20312 20313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20314/* end confdefs.h. */ 20315 20316int 20317main () 20318{ 20319 20320 ; 20321 return 0; 20322} 20323_ACEOF 20324if ac_fn_c_try_link "$LINENO"; then : 20325 tor_can_link__Wformat_non_iso=yes 20326else 20327 tor_can_link__Wformat_non_iso=no 20328fi 20329rm -f core conftest.err conftest.$ac_objext \ 20330 conftest$ac_exeext conftest.$ac_ext 20331 20332 fi 20333 CFLAGS="$tor_saved_CFLAGS" 20334 20335fi 20336{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wformat_non_iso" >&5 20337$as_echo "$tor_cv_cflags__Wformat_non_iso" >&6; } 20338 if test x$tor_cv_cflags__Wformat_non_iso = xyes; then 20339 TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Wformat-non-iso" CFLAGS="$CFLAGS -Wformat-non-iso" 20340 else 20341 true 20342 fi 20343 20344 20345 20346 20347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wfour-char-constants" >&5 20348$as_echo_n "checking whether the compiler accepts -Wfour-char-constants... " >&6; } 20349if ${tor_cv_cflags__Wfour_char_constants+:} false; then : 20350 $as_echo_n "(cached) " >&6 20351else 20352 20353 tor_saved_CFLAGS="$CFLAGS" 20354 CFLAGS="$CFLAGS -pedantic -Werror -Wfour-char-constants" 20355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20356/* end confdefs.h. */ 20357 20358int 20359main () 20360{ 20361 20362 ; 20363 return 0; 20364} 20365_ACEOF 20366if ac_fn_c_try_compile "$LINENO"; then : 20367 tor_cv_cflags__Wfour_char_constants=yes 20368else 20369 tor_cv_cflags__Wfour_char_constants=no 20370fi 20371rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20372 if test x != x; then 20373 20374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20375/* end confdefs.h. */ 20376 20377int 20378main () 20379{ 20380 20381 ; 20382 return 0; 20383} 20384_ACEOF 20385if ac_fn_c_try_link "$LINENO"; then : 20386 tor_can_link__Wfour_char_constants=yes 20387else 20388 tor_can_link__Wfour_char_constants=no 20389fi 20390rm -f core conftest.err conftest.$ac_objext \ 20391 conftest$ac_exeext conftest.$ac_ext 20392 20393 fi 20394 CFLAGS="$tor_saved_CFLAGS" 20395 20396fi 20397{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wfour_char_constants" >&5 20398$as_echo "$tor_cv_cflags__Wfour_char_constants" >&6; } 20399 if test x$tor_cv_cflags__Wfour_char_constants = xyes; then 20400 TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Wfour-char-constants" CFLAGS="$CFLAGS -Wfour-char-constants" 20401 else 20402 true 20403 fi 20404 20405 20406 20407 20408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wgcc-compat" >&5 20409$as_echo_n "checking whether the compiler accepts -Wgcc-compat... " >&6; } 20410if ${tor_cv_cflags__Wgcc_compat+:} false; then : 20411 $as_echo_n "(cached) " >&6 20412else 20413 20414 tor_saved_CFLAGS="$CFLAGS" 20415 CFLAGS="$CFLAGS -pedantic -Werror -Wgcc-compat" 20416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20417/* end confdefs.h. */ 20418 20419int 20420main () 20421{ 20422 20423 ; 20424 return 0; 20425} 20426_ACEOF 20427if ac_fn_c_try_compile "$LINENO"; then : 20428 tor_cv_cflags__Wgcc_compat=yes 20429else 20430 tor_cv_cflags__Wgcc_compat=no 20431fi 20432rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20433 if test x != x; then 20434 20435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20436/* end confdefs.h. */ 20437 20438int 20439main () 20440{ 20441 20442 ; 20443 return 0; 20444} 20445_ACEOF 20446if ac_fn_c_try_link "$LINENO"; then : 20447 tor_can_link__Wgcc_compat=yes 20448else 20449 tor_can_link__Wgcc_compat=no 20450fi 20451rm -f core conftest.err conftest.$ac_objext \ 20452 conftest$ac_exeext conftest.$ac_ext 20453 20454 fi 20455 CFLAGS="$tor_saved_CFLAGS" 20456 20457fi 20458{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wgcc_compat" >&5 20459$as_echo "$tor_cv_cflags__Wgcc_compat" >&6; } 20460 if test x$tor_cv_cflags__Wgcc_compat = xyes; then 20461 TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Wgcc-compat" CFLAGS="$CFLAGS -Wgcc-compat" 20462 else 20463 true 20464 fi 20465 20466 20467 20468 20469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wglobal-constructors" >&5 20470$as_echo_n "checking whether the compiler accepts -Wglobal-constructors... " >&6; } 20471if ${tor_cv_cflags__Wglobal_constructors+:} false; then : 20472 $as_echo_n "(cached) " >&6 20473else 20474 20475 tor_saved_CFLAGS="$CFLAGS" 20476 CFLAGS="$CFLAGS -pedantic -Werror -Wglobal-constructors" 20477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20478/* end confdefs.h. */ 20479 20480int 20481main () 20482{ 20483 20484 ; 20485 return 0; 20486} 20487_ACEOF 20488if ac_fn_c_try_compile "$LINENO"; then : 20489 tor_cv_cflags__Wglobal_constructors=yes 20490else 20491 tor_cv_cflags__Wglobal_constructors=no 20492fi 20493rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20494 if test x != x; then 20495 20496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20497/* end confdefs.h. */ 20498 20499int 20500main () 20501{ 20502 20503 ; 20504 return 0; 20505} 20506_ACEOF 20507if ac_fn_c_try_link "$LINENO"; then : 20508 tor_can_link__Wglobal_constructors=yes 20509else 20510 tor_can_link__Wglobal_constructors=no 20511fi 20512rm -f core conftest.err conftest.$ac_objext \ 20513 conftest$ac_exeext conftest.$ac_ext 20514 20515 fi 20516 CFLAGS="$tor_saved_CFLAGS" 20517 20518fi 20519{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wglobal_constructors" >&5 20520$as_echo "$tor_cv_cflags__Wglobal_constructors" >&6; } 20521 if test x$tor_cv_cflags__Wglobal_constructors = xyes; then 20522 TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Wglobal-constructors" CFLAGS="$CFLAGS -Wglobal-constructors" 20523 else 20524 true 20525 fi 20526 20527 20528 20529 20530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wgnu-array-member-paren-init" >&5 20531$as_echo_n "checking whether the compiler accepts -Wgnu-array-member-paren-init... " >&6; } 20532if ${tor_cv_cflags__Wgnu_array_member_paren_init+:} false; then : 20533 $as_echo_n "(cached) " >&6 20534else 20535 20536 tor_saved_CFLAGS="$CFLAGS" 20537 CFLAGS="$CFLAGS -pedantic -Werror -Wgnu-array-member-paren-init" 20538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20539/* end confdefs.h. */ 20540 20541int 20542main () 20543{ 20544 20545 ; 20546 return 0; 20547} 20548_ACEOF 20549if ac_fn_c_try_compile "$LINENO"; then : 20550 tor_cv_cflags__Wgnu_array_member_paren_init=yes 20551else 20552 tor_cv_cflags__Wgnu_array_member_paren_init=no 20553fi 20554rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20555 if test x != x; then 20556 20557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20558/* end confdefs.h. */ 20559 20560int 20561main () 20562{ 20563 20564 ; 20565 return 0; 20566} 20567_ACEOF 20568if ac_fn_c_try_link "$LINENO"; then : 20569 tor_can_link__Wgnu_array_member_paren_init=yes 20570else 20571 tor_can_link__Wgnu_array_member_paren_init=no 20572fi 20573rm -f core conftest.err conftest.$ac_objext \ 20574 conftest$ac_exeext conftest.$ac_ext 20575 20576 fi 20577 CFLAGS="$tor_saved_CFLAGS" 20578 20579fi 20580{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wgnu_array_member_paren_init" >&5 20581$as_echo "$tor_cv_cflags__Wgnu_array_member_paren_init" >&6; } 20582 if test x$tor_cv_cflags__Wgnu_array_member_paren_init = xyes; then 20583 TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Wgnu-array-member-paren-init" CFLAGS="$CFLAGS -Wgnu-array-member-paren-init" 20584 else 20585 true 20586 fi 20587 20588 20589 20590 20591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wgnu-designator" >&5 20592$as_echo_n "checking whether the compiler accepts -Wgnu-designator... " >&6; } 20593if ${tor_cv_cflags__Wgnu_designator+:} false; then : 20594 $as_echo_n "(cached) " >&6 20595else 20596 20597 tor_saved_CFLAGS="$CFLAGS" 20598 CFLAGS="$CFLAGS -pedantic -Werror -Wgnu-designator" 20599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20600/* end confdefs.h. */ 20601 20602int 20603main () 20604{ 20605 20606 ; 20607 return 0; 20608} 20609_ACEOF 20610if ac_fn_c_try_compile "$LINENO"; then : 20611 tor_cv_cflags__Wgnu_designator=yes 20612else 20613 tor_cv_cflags__Wgnu_designator=no 20614fi 20615rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20616 if test x != x; then 20617 20618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20619/* end confdefs.h. */ 20620 20621int 20622main () 20623{ 20624 20625 ; 20626 return 0; 20627} 20628_ACEOF 20629if ac_fn_c_try_link "$LINENO"; then : 20630 tor_can_link__Wgnu_designator=yes 20631else 20632 tor_can_link__Wgnu_designator=no 20633fi 20634rm -f core conftest.err conftest.$ac_objext \ 20635 conftest$ac_exeext conftest.$ac_ext 20636 20637 fi 20638 CFLAGS="$tor_saved_CFLAGS" 20639 20640fi 20641{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wgnu_designator" >&5 20642$as_echo "$tor_cv_cflags__Wgnu_designator" >&6; } 20643 if test x$tor_cv_cflags__Wgnu_designator = xyes; then 20644 TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Wgnu-designator" CFLAGS="$CFLAGS -Wgnu-designator" 20645 else 20646 true 20647 fi 20648 20649 20650 20651 20652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wgnu-static-float-init" >&5 20653$as_echo_n "checking whether the compiler accepts -Wgnu-static-float-init... " >&6; } 20654if ${tor_cv_cflags__Wgnu_static_float_init+:} false; then : 20655 $as_echo_n "(cached) " >&6 20656else 20657 20658 tor_saved_CFLAGS="$CFLAGS" 20659 CFLAGS="$CFLAGS -pedantic -Werror -Wgnu-static-float-init" 20660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20661/* end confdefs.h. */ 20662 20663int 20664main () 20665{ 20666 20667 ; 20668 return 0; 20669} 20670_ACEOF 20671if ac_fn_c_try_compile "$LINENO"; then : 20672 tor_cv_cflags__Wgnu_static_float_init=yes 20673else 20674 tor_cv_cflags__Wgnu_static_float_init=no 20675fi 20676rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20677 if test x != x; then 20678 20679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20680/* end confdefs.h. */ 20681 20682int 20683main () 20684{ 20685 20686 ; 20687 return 0; 20688} 20689_ACEOF 20690if ac_fn_c_try_link "$LINENO"; then : 20691 tor_can_link__Wgnu_static_float_init=yes 20692else 20693 tor_can_link__Wgnu_static_float_init=no 20694fi 20695rm -f core conftest.err conftest.$ac_objext \ 20696 conftest$ac_exeext conftest.$ac_ext 20697 20698 fi 20699 CFLAGS="$tor_saved_CFLAGS" 20700 20701fi 20702{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wgnu_static_float_init" >&5 20703$as_echo "$tor_cv_cflags__Wgnu_static_float_init" >&6; } 20704 if test x$tor_cv_cflags__Wgnu_static_float_init = xyes; then 20705 TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Wgnu-static-float-init" CFLAGS="$CFLAGS -Wgnu-static-float-init" 20706 else 20707 true 20708 fi 20709 20710 20711 20712 20713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wheader-guard" >&5 20714$as_echo_n "checking whether the compiler accepts -Wheader-guard... " >&6; } 20715if ${tor_cv_cflags__Wheader_guard+:} false; then : 20716 $as_echo_n "(cached) " >&6 20717else 20718 20719 tor_saved_CFLAGS="$CFLAGS" 20720 CFLAGS="$CFLAGS -pedantic -Werror -Wheader-guard" 20721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20722/* end confdefs.h. */ 20723 20724int 20725main () 20726{ 20727 20728 ; 20729 return 0; 20730} 20731_ACEOF 20732if ac_fn_c_try_compile "$LINENO"; then : 20733 tor_cv_cflags__Wheader_guard=yes 20734else 20735 tor_cv_cflags__Wheader_guard=no 20736fi 20737rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20738 if test x != x; then 20739 20740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20741/* end confdefs.h. */ 20742 20743int 20744main () 20745{ 20746 20747 ; 20748 return 0; 20749} 20750_ACEOF 20751if ac_fn_c_try_link "$LINENO"; then : 20752 tor_can_link__Wheader_guard=yes 20753else 20754 tor_can_link__Wheader_guard=no 20755fi 20756rm -f core conftest.err conftest.$ac_objext \ 20757 conftest$ac_exeext conftest.$ac_ext 20758 20759 fi 20760 CFLAGS="$tor_saved_CFLAGS" 20761 20762fi 20763{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wheader_guard" >&5 20764$as_echo "$tor_cv_cflags__Wheader_guard" >&6; } 20765 if test x$tor_cv_cflags__Wheader_guard = xyes; then 20766 TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Wheader-guard" CFLAGS="$CFLAGS -Wheader-guard" 20767 else 20768 true 20769 fi 20770 20771 20772 20773 20774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wheader-hygiene" >&5 20775$as_echo_n "checking whether the compiler accepts -Wheader-hygiene... " >&6; } 20776if ${tor_cv_cflags__Wheader_hygiene+:} false; then : 20777 $as_echo_n "(cached) " >&6 20778else 20779 20780 tor_saved_CFLAGS="$CFLAGS" 20781 CFLAGS="$CFLAGS -pedantic -Werror -Wheader-hygiene" 20782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20783/* end confdefs.h. */ 20784 20785int 20786main () 20787{ 20788 20789 ; 20790 return 0; 20791} 20792_ACEOF 20793if ac_fn_c_try_compile "$LINENO"; then : 20794 tor_cv_cflags__Wheader_hygiene=yes 20795else 20796 tor_cv_cflags__Wheader_hygiene=no 20797fi 20798rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20799 if test x != x; then 20800 20801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20802/* end confdefs.h. */ 20803 20804int 20805main () 20806{ 20807 20808 ; 20809 return 0; 20810} 20811_ACEOF 20812if ac_fn_c_try_link "$LINENO"; then : 20813 tor_can_link__Wheader_hygiene=yes 20814else 20815 tor_can_link__Wheader_hygiene=no 20816fi 20817rm -f core conftest.err conftest.$ac_objext \ 20818 conftest$ac_exeext conftest.$ac_ext 20819 20820 fi 20821 CFLAGS="$tor_saved_CFLAGS" 20822 20823fi 20824{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wheader_hygiene" >&5 20825$as_echo "$tor_cv_cflags__Wheader_hygiene" >&6; } 20826 if test x$tor_cv_cflags__Wheader_hygiene = xyes; then 20827 TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Wheader-hygiene" CFLAGS="$CFLAGS -Wheader-hygiene" 20828 else 20829 true 20830 fi 20831 20832 20833 20834 20835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Widiomatic-parentheses" >&5 20836$as_echo_n "checking whether the compiler accepts -Widiomatic-parentheses... " >&6; } 20837if ${tor_cv_cflags__Widiomatic_parentheses+:} false; then : 20838 $as_echo_n "(cached) " >&6 20839else 20840 20841 tor_saved_CFLAGS="$CFLAGS" 20842 CFLAGS="$CFLAGS -pedantic -Werror -Widiomatic-parentheses" 20843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20844/* end confdefs.h. */ 20845 20846int 20847main () 20848{ 20849 20850 ; 20851 return 0; 20852} 20853_ACEOF 20854if ac_fn_c_try_compile "$LINENO"; then : 20855 tor_cv_cflags__Widiomatic_parentheses=yes 20856else 20857 tor_cv_cflags__Widiomatic_parentheses=no 20858fi 20859rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20860 if test x != x; then 20861 20862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20863/* end confdefs.h. */ 20864 20865int 20866main () 20867{ 20868 20869 ; 20870 return 0; 20871} 20872_ACEOF 20873if ac_fn_c_try_link "$LINENO"; then : 20874 tor_can_link__Widiomatic_parentheses=yes 20875else 20876 tor_can_link__Widiomatic_parentheses=no 20877fi 20878rm -f core conftest.err conftest.$ac_objext \ 20879 conftest$ac_exeext conftest.$ac_ext 20880 20881 fi 20882 CFLAGS="$tor_saved_CFLAGS" 20883 20884fi 20885{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Widiomatic_parentheses" >&5 20886$as_echo "$tor_cv_cflags__Widiomatic_parentheses" >&6; } 20887 if test x$tor_cv_cflags__Widiomatic_parentheses = xyes; then 20888 TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Widiomatic-parentheses" CFLAGS="$CFLAGS -Widiomatic-parentheses" 20889 else 20890 true 20891 fi 20892 20893 20894 20895 20896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wignored-attributes" >&5 20897$as_echo_n "checking whether the compiler accepts -Wignored-attributes... " >&6; } 20898if ${tor_cv_cflags__Wignored_attributes+:} false; then : 20899 $as_echo_n "(cached) " >&6 20900else 20901 20902 tor_saved_CFLAGS="$CFLAGS" 20903 CFLAGS="$CFLAGS -pedantic -Werror -Wignored-attributes" 20904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20905/* end confdefs.h. */ 20906 20907int 20908main () 20909{ 20910 20911 ; 20912 return 0; 20913} 20914_ACEOF 20915if ac_fn_c_try_compile "$LINENO"; then : 20916 tor_cv_cflags__Wignored_attributes=yes 20917else 20918 tor_cv_cflags__Wignored_attributes=no 20919fi 20920rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20921 if test x != x; then 20922 20923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20924/* end confdefs.h. */ 20925 20926int 20927main () 20928{ 20929 20930 ; 20931 return 0; 20932} 20933_ACEOF 20934if ac_fn_c_try_link "$LINENO"; then : 20935 tor_can_link__Wignored_attributes=yes 20936else 20937 tor_can_link__Wignored_attributes=no 20938fi 20939rm -f core conftest.err conftest.$ac_objext \ 20940 conftest$ac_exeext conftest.$ac_ext 20941 20942 fi 20943 CFLAGS="$tor_saved_CFLAGS" 20944 20945fi 20946{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wignored_attributes" >&5 20947$as_echo "$tor_cv_cflags__Wignored_attributes" >&6; } 20948 if test x$tor_cv_cflags__Wignored_attributes = xyes; then 20949 TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Wignored-attributes" CFLAGS="$CFLAGS -Wignored-attributes" 20950 else 20951 true 20952 fi 20953 20954 20955 20956 20957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wimplicit-atomic-properties" >&5 20958$as_echo_n "checking whether the compiler accepts -Wimplicit-atomic-properties... " >&6; } 20959if ${tor_cv_cflags__Wimplicit_atomic_properties+:} false; then : 20960 $as_echo_n "(cached) " >&6 20961else 20962 20963 tor_saved_CFLAGS="$CFLAGS" 20964 CFLAGS="$CFLAGS -pedantic -Werror -Wimplicit-atomic-properties" 20965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20966/* end confdefs.h. */ 20967 20968int 20969main () 20970{ 20971 20972 ; 20973 return 0; 20974} 20975_ACEOF 20976if ac_fn_c_try_compile "$LINENO"; then : 20977 tor_cv_cflags__Wimplicit_atomic_properties=yes 20978else 20979 tor_cv_cflags__Wimplicit_atomic_properties=no 20980fi 20981rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20982 if test x != x; then 20983 20984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20985/* end confdefs.h. */ 20986 20987int 20988main () 20989{ 20990 20991 ; 20992 return 0; 20993} 20994_ACEOF 20995if ac_fn_c_try_link "$LINENO"; then : 20996 tor_can_link__Wimplicit_atomic_properties=yes 20997else 20998 tor_can_link__Wimplicit_atomic_properties=no 20999fi 21000rm -f core conftest.err conftest.$ac_objext \ 21001 conftest$ac_exeext conftest.$ac_ext 21002 21003 fi 21004 CFLAGS="$tor_saved_CFLAGS" 21005 21006fi 21007{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wimplicit_atomic_properties" >&5 21008$as_echo "$tor_cv_cflags__Wimplicit_atomic_properties" >&6; } 21009 if test x$tor_cv_cflags__Wimplicit_atomic_properties = xyes; then 21010 TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Wimplicit-atomic-properties" CFLAGS="$CFLAGS -Wimplicit-atomic-properties" 21011 else 21012 true 21013 fi 21014 21015 21016 21017 21018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wimplicit-conversion-floating-point-to-bool" >&5 21019$as_echo_n "checking whether the compiler accepts -Wimplicit-conversion-floating-point-to-bool... " >&6; } 21020if ${tor_cv_cflags__Wimplicit_conversion_floating_point_to_bool+:} false; then : 21021 $as_echo_n "(cached) " >&6 21022else 21023 21024 tor_saved_CFLAGS="$CFLAGS" 21025 CFLAGS="$CFLAGS -pedantic -Werror -Wimplicit-conversion-floating-point-to-bool" 21026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21027/* end confdefs.h. */ 21028 21029int 21030main () 21031{ 21032 21033 ; 21034 return 0; 21035} 21036_ACEOF 21037if ac_fn_c_try_compile "$LINENO"; then : 21038 tor_cv_cflags__Wimplicit_conversion_floating_point_to_bool=yes 21039else 21040 tor_cv_cflags__Wimplicit_conversion_floating_point_to_bool=no 21041fi 21042rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21043 if test x != x; then 21044 21045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21046/* end confdefs.h. */ 21047 21048int 21049main () 21050{ 21051 21052 ; 21053 return 0; 21054} 21055_ACEOF 21056if ac_fn_c_try_link "$LINENO"; then : 21057 tor_can_link__Wimplicit_conversion_floating_point_to_bool=yes 21058else 21059 tor_can_link__Wimplicit_conversion_floating_point_to_bool=no 21060fi 21061rm -f core conftest.err conftest.$ac_objext \ 21062 conftest$ac_exeext conftest.$ac_ext 21063 21064 fi 21065 CFLAGS="$tor_saved_CFLAGS" 21066 21067fi 21068{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wimplicit_conversion_floating_point_to_bool" >&5 21069$as_echo "$tor_cv_cflags__Wimplicit_conversion_floating_point_to_bool" >&6; } 21070 if test x$tor_cv_cflags__Wimplicit_conversion_floating_point_to_bool = xyes; then 21071 TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Wimplicit-conversion-floating-point-to-bool" CFLAGS="$CFLAGS -Wimplicit-conversion-floating-point-to-bool" 21072 else 21073 true 21074 fi 21075 21076 21077 21078 21079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wimplicit-exception-spec-mismatch" >&5 21080$as_echo_n "checking whether the compiler accepts -Wimplicit-exception-spec-mismatch... " >&6; } 21081if ${tor_cv_cflags__Wimplicit_exception_spec_mismatch+:} false; then : 21082 $as_echo_n "(cached) " >&6 21083else 21084 21085 tor_saved_CFLAGS="$CFLAGS" 21086 CFLAGS="$CFLAGS -pedantic -Werror -Wimplicit-exception-spec-mismatch" 21087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21088/* end confdefs.h. */ 21089 21090int 21091main () 21092{ 21093 21094 ; 21095 return 0; 21096} 21097_ACEOF 21098if ac_fn_c_try_compile "$LINENO"; then : 21099 tor_cv_cflags__Wimplicit_exception_spec_mismatch=yes 21100else 21101 tor_cv_cflags__Wimplicit_exception_spec_mismatch=no 21102fi 21103rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21104 if test x != x; then 21105 21106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21107/* end confdefs.h. */ 21108 21109int 21110main () 21111{ 21112 21113 ; 21114 return 0; 21115} 21116_ACEOF 21117if ac_fn_c_try_link "$LINENO"; then : 21118 tor_can_link__Wimplicit_exception_spec_mismatch=yes 21119else 21120 tor_can_link__Wimplicit_exception_spec_mismatch=no 21121fi 21122rm -f core conftest.err conftest.$ac_objext \ 21123 conftest$ac_exeext conftest.$ac_ext 21124 21125 fi 21126 CFLAGS="$tor_saved_CFLAGS" 21127 21128fi 21129{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wimplicit_exception_spec_mismatch" >&5 21130$as_echo "$tor_cv_cflags__Wimplicit_exception_spec_mismatch" >&6; } 21131 if test x$tor_cv_cflags__Wimplicit_exception_spec_mismatch = xyes; then 21132 TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Wimplicit-exception-spec-mismatch" CFLAGS="$CFLAGS -Wimplicit-exception-spec-mismatch" 21133 else 21134 true 21135 fi 21136 21137 21138 21139 21140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wimplicit-fallthrough" >&5 21141$as_echo_n "checking whether the compiler accepts -Wimplicit-fallthrough... " >&6; } 21142if ${tor_cv_cflags__Wimplicit_fallthrough+:} false; then : 21143 $as_echo_n "(cached) " >&6 21144else 21145 21146 tor_saved_CFLAGS="$CFLAGS" 21147 CFLAGS="$CFLAGS -pedantic -Werror -Wimplicit-fallthrough" 21148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21149/* end confdefs.h. */ 21150 21151int 21152main () 21153{ 21154 21155 ; 21156 return 0; 21157} 21158_ACEOF 21159if ac_fn_c_try_compile "$LINENO"; then : 21160 tor_cv_cflags__Wimplicit_fallthrough=yes 21161else 21162 tor_cv_cflags__Wimplicit_fallthrough=no 21163fi 21164rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21165 if test x != x; then 21166 21167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21168/* end confdefs.h. */ 21169 21170int 21171main () 21172{ 21173 21174 ; 21175 return 0; 21176} 21177_ACEOF 21178if ac_fn_c_try_link "$LINENO"; then : 21179 tor_can_link__Wimplicit_fallthrough=yes 21180else 21181 tor_can_link__Wimplicit_fallthrough=no 21182fi 21183rm -f core conftest.err conftest.$ac_objext \ 21184 conftest$ac_exeext conftest.$ac_ext 21185 21186 fi 21187 CFLAGS="$tor_saved_CFLAGS" 21188 21189fi 21190{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wimplicit_fallthrough" >&5 21191$as_echo "$tor_cv_cflags__Wimplicit_fallthrough" >&6; } 21192 if test x$tor_cv_cflags__Wimplicit_fallthrough = xyes; then 21193 TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Wimplicit-fallthrough" CFLAGS="$CFLAGS -Wimplicit-fallthrough" 21194 else 21195 true 21196 fi 21197 21198 21199 21200 21201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wimplicit-fallthrough-per-function" >&5 21202$as_echo_n "checking whether the compiler accepts -Wimplicit-fallthrough-per-function... " >&6; } 21203if ${tor_cv_cflags__Wimplicit_fallthrough_per_function+:} false; then : 21204 $as_echo_n "(cached) " >&6 21205else 21206 21207 tor_saved_CFLAGS="$CFLAGS" 21208 CFLAGS="$CFLAGS -pedantic -Werror -Wimplicit-fallthrough-per-function" 21209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21210/* end confdefs.h. */ 21211 21212int 21213main () 21214{ 21215 21216 ; 21217 return 0; 21218} 21219_ACEOF 21220if ac_fn_c_try_compile "$LINENO"; then : 21221 tor_cv_cflags__Wimplicit_fallthrough_per_function=yes 21222else 21223 tor_cv_cflags__Wimplicit_fallthrough_per_function=no 21224fi 21225rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21226 if test x != x; then 21227 21228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21229/* end confdefs.h. */ 21230 21231int 21232main () 21233{ 21234 21235 ; 21236 return 0; 21237} 21238_ACEOF 21239if ac_fn_c_try_link "$LINENO"; then : 21240 tor_can_link__Wimplicit_fallthrough_per_function=yes 21241else 21242 tor_can_link__Wimplicit_fallthrough_per_function=no 21243fi 21244rm -f core conftest.err conftest.$ac_objext \ 21245 conftest$ac_exeext conftest.$ac_ext 21246 21247 fi 21248 CFLAGS="$tor_saved_CFLAGS" 21249 21250fi 21251{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wimplicit_fallthrough_per_function" >&5 21252$as_echo "$tor_cv_cflags__Wimplicit_fallthrough_per_function" >&6; } 21253 if test x$tor_cv_cflags__Wimplicit_fallthrough_per_function = xyes; then 21254 TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Wimplicit-fallthrough-per-function" CFLAGS="$CFLAGS -Wimplicit-fallthrough-per-function" 21255 else 21256 true 21257 fi 21258 21259 21260 21261 21262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wimplicit-retain-self" >&5 21263$as_echo_n "checking whether the compiler accepts -Wimplicit-retain-self... " >&6; } 21264if ${tor_cv_cflags__Wimplicit_retain_self+:} false; then : 21265 $as_echo_n "(cached) " >&6 21266else 21267 21268 tor_saved_CFLAGS="$CFLAGS" 21269 CFLAGS="$CFLAGS -pedantic -Werror -Wimplicit-retain-self" 21270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21271/* end confdefs.h. */ 21272 21273int 21274main () 21275{ 21276 21277 ; 21278 return 0; 21279} 21280_ACEOF 21281if ac_fn_c_try_compile "$LINENO"; then : 21282 tor_cv_cflags__Wimplicit_retain_self=yes 21283else 21284 tor_cv_cflags__Wimplicit_retain_self=no 21285fi 21286rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21287 if test x != x; then 21288 21289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21290/* end confdefs.h. */ 21291 21292int 21293main () 21294{ 21295 21296 ; 21297 return 0; 21298} 21299_ACEOF 21300if ac_fn_c_try_link "$LINENO"; then : 21301 tor_can_link__Wimplicit_retain_self=yes 21302else 21303 tor_can_link__Wimplicit_retain_self=no 21304fi 21305rm -f core conftest.err conftest.$ac_objext \ 21306 conftest$ac_exeext conftest.$ac_ext 21307 21308 fi 21309 CFLAGS="$tor_saved_CFLAGS" 21310 21311fi 21312{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wimplicit_retain_self" >&5 21313$as_echo "$tor_cv_cflags__Wimplicit_retain_self" >&6; } 21314 if test x$tor_cv_cflags__Wimplicit_retain_self = xyes; then 21315 TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Wimplicit-retain-self" CFLAGS="$CFLAGS -Wimplicit-retain-self" 21316 else 21317 true 21318 fi 21319 21320 21321 21322 21323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wimport-preprocessor-directive-pedantic" >&5 21324$as_echo_n "checking whether the compiler accepts -Wimport-preprocessor-directive-pedantic... " >&6; } 21325if ${tor_cv_cflags__Wimport_preprocessor_directive_pedantic+:} false; then : 21326 $as_echo_n "(cached) " >&6 21327else 21328 21329 tor_saved_CFLAGS="$CFLAGS" 21330 CFLAGS="$CFLAGS -pedantic -Werror -Wimport-preprocessor-directive-pedantic" 21331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21332/* end confdefs.h. */ 21333 21334int 21335main () 21336{ 21337 21338 ; 21339 return 0; 21340} 21341_ACEOF 21342if ac_fn_c_try_compile "$LINENO"; then : 21343 tor_cv_cflags__Wimport_preprocessor_directive_pedantic=yes 21344else 21345 tor_cv_cflags__Wimport_preprocessor_directive_pedantic=no 21346fi 21347rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21348 if test x != x; then 21349 21350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21351/* end confdefs.h. */ 21352 21353int 21354main () 21355{ 21356 21357 ; 21358 return 0; 21359} 21360_ACEOF 21361if ac_fn_c_try_link "$LINENO"; then : 21362 tor_can_link__Wimport_preprocessor_directive_pedantic=yes 21363else 21364 tor_can_link__Wimport_preprocessor_directive_pedantic=no 21365fi 21366rm -f core conftest.err conftest.$ac_objext \ 21367 conftest$ac_exeext conftest.$ac_ext 21368 21369 fi 21370 CFLAGS="$tor_saved_CFLAGS" 21371 21372fi 21373{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wimport_preprocessor_directive_pedantic" >&5 21374$as_echo "$tor_cv_cflags__Wimport_preprocessor_directive_pedantic" >&6; } 21375 if test x$tor_cv_cflags__Wimport_preprocessor_directive_pedantic = xyes; then 21376 TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Wimport-preprocessor-directive-pedantic" CFLAGS="$CFLAGS -Wimport-preprocessor-directive-pedantic" 21377 else 21378 true 21379 fi 21380 21381 21382 21383 21384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wincompatible-library-redeclaration" >&5 21385$as_echo_n "checking whether the compiler accepts -Wincompatible-library-redeclaration... " >&6; } 21386if ${tor_cv_cflags__Wincompatible_library_redeclaration+:} false; then : 21387 $as_echo_n "(cached) " >&6 21388else 21389 21390 tor_saved_CFLAGS="$CFLAGS" 21391 CFLAGS="$CFLAGS -pedantic -Werror -Wincompatible-library-redeclaration" 21392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21393/* end confdefs.h. */ 21394 21395int 21396main () 21397{ 21398 21399 ; 21400 return 0; 21401} 21402_ACEOF 21403if ac_fn_c_try_compile "$LINENO"; then : 21404 tor_cv_cflags__Wincompatible_library_redeclaration=yes 21405else 21406 tor_cv_cflags__Wincompatible_library_redeclaration=no 21407fi 21408rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21409 if test x != x; then 21410 21411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21412/* end confdefs.h. */ 21413 21414int 21415main () 21416{ 21417 21418 ; 21419 return 0; 21420} 21421_ACEOF 21422if ac_fn_c_try_link "$LINENO"; then : 21423 tor_can_link__Wincompatible_library_redeclaration=yes 21424else 21425 tor_can_link__Wincompatible_library_redeclaration=no 21426fi 21427rm -f core conftest.err conftest.$ac_objext \ 21428 conftest$ac_exeext conftest.$ac_ext 21429 21430 fi 21431 CFLAGS="$tor_saved_CFLAGS" 21432 21433fi 21434{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wincompatible_library_redeclaration" >&5 21435$as_echo "$tor_cv_cflags__Wincompatible_library_redeclaration" >&6; } 21436 if test x$tor_cv_cflags__Wincompatible_library_redeclaration = xyes; then 21437 TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Wincompatible-library-redeclaration" CFLAGS="$CFLAGS -Wincompatible-library-redeclaration" 21438 else 21439 true 21440 fi 21441 21442 21443 21444 21445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wincompatible-pointer-types-discards-qualifiers" >&5 21446$as_echo_n "checking whether the compiler accepts -Wincompatible-pointer-types-discards-qualifiers... " >&6; } 21447if ${tor_cv_cflags__Wincompatible_pointer_types_discards_qualifiers+:} false; then : 21448 $as_echo_n "(cached) " >&6 21449else 21450 21451 tor_saved_CFLAGS="$CFLAGS" 21452 CFLAGS="$CFLAGS -pedantic -Werror -Wincompatible-pointer-types-discards-qualifiers" 21453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21454/* end confdefs.h. */ 21455 21456int 21457main () 21458{ 21459 21460 ; 21461 return 0; 21462} 21463_ACEOF 21464if ac_fn_c_try_compile "$LINENO"; then : 21465 tor_cv_cflags__Wincompatible_pointer_types_discards_qualifiers=yes 21466else 21467 tor_cv_cflags__Wincompatible_pointer_types_discards_qualifiers=no 21468fi 21469rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21470 if test x != x; then 21471 21472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21473/* end confdefs.h. */ 21474 21475int 21476main () 21477{ 21478 21479 ; 21480 return 0; 21481} 21482_ACEOF 21483if ac_fn_c_try_link "$LINENO"; then : 21484 tor_can_link__Wincompatible_pointer_types_discards_qualifiers=yes 21485else 21486 tor_can_link__Wincompatible_pointer_types_discards_qualifiers=no 21487fi 21488rm -f core conftest.err conftest.$ac_objext \ 21489 conftest$ac_exeext conftest.$ac_ext 21490 21491 fi 21492 CFLAGS="$tor_saved_CFLAGS" 21493 21494fi 21495{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wincompatible_pointer_types_discards_qualifiers" >&5 21496$as_echo "$tor_cv_cflags__Wincompatible_pointer_types_discards_qualifiers" >&6; } 21497 if test x$tor_cv_cflags__Wincompatible_pointer_types_discards_qualifiers = xyes; then 21498 TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Wincompatible-pointer-types-discards-qualifiers" CFLAGS="$CFLAGS -Wincompatible-pointer-types-discards-qualifiers" 21499 else 21500 true 21501 fi 21502 21503 21504 21505 21506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wincomplete-implementation" >&5 21507$as_echo_n "checking whether the compiler accepts -Wincomplete-implementation... " >&6; } 21508if ${tor_cv_cflags__Wincomplete_implementation+:} false; then : 21509 $as_echo_n "(cached) " >&6 21510else 21511 21512 tor_saved_CFLAGS="$CFLAGS" 21513 CFLAGS="$CFLAGS -pedantic -Werror -Wincomplete-implementation" 21514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21515/* end confdefs.h. */ 21516 21517int 21518main () 21519{ 21520 21521 ; 21522 return 0; 21523} 21524_ACEOF 21525if ac_fn_c_try_compile "$LINENO"; then : 21526 tor_cv_cflags__Wincomplete_implementation=yes 21527else 21528 tor_cv_cflags__Wincomplete_implementation=no 21529fi 21530rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21531 if test x != x; then 21532 21533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21534/* end confdefs.h. */ 21535 21536int 21537main () 21538{ 21539 21540 ; 21541 return 0; 21542} 21543_ACEOF 21544if ac_fn_c_try_link "$LINENO"; then : 21545 tor_can_link__Wincomplete_implementation=yes 21546else 21547 tor_can_link__Wincomplete_implementation=no 21548fi 21549rm -f core conftest.err conftest.$ac_objext \ 21550 conftest$ac_exeext conftest.$ac_ext 21551 21552 fi 21553 CFLAGS="$tor_saved_CFLAGS" 21554 21555fi 21556{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wincomplete_implementation" >&5 21557$as_echo "$tor_cv_cflags__Wincomplete_implementation" >&6; } 21558 if test x$tor_cv_cflags__Wincomplete_implementation = xyes; then 21559 TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Wincomplete-implementation" CFLAGS="$CFLAGS -Wincomplete-implementation" 21560 else 21561 true 21562 fi 21563 21564 21565 21566 21567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wincomplete-module" >&5 21568$as_echo_n "checking whether the compiler accepts -Wincomplete-module... " >&6; } 21569if ${tor_cv_cflags__Wincomplete_module+:} false; then : 21570 $as_echo_n "(cached) " >&6 21571else 21572 21573 tor_saved_CFLAGS="$CFLAGS" 21574 CFLAGS="$CFLAGS -pedantic -Werror -Wincomplete-module" 21575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21576/* end confdefs.h. */ 21577 21578int 21579main () 21580{ 21581 21582 ; 21583 return 0; 21584} 21585_ACEOF 21586if ac_fn_c_try_compile "$LINENO"; then : 21587 tor_cv_cflags__Wincomplete_module=yes 21588else 21589 tor_cv_cflags__Wincomplete_module=no 21590fi 21591rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21592 if test x != x; then 21593 21594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21595/* end confdefs.h. */ 21596 21597int 21598main () 21599{ 21600 21601 ; 21602 return 0; 21603} 21604_ACEOF 21605if ac_fn_c_try_link "$LINENO"; then : 21606 tor_can_link__Wincomplete_module=yes 21607else 21608 tor_can_link__Wincomplete_module=no 21609fi 21610rm -f core conftest.err conftest.$ac_objext \ 21611 conftest$ac_exeext conftest.$ac_ext 21612 21613 fi 21614 CFLAGS="$tor_saved_CFLAGS" 21615 21616fi 21617{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wincomplete_module" >&5 21618$as_echo "$tor_cv_cflags__Wincomplete_module" >&6; } 21619 if test x$tor_cv_cflags__Wincomplete_module = xyes; then 21620 TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Wincomplete-module" CFLAGS="$CFLAGS -Wincomplete-module" 21621 else 21622 true 21623 fi 21624 21625 21626 21627 21628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wincomplete-umbrella" >&5 21629$as_echo_n "checking whether the compiler accepts -Wincomplete-umbrella... " >&6; } 21630if ${tor_cv_cflags__Wincomplete_umbrella+:} false; then : 21631 $as_echo_n "(cached) " >&6 21632else 21633 21634 tor_saved_CFLAGS="$CFLAGS" 21635 CFLAGS="$CFLAGS -pedantic -Werror -Wincomplete-umbrella" 21636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21637/* end confdefs.h. */ 21638 21639int 21640main () 21641{ 21642 21643 ; 21644 return 0; 21645} 21646_ACEOF 21647if ac_fn_c_try_compile "$LINENO"; then : 21648 tor_cv_cflags__Wincomplete_umbrella=yes 21649else 21650 tor_cv_cflags__Wincomplete_umbrella=no 21651fi 21652rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21653 if test x != x; then 21654 21655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21656/* end confdefs.h. */ 21657 21658int 21659main () 21660{ 21661 21662 ; 21663 return 0; 21664} 21665_ACEOF 21666if ac_fn_c_try_link "$LINENO"; then : 21667 tor_can_link__Wincomplete_umbrella=yes 21668else 21669 tor_can_link__Wincomplete_umbrella=no 21670fi 21671rm -f core conftest.err conftest.$ac_objext \ 21672 conftest$ac_exeext conftest.$ac_ext 21673 21674 fi 21675 CFLAGS="$tor_saved_CFLAGS" 21676 21677fi 21678{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wincomplete_umbrella" >&5 21679$as_echo "$tor_cv_cflags__Wincomplete_umbrella" >&6; } 21680 if test x$tor_cv_cflags__Wincomplete_umbrella = xyes; then 21681 TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Wincomplete-umbrella" CFLAGS="$CFLAGS -Wincomplete-umbrella" 21682 else 21683 true 21684 fi 21685 21686 21687 21688 21689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Winit-self" >&5 21690$as_echo_n "checking whether the compiler accepts -Winit-self... " >&6; } 21691if ${tor_cv_cflags__Winit_self+:} false; then : 21692 $as_echo_n "(cached) " >&6 21693else 21694 21695 tor_saved_CFLAGS="$CFLAGS" 21696 CFLAGS="$CFLAGS -pedantic -Werror -Winit-self" 21697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21698/* end confdefs.h. */ 21699 21700int 21701main () 21702{ 21703 21704 ; 21705 return 0; 21706} 21707_ACEOF 21708if ac_fn_c_try_compile "$LINENO"; then : 21709 tor_cv_cflags__Winit_self=yes 21710else 21711 tor_cv_cflags__Winit_self=no 21712fi 21713rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21714 if test x != x; then 21715 21716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21717/* end confdefs.h. */ 21718 21719int 21720main () 21721{ 21722 21723 ; 21724 return 0; 21725} 21726_ACEOF 21727if ac_fn_c_try_link "$LINENO"; then : 21728 tor_can_link__Winit_self=yes 21729else 21730 tor_can_link__Winit_self=no 21731fi 21732rm -f core conftest.err conftest.$ac_objext \ 21733 conftest$ac_exeext conftest.$ac_ext 21734 21735 fi 21736 CFLAGS="$tor_saved_CFLAGS" 21737 21738fi 21739{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Winit_self" >&5 21740$as_echo "$tor_cv_cflags__Winit_self" >&6; } 21741 if test x$tor_cv_cflags__Winit_self = xyes; then 21742 TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Winit-self" CFLAGS="$CFLAGS -Winit-self" 21743 else 21744 true 21745 fi 21746 21747 21748 21749 21750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wint-conversions" >&5 21751$as_echo_n "checking whether the compiler accepts -Wint-conversions... " >&6; } 21752if ${tor_cv_cflags__Wint_conversions+:} false; then : 21753 $as_echo_n "(cached) " >&6 21754else 21755 21756 tor_saved_CFLAGS="$CFLAGS" 21757 CFLAGS="$CFLAGS -pedantic -Werror -Wint-conversions" 21758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21759/* end confdefs.h. */ 21760 21761int 21762main () 21763{ 21764 21765 ; 21766 return 0; 21767} 21768_ACEOF 21769if ac_fn_c_try_compile "$LINENO"; then : 21770 tor_cv_cflags__Wint_conversions=yes 21771else 21772 tor_cv_cflags__Wint_conversions=no 21773fi 21774rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21775 if test x != x; then 21776 21777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21778/* end confdefs.h. */ 21779 21780int 21781main () 21782{ 21783 21784 ; 21785 return 0; 21786} 21787_ACEOF 21788if ac_fn_c_try_link "$LINENO"; then : 21789 tor_can_link__Wint_conversions=yes 21790else 21791 tor_can_link__Wint_conversions=no 21792fi 21793rm -f core conftest.err conftest.$ac_objext \ 21794 conftest$ac_exeext conftest.$ac_ext 21795 21796 fi 21797 CFLAGS="$tor_saved_CFLAGS" 21798 21799fi 21800{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wint_conversions" >&5 21801$as_echo "$tor_cv_cflags__Wint_conversions" >&6; } 21802 if test x$tor_cv_cflags__Wint_conversions = xyes; then 21803 TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Wint-conversions" CFLAGS="$CFLAGS -Wint-conversions" 21804 else 21805 true 21806 fi 21807 21808 21809 21810 21811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wint-to-void-pointer-cast" >&5 21812$as_echo_n "checking whether the compiler accepts -Wint-to-void-pointer-cast... " >&6; } 21813if ${tor_cv_cflags__Wint_to_void_pointer_cast+:} false; then : 21814 $as_echo_n "(cached) " >&6 21815else 21816 21817 tor_saved_CFLAGS="$CFLAGS" 21818 CFLAGS="$CFLAGS -pedantic -Werror -Wint-to-void-pointer-cast" 21819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21820/* end confdefs.h. */ 21821 21822int 21823main () 21824{ 21825 21826 ; 21827 return 0; 21828} 21829_ACEOF 21830if ac_fn_c_try_compile "$LINENO"; then : 21831 tor_cv_cflags__Wint_to_void_pointer_cast=yes 21832else 21833 tor_cv_cflags__Wint_to_void_pointer_cast=no 21834fi 21835rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21836 if test x != x; then 21837 21838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21839/* end confdefs.h. */ 21840 21841int 21842main () 21843{ 21844 21845 ; 21846 return 0; 21847} 21848_ACEOF 21849if ac_fn_c_try_link "$LINENO"; then : 21850 tor_can_link__Wint_to_void_pointer_cast=yes 21851else 21852 tor_can_link__Wint_to_void_pointer_cast=no 21853fi 21854rm -f core conftest.err conftest.$ac_objext \ 21855 conftest$ac_exeext conftest.$ac_ext 21856 21857 fi 21858 CFLAGS="$tor_saved_CFLAGS" 21859 21860fi 21861{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wint_to_void_pointer_cast" >&5 21862$as_echo "$tor_cv_cflags__Wint_to_void_pointer_cast" >&6; } 21863 if test x$tor_cv_cflags__Wint_to_void_pointer_cast = xyes; then 21864 TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Wint-to-void-pointer-cast" CFLAGS="$CFLAGS -Wint-to-void-pointer-cast" 21865 else 21866 true 21867 fi 21868 21869 21870 21871 21872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Winteger-overflow" >&5 21873$as_echo_n "checking whether the compiler accepts -Winteger-overflow... " >&6; } 21874if ${tor_cv_cflags__Winteger_overflow+:} false; then : 21875 $as_echo_n "(cached) " >&6 21876else 21877 21878 tor_saved_CFLAGS="$CFLAGS" 21879 CFLAGS="$CFLAGS -pedantic -Werror -Winteger-overflow" 21880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21881/* end confdefs.h. */ 21882 21883int 21884main () 21885{ 21886 21887 ; 21888 return 0; 21889} 21890_ACEOF 21891if ac_fn_c_try_compile "$LINENO"; then : 21892 tor_cv_cflags__Winteger_overflow=yes 21893else 21894 tor_cv_cflags__Winteger_overflow=no 21895fi 21896rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21897 if test x != x; then 21898 21899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21900/* end confdefs.h. */ 21901 21902int 21903main () 21904{ 21905 21906 ; 21907 return 0; 21908} 21909_ACEOF 21910if ac_fn_c_try_link "$LINENO"; then : 21911 tor_can_link__Winteger_overflow=yes 21912else 21913 tor_can_link__Winteger_overflow=no 21914fi 21915rm -f core conftest.err conftest.$ac_objext \ 21916 conftest$ac_exeext conftest.$ac_ext 21917 21918 fi 21919 CFLAGS="$tor_saved_CFLAGS" 21920 21921fi 21922{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Winteger_overflow" >&5 21923$as_echo "$tor_cv_cflags__Winteger_overflow" >&6; } 21924 if test x$tor_cv_cflags__Winteger_overflow = xyes; then 21925 TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Winteger-overflow" CFLAGS="$CFLAGS -Winteger-overflow" 21926 else 21927 true 21928 fi 21929 21930 21931 21932 21933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Winvalid-constexpr" >&5 21934$as_echo_n "checking whether the compiler accepts -Winvalid-constexpr... " >&6; } 21935if ${tor_cv_cflags__Winvalid_constexpr+:} false; then : 21936 $as_echo_n "(cached) " >&6 21937else 21938 21939 tor_saved_CFLAGS="$CFLAGS" 21940 CFLAGS="$CFLAGS -pedantic -Werror -Winvalid-constexpr" 21941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21942/* end confdefs.h. */ 21943 21944int 21945main () 21946{ 21947 21948 ; 21949 return 0; 21950} 21951_ACEOF 21952if ac_fn_c_try_compile "$LINENO"; then : 21953 tor_cv_cflags__Winvalid_constexpr=yes 21954else 21955 tor_cv_cflags__Winvalid_constexpr=no 21956fi 21957rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21958 if test x != x; then 21959 21960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21961/* end confdefs.h. */ 21962 21963int 21964main () 21965{ 21966 21967 ; 21968 return 0; 21969} 21970_ACEOF 21971if ac_fn_c_try_link "$LINENO"; then : 21972 tor_can_link__Winvalid_constexpr=yes 21973else 21974 tor_can_link__Winvalid_constexpr=no 21975fi 21976rm -f core conftest.err conftest.$ac_objext \ 21977 conftest$ac_exeext conftest.$ac_ext 21978 21979 fi 21980 CFLAGS="$tor_saved_CFLAGS" 21981 21982fi 21983{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Winvalid_constexpr" >&5 21984$as_echo "$tor_cv_cflags__Winvalid_constexpr" >&6; } 21985 if test x$tor_cv_cflags__Winvalid_constexpr = xyes; then 21986 TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Winvalid-constexpr" CFLAGS="$CFLAGS -Winvalid-constexpr" 21987 else 21988 true 21989 fi 21990 21991 21992 21993 21994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Winvalid-iboutlet" >&5 21995$as_echo_n "checking whether the compiler accepts -Winvalid-iboutlet... " >&6; } 21996if ${tor_cv_cflags__Winvalid_iboutlet+:} false; then : 21997 $as_echo_n "(cached) " >&6 21998else 21999 22000 tor_saved_CFLAGS="$CFLAGS" 22001 CFLAGS="$CFLAGS -pedantic -Werror -Winvalid-iboutlet" 22002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22003/* end confdefs.h. */ 22004 22005int 22006main () 22007{ 22008 22009 ; 22010 return 0; 22011} 22012_ACEOF 22013if ac_fn_c_try_compile "$LINENO"; then : 22014 tor_cv_cflags__Winvalid_iboutlet=yes 22015else 22016 tor_cv_cflags__Winvalid_iboutlet=no 22017fi 22018rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 22019 if test x != x; then 22020 22021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22022/* end confdefs.h. */ 22023 22024int 22025main () 22026{ 22027 22028 ; 22029 return 0; 22030} 22031_ACEOF 22032if ac_fn_c_try_link "$LINENO"; then : 22033 tor_can_link__Winvalid_iboutlet=yes 22034else 22035 tor_can_link__Winvalid_iboutlet=no 22036fi 22037rm -f core conftest.err conftest.$ac_objext \ 22038 conftest$ac_exeext conftest.$ac_ext 22039 22040 fi 22041 CFLAGS="$tor_saved_CFLAGS" 22042 22043fi 22044{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Winvalid_iboutlet" >&5 22045$as_echo "$tor_cv_cflags__Winvalid_iboutlet" >&6; } 22046 if test x$tor_cv_cflags__Winvalid_iboutlet = xyes; then 22047 TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Winvalid-iboutlet" CFLAGS="$CFLAGS -Winvalid-iboutlet" 22048 else 22049 true 22050 fi 22051 22052 22053 22054 22055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Winvalid-noreturn" >&5 22056$as_echo_n "checking whether the compiler accepts -Winvalid-noreturn... " >&6; } 22057if ${tor_cv_cflags__Winvalid_noreturn+:} false; then : 22058 $as_echo_n "(cached) " >&6 22059else 22060 22061 tor_saved_CFLAGS="$CFLAGS" 22062 CFLAGS="$CFLAGS -pedantic -Werror -Winvalid-noreturn" 22063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22064/* end confdefs.h. */ 22065 22066int 22067main () 22068{ 22069 22070 ; 22071 return 0; 22072} 22073_ACEOF 22074if ac_fn_c_try_compile "$LINENO"; then : 22075 tor_cv_cflags__Winvalid_noreturn=yes 22076else 22077 tor_cv_cflags__Winvalid_noreturn=no 22078fi 22079rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 22080 if test x != x; then 22081 22082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22083/* end confdefs.h. */ 22084 22085int 22086main () 22087{ 22088 22089 ; 22090 return 0; 22091} 22092_ACEOF 22093if ac_fn_c_try_link "$LINENO"; then : 22094 tor_can_link__Winvalid_noreturn=yes 22095else 22096 tor_can_link__Winvalid_noreturn=no 22097fi 22098rm -f core conftest.err conftest.$ac_objext \ 22099 conftest$ac_exeext conftest.$ac_ext 22100 22101 fi 22102 CFLAGS="$tor_saved_CFLAGS" 22103 22104fi 22105{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Winvalid_noreturn" >&5 22106$as_echo "$tor_cv_cflags__Winvalid_noreturn" >&6; } 22107 if test x$tor_cv_cflags__Winvalid_noreturn = xyes; then 22108 TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Winvalid-noreturn" CFLAGS="$CFLAGS -Winvalid-noreturn" 22109 else 22110 true 22111 fi 22112 22113 22114 22115 22116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Winvalid-pp-token" >&5 22117$as_echo_n "checking whether the compiler accepts -Winvalid-pp-token... " >&6; } 22118if ${tor_cv_cflags__Winvalid_pp_token+:} false; then : 22119 $as_echo_n "(cached) " >&6 22120else 22121 22122 tor_saved_CFLAGS="$CFLAGS" 22123 CFLAGS="$CFLAGS -pedantic -Werror -Winvalid-pp-token" 22124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22125/* end confdefs.h. */ 22126 22127int 22128main () 22129{ 22130 22131 ; 22132 return 0; 22133} 22134_ACEOF 22135if ac_fn_c_try_compile "$LINENO"; then : 22136 tor_cv_cflags__Winvalid_pp_token=yes 22137else 22138 tor_cv_cflags__Winvalid_pp_token=no 22139fi 22140rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 22141 if test x != x; then 22142 22143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22144/* end confdefs.h. */ 22145 22146int 22147main () 22148{ 22149 22150 ; 22151 return 0; 22152} 22153_ACEOF 22154if ac_fn_c_try_link "$LINENO"; then : 22155 tor_can_link__Winvalid_pp_token=yes 22156else 22157 tor_can_link__Winvalid_pp_token=no 22158fi 22159rm -f core conftest.err conftest.$ac_objext \ 22160 conftest$ac_exeext conftest.$ac_ext 22161 22162 fi 22163 CFLAGS="$tor_saved_CFLAGS" 22164 22165fi 22166{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Winvalid_pp_token" >&5 22167$as_echo "$tor_cv_cflags__Winvalid_pp_token" >&6; } 22168 if test x$tor_cv_cflags__Winvalid_pp_token = xyes; then 22169 TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Winvalid-pp-token" CFLAGS="$CFLAGS -Winvalid-pp-token" 22170 else 22171 true 22172 fi 22173 22174 22175 22176 22177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Winvalid-source-encoding" >&5 22178$as_echo_n "checking whether the compiler accepts -Winvalid-source-encoding... " >&6; } 22179if ${tor_cv_cflags__Winvalid_source_encoding+:} false; then : 22180 $as_echo_n "(cached) " >&6 22181else 22182 22183 tor_saved_CFLAGS="$CFLAGS" 22184 CFLAGS="$CFLAGS -pedantic -Werror -Winvalid-source-encoding" 22185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22186/* end confdefs.h. */ 22187 22188int 22189main () 22190{ 22191 22192 ; 22193 return 0; 22194} 22195_ACEOF 22196if ac_fn_c_try_compile "$LINENO"; then : 22197 tor_cv_cflags__Winvalid_source_encoding=yes 22198else 22199 tor_cv_cflags__Winvalid_source_encoding=no 22200fi 22201rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 22202 if test x != x; then 22203 22204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22205/* end confdefs.h. */ 22206 22207int 22208main () 22209{ 22210 22211 ; 22212 return 0; 22213} 22214_ACEOF 22215if ac_fn_c_try_link "$LINENO"; then : 22216 tor_can_link__Winvalid_source_encoding=yes 22217else 22218 tor_can_link__Winvalid_source_encoding=no 22219fi 22220rm -f core conftest.err conftest.$ac_objext \ 22221 conftest$ac_exeext conftest.$ac_ext 22222 22223 fi 22224 CFLAGS="$tor_saved_CFLAGS" 22225 22226fi 22227{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Winvalid_source_encoding" >&5 22228$as_echo "$tor_cv_cflags__Winvalid_source_encoding" >&6; } 22229 if test x$tor_cv_cflags__Winvalid_source_encoding = xyes; then 22230 TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Winvalid-source-encoding" CFLAGS="$CFLAGS -Winvalid-source-encoding" 22231 else 22232 true 22233 fi 22234 22235 22236 22237 22238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Winvalid-token-paste" >&5 22239$as_echo_n "checking whether the compiler accepts -Winvalid-token-paste... " >&6; } 22240if ${tor_cv_cflags__Winvalid_token_paste+:} false; then : 22241 $as_echo_n "(cached) " >&6 22242else 22243 22244 tor_saved_CFLAGS="$CFLAGS" 22245 CFLAGS="$CFLAGS -pedantic -Werror -Winvalid-token-paste" 22246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22247/* end confdefs.h. */ 22248 22249int 22250main () 22251{ 22252 22253 ; 22254 return 0; 22255} 22256_ACEOF 22257if ac_fn_c_try_compile "$LINENO"; then : 22258 tor_cv_cflags__Winvalid_token_paste=yes 22259else 22260 tor_cv_cflags__Winvalid_token_paste=no 22261fi 22262rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 22263 if test x != x; then 22264 22265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22266/* end confdefs.h. */ 22267 22268int 22269main () 22270{ 22271 22272 ; 22273 return 0; 22274} 22275_ACEOF 22276if ac_fn_c_try_link "$LINENO"; then : 22277 tor_can_link__Winvalid_token_paste=yes 22278else 22279 tor_can_link__Winvalid_token_paste=no 22280fi 22281rm -f core conftest.err conftest.$ac_objext \ 22282 conftest$ac_exeext conftest.$ac_ext 22283 22284 fi 22285 CFLAGS="$tor_saved_CFLAGS" 22286 22287fi 22288{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Winvalid_token_paste" >&5 22289$as_echo "$tor_cv_cflags__Winvalid_token_paste" >&6; } 22290 if test x$tor_cv_cflags__Winvalid_token_paste = xyes; then 22291 TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Winvalid-token-paste" CFLAGS="$CFLAGS -Winvalid-token-paste" 22292 else 22293 true 22294 fi 22295 22296 22297 22298 22299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wknr-promoted-parameter" >&5 22300$as_echo_n "checking whether the compiler accepts -Wknr-promoted-parameter... " >&6; } 22301if ${tor_cv_cflags__Wknr_promoted_parameter+:} false; then : 22302 $as_echo_n "(cached) " >&6 22303else 22304 22305 tor_saved_CFLAGS="$CFLAGS" 22306 CFLAGS="$CFLAGS -pedantic -Werror -Wknr-promoted-parameter" 22307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22308/* end confdefs.h. */ 22309 22310int 22311main () 22312{ 22313 22314 ; 22315 return 0; 22316} 22317_ACEOF 22318if ac_fn_c_try_compile "$LINENO"; then : 22319 tor_cv_cflags__Wknr_promoted_parameter=yes 22320else 22321 tor_cv_cflags__Wknr_promoted_parameter=no 22322fi 22323rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 22324 if test x != x; then 22325 22326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22327/* end confdefs.h. */ 22328 22329int 22330main () 22331{ 22332 22333 ; 22334 return 0; 22335} 22336_ACEOF 22337if ac_fn_c_try_link "$LINENO"; then : 22338 tor_can_link__Wknr_promoted_parameter=yes 22339else 22340 tor_can_link__Wknr_promoted_parameter=no 22341fi 22342rm -f core conftest.err conftest.$ac_objext \ 22343 conftest$ac_exeext conftest.$ac_ext 22344 22345 fi 22346 CFLAGS="$tor_saved_CFLAGS" 22347 22348fi 22349{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wknr_promoted_parameter" >&5 22350$as_echo "$tor_cv_cflags__Wknr_promoted_parameter" >&6; } 22351 if test x$tor_cv_cflags__Wknr_promoted_parameter = xyes; then 22352 TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Wknr-promoted-parameter" CFLAGS="$CFLAGS -Wknr-promoted-parameter" 22353 else 22354 true 22355 fi 22356 22357 22358 22359 22360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wlarge-by-value-copy" >&5 22361$as_echo_n "checking whether the compiler accepts -Wlarge-by-value-copy... " >&6; } 22362if ${tor_cv_cflags__Wlarge_by_value_copy+:} false; then : 22363 $as_echo_n "(cached) " >&6 22364else 22365 22366 tor_saved_CFLAGS="$CFLAGS" 22367 CFLAGS="$CFLAGS -pedantic -Werror -Wlarge-by-value-copy" 22368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22369/* end confdefs.h. */ 22370 22371int 22372main () 22373{ 22374 22375 ; 22376 return 0; 22377} 22378_ACEOF 22379if ac_fn_c_try_compile "$LINENO"; then : 22380 tor_cv_cflags__Wlarge_by_value_copy=yes 22381else 22382 tor_cv_cflags__Wlarge_by_value_copy=no 22383fi 22384rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 22385 if test x != x; then 22386 22387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22388/* end confdefs.h. */ 22389 22390int 22391main () 22392{ 22393 22394 ; 22395 return 0; 22396} 22397_ACEOF 22398if ac_fn_c_try_link "$LINENO"; then : 22399 tor_can_link__Wlarge_by_value_copy=yes 22400else 22401 tor_can_link__Wlarge_by_value_copy=no 22402fi 22403rm -f core conftest.err conftest.$ac_objext \ 22404 conftest$ac_exeext conftest.$ac_ext 22405 22406 fi 22407 CFLAGS="$tor_saved_CFLAGS" 22408 22409fi 22410{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wlarge_by_value_copy" >&5 22411$as_echo "$tor_cv_cflags__Wlarge_by_value_copy" >&6; } 22412 if test x$tor_cv_cflags__Wlarge_by_value_copy = xyes; then 22413 TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Wlarge-by-value-copy" CFLAGS="$CFLAGS -Wlarge-by-value-copy" 22414 else 22415 true 22416 fi 22417 22418 22419 22420 22421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wliteral-conversion" >&5 22422$as_echo_n "checking whether the compiler accepts -Wliteral-conversion... " >&6; } 22423if ${tor_cv_cflags__Wliteral_conversion+:} false; then : 22424 $as_echo_n "(cached) " >&6 22425else 22426 22427 tor_saved_CFLAGS="$CFLAGS" 22428 CFLAGS="$CFLAGS -pedantic -Werror -Wliteral-conversion" 22429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22430/* end confdefs.h. */ 22431 22432int 22433main () 22434{ 22435 22436 ; 22437 return 0; 22438} 22439_ACEOF 22440if ac_fn_c_try_compile "$LINENO"; then : 22441 tor_cv_cflags__Wliteral_conversion=yes 22442else 22443 tor_cv_cflags__Wliteral_conversion=no 22444fi 22445rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 22446 if test x != x; then 22447 22448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22449/* end confdefs.h. */ 22450 22451int 22452main () 22453{ 22454 22455 ; 22456 return 0; 22457} 22458_ACEOF 22459if ac_fn_c_try_link "$LINENO"; then : 22460 tor_can_link__Wliteral_conversion=yes 22461else 22462 tor_can_link__Wliteral_conversion=no 22463fi 22464rm -f core conftest.err conftest.$ac_objext \ 22465 conftest$ac_exeext conftest.$ac_ext 22466 22467 fi 22468 CFLAGS="$tor_saved_CFLAGS" 22469 22470fi 22471{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wliteral_conversion" >&5 22472$as_echo "$tor_cv_cflags__Wliteral_conversion" >&6; } 22473 if test x$tor_cv_cflags__Wliteral_conversion = xyes; then 22474 TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Wliteral-conversion" CFLAGS="$CFLAGS -Wliteral-conversion" 22475 else 22476 true 22477 fi 22478 22479 22480 22481 22482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wliteral-range" >&5 22483$as_echo_n "checking whether the compiler accepts -Wliteral-range... " >&6; } 22484if ${tor_cv_cflags__Wliteral_range+:} false; then : 22485 $as_echo_n "(cached) " >&6 22486else 22487 22488 tor_saved_CFLAGS="$CFLAGS" 22489 CFLAGS="$CFLAGS -pedantic -Werror -Wliteral-range" 22490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22491/* end confdefs.h. */ 22492 22493int 22494main () 22495{ 22496 22497 ; 22498 return 0; 22499} 22500_ACEOF 22501if ac_fn_c_try_compile "$LINENO"; then : 22502 tor_cv_cflags__Wliteral_range=yes 22503else 22504 tor_cv_cflags__Wliteral_range=no 22505fi 22506rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 22507 if test x != x; then 22508 22509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22510/* end confdefs.h. */ 22511 22512int 22513main () 22514{ 22515 22516 ; 22517 return 0; 22518} 22519_ACEOF 22520if ac_fn_c_try_link "$LINENO"; then : 22521 tor_can_link__Wliteral_range=yes 22522else 22523 tor_can_link__Wliteral_range=no 22524fi 22525rm -f core conftest.err conftest.$ac_objext \ 22526 conftest$ac_exeext conftest.$ac_ext 22527 22528 fi 22529 CFLAGS="$tor_saved_CFLAGS" 22530 22531fi 22532{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wliteral_range" >&5 22533$as_echo "$tor_cv_cflags__Wliteral_range" >&6; } 22534 if test x$tor_cv_cflags__Wliteral_range = xyes; then 22535 TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Wliteral-range" CFLAGS="$CFLAGS -Wliteral-range" 22536 else 22537 true 22538 fi 22539 22540 22541 22542 22543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wlocal-type-template-args" >&5 22544$as_echo_n "checking whether the compiler accepts -Wlocal-type-template-args... " >&6; } 22545if ${tor_cv_cflags__Wlocal_type_template_args+:} false; then : 22546 $as_echo_n "(cached) " >&6 22547else 22548 22549 tor_saved_CFLAGS="$CFLAGS" 22550 CFLAGS="$CFLAGS -pedantic -Werror -Wlocal-type-template-args" 22551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22552/* end confdefs.h. */ 22553 22554int 22555main () 22556{ 22557 22558 ; 22559 return 0; 22560} 22561_ACEOF 22562if ac_fn_c_try_compile "$LINENO"; then : 22563 tor_cv_cflags__Wlocal_type_template_args=yes 22564else 22565 tor_cv_cflags__Wlocal_type_template_args=no 22566fi 22567rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 22568 if test x != x; then 22569 22570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22571/* end confdefs.h. */ 22572 22573int 22574main () 22575{ 22576 22577 ; 22578 return 0; 22579} 22580_ACEOF 22581if ac_fn_c_try_link "$LINENO"; then : 22582 tor_can_link__Wlocal_type_template_args=yes 22583else 22584 tor_can_link__Wlocal_type_template_args=no 22585fi 22586rm -f core conftest.err conftest.$ac_objext \ 22587 conftest$ac_exeext conftest.$ac_ext 22588 22589 fi 22590 CFLAGS="$tor_saved_CFLAGS" 22591 22592fi 22593{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wlocal_type_template_args" >&5 22594$as_echo "$tor_cv_cflags__Wlocal_type_template_args" >&6; } 22595 if test x$tor_cv_cflags__Wlocal_type_template_args = xyes; then 22596 TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Wlocal-type-template-args" CFLAGS="$CFLAGS -Wlocal-type-template-args" 22597 else 22598 true 22599 fi 22600 22601 22602 22603 22604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wlogical-op" >&5 22605$as_echo_n "checking whether the compiler accepts -Wlogical-op... " >&6; } 22606if ${tor_cv_cflags__Wlogical_op+:} false; then : 22607 $as_echo_n "(cached) " >&6 22608else 22609 22610 tor_saved_CFLAGS="$CFLAGS" 22611 CFLAGS="$CFLAGS -pedantic -Werror -Wlogical-op" 22612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22613/* end confdefs.h. */ 22614 22615int 22616main () 22617{ 22618 22619 ; 22620 return 0; 22621} 22622_ACEOF 22623if ac_fn_c_try_compile "$LINENO"; then : 22624 tor_cv_cflags__Wlogical_op=yes 22625else 22626 tor_cv_cflags__Wlogical_op=no 22627fi 22628rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 22629 if test x != x; then 22630 22631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22632/* end confdefs.h. */ 22633 22634int 22635main () 22636{ 22637 22638 ; 22639 return 0; 22640} 22641_ACEOF 22642if ac_fn_c_try_link "$LINENO"; then : 22643 tor_can_link__Wlogical_op=yes 22644else 22645 tor_can_link__Wlogical_op=no 22646fi 22647rm -f core conftest.err conftest.$ac_objext \ 22648 conftest$ac_exeext conftest.$ac_ext 22649 22650 fi 22651 CFLAGS="$tor_saved_CFLAGS" 22652 22653fi 22654{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wlogical_op" >&5 22655$as_echo "$tor_cv_cflags__Wlogical_op" >&6; } 22656 if test x$tor_cv_cflags__Wlogical_op = xyes; then 22657 TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Wlogical-op" CFLAGS="$CFLAGS -Wlogical-op" 22658 else 22659 true 22660 fi 22661 22662 22663 22664 22665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wloop-analysis" >&5 22666$as_echo_n "checking whether the compiler accepts -Wloop-analysis... " >&6; } 22667if ${tor_cv_cflags__Wloop_analysis+:} false; then : 22668 $as_echo_n "(cached) " >&6 22669else 22670 22671 tor_saved_CFLAGS="$CFLAGS" 22672 CFLAGS="$CFLAGS -pedantic -Werror -Wloop-analysis" 22673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22674/* end confdefs.h. */ 22675 22676int 22677main () 22678{ 22679 22680 ; 22681 return 0; 22682} 22683_ACEOF 22684if ac_fn_c_try_compile "$LINENO"; then : 22685 tor_cv_cflags__Wloop_analysis=yes 22686else 22687 tor_cv_cflags__Wloop_analysis=no 22688fi 22689rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 22690 if test x != x; then 22691 22692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22693/* end confdefs.h. */ 22694 22695int 22696main () 22697{ 22698 22699 ; 22700 return 0; 22701} 22702_ACEOF 22703if ac_fn_c_try_link "$LINENO"; then : 22704 tor_can_link__Wloop_analysis=yes 22705else 22706 tor_can_link__Wloop_analysis=no 22707fi 22708rm -f core conftest.err conftest.$ac_objext \ 22709 conftest$ac_exeext conftest.$ac_ext 22710 22711 fi 22712 CFLAGS="$tor_saved_CFLAGS" 22713 22714fi 22715{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wloop_analysis" >&5 22716$as_echo "$tor_cv_cflags__Wloop_analysis" >&6; } 22717 if test x$tor_cv_cflags__Wloop_analysis = xyes; then 22718 TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Wloop-analysis" CFLAGS="$CFLAGS -Wloop-analysis" 22719 else 22720 true 22721 fi 22722 22723 22724 22725 22726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wmain-return-type" >&5 22727$as_echo_n "checking whether the compiler accepts -Wmain-return-type... " >&6; } 22728if ${tor_cv_cflags__Wmain_return_type+:} false; then : 22729 $as_echo_n "(cached) " >&6 22730else 22731 22732 tor_saved_CFLAGS="$CFLAGS" 22733 CFLAGS="$CFLAGS -pedantic -Werror -Wmain-return-type" 22734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22735/* end confdefs.h. */ 22736 22737int 22738main () 22739{ 22740 22741 ; 22742 return 0; 22743} 22744_ACEOF 22745if ac_fn_c_try_compile "$LINENO"; then : 22746 tor_cv_cflags__Wmain_return_type=yes 22747else 22748 tor_cv_cflags__Wmain_return_type=no 22749fi 22750rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 22751 if test x != x; then 22752 22753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22754/* end confdefs.h. */ 22755 22756int 22757main () 22758{ 22759 22760 ; 22761 return 0; 22762} 22763_ACEOF 22764if ac_fn_c_try_link "$LINENO"; then : 22765 tor_can_link__Wmain_return_type=yes 22766else 22767 tor_can_link__Wmain_return_type=no 22768fi 22769rm -f core conftest.err conftest.$ac_objext \ 22770 conftest$ac_exeext conftest.$ac_ext 22771 22772 fi 22773 CFLAGS="$tor_saved_CFLAGS" 22774 22775fi 22776{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wmain_return_type" >&5 22777$as_echo "$tor_cv_cflags__Wmain_return_type" >&6; } 22778 if test x$tor_cv_cflags__Wmain_return_type = xyes; then 22779 TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Wmain-return-type" CFLAGS="$CFLAGS -Wmain-return-type" 22780 else 22781 true 22782 fi 22783 22784 22785 22786 22787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wmalformed-warning-check" >&5 22788$as_echo_n "checking whether the compiler accepts -Wmalformed-warning-check... " >&6; } 22789if ${tor_cv_cflags__Wmalformed_warning_check+:} false; then : 22790 $as_echo_n "(cached) " >&6 22791else 22792 22793 tor_saved_CFLAGS="$CFLAGS" 22794 CFLAGS="$CFLAGS -pedantic -Werror -Wmalformed-warning-check" 22795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22796/* end confdefs.h. */ 22797 22798int 22799main () 22800{ 22801 22802 ; 22803 return 0; 22804} 22805_ACEOF 22806if ac_fn_c_try_compile "$LINENO"; then : 22807 tor_cv_cflags__Wmalformed_warning_check=yes 22808else 22809 tor_cv_cflags__Wmalformed_warning_check=no 22810fi 22811rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 22812 if test x != x; then 22813 22814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22815/* end confdefs.h. */ 22816 22817int 22818main () 22819{ 22820 22821 ; 22822 return 0; 22823} 22824_ACEOF 22825if ac_fn_c_try_link "$LINENO"; then : 22826 tor_can_link__Wmalformed_warning_check=yes 22827else 22828 tor_can_link__Wmalformed_warning_check=no 22829fi 22830rm -f core conftest.err conftest.$ac_objext \ 22831 conftest$ac_exeext conftest.$ac_ext 22832 22833 fi 22834 CFLAGS="$tor_saved_CFLAGS" 22835 22836fi 22837{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wmalformed_warning_check" >&5 22838$as_echo "$tor_cv_cflags__Wmalformed_warning_check" >&6; } 22839 if test x$tor_cv_cflags__Wmalformed_warning_check = xyes; then 22840 TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Wmalformed-warning-check" CFLAGS="$CFLAGS -Wmalformed-warning-check" 22841 else 22842 true 22843 fi 22844 22845 22846 22847 22848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wmethod-signatures" >&5 22849$as_echo_n "checking whether the compiler accepts -Wmethod-signatures... " >&6; } 22850if ${tor_cv_cflags__Wmethod_signatures+:} false; then : 22851 $as_echo_n "(cached) " >&6 22852else 22853 22854 tor_saved_CFLAGS="$CFLAGS" 22855 CFLAGS="$CFLAGS -pedantic -Werror -Wmethod-signatures" 22856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22857/* end confdefs.h. */ 22858 22859int 22860main () 22861{ 22862 22863 ; 22864 return 0; 22865} 22866_ACEOF 22867if ac_fn_c_try_compile "$LINENO"; then : 22868 tor_cv_cflags__Wmethod_signatures=yes 22869else 22870 tor_cv_cflags__Wmethod_signatures=no 22871fi 22872rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 22873 if test x != x; then 22874 22875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22876/* end confdefs.h. */ 22877 22878int 22879main () 22880{ 22881 22882 ; 22883 return 0; 22884} 22885_ACEOF 22886if ac_fn_c_try_link "$LINENO"; then : 22887 tor_can_link__Wmethod_signatures=yes 22888else 22889 tor_can_link__Wmethod_signatures=no 22890fi 22891rm -f core conftest.err conftest.$ac_objext \ 22892 conftest$ac_exeext conftest.$ac_ext 22893 22894 fi 22895 CFLAGS="$tor_saved_CFLAGS" 22896 22897fi 22898{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wmethod_signatures" >&5 22899$as_echo "$tor_cv_cflags__Wmethod_signatures" >&6; } 22900 if test x$tor_cv_cflags__Wmethod_signatures = xyes; then 22901 TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Wmethod-signatures" CFLAGS="$CFLAGS -Wmethod-signatures" 22902 else 22903 true 22904 fi 22905 22906 22907 22908 22909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wmicrosoft" >&5 22910$as_echo_n "checking whether the compiler accepts -Wmicrosoft... " >&6; } 22911if ${tor_cv_cflags__Wmicrosoft+:} false; then : 22912 $as_echo_n "(cached) " >&6 22913else 22914 22915 tor_saved_CFLAGS="$CFLAGS" 22916 CFLAGS="$CFLAGS -pedantic -Werror -Wmicrosoft" 22917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22918/* end confdefs.h. */ 22919 22920int 22921main () 22922{ 22923 22924 ; 22925 return 0; 22926} 22927_ACEOF 22928if ac_fn_c_try_compile "$LINENO"; then : 22929 tor_cv_cflags__Wmicrosoft=yes 22930else 22931 tor_cv_cflags__Wmicrosoft=no 22932fi 22933rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 22934 if test x != x; then 22935 22936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22937/* end confdefs.h. */ 22938 22939int 22940main () 22941{ 22942 22943 ; 22944 return 0; 22945} 22946_ACEOF 22947if ac_fn_c_try_link "$LINENO"; then : 22948 tor_can_link__Wmicrosoft=yes 22949else 22950 tor_can_link__Wmicrosoft=no 22951fi 22952rm -f core conftest.err conftest.$ac_objext \ 22953 conftest$ac_exeext conftest.$ac_ext 22954 22955 fi 22956 CFLAGS="$tor_saved_CFLAGS" 22957 22958fi 22959{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wmicrosoft" >&5 22960$as_echo "$tor_cv_cflags__Wmicrosoft" >&6; } 22961 if test x$tor_cv_cflags__Wmicrosoft = xyes; then 22962 TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Wmicrosoft" CFLAGS="$CFLAGS -Wmicrosoft" 22963 else 22964 true 22965 fi 22966 22967 22968 22969 22970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wmicrosoft-exists" >&5 22971$as_echo_n "checking whether the compiler accepts -Wmicrosoft-exists... " >&6; } 22972if ${tor_cv_cflags__Wmicrosoft_exists+:} false; then : 22973 $as_echo_n "(cached) " >&6 22974else 22975 22976 tor_saved_CFLAGS="$CFLAGS" 22977 CFLAGS="$CFLAGS -pedantic -Werror -Wmicrosoft-exists" 22978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22979/* end confdefs.h. */ 22980 22981int 22982main () 22983{ 22984 22985 ; 22986 return 0; 22987} 22988_ACEOF 22989if ac_fn_c_try_compile "$LINENO"; then : 22990 tor_cv_cflags__Wmicrosoft_exists=yes 22991else 22992 tor_cv_cflags__Wmicrosoft_exists=no 22993fi 22994rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 22995 if test x != x; then 22996 22997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22998/* end confdefs.h. */ 22999 23000int 23001main () 23002{ 23003 23004 ; 23005 return 0; 23006} 23007_ACEOF 23008if ac_fn_c_try_link "$LINENO"; then : 23009 tor_can_link__Wmicrosoft_exists=yes 23010else 23011 tor_can_link__Wmicrosoft_exists=no 23012fi 23013rm -f core conftest.err conftest.$ac_objext \ 23014 conftest$ac_exeext conftest.$ac_ext 23015 23016 fi 23017 CFLAGS="$tor_saved_CFLAGS" 23018 23019fi 23020{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wmicrosoft_exists" >&5 23021$as_echo "$tor_cv_cflags__Wmicrosoft_exists" >&6; } 23022 if test x$tor_cv_cflags__Wmicrosoft_exists = xyes; then 23023 TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Wmicrosoft-exists" CFLAGS="$CFLAGS -Wmicrosoft-exists" 23024 else 23025 true 23026 fi 23027 23028 23029 23030 23031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wmismatched-parameter-types" >&5 23032$as_echo_n "checking whether the compiler accepts -Wmismatched-parameter-types... " >&6; } 23033if ${tor_cv_cflags__Wmismatched_parameter_types+:} false; then : 23034 $as_echo_n "(cached) " >&6 23035else 23036 23037 tor_saved_CFLAGS="$CFLAGS" 23038 CFLAGS="$CFLAGS -pedantic -Werror -Wmismatched-parameter-types" 23039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23040/* end confdefs.h. */ 23041 23042int 23043main () 23044{ 23045 23046 ; 23047 return 0; 23048} 23049_ACEOF 23050if ac_fn_c_try_compile "$LINENO"; then : 23051 tor_cv_cflags__Wmismatched_parameter_types=yes 23052else 23053 tor_cv_cflags__Wmismatched_parameter_types=no 23054fi 23055rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 23056 if test x != x; then 23057 23058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23059/* end confdefs.h. */ 23060 23061int 23062main () 23063{ 23064 23065 ; 23066 return 0; 23067} 23068_ACEOF 23069if ac_fn_c_try_link "$LINENO"; then : 23070 tor_can_link__Wmismatched_parameter_types=yes 23071else 23072 tor_can_link__Wmismatched_parameter_types=no 23073fi 23074rm -f core conftest.err conftest.$ac_objext \ 23075 conftest$ac_exeext conftest.$ac_ext 23076 23077 fi 23078 CFLAGS="$tor_saved_CFLAGS" 23079 23080fi 23081{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wmismatched_parameter_types" >&5 23082$as_echo "$tor_cv_cflags__Wmismatched_parameter_types" >&6; } 23083 if test x$tor_cv_cflags__Wmismatched_parameter_types = xyes; then 23084 TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Wmismatched-parameter-types" CFLAGS="$CFLAGS -Wmismatched-parameter-types" 23085 else 23086 true 23087 fi 23088 23089 23090 23091 23092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wmismatched-return-types" >&5 23093$as_echo_n "checking whether the compiler accepts -Wmismatched-return-types... " >&6; } 23094if ${tor_cv_cflags__Wmismatched_return_types+:} false; then : 23095 $as_echo_n "(cached) " >&6 23096else 23097 23098 tor_saved_CFLAGS="$CFLAGS" 23099 CFLAGS="$CFLAGS -pedantic -Werror -Wmismatched-return-types" 23100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23101/* end confdefs.h. */ 23102 23103int 23104main () 23105{ 23106 23107 ; 23108 return 0; 23109} 23110_ACEOF 23111if ac_fn_c_try_compile "$LINENO"; then : 23112 tor_cv_cflags__Wmismatched_return_types=yes 23113else 23114 tor_cv_cflags__Wmismatched_return_types=no 23115fi 23116rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 23117 if test x != x; then 23118 23119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23120/* end confdefs.h. */ 23121 23122int 23123main () 23124{ 23125 23126 ; 23127 return 0; 23128} 23129_ACEOF 23130if ac_fn_c_try_link "$LINENO"; then : 23131 tor_can_link__Wmismatched_return_types=yes 23132else 23133 tor_can_link__Wmismatched_return_types=no 23134fi 23135rm -f core conftest.err conftest.$ac_objext \ 23136 conftest$ac_exeext conftest.$ac_ext 23137 23138 fi 23139 CFLAGS="$tor_saved_CFLAGS" 23140 23141fi 23142{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wmismatched_return_types" >&5 23143$as_echo "$tor_cv_cflags__Wmismatched_return_types" >&6; } 23144 if test x$tor_cv_cflags__Wmismatched_return_types = xyes; then 23145 TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Wmismatched-return-types" CFLAGS="$CFLAGS -Wmismatched-return-types" 23146 else 23147 true 23148 fi 23149 23150 23151 23152 23153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wmissing-field-initializers" >&5 23154$as_echo_n "checking whether the compiler accepts -Wmissing-field-initializers... " >&6; } 23155if ${tor_cv_cflags__Wmissing_field_initializers+:} false; then : 23156 $as_echo_n "(cached) " >&6 23157else 23158 23159 tor_saved_CFLAGS="$CFLAGS" 23160 CFLAGS="$CFLAGS -pedantic -Werror -Wmissing-field-initializers" 23161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23162/* end confdefs.h. */ 23163 23164int 23165main () 23166{ 23167 23168 ; 23169 return 0; 23170} 23171_ACEOF 23172if ac_fn_c_try_compile "$LINENO"; then : 23173 tor_cv_cflags__Wmissing_field_initializers=yes 23174else 23175 tor_cv_cflags__Wmissing_field_initializers=no 23176fi 23177rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 23178 if test x != x; then 23179 23180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23181/* end confdefs.h. */ 23182 23183int 23184main () 23185{ 23186 23187 ; 23188 return 0; 23189} 23190_ACEOF 23191if ac_fn_c_try_link "$LINENO"; then : 23192 tor_can_link__Wmissing_field_initializers=yes 23193else 23194 tor_can_link__Wmissing_field_initializers=no 23195fi 23196rm -f core conftest.err conftest.$ac_objext \ 23197 conftest$ac_exeext conftest.$ac_ext 23198 23199 fi 23200 CFLAGS="$tor_saved_CFLAGS" 23201 23202fi 23203{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wmissing_field_initializers" >&5 23204$as_echo "$tor_cv_cflags__Wmissing_field_initializers" >&6; } 23205 if test x$tor_cv_cflags__Wmissing_field_initializers = xyes; then 23206 TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Wmissing-field-initializers" CFLAGS="$CFLAGS -Wmissing-field-initializers" 23207 else 23208 true 23209 fi 23210 23211 23212 23213 23214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wmissing-format-attribute" >&5 23215$as_echo_n "checking whether the compiler accepts -Wmissing-format-attribute... " >&6; } 23216if ${tor_cv_cflags__Wmissing_format_attribute+:} false; then : 23217 $as_echo_n "(cached) " >&6 23218else 23219 23220 tor_saved_CFLAGS="$CFLAGS" 23221 CFLAGS="$CFLAGS -pedantic -Werror -Wmissing-format-attribute" 23222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23223/* end confdefs.h. */ 23224 23225int 23226main () 23227{ 23228 23229 ; 23230 return 0; 23231} 23232_ACEOF 23233if ac_fn_c_try_compile "$LINENO"; then : 23234 tor_cv_cflags__Wmissing_format_attribute=yes 23235else 23236 tor_cv_cflags__Wmissing_format_attribute=no 23237fi 23238rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 23239 if test x != x; then 23240 23241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23242/* end confdefs.h. */ 23243 23244int 23245main () 23246{ 23247 23248 ; 23249 return 0; 23250} 23251_ACEOF 23252if ac_fn_c_try_link "$LINENO"; then : 23253 tor_can_link__Wmissing_format_attribute=yes 23254else 23255 tor_can_link__Wmissing_format_attribute=no 23256fi 23257rm -f core conftest.err conftest.$ac_objext \ 23258 conftest$ac_exeext conftest.$ac_ext 23259 23260 fi 23261 CFLAGS="$tor_saved_CFLAGS" 23262 23263fi 23264{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wmissing_format_attribute" >&5 23265$as_echo "$tor_cv_cflags__Wmissing_format_attribute" >&6; } 23266 if test x$tor_cv_cflags__Wmissing_format_attribute = xyes; then 23267 TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Wmissing-format-attribute" CFLAGS="$CFLAGS -Wmissing-format-attribute" 23268 else 23269 true 23270 fi 23271 23272 23273 23274 23275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wmissing-noreturn" >&5 23276$as_echo_n "checking whether the compiler accepts -Wmissing-noreturn... " >&6; } 23277if ${tor_cv_cflags__Wmissing_noreturn+:} false; then : 23278 $as_echo_n "(cached) " >&6 23279else 23280 23281 tor_saved_CFLAGS="$CFLAGS" 23282 CFLAGS="$CFLAGS -pedantic -Werror -Wmissing-noreturn" 23283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23284/* end confdefs.h. */ 23285 23286int 23287main () 23288{ 23289 23290 ; 23291 return 0; 23292} 23293_ACEOF 23294if ac_fn_c_try_compile "$LINENO"; then : 23295 tor_cv_cflags__Wmissing_noreturn=yes 23296else 23297 tor_cv_cflags__Wmissing_noreturn=no 23298fi 23299rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 23300 if test x != x; then 23301 23302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23303/* end confdefs.h. */ 23304 23305int 23306main () 23307{ 23308 23309 ; 23310 return 0; 23311} 23312_ACEOF 23313if ac_fn_c_try_link "$LINENO"; then : 23314 tor_can_link__Wmissing_noreturn=yes 23315else 23316 tor_can_link__Wmissing_noreturn=no 23317fi 23318rm -f core conftest.err conftest.$ac_objext \ 23319 conftest$ac_exeext conftest.$ac_ext 23320 23321 fi 23322 CFLAGS="$tor_saved_CFLAGS" 23323 23324fi 23325{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wmissing_noreturn" >&5 23326$as_echo "$tor_cv_cflags__Wmissing_noreturn" >&6; } 23327 if test x$tor_cv_cflags__Wmissing_noreturn = xyes; then 23328 TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Wmissing-noreturn" CFLAGS="$CFLAGS -Wmissing-noreturn" 23329 else 23330 true 23331 fi 23332 23333 23334 23335 23336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wmissing-selector-name" >&5 23337$as_echo_n "checking whether the compiler accepts -Wmissing-selector-name... " >&6; } 23338if ${tor_cv_cflags__Wmissing_selector_name+:} false; then : 23339 $as_echo_n "(cached) " >&6 23340else 23341 23342 tor_saved_CFLAGS="$CFLAGS" 23343 CFLAGS="$CFLAGS -pedantic -Werror -Wmissing-selector-name" 23344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23345/* end confdefs.h. */ 23346 23347int 23348main () 23349{ 23350 23351 ; 23352 return 0; 23353} 23354_ACEOF 23355if ac_fn_c_try_compile "$LINENO"; then : 23356 tor_cv_cflags__Wmissing_selector_name=yes 23357else 23358 tor_cv_cflags__Wmissing_selector_name=no 23359fi 23360rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 23361 if test x != x; then 23362 23363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23364/* end confdefs.h. */ 23365 23366int 23367main () 23368{ 23369 23370 ; 23371 return 0; 23372} 23373_ACEOF 23374if ac_fn_c_try_link "$LINENO"; then : 23375 tor_can_link__Wmissing_selector_name=yes 23376else 23377 tor_can_link__Wmissing_selector_name=no 23378fi 23379rm -f core conftest.err conftest.$ac_objext \ 23380 conftest$ac_exeext conftest.$ac_ext 23381 23382 fi 23383 CFLAGS="$tor_saved_CFLAGS" 23384 23385fi 23386{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wmissing_selector_name" >&5 23387$as_echo "$tor_cv_cflags__Wmissing_selector_name" >&6; } 23388 if test x$tor_cv_cflags__Wmissing_selector_name = xyes; then 23389 TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Wmissing-selector-name" CFLAGS="$CFLAGS -Wmissing-selector-name" 23390 else 23391 true 23392 fi 23393 23394 23395 23396 23397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wmissing-sysroot" >&5 23398$as_echo_n "checking whether the compiler accepts -Wmissing-sysroot... " >&6; } 23399if ${tor_cv_cflags__Wmissing_sysroot+:} false; then : 23400 $as_echo_n "(cached) " >&6 23401else 23402 23403 tor_saved_CFLAGS="$CFLAGS" 23404 CFLAGS="$CFLAGS -pedantic -Werror -Wmissing-sysroot" 23405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23406/* end confdefs.h. */ 23407 23408int 23409main () 23410{ 23411 23412 ; 23413 return 0; 23414} 23415_ACEOF 23416if ac_fn_c_try_compile "$LINENO"; then : 23417 tor_cv_cflags__Wmissing_sysroot=yes 23418else 23419 tor_cv_cflags__Wmissing_sysroot=no 23420fi 23421rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 23422 if test x != x; then 23423 23424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23425/* end confdefs.h. */ 23426 23427int 23428main () 23429{ 23430 23431 ; 23432 return 0; 23433} 23434_ACEOF 23435if ac_fn_c_try_link "$LINENO"; then : 23436 tor_can_link__Wmissing_sysroot=yes 23437else 23438 tor_can_link__Wmissing_sysroot=no 23439fi 23440rm -f core conftest.err conftest.$ac_objext \ 23441 conftest$ac_exeext conftest.$ac_ext 23442 23443 fi 23444 CFLAGS="$tor_saved_CFLAGS" 23445 23446fi 23447{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wmissing_sysroot" >&5 23448$as_echo "$tor_cv_cflags__Wmissing_sysroot" >&6; } 23449 if test x$tor_cv_cflags__Wmissing_sysroot = xyes; then 23450 TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Wmissing-sysroot" CFLAGS="$CFLAGS -Wmissing-sysroot" 23451 else 23452 true 23453 fi 23454 23455 23456 23457 23458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wmissing-variable-declarations" >&5 23459$as_echo_n "checking whether the compiler accepts -Wmissing-variable-declarations... " >&6; } 23460if ${tor_cv_cflags__Wmissing_variable_declarations+:} false; then : 23461 $as_echo_n "(cached) " >&6 23462else 23463 23464 tor_saved_CFLAGS="$CFLAGS" 23465 CFLAGS="$CFLAGS -pedantic -Werror -Wmissing-variable-declarations" 23466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23467/* end confdefs.h. */ 23468 23469int 23470main () 23471{ 23472 23473 ; 23474 return 0; 23475} 23476_ACEOF 23477if ac_fn_c_try_compile "$LINENO"; then : 23478 tor_cv_cflags__Wmissing_variable_declarations=yes 23479else 23480 tor_cv_cflags__Wmissing_variable_declarations=no 23481fi 23482rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 23483 if test x != x; then 23484 23485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23486/* end confdefs.h. */ 23487 23488int 23489main () 23490{ 23491 23492 ; 23493 return 0; 23494} 23495_ACEOF 23496if ac_fn_c_try_link "$LINENO"; then : 23497 tor_can_link__Wmissing_variable_declarations=yes 23498else 23499 tor_can_link__Wmissing_variable_declarations=no 23500fi 23501rm -f core conftest.err conftest.$ac_objext \ 23502 conftest$ac_exeext conftest.$ac_ext 23503 23504 fi 23505 CFLAGS="$tor_saved_CFLAGS" 23506 23507fi 23508{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wmissing_variable_declarations" >&5 23509$as_echo "$tor_cv_cflags__Wmissing_variable_declarations" >&6; } 23510 if test x$tor_cv_cflags__Wmissing_variable_declarations = xyes; then 23511 TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Wmissing-variable-declarations" CFLAGS="$CFLAGS -Wmissing-variable-declarations" 23512 else 23513 true 23514 fi 23515 23516 23517 23518 23519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wmodule-conflict" >&5 23520$as_echo_n "checking whether the compiler accepts -Wmodule-conflict... " >&6; } 23521if ${tor_cv_cflags__Wmodule_conflict+:} false; then : 23522 $as_echo_n "(cached) " >&6 23523else 23524 23525 tor_saved_CFLAGS="$CFLAGS" 23526 CFLAGS="$CFLAGS -pedantic -Werror -Wmodule-conflict" 23527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23528/* end confdefs.h. */ 23529 23530int 23531main () 23532{ 23533 23534 ; 23535 return 0; 23536} 23537_ACEOF 23538if ac_fn_c_try_compile "$LINENO"; then : 23539 tor_cv_cflags__Wmodule_conflict=yes 23540else 23541 tor_cv_cflags__Wmodule_conflict=no 23542fi 23543rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 23544 if test x != x; then 23545 23546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23547/* end confdefs.h. */ 23548 23549int 23550main () 23551{ 23552 23553 ; 23554 return 0; 23555} 23556_ACEOF 23557if ac_fn_c_try_link "$LINENO"; then : 23558 tor_can_link__Wmodule_conflict=yes 23559else 23560 tor_can_link__Wmodule_conflict=no 23561fi 23562rm -f core conftest.err conftest.$ac_objext \ 23563 conftest$ac_exeext conftest.$ac_ext 23564 23565 fi 23566 CFLAGS="$tor_saved_CFLAGS" 23567 23568fi 23569{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wmodule_conflict" >&5 23570$as_echo "$tor_cv_cflags__Wmodule_conflict" >&6; } 23571 if test x$tor_cv_cflags__Wmodule_conflict = xyes; then 23572 TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Wmodule-conflict" CFLAGS="$CFLAGS -Wmodule-conflict" 23573 else 23574 true 23575 fi 23576 23577 23578 23579 23580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wnested-anon-types" >&5 23581$as_echo_n "checking whether the compiler accepts -Wnested-anon-types... " >&6; } 23582if ${tor_cv_cflags__Wnested_anon_types+:} false; then : 23583 $as_echo_n "(cached) " >&6 23584else 23585 23586 tor_saved_CFLAGS="$CFLAGS" 23587 CFLAGS="$CFLAGS -pedantic -Werror -Wnested-anon-types" 23588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23589/* end confdefs.h. */ 23590 23591int 23592main () 23593{ 23594 23595 ; 23596 return 0; 23597} 23598_ACEOF 23599if ac_fn_c_try_compile "$LINENO"; then : 23600 tor_cv_cflags__Wnested_anon_types=yes 23601else 23602 tor_cv_cflags__Wnested_anon_types=no 23603fi 23604rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 23605 if test x != x; then 23606 23607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23608/* end confdefs.h. */ 23609 23610int 23611main () 23612{ 23613 23614 ; 23615 return 0; 23616} 23617_ACEOF 23618if ac_fn_c_try_link "$LINENO"; then : 23619 tor_can_link__Wnested_anon_types=yes 23620else 23621 tor_can_link__Wnested_anon_types=no 23622fi 23623rm -f core conftest.err conftest.$ac_objext \ 23624 conftest$ac_exeext conftest.$ac_ext 23625 23626 fi 23627 CFLAGS="$tor_saved_CFLAGS" 23628 23629fi 23630{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wnested_anon_types" >&5 23631$as_echo "$tor_cv_cflags__Wnested_anon_types" >&6; } 23632 if test x$tor_cv_cflags__Wnested_anon_types = xyes; then 23633 TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Wnested-anon-types" CFLAGS="$CFLAGS -Wnested-anon-types" 23634 else 23635 true 23636 fi 23637 23638 23639 23640 23641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wnewline-eof" >&5 23642$as_echo_n "checking whether the compiler accepts -Wnewline-eof... " >&6; } 23643if ${tor_cv_cflags__Wnewline_eof+:} false; then : 23644 $as_echo_n "(cached) " >&6 23645else 23646 23647 tor_saved_CFLAGS="$CFLAGS" 23648 CFLAGS="$CFLAGS -pedantic -Werror -Wnewline-eof" 23649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23650/* end confdefs.h. */ 23651 23652int 23653main () 23654{ 23655 23656 ; 23657 return 0; 23658} 23659_ACEOF 23660if ac_fn_c_try_compile "$LINENO"; then : 23661 tor_cv_cflags__Wnewline_eof=yes 23662else 23663 tor_cv_cflags__Wnewline_eof=no 23664fi 23665rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 23666 if test x != x; then 23667 23668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23669/* end confdefs.h. */ 23670 23671int 23672main () 23673{ 23674 23675 ; 23676 return 0; 23677} 23678_ACEOF 23679if ac_fn_c_try_link "$LINENO"; then : 23680 tor_can_link__Wnewline_eof=yes 23681else 23682 tor_can_link__Wnewline_eof=no 23683fi 23684rm -f core conftest.err conftest.$ac_objext \ 23685 conftest$ac_exeext conftest.$ac_ext 23686 23687 fi 23688 CFLAGS="$tor_saved_CFLAGS" 23689 23690fi 23691{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wnewline_eof" >&5 23692$as_echo "$tor_cv_cflags__Wnewline_eof" >&6; } 23693 if test x$tor_cv_cflags__Wnewline_eof = xyes; then 23694 TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Wnewline-eof" CFLAGS="$CFLAGS -Wnewline-eof" 23695 else 23696 true 23697 fi 23698 23699 23700 23701 23702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wnon-literal-null-conversion" >&5 23703$as_echo_n "checking whether the compiler accepts -Wnon-literal-null-conversion... " >&6; } 23704if ${tor_cv_cflags__Wnon_literal_null_conversion+:} false; then : 23705 $as_echo_n "(cached) " >&6 23706else 23707 23708 tor_saved_CFLAGS="$CFLAGS" 23709 CFLAGS="$CFLAGS -pedantic -Werror -Wnon-literal-null-conversion" 23710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23711/* end confdefs.h. */ 23712 23713int 23714main () 23715{ 23716 23717 ; 23718 return 0; 23719} 23720_ACEOF 23721if ac_fn_c_try_compile "$LINENO"; then : 23722 tor_cv_cflags__Wnon_literal_null_conversion=yes 23723else 23724 tor_cv_cflags__Wnon_literal_null_conversion=no 23725fi 23726rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 23727 if test x != x; then 23728 23729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23730/* end confdefs.h. */ 23731 23732int 23733main () 23734{ 23735 23736 ; 23737 return 0; 23738} 23739_ACEOF 23740if ac_fn_c_try_link "$LINENO"; then : 23741 tor_can_link__Wnon_literal_null_conversion=yes 23742else 23743 tor_can_link__Wnon_literal_null_conversion=no 23744fi 23745rm -f core conftest.err conftest.$ac_objext \ 23746 conftest$ac_exeext conftest.$ac_ext 23747 23748 fi 23749 CFLAGS="$tor_saved_CFLAGS" 23750 23751fi 23752{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wnon_literal_null_conversion" >&5 23753$as_echo "$tor_cv_cflags__Wnon_literal_null_conversion" >&6; } 23754 if test x$tor_cv_cflags__Wnon_literal_null_conversion = xyes; then 23755 TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Wnon-literal-null-conversion" CFLAGS="$CFLAGS -Wnon-literal-null-conversion" 23756 else 23757 true 23758 fi 23759 23760 23761 23762 23763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wnon-pod-varargs" >&5 23764$as_echo_n "checking whether the compiler accepts -Wnon-pod-varargs... " >&6; } 23765if ${tor_cv_cflags__Wnon_pod_varargs+:} false; then : 23766 $as_echo_n "(cached) " >&6 23767else 23768 23769 tor_saved_CFLAGS="$CFLAGS" 23770 CFLAGS="$CFLAGS -pedantic -Werror -Wnon-pod-varargs" 23771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23772/* end confdefs.h. */ 23773 23774int 23775main () 23776{ 23777 23778 ; 23779 return 0; 23780} 23781_ACEOF 23782if ac_fn_c_try_compile "$LINENO"; then : 23783 tor_cv_cflags__Wnon_pod_varargs=yes 23784else 23785 tor_cv_cflags__Wnon_pod_varargs=no 23786fi 23787rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 23788 if test x != x; then 23789 23790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23791/* end confdefs.h. */ 23792 23793int 23794main () 23795{ 23796 23797 ; 23798 return 0; 23799} 23800_ACEOF 23801if ac_fn_c_try_link "$LINENO"; then : 23802 tor_can_link__Wnon_pod_varargs=yes 23803else 23804 tor_can_link__Wnon_pod_varargs=no 23805fi 23806rm -f core conftest.err conftest.$ac_objext \ 23807 conftest$ac_exeext conftest.$ac_ext 23808 23809 fi 23810 CFLAGS="$tor_saved_CFLAGS" 23811 23812fi 23813{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wnon_pod_varargs" >&5 23814$as_echo "$tor_cv_cflags__Wnon_pod_varargs" >&6; } 23815 if test x$tor_cv_cflags__Wnon_pod_varargs = xyes; then 23816 TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Wnon-pod-varargs" CFLAGS="$CFLAGS -Wnon-pod-varargs" 23817 else 23818 true 23819 fi 23820 23821 23822 23823 23824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wnonportable-cfstrings" >&5 23825$as_echo_n "checking whether the compiler accepts -Wnonportable-cfstrings... " >&6; } 23826if ${tor_cv_cflags__Wnonportable_cfstrings+:} false; then : 23827 $as_echo_n "(cached) " >&6 23828else 23829 23830 tor_saved_CFLAGS="$CFLAGS" 23831 CFLAGS="$CFLAGS -pedantic -Werror -Wnonportable-cfstrings" 23832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23833/* end confdefs.h. */ 23834 23835int 23836main () 23837{ 23838 23839 ; 23840 return 0; 23841} 23842_ACEOF 23843if ac_fn_c_try_compile "$LINENO"; then : 23844 tor_cv_cflags__Wnonportable_cfstrings=yes 23845else 23846 tor_cv_cflags__Wnonportable_cfstrings=no 23847fi 23848rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 23849 if test x != x; then 23850 23851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23852/* end confdefs.h. */ 23853 23854int 23855main () 23856{ 23857 23858 ; 23859 return 0; 23860} 23861_ACEOF 23862if ac_fn_c_try_link "$LINENO"; then : 23863 tor_can_link__Wnonportable_cfstrings=yes 23864else 23865 tor_can_link__Wnonportable_cfstrings=no 23866fi 23867rm -f core conftest.err conftest.$ac_objext \ 23868 conftest$ac_exeext conftest.$ac_ext 23869 23870 fi 23871 CFLAGS="$tor_saved_CFLAGS" 23872 23873fi 23874{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wnonportable_cfstrings" >&5 23875$as_echo "$tor_cv_cflags__Wnonportable_cfstrings" >&6; } 23876 if test x$tor_cv_cflags__Wnonportable_cfstrings = xyes; then 23877 TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Wnonportable-cfstrings" CFLAGS="$CFLAGS -Wnonportable-cfstrings" 23878 else 23879 true 23880 fi 23881 23882 23883 23884 23885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wnormalized=nfkc" >&5 23886$as_echo_n "checking whether the compiler accepts -Wnormalized=nfkc... " >&6; } 23887if ${tor_cv_cflags__Wnormalized_nfkc+:} false; then : 23888 $as_echo_n "(cached) " >&6 23889else 23890 23891 tor_saved_CFLAGS="$CFLAGS" 23892 CFLAGS="$CFLAGS -pedantic -Werror -Wnormalized=nfkc" 23893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23894/* end confdefs.h. */ 23895 23896int 23897main () 23898{ 23899 23900 ; 23901 return 0; 23902} 23903_ACEOF 23904if ac_fn_c_try_compile "$LINENO"; then : 23905 tor_cv_cflags__Wnormalized_nfkc=yes 23906else 23907 tor_cv_cflags__Wnormalized_nfkc=no 23908fi 23909rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 23910 if test x != x; then 23911 23912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23913/* end confdefs.h. */ 23914 23915int 23916main () 23917{ 23918 23919 ; 23920 return 0; 23921} 23922_ACEOF 23923if ac_fn_c_try_link "$LINENO"; then : 23924 tor_can_link__Wnormalized_nfkc=yes 23925else 23926 tor_can_link__Wnormalized_nfkc=no 23927fi 23928rm -f core conftest.err conftest.$ac_objext \ 23929 conftest$ac_exeext conftest.$ac_ext 23930 23931 fi 23932 CFLAGS="$tor_saved_CFLAGS" 23933 23934fi 23935{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wnormalized_nfkc" >&5 23936$as_echo "$tor_cv_cflags__Wnormalized_nfkc" >&6; } 23937 if test x$tor_cv_cflags__Wnormalized_nfkc = xyes; then 23938 TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Wnormalized=nfkc" CFLAGS="$CFLAGS -Wnormalized=nfkc" 23939 else 23940 true 23941 fi 23942 23943 23944 23945 23946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wnull-arithmetic" >&5 23947$as_echo_n "checking whether the compiler accepts -Wnull-arithmetic... " >&6; } 23948if ${tor_cv_cflags__Wnull_arithmetic+:} false; then : 23949 $as_echo_n "(cached) " >&6 23950else 23951 23952 tor_saved_CFLAGS="$CFLAGS" 23953 CFLAGS="$CFLAGS -pedantic -Werror -Wnull-arithmetic" 23954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23955/* end confdefs.h. */ 23956 23957int 23958main () 23959{ 23960 23961 ; 23962 return 0; 23963} 23964_ACEOF 23965if ac_fn_c_try_compile "$LINENO"; then : 23966 tor_cv_cflags__Wnull_arithmetic=yes 23967else 23968 tor_cv_cflags__Wnull_arithmetic=no 23969fi 23970rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 23971 if test x != x; then 23972 23973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23974/* end confdefs.h. */ 23975 23976int 23977main () 23978{ 23979 23980 ; 23981 return 0; 23982} 23983_ACEOF 23984if ac_fn_c_try_link "$LINENO"; then : 23985 tor_can_link__Wnull_arithmetic=yes 23986else 23987 tor_can_link__Wnull_arithmetic=no 23988fi 23989rm -f core conftest.err conftest.$ac_objext \ 23990 conftest$ac_exeext conftest.$ac_ext 23991 23992 fi 23993 CFLAGS="$tor_saved_CFLAGS" 23994 23995fi 23996{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wnull_arithmetic" >&5 23997$as_echo "$tor_cv_cflags__Wnull_arithmetic" >&6; } 23998 if test x$tor_cv_cflags__Wnull_arithmetic = xyes; then 23999 TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Wnull-arithmetic" CFLAGS="$CFLAGS -Wnull-arithmetic" 24000 else 24001 true 24002 fi 24003 24004 24005 24006 24007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wnull-character" >&5 24008$as_echo_n "checking whether the compiler accepts -Wnull-character... " >&6; } 24009if ${tor_cv_cflags__Wnull_character+:} false; then : 24010 $as_echo_n "(cached) " >&6 24011else 24012 24013 tor_saved_CFLAGS="$CFLAGS" 24014 CFLAGS="$CFLAGS -pedantic -Werror -Wnull-character" 24015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24016/* end confdefs.h. */ 24017 24018int 24019main () 24020{ 24021 24022 ; 24023 return 0; 24024} 24025_ACEOF 24026if ac_fn_c_try_compile "$LINENO"; then : 24027 tor_cv_cflags__Wnull_character=yes 24028else 24029 tor_cv_cflags__Wnull_character=no 24030fi 24031rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 24032 if test x != x; then 24033 24034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24035/* end confdefs.h. */ 24036 24037int 24038main () 24039{ 24040 24041 ; 24042 return 0; 24043} 24044_ACEOF 24045if ac_fn_c_try_link "$LINENO"; then : 24046 tor_can_link__Wnull_character=yes 24047else 24048 tor_can_link__Wnull_character=no 24049fi 24050rm -f core conftest.err conftest.$ac_objext \ 24051 conftest$ac_exeext conftest.$ac_ext 24052 24053 fi 24054 CFLAGS="$tor_saved_CFLAGS" 24055 24056fi 24057{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wnull_character" >&5 24058$as_echo "$tor_cv_cflags__Wnull_character" >&6; } 24059 if test x$tor_cv_cflags__Wnull_character = xyes; then 24060 TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Wnull-character" CFLAGS="$CFLAGS -Wnull-character" 24061 else 24062 true 24063 fi 24064 24065 24066 24067 24068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wnull-conversion" >&5 24069$as_echo_n "checking whether the compiler accepts -Wnull-conversion... " >&6; } 24070if ${tor_cv_cflags__Wnull_conversion+:} false; then : 24071 $as_echo_n "(cached) " >&6 24072else 24073 24074 tor_saved_CFLAGS="$CFLAGS" 24075 CFLAGS="$CFLAGS -pedantic -Werror -Wnull-conversion" 24076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24077/* end confdefs.h. */ 24078 24079int 24080main () 24081{ 24082 24083 ; 24084 return 0; 24085} 24086_ACEOF 24087if ac_fn_c_try_compile "$LINENO"; then : 24088 tor_cv_cflags__Wnull_conversion=yes 24089else 24090 tor_cv_cflags__Wnull_conversion=no 24091fi 24092rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 24093 if test x != x; then 24094 24095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24096/* end confdefs.h. */ 24097 24098int 24099main () 24100{ 24101 24102 ; 24103 return 0; 24104} 24105_ACEOF 24106if ac_fn_c_try_link "$LINENO"; then : 24107 tor_can_link__Wnull_conversion=yes 24108else 24109 tor_can_link__Wnull_conversion=no 24110fi 24111rm -f core conftest.err conftest.$ac_objext \ 24112 conftest$ac_exeext conftest.$ac_ext 24113 24114 fi 24115 CFLAGS="$tor_saved_CFLAGS" 24116 24117fi 24118{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wnull_conversion" >&5 24119$as_echo "$tor_cv_cflags__Wnull_conversion" >&6; } 24120 if test x$tor_cv_cflags__Wnull_conversion = xyes; then 24121 TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Wnull-conversion" CFLAGS="$CFLAGS -Wnull-conversion" 24122 else 24123 true 24124 fi 24125 24126 24127 24128 24129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wnull-dereference" >&5 24130$as_echo_n "checking whether the compiler accepts -Wnull-dereference... " >&6; } 24131if ${tor_cv_cflags__Wnull_dereference+:} false; then : 24132 $as_echo_n "(cached) " >&6 24133else 24134 24135 tor_saved_CFLAGS="$CFLAGS" 24136 CFLAGS="$CFLAGS -pedantic -Werror -Wnull-dereference" 24137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24138/* end confdefs.h. */ 24139 24140int 24141main () 24142{ 24143 24144 ; 24145 return 0; 24146} 24147_ACEOF 24148if ac_fn_c_try_compile "$LINENO"; then : 24149 tor_cv_cflags__Wnull_dereference=yes 24150else 24151 tor_cv_cflags__Wnull_dereference=no 24152fi 24153rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 24154 if test x != x; then 24155 24156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24157/* end confdefs.h. */ 24158 24159int 24160main () 24161{ 24162 24163 ; 24164 return 0; 24165} 24166_ACEOF 24167if ac_fn_c_try_link "$LINENO"; then : 24168 tor_can_link__Wnull_dereference=yes 24169else 24170 tor_can_link__Wnull_dereference=no 24171fi 24172rm -f core conftest.err conftest.$ac_objext \ 24173 conftest$ac_exeext conftest.$ac_ext 24174 24175 fi 24176 CFLAGS="$tor_saved_CFLAGS" 24177 24178fi 24179{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wnull_dereference" >&5 24180$as_echo "$tor_cv_cflags__Wnull_dereference" >&6; } 24181 if test x$tor_cv_cflags__Wnull_dereference = xyes; then 24182 TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Wnull-dereference" CFLAGS="$CFLAGS -Wnull-dereference" 24183 else 24184 true 24185 fi 24186 24187 24188 24189 24190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wout-of-line-declaration" >&5 24191$as_echo_n "checking whether the compiler accepts -Wout-of-line-declaration... " >&6; } 24192if ${tor_cv_cflags__Wout_of_line_declaration+:} false; then : 24193 $as_echo_n "(cached) " >&6 24194else 24195 24196 tor_saved_CFLAGS="$CFLAGS" 24197 CFLAGS="$CFLAGS -pedantic -Werror -Wout-of-line-declaration" 24198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24199/* end confdefs.h. */ 24200 24201int 24202main () 24203{ 24204 24205 ; 24206 return 0; 24207} 24208_ACEOF 24209if ac_fn_c_try_compile "$LINENO"; then : 24210 tor_cv_cflags__Wout_of_line_declaration=yes 24211else 24212 tor_cv_cflags__Wout_of_line_declaration=no 24213fi 24214rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 24215 if test x != x; then 24216 24217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24218/* end confdefs.h. */ 24219 24220int 24221main () 24222{ 24223 24224 ; 24225 return 0; 24226} 24227_ACEOF 24228if ac_fn_c_try_link "$LINENO"; then : 24229 tor_can_link__Wout_of_line_declaration=yes 24230else 24231 tor_can_link__Wout_of_line_declaration=no 24232fi 24233rm -f core conftest.err conftest.$ac_objext \ 24234 conftest$ac_exeext conftest.$ac_ext 24235 24236 fi 24237 CFLAGS="$tor_saved_CFLAGS" 24238 24239fi 24240{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wout_of_line_declaration" >&5 24241$as_echo "$tor_cv_cflags__Wout_of_line_declaration" >&6; } 24242 if test x$tor_cv_cflags__Wout_of_line_declaration = xyes; then 24243 TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Wout-of-line-declaration" CFLAGS="$CFLAGS -Wout-of-line-declaration" 24244 else 24245 true 24246 fi 24247 24248 24249 24250 24251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wover-aligned" >&5 24252$as_echo_n "checking whether the compiler accepts -Wover-aligned... " >&6; } 24253if ${tor_cv_cflags__Wover_aligned+:} false; then : 24254 $as_echo_n "(cached) " >&6 24255else 24256 24257 tor_saved_CFLAGS="$CFLAGS" 24258 CFLAGS="$CFLAGS -pedantic -Werror -Wover-aligned" 24259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24260/* end confdefs.h. */ 24261 24262int 24263main () 24264{ 24265 24266 ; 24267 return 0; 24268} 24269_ACEOF 24270if ac_fn_c_try_compile "$LINENO"; then : 24271 tor_cv_cflags__Wover_aligned=yes 24272else 24273 tor_cv_cflags__Wover_aligned=no 24274fi 24275rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 24276 if test x != x; then 24277 24278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24279/* end confdefs.h. */ 24280 24281int 24282main () 24283{ 24284 24285 ; 24286 return 0; 24287} 24288_ACEOF 24289if ac_fn_c_try_link "$LINENO"; then : 24290 tor_can_link__Wover_aligned=yes 24291else 24292 tor_can_link__Wover_aligned=no 24293fi 24294rm -f core conftest.err conftest.$ac_objext \ 24295 conftest$ac_exeext conftest.$ac_ext 24296 24297 fi 24298 CFLAGS="$tor_saved_CFLAGS" 24299 24300fi 24301{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wover_aligned" >&5 24302$as_echo "$tor_cv_cflags__Wover_aligned" >&6; } 24303 if test x$tor_cv_cflags__Wover_aligned = xyes; then 24304 TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Wover-aligned" CFLAGS="$CFLAGS -Wover-aligned" 24305 else 24306 true 24307 fi 24308 24309 24310 24311 24312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Woverlength-strings" >&5 24313$as_echo_n "checking whether the compiler accepts -Woverlength-strings... " >&6; } 24314if ${tor_cv_cflags__Woverlength_strings+:} false; then : 24315 $as_echo_n "(cached) " >&6 24316else 24317 24318 tor_saved_CFLAGS="$CFLAGS" 24319 CFLAGS="$CFLAGS -pedantic -Werror -Woverlength-strings" 24320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24321/* end confdefs.h. */ 24322 24323int 24324main () 24325{ 24326 24327 ; 24328 return 0; 24329} 24330_ACEOF 24331if ac_fn_c_try_compile "$LINENO"; then : 24332 tor_cv_cflags__Woverlength_strings=yes 24333else 24334 tor_cv_cflags__Woverlength_strings=no 24335fi 24336rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 24337 if test x != x; then 24338 24339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24340/* end confdefs.h. */ 24341 24342int 24343main () 24344{ 24345 24346 ; 24347 return 0; 24348} 24349_ACEOF 24350if ac_fn_c_try_link "$LINENO"; then : 24351 tor_can_link__Woverlength_strings=yes 24352else 24353 tor_can_link__Woverlength_strings=no 24354fi 24355rm -f core conftest.err conftest.$ac_objext \ 24356 conftest$ac_exeext conftest.$ac_ext 24357 24358 fi 24359 CFLAGS="$tor_saved_CFLAGS" 24360 24361fi 24362{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Woverlength_strings" >&5 24363$as_echo "$tor_cv_cflags__Woverlength_strings" >&6; } 24364 if test x$tor_cv_cflags__Woverlength_strings = xyes; then 24365 TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Woverlength-strings" CFLAGS="$CFLAGS -Woverlength-strings" 24366 else 24367 true 24368 fi 24369 24370 24371 24372 24373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Woverride-init" >&5 24374$as_echo_n "checking whether the compiler accepts -Woverride-init... " >&6; } 24375if ${tor_cv_cflags__Woverride_init+:} false; then : 24376 $as_echo_n "(cached) " >&6 24377else 24378 24379 tor_saved_CFLAGS="$CFLAGS" 24380 CFLAGS="$CFLAGS -pedantic -Werror -Woverride-init" 24381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24382/* end confdefs.h. */ 24383 24384int 24385main () 24386{ 24387 24388 ; 24389 return 0; 24390} 24391_ACEOF 24392if ac_fn_c_try_compile "$LINENO"; then : 24393 tor_cv_cflags__Woverride_init=yes 24394else 24395 tor_cv_cflags__Woverride_init=no 24396fi 24397rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 24398 if test x != x; then 24399 24400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24401/* end confdefs.h. */ 24402 24403int 24404main () 24405{ 24406 24407 ; 24408 return 0; 24409} 24410_ACEOF 24411if ac_fn_c_try_link "$LINENO"; then : 24412 tor_can_link__Woverride_init=yes 24413else 24414 tor_can_link__Woverride_init=no 24415fi 24416rm -f core conftest.err conftest.$ac_objext \ 24417 conftest$ac_exeext conftest.$ac_ext 24418 24419 fi 24420 CFLAGS="$tor_saved_CFLAGS" 24421 24422fi 24423{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Woverride_init" >&5 24424$as_echo "$tor_cv_cflags__Woverride_init" >&6; } 24425 if test x$tor_cv_cflags__Woverride_init = xyes; then 24426 TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Woverride-init" CFLAGS="$CFLAGS -Woverride-init" 24427 else 24428 true 24429 fi 24430 24431 24432 24433 24434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Woverriding-method-mismatch" >&5 24435$as_echo_n "checking whether the compiler accepts -Woverriding-method-mismatch... " >&6; } 24436if ${tor_cv_cflags__Woverriding_method_mismatch+:} false; then : 24437 $as_echo_n "(cached) " >&6 24438else 24439 24440 tor_saved_CFLAGS="$CFLAGS" 24441 CFLAGS="$CFLAGS -pedantic -Werror -Woverriding-method-mismatch" 24442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24443/* end confdefs.h. */ 24444 24445int 24446main () 24447{ 24448 24449 ; 24450 return 0; 24451} 24452_ACEOF 24453if ac_fn_c_try_compile "$LINENO"; then : 24454 tor_cv_cflags__Woverriding_method_mismatch=yes 24455else 24456 tor_cv_cflags__Woverriding_method_mismatch=no 24457fi 24458rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 24459 if test x != x; then 24460 24461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24462/* end confdefs.h. */ 24463 24464int 24465main () 24466{ 24467 24468 ; 24469 return 0; 24470} 24471_ACEOF 24472if ac_fn_c_try_link "$LINENO"; then : 24473 tor_can_link__Woverriding_method_mismatch=yes 24474else 24475 tor_can_link__Woverriding_method_mismatch=no 24476fi 24477rm -f core conftest.err conftest.$ac_objext \ 24478 conftest$ac_exeext conftest.$ac_ext 24479 24480 fi 24481 CFLAGS="$tor_saved_CFLAGS" 24482 24483fi 24484{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Woverriding_method_mismatch" >&5 24485$as_echo "$tor_cv_cflags__Woverriding_method_mismatch" >&6; } 24486 if test x$tor_cv_cflags__Woverriding_method_mismatch = xyes; then 24487 TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Woverriding-method-mismatch" CFLAGS="$CFLAGS -Woverriding-method-mismatch" 24488 else 24489 true 24490 fi 24491 24492 24493 24494 24495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wpointer-type-mismatch" >&5 24496$as_echo_n "checking whether the compiler accepts -Wpointer-type-mismatch... " >&6; } 24497if ${tor_cv_cflags__Wpointer_type_mismatch+:} false; then : 24498 $as_echo_n "(cached) " >&6 24499else 24500 24501 tor_saved_CFLAGS="$CFLAGS" 24502 CFLAGS="$CFLAGS -pedantic -Werror -Wpointer-type-mismatch" 24503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24504/* end confdefs.h. */ 24505 24506int 24507main () 24508{ 24509 24510 ; 24511 return 0; 24512} 24513_ACEOF 24514if ac_fn_c_try_compile "$LINENO"; then : 24515 tor_cv_cflags__Wpointer_type_mismatch=yes 24516else 24517 tor_cv_cflags__Wpointer_type_mismatch=no 24518fi 24519rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 24520 if test x != x; then 24521 24522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24523/* end confdefs.h. */ 24524 24525int 24526main () 24527{ 24528 24529 ; 24530 return 0; 24531} 24532_ACEOF 24533if ac_fn_c_try_link "$LINENO"; then : 24534 tor_can_link__Wpointer_type_mismatch=yes 24535else 24536 tor_can_link__Wpointer_type_mismatch=no 24537fi 24538rm -f core conftest.err conftest.$ac_objext \ 24539 conftest$ac_exeext conftest.$ac_ext 24540 24541 fi 24542 CFLAGS="$tor_saved_CFLAGS" 24543 24544fi 24545{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wpointer_type_mismatch" >&5 24546$as_echo "$tor_cv_cflags__Wpointer_type_mismatch" >&6; } 24547 if test x$tor_cv_cflags__Wpointer_type_mismatch = xyes; then 24548 TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Wpointer-type-mismatch" CFLAGS="$CFLAGS -Wpointer-type-mismatch" 24549 else 24550 true 24551 fi 24552 24553 24554 24555 24556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wpredefined-identifier-outside-function" >&5 24557$as_echo_n "checking whether the compiler accepts -Wpredefined-identifier-outside-function... " >&6; } 24558if ${tor_cv_cflags__Wpredefined_identifier_outside_function+:} false; then : 24559 $as_echo_n "(cached) " >&6 24560else 24561 24562 tor_saved_CFLAGS="$CFLAGS" 24563 CFLAGS="$CFLAGS -pedantic -Werror -Wpredefined-identifier-outside-function" 24564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24565/* end confdefs.h. */ 24566 24567int 24568main () 24569{ 24570 24571 ; 24572 return 0; 24573} 24574_ACEOF 24575if ac_fn_c_try_compile "$LINENO"; then : 24576 tor_cv_cflags__Wpredefined_identifier_outside_function=yes 24577else 24578 tor_cv_cflags__Wpredefined_identifier_outside_function=no 24579fi 24580rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 24581 if test x != x; then 24582 24583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24584/* end confdefs.h. */ 24585 24586int 24587main () 24588{ 24589 24590 ; 24591 return 0; 24592} 24593_ACEOF 24594if ac_fn_c_try_link "$LINENO"; then : 24595 tor_can_link__Wpredefined_identifier_outside_function=yes 24596else 24597 tor_can_link__Wpredefined_identifier_outside_function=no 24598fi 24599rm -f core conftest.err conftest.$ac_objext \ 24600 conftest$ac_exeext conftest.$ac_ext 24601 24602 fi 24603 CFLAGS="$tor_saved_CFLAGS" 24604 24605fi 24606{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wpredefined_identifier_outside_function" >&5 24607$as_echo "$tor_cv_cflags__Wpredefined_identifier_outside_function" >&6; } 24608 if test x$tor_cv_cflags__Wpredefined_identifier_outside_function = xyes; then 24609 TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Wpredefined-identifier-outside-function" CFLAGS="$CFLAGS -Wpredefined-identifier-outside-function" 24610 else 24611 true 24612 fi 24613 24614 24615 24616 24617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wprotocol-property-synthesis-ambiguity" >&5 24618$as_echo_n "checking whether the compiler accepts -Wprotocol-property-synthesis-ambiguity... " >&6; } 24619if ${tor_cv_cflags__Wprotocol_property_synthesis_ambiguity+:} false; then : 24620 $as_echo_n "(cached) " >&6 24621else 24622 24623 tor_saved_CFLAGS="$CFLAGS" 24624 CFLAGS="$CFLAGS -pedantic -Werror -Wprotocol-property-synthesis-ambiguity" 24625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24626/* end confdefs.h. */ 24627 24628int 24629main () 24630{ 24631 24632 ; 24633 return 0; 24634} 24635_ACEOF 24636if ac_fn_c_try_compile "$LINENO"; then : 24637 tor_cv_cflags__Wprotocol_property_synthesis_ambiguity=yes 24638else 24639 tor_cv_cflags__Wprotocol_property_synthesis_ambiguity=no 24640fi 24641rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 24642 if test x != x; then 24643 24644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24645/* end confdefs.h. */ 24646 24647int 24648main () 24649{ 24650 24651 ; 24652 return 0; 24653} 24654_ACEOF 24655if ac_fn_c_try_link "$LINENO"; then : 24656 tor_can_link__Wprotocol_property_synthesis_ambiguity=yes 24657else 24658 tor_can_link__Wprotocol_property_synthesis_ambiguity=no 24659fi 24660rm -f core conftest.err conftest.$ac_objext \ 24661 conftest$ac_exeext conftest.$ac_ext 24662 24663 fi 24664 CFLAGS="$tor_saved_CFLAGS" 24665 24666fi 24667{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wprotocol_property_synthesis_ambiguity" >&5 24668$as_echo "$tor_cv_cflags__Wprotocol_property_synthesis_ambiguity" >&6; } 24669 if test x$tor_cv_cflags__Wprotocol_property_synthesis_ambiguity = xyes; then 24670 TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Wprotocol-property-synthesis-ambiguity" CFLAGS="$CFLAGS -Wprotocol-property-synthesis-ambiguity" 24671 else 24672 true 24673 fi 24674 24675 24676 24677 24678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wreadonly-iboutlet-property" >&5 24679$as_echo_n "checking whether the compiler accepts -Wreadonly-iboutlet-property... " >&6; } 24680if ${tor_cv_cflags__Wreadonly_iboutlet_property+:} false; then : 24681 $as_echo_n "(cached) " >&6 24682else 24683 24684 tor_saved_CFLAGS="$CFLAGS" 24685 CFLAGS="$CFLAGS -pedantic -Werror -Wreadonly-iboutlet-property" 24686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24687/* end confdefs.h. */ 24688 24689int 24690main () 24691{ 24692 24693 ; 24694 return 0; 24695} 24696_ACEOF 24697if ac_fn_c_try_compile "$LINENO"; then : 24698 tor_cv_cflags__Wreadonly_iboutlet_property=yes 24699else 24700 tor_cv_cflags__Wreadonly_iboutlet_property=no 24701fi 24702rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 24703 if test x != x; then 24704 24705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24706/* end confdefs.h. */ 24707 24708int 24709main () 24710{ 24711 24712 ; 24713 return 0; 24714} 24715_ACEOF 24716if ac_fn_c_try_link "$LINENO"; then : 24717 tor_can_link__Wreadonly_iboutlet_property=yes 24718else 24719 tor_can_link__Wreadonly_iboutlet_property=no 24720fi 24721rm -f core conftest.err conftest.$ac_objext \ 24722 conftest$ac_exeext conftest.$ac_ext 24723 24724 fi 24725 CFLAGS="$tor_saved_CFLAGS" 24726 24727fi 24728{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wreadonly_iboutlet_property" >&5 24729$as_echo "$tor_cv_cflags__Wreadonly_iboutlet_property" >&6; } 24730 if test x$tor_cv_cflags__Wreadonly_iboutlet_property = xyes; then 24731 TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Wreadonly-iboutlet-property" CFLAGS="$CFLAGS -Wreadonly-iboutlet-property" 24732 else 24733 true 24734 fi 24735 24736 24737 24738 24739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wreadonly-setter-attrs" >&5 24740$as_echo_n "checking whether the compiler accepts -Wreadonly-setter-attrs... " >&6; } 24741if ${tor_cv_cflags__Wreadonly_setter_attrs+:} false; then : 24742 $as_echo_n "(cached) " >&6 24743else 24744 24745 tor_saved_CFLAGS="$CFLAGS" 24746 CFLAGS="$CFLAGS -pedantic -Werror -Wreadonly-setter-attrs" 24747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24748/* end confdefs.h. */ 24749 24750int 24751main () 24752{ 24753 24754 ; 24755 return 0; 24756} 24757_ACEOF 24758if ac_fn_c_try_compile "$LINENO"; then : 24759 tor_cv_cflags__Wreadonly_setter_attrs=yes 24760else 24761 tor_cv_cflags__Wreadonly_setter_attrs=no 24762fi 24763rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 24764 if test x != x; then 24765 24766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24767/* end confdefs.h. */ 24768 24769int 24770main () 24771{ 24772 24773 ; 24774 return 0; 24775} 24776_ACEOF 24777if ac_fn_c_try_link "$LINENO"; then : 24778 tor_can_link__Wreadonly_setter_attrs=yes 24779else 24780 tor_can_link__Wreadonly_setter_attrs=no 24781fi 24782rm -f core conftest.err conftest.$ac_objext \ 24783 conftest$ac_exeext conftest.$ac_ext 24784 24785 fi 24786 CFLAGS="$tor_saved_CFLAGS" 24787 24788fi 24789{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wreadonly_setter_attrs" >&5 24790$as_echo "$tor_cv_cflags__Wreadonly_setter_attrs" >&6; } 24791 if test x$tor_cv_cflags__Wreadonly_setter_attrs = xyes; then 24792 TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Wreadonly-setter-attrs" CFLAGS="$CFLAGS -Wreadonly-setter-attrs" 24793 else 24794 true 24795 fi 24796 24797 24798 24799 24800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wreceiver-expr" >&5 24801$as_echo_n "checking whether the compiler accepts -Wreceiver-expr... " >&6; } 24802if ${tor_cv_cflags__Wreceiver_expr+:} false; then : 24803 $as_echo_n "(cached) " >&6 24804else 24805 24806 tor_saved_CFLAGS="$CFLAGS" 24807 CFLAGS="$CFLAGS -pedantic -Werror -Wreceiver-expr" 24808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24809/* end confdefs.h. */ 24810 24811int 24812main () 24813{ 24814 24815 ; 24816 return 0; 24817} 24818_ACEOF 24819if ac_fn_c_try_compile "$LINENO"; then : 24820 tor_cv_cflags__Wreceiver_expr=yes 24821else 24822 tor_cv_cflags__Wreceiver_expr=no 24823fi 24824rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 24825 if test x != x; then 24826 24827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24828/* end confdefs.h. */ 24829 24830int 24831main () 24832{ 24833 24834 ; 24835 return 0; 24836} 24837_ACEOF 24838if ac_fn_c_try_link "$LINENO"; then : 24839 tor_can_link__Wreceiver_expr=yes 24840else 24841 tor_can_link__Wreceiver_expr=no 24842fi 24843rm -f core conftest.err conftest.$ac_objext \ 24844 conftest$ac_exeext conftest.$ac_ext 24845 24846 fi 24847 CFLAGS="$tor_saved_CFLAGS" 24848 24849fi 24850{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wreceiver_expr" >&5 24851$as_echo "$tor_cv_cflags__Wreceiver_expr" >&6; } 24852 if test x$tor_cv_cflags__Wreceiver_expr = xyes; then 24853 TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Wreceiver-expr" CFLAGS="$CFLAGS -Wreceiver-expr" 24854 else 24855 true 24856 fi 24857 24858 24859 24860 24861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wreceiver-forward-class" >&5 24862$as_echo_n "checking whether the compiler accepts -Wreceiver-forward-class... " >&6; } 24863if ${tor_cv_cflags__Wreceiver_forward_class+:} false; then : 24864 $as_echo_n "(cached) " >&6 24865else 24866 24867 tor_saved_CFLAGS="$CFLAGS" 24868 CFLAGS="$CFLAGS -pedantic -Werror -Wreceiver-forward-class" 24869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24870/* end confdefs.h. */ 24871 24872int 24873main () 24874{ 24875 24876 ; 24877 return 0; 24878} 24879_ACEOF 24880if ac_fn_c_try_compile "$LINENO"; then : 24881 tor_cv_cflags__Wreceiver_forward_class=yes 24882else 24883 tor_cv_cflags__Wreceiver_forward_class=no 24884fi 24885rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 24886 if test x != x; then 24887 24888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24889/* end confdefs.h. */ 24890 24891int 24892main () 24893{ 24894 24895 ; 24896 return 0; 24897} 24898_ACEOF 24899if ac_fn_c_try_link "$LINENO"; then : 24900 tor_can_link__Wreceiver_forward_class=yes 24901else 24902 tor_can_link__Wreceiver_forward_class=no 24903fi 24904rm -f core conftest.err conftest.$ac_objext \ 24905 conftest$ac_exeext conftest.$ac_ext 24906 24907 fi 24908 CFLAGS="$tor_saved_CFLAGS" 24909 24910fi 24911{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wreceiver_forward_class" >&5 24912$as_echo "$tor_cv_cflags__Wreceiver_forward_class" >&6; } 24913 if test x$tor_cv_cflags__Wreceiver_forward_class = xyes; then 24914 TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Wreceiver-forward-class" CFLAGS="$CFLAGS -Wreceiver-forward-class" 24915 else 24916 true 24917 fi 24918 24919 24920 24921 24922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wreceiver-is-weak" >&5 24923$as_echo_n "checking whether the compiler accepts -Wreceiver-is-weak... " >&6; } 24924if ${tor_cv_cflags__Wreceiver_is_weak+:} false; then : 24925 $as_echo_n "(cached) " >&6 24926else 24927 24928 tor_saved_CFLAGS="$CFLAGS" 24929 CFLAGS="$CFLAGS -pedantic -Werror -Wreceiver-is-weak" 24930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24931/* end confdefs.h. */ 24932 24933int 24934main () 24935{ 24936 24937 ; 24938 return 0; 24939} 24940_ACEOF 24941if ac_fn_c_try_compile "$LINENO"; then : 24942 tor_cv_cflags__Wreceiver_is_weak=yes 24943else 24944 tor_cv_cflags__Wreceiver_is_weak=no 24945fi 24946rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 24947 if test x != x; then 24948 24949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24950/* end confdefs.h. */ 24951 24952int 24953main () 24954{ 24955 24956 ; 24957 return 0; 24958} 24959_ACEOF 24960if ac_fn_c_try_link "$LINENO"; then : 24961 tor_can_link__Wreceiver_is_weak=yes 24962else 24963 tor_can_link__Wreceiver_is_weak=no 24964fi 24965rm -f core conftest.err conftest.$ac_objext \ 24966 conftest$ac_exeext conftest.$ac_ext 24967 24968 fi 24969 CFLAGS="$tor_saved_CFLAGS" 24970 24971fi 24972{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wreceiver_is_weak" >&5 24973$as_echo "$tor_cv_cflags__Wreceiver_is_weak" >&6; } 24974 if test x$tor_cv_cflags__Wreceiver_is_weak = xyes; then 24975 TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Wreceiver-is-weak" CFLAGS="$CFLAGS -Wreceiver-is-weak" 24976 else 24977 true 24978 fi 24979 24980 24981 24982 24983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wreinterpret-base-class" >&5 24984$as_echo_n "checking whether the compiler accepts -Wreinterpret-base-class... " >&6; } 24985if ${tor_cv_cflags__Wreinterpret_base_class+:} false; then : 24986 $as_echo_n "(cached) " >&6 24987else 24988 24989 tor_saved_CFLAGS="$CFLAGS" 24990 CFLAGS="$CFLAGS -pedantic -Werror -Wreinterpret-base-class" 24991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24992/* end confdefs.h. */ 24993 24994int 24995main () 24996{ 24997 24998 ; 24999 return 0; 25000} 25001_ACEOF 25002if ac_fn_c_try_compile "$LINENO"; then : 25003 tor_cv_cflags__Wreinterpret_base_class=yes 25004else 25005 tor_cv_cflags__Wreinterpret_base_class=no 25006fi 25007rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 25008 if test x != x; then 25009 25010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25011/* end confdefs.h. */ 25012 25013int 25014main () 25015{ 25016 25017 ; 25018 return 0; 25019} 25020_ACEOF 25021if ac_fn_c_try_link "$LINENO"; then : 25022 tor_can_link__Wreinterpret_base_class=yes 25023else 25024 tor_can_link__Wreinterpret_base_class=no 25025fi 25026rm -f core conftest.err conftest.$ac_objext \ 25027 conftest$ac_exeext conftest.$ac_ext 25028 25029 fi 25030 CFLAGS="$tor_saved_CFLAGS" 25031 25032fi 25033{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wreinterpret_base_class" >&5 25034$as_echo "$tor_cv_cflags__Wreinterpret_base_class" >&6; } 25035 if test x$tor_cv_cflags__Wreinterpret_base_class = xyes; then 25036 TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Wreinterpret-base-class" CFLAGS="$CFLAGS -Wreinterpret-base-class" 25037 else 25038 true 25039 fi 25040 25041 25042 25043 25044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wrequires-super-attribute" >&5 25045$as_echo_n "checking whether the compiler accepts -Wrequires-super-attribute... " >&6; } 25046if ${tor_cv_cflags__Wrequires_super_attribute+:} false; then : 25047 $as_echo_n "(cached) " >&6 25048else 25049 25050 tor_saved_CFLAGS="$CFLAGS" 25051 CFLAGS="$CFLAGS -pedantic -Werror -Wrequires-super-attribute" 25052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25053/* end confdefs.h. */ 25054 25055int 25056main () 25057{ 25058 25059 ; 25060 return 0; 25061} 25062_ACEOF 25063if ac_fn_c_try_compile "$LINENO"; then : 25064 tor_cv_cflags__Wrequires_super_attribute=yes 25065else 25066 tor_cv_cflags__Wrequires_super_attribute=no 25067fi 25068rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 25069 if test x != x; then 25070 25071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25072/* end confdefs.h. */ 25073 25074int 25075main () 25076{ 25077 25078 ; 25079 return 0; 25080} 25081_ACEOF 25082if ac_fn_c_try_link "$LINENO"; then : 25083 tor_can_link__Wrequires_super_attribute=yes 25084else 25085 tor_can_link__Wrequires_super_attribute=no 25086fi 25087rm -f core conftest.err conftest.$ac_objext \ 25088 conftest$ac_exeext conftest.$ac_ext 25089 25090 fi 25091 CFLAGS="$tor_saved_CFLAGS" 25092 25093fi 25094{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wrequires_super_attribute" >&5 25095$as_echo "$tor_cv_cflags__Wrequires_super_attribute" >&6; } 25096 if test x$tor_cv_cflags__Wrequires_super_attribute = xyes; then 25097 TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Wrequires-super-attribute" CFLAGS="$CFLAGS -Wrequires-super-attribute" 25098 else 25099 true 25100 fi 25101 25102 25103 25104 25105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wreserved-user-defined-literal" >&5 25106$as_echo_n "checking whether the compiler accepts -Wreserved-user-defined-literal... " >&6; } 25107if ${tor_cv_cflags__Wreserved_user_defined_literal+:} false; then : 25108 $as_echo_n "(cached) " >&6 25109else 25110 25111 tor_saved_CFLAGS="$CFLAGS" 25112 CFLAGS="$CFLAGS -pedantic -Werror -Wreserved-user-defined-literal" 25113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25114/* end confdefs.h. */ 25115 25116int 25117main () 25118{ 25119 25120 ; 25121 return 0; 25122} 25123_ACEOF 25124if ac_fn_c_try_compile "$LINENO"; then : 25125 tor_cv_cflags__Wreserved_user_defined_literal=yes 25126else 25127 tor_cv_cflags__Wreserved_user_defined_literal=no 25128fi 25129rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 25130 if test x != x; then 25131 25132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25133/* end confdefs.h. */ 25134 25135int 25136main () 25137{ 25138 25139 ; 25140 return 0; 25141} 25142_ACEOF 25143if ac_fn_c_try_link "$LINENO"; then : 25144 tor_can_link__Wreserved_user_defined_literal=yes 25145else 25146 tor_can_link__Wreserved_user_defined_literal=no 25147fi 25148rm -f core conftest.err conftest.$ac_objext \ 25149 conftest$ac_exeext conftest.$ac_ext 25150 25151 fi 25152 CFLAGS="$tor_saved_CFLAGS" 25153 25154fi 25155{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wreserved_user_defined_literal" >&5 25156$as_echo "$tor_cv_cflags__Wreserved_user_defined_literal" >&6; } 25157 if test x$tor_cv_cflags__Wreserved_user_defined_literal = xyes; then 25158 TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Wreserved-user-defined-literal" CFLAGS="$CFLAGS -Wreserved-user-defined-literal" 25159 else 25160 true 25161 fi 25162 25163 25164 25165 25166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wreturn-stack-address" >&5 25167$as_echo_n "checking whether the compiler accepts -Wreturn-stack-address... " >&6; } 25168if ${tor_cv_cflags__Wreturn_stack_address+:} false; then : 25169 $as_echo_n "(cached) " >&6 25170else 25171 25172 tor_saved_CFLAGS="$CFLAGS" 25173 CFLAGS="$CFLAGS -pedantic -Werror -Wreturn-stack-address" 25174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25175/* end confdefs.h. */ 25176 25177int 25178main () 25179{ 25180 25181 ; 25182 return 0; 25183} 25184_ACEOF 25185if ac_fn_c_try_compile "$LINENO"; then : 25186 tor_cv_cflags__Wreturn_stack_address=yes 25187else 25188 tor_cv_cflags__Wreturn_stack_address=no 25189fi 25190rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 25191 if test x != x; then 25192 25193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25194/* end confdefs.h. */ 25195 25196int 25197main () 25198{ 25199 25200 ; 25201 return 0; 25202} 25203_ACEOF 25204if ac_fn_c_try_link "$LINENO"; then : 25205 tor_can_link__Wreturn_stack_address=yes 25206else 25207 tor_can_link__Wreturn_stack_address=no 25208fi 25209rm -f core conftest.err conftest.$ac_objext \ 25210 conftest$ac_exeext conftest.$ac_ext 25211 25212 fi 25213 CFLAGS="$tor_saved_CFLAGS" 25214 25215fi 25216{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wreturn_stack_address" >&5 25217$as_echo "$tor_cv_cflags__Wreturn_stack_address" >&6; } 25218 if test x$tor_cv_cflags__Wreturn_stack_address = xyes; then 25219 TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Wreturn-stack-address" CFLAGS="$CFLAGS -Wreturn-stack-address" 25220 else 25221 true 25222 fi 25223 25224 25225 25226 25227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wsection" >&5 25228$as_echo_n "checking whether the compiler accepts -Wsection... " >&6; } 25229if ${tor_cv_cflags__Wsection+:} false; then : 25230 $as_echo_n "(cached) " >&6 25231else 25232 25233 tor_saved_CFLAGS="$CFLAGS" 25234 CFLAGS="$CFLAGS -pedantic -Werror -Wsection" 25235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25236/* end confdefs.h. */ 25237 25238int 25239main () 25240{ 25241 25242 ; 25243 return 0; 25244} 25245_ACEOF 25246if ac_fn_c_try_compile "$LINENO"; then : 25247 tor_cv_cflags__Wsection=yes 25248else 25249 tor_cv_cflags__Wsection=no 25250fi 25251rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 25252 if test x != x; then 25253 25254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25255/* end confdefs.h. */ 25256 25257int 25258main () 25259{ 25260 25261 ; 25262 return 0; 25263} 25264_ACEOF 25265if ac_fn_c_try_link "$LINENO"; then : 25266 tor_can_link__Wsection=yes 25267else 25268 tor_can_link__Wsection=no 25269fi 25270rm -f core conftest.err conftest.$ac_objext \ 25271 conftest$ac_exeext conftest.$ac_ext 25272 25273 fi 25274 CFLAGS="$tor_saved_CFLAGS" 25275 25276fi 25277{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wsection" >&5 25278$as_echo "$tor_cv_cflags__Wsection" >&6; } 25279 if test x$tor_cv_cflags__Wsection = xyes; then 25280 TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Wsection" CFLAGS="$CFLAGS -Wsection" 25281 else 25282 true 25283 fi 25284 25285 25286 25287 25288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wselector-type-mismatch" >&5 25289$as_echo_n "checking whether the compiler accepts -Wselector-type-mismatch... " >&6; } 25290if ${tor_cv_cflags__Wselector_type_mismatch+:} false; then : 25291 $as_echo_n "(cached) " >&6 25292else 25293 25294 tor_saved_CFLAGS="$CFLAGS" 25295 CFLAGS="$CFLAGS -pedantic -Werror -Wselector-type-mismatch" 25296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25297/* end confdefs.h. */ 25298 25299int 25300main () 25301{ 25302 25303 ; 25304 return 0; 25305} 25306_ACEOF 25307if ac_fn_c_try_compile "$LINENO"; then : 25308 tor_cv_cflags__Wselector_type_mismatch=yes 25309else 25310 tor_cv_cflags__Wselector_type_mismatch=no 25311fi 25312rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 25313 if test x != x; then 25314 25315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25316/* end confdefs.h. */ 25317 25318int 25319main () 25320{ 25321 25322 ; 25323 return 0; 25324} 25325_ACEOF 25326if ac_fn_c_try_link "$LINENO"; then : 25327 tor_can_link__Wselector_type_mismatch=yes 25328else 25329 tor_can_link__Wselector_type_mismatch=no 25330fi 25331rm -f core conftest.err conftest.$ac_objext \ 25332 conftest$ac_exeext conftest.$ac_ext 25333 25334 fi 25335 CFLAGS="$tor_saved_CFLAGS" 25336 25337fi 25338{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wselector_type_mismatch" >&5 25339$as_echo "$tor_cv_cflags__Wselector_type_mismatch" >&6; } 25340 if test x$tor_cv_cflags__Wselector_type_mismatch = xyes; then 25341 TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Wselector-type-mismatch" CFLAGS="$CFLAGS -Wselector-type-mismatch" 25342 else 25343 true 25344 fi 25345 25346 25347 25348 25349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wsentinel" >&5 25350$as_echo_n "checking whether the compiler accepts -Wsentinel... " >&6; } 25351if ${tor_cv_cflags__Wsentinel+:} false; then : 25352 $as_echo_n "(cached) " >&6 25353else 25354 25355 tor_saved_CFLAGS="$CFLAGS" 25356 CFLAGS="$CFLAGS -pedantic -Werror -Wsentinel" 25357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25358/* end confdefs.h. */ 25359 25360int 25361main () 25362{ 25363 25364 ; 25365 return 0; 25366} 25367_ACEOF 25368if ac_fn_c_try_compile "$LINENO"; then : 25369 tor_cv_cflags__Wsentinel=yes 25370else 25371 tor_cv_cflags__Wsentinel=no 25372fi 25373rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 25374 if test x != x; then 25375 25376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25377/* end confdefs.h. */ 25378 25379int 25380main () 25381{ 25382 25383 ; 25384 return 0; 25385} 25386_ACEOF 25387if ac_fn_c_try_link "$LINENO"; then : 25388 tor_can_link__Wsentinel=yes 25389else 25390 tor_can_link__Wsentinel=no 25391fi 25392rm -f core conftest.err conftest.$ac_objext \ 25393 conftest$ac_exeext conftest.$ac_ext 25394 25395 fi 25396 CFLAGS="$tor_saved_CFLAGS" 25397 25398fi 25399{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wsentinel" >&5 25400$as_echo "$tor_cv_cflags__Wsentinel" >&6; } 25401 if test x$tor_cv_cflags__Wsentinel = xyes; then 25402 TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Wsentinel" CFLAGS="$CFLAGS -Wsentinel" 25403 else 25404 true 25405 fi 25406 25407 25408 25409 25410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wserialized-diagnostics" >&5 25411$as_echo_n "checking whether the compiler accepts -Wserialized-diagnostics... " >&6; } 25412if ${tor_cv_cflags__Wserialized_diagnostics+:} false; then : 25413 $as_echo_n "(cached) " >&6 25414else 25415 25416 tor_saved_CFLAGS="$CFLAGS" 25417 CFLAGS="$CFLAGS -pedantic -Werror -Wserialized-diagnostics" 25418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25419/* end confdefs.h. */ 25420 25421int 25422main () 25423{ 25424 25425 ; 25426 return 0; 25427} 25428_ACEOF 25429if ac_fn_c_try_compile "$LINENO"; then : 25430 tor_cv_cflags__Wserialized_diagnostics=yes 25431else 25432 tor_cv_cflags__Wserialized_diagnostics=no 25433fi 25434rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 25435 if test x != x; then 25436 25437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25438/* end confdefs.h. */ 25439 25440int 25441main () 25442{ 25443 25444 ; 25445 return 0; 25446} 25447_ACEOF 25448if ac_fn_c_try_link "$LINENO"; then : 25449 tor_can_link__Wserialized_diagnostics=yes 25450else 25451 tor_can_link__Wserialized_diagnostics=no 25452fi 25453rm -f core conftest.err conftest.$ac_objext \ 25454 conftest$ac_exeext conftest.$ac_ext 25455 25456 fi 25457 CFLAGS="$tor_saved_CFLAGS" 25458 25459fi 25460{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wserialized_diagnostics" >&5 25461$as_echo "$tor_cv_cflags__Wserialized_diagnostics" >&6; } 25462 if test x$tor_cv_cflags__Wserialized_diagnostics = xyes; then 25463 TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Wserialized-diagnostics" CFLAGS="$CFLAGS -Wserialized-diagnostics" 25464 else 25465 true 25466 fi 25467 25468 25469 25470 25471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wshadow" >&5 25472$as_echo_n "checking whether the compiler accepts -Wshadow... " >&6; } 25473if ${tor_cv_cflags__Wshadow+:} false; then : 25474 $as_echo_n "(cached) " >&6 25475else 25476 25477 tor_saved_CFLAGS="$CFLAGS" 25478 CFLAGS="$CFLAGS -pedantic -Werror -Wshadow" 25479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25480/* end confdefs.h. */ 25481 25482int 25483main () 25484{ 25485 25486 ; 25487 return 0; 25488} 25489_ACEOF 25490if ac_fn_c_try_compile "$LINENO"; then : 25491 tor_cv_cflags__Wshadow=yes 25492else 25493 tor_cv_cflags__Wshadow=no 25494fi 25495rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 25496 if test x != x; then 25497 25498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25499/* end confdefs.h. */ 25500 25501int 25502main () 25503{ 25504 25505 ; 25506 return 0; 25507} 25508_ACEOF 25509if ac_fn_c_try_link "$LINENO"; then : 25510 tor_can_link__Wshadow=yes 25511else 25512 tor_can_link__Wshadow=no 25513fi 25514rm -f core conftest.err conftest.$ac_objext \ 25515 conftest$ac_exeext conftest.$ac_ext 25516 25517 fi 25518 CFLAGS="$tor_saved_CFLAGS" 25519 25520fi 25521{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wshadow" >&5 25522$as_echo "$tor_cv_cflags__Wshadow" >&6; } 25523 if test x$tor_cv_cflags__Wshadow = xyes; then 25524 TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Wshadow" CFLAGS="$CFLAGS -Wshadow" 25525 else 25526 true 25527 fi 25528 25529 25530 25531 25532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wshift-count-negative" >&5 25533$as_echo_n "checking whether the compiler accepts -Wshift-count-negative... " >&6; } 25534if ${tor_cv_cflags__Wshift_count_negative+:} false; then : 25535 $as_echo_n "(cached) " >&6 25536else 25537 25538 tor_saved_CFLAGS="$CFLAGS" 25539 CFLAGS="$CFLAGS -pedantic -Werror -Wshift-count-negative" 25540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25541/* end confdefs.h. */ 25542 25543int 25544main () 25545{ 25546 25547 ; 25548 return 0; 25549} 25550_ACEOF 25551if ac_fn_c_try_compile "$LINENO"; then : 25552 tor_cv_cflags__Wshift_count_negative=yes 25553else 25554 tor_cv_cflags__Wshift_count_negative=no 25555fi 25556rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 25557 if test x != x; then 25558 25559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25560/* end confdefs.h. */ 25561 25562int 25563main () 25564{ 25565 25566 ; 25567 return 0; 25568} 25569_ACEOF 25570if ac_fn_c_try_link "$LINENO"; then : 25571 tor_can_link__Wshift_count_negative=yes 25572else 25573 tor_can_link__Wshift_count_negative=no 25574fi 25575rm -f core conftest.err conftest.$ac_objext \ 25576 conftest$ac_exeext conftest.$ac_ext 25577 25578 fi 25579 CFLAGS="$tor_saved_CFLAGS" 25580 25581fi 25582{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wshift_count_negative" >&5 25583$as_echo "$tor_cv_cflags__Wshift_count_negative" >&6; } 25584 if test x$tor_cv_cflags__Wshift_count_negative = xyes; then 25585 TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Wshift-count-negative" CFLAGS="$CFLAGS -Wshift-count-negative" 25586 else 25587 true 25588 fi 25589 25590 25591 25592 25593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wshift-count-overflow" >&5 25594$as_echo_n "checking whether the compiler accepts -Wshift-count-overflow... " >&6; } 25595if ${tor_cv_cflags__Wshift_count_overflow+:} false; then : 25596 $as_echo_n "(cached) " >&6 25597else 25598 25599 tor_saved_CFLAGS="$CFLAGS" 25600 CFLAGS="$CFLAGS -pedantic -Werror -Wshift-count-overflow" 25601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25602/* end confdefs.h. */ 25603 25604int 25605main () 25606{ 25607 25608 ; 25609 return 0; 25610} 25611_ACEOF 25612if ac_fn_c_try_compile "$LINENO"; then : 25613 tor_cv_cflags__Wshift_count_overflow=yes 25614else 25615 tor_cv_cflags__Wshift_count_overflow=no 25616fi 25617rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 25618 if test x != x; then 25619 25620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25621/* end confdefs.h. */ 25622 25623int 25624main () 25625{ 25626 25627 ; 25628 return 0; 25629} 25630_ACEOF 25631if ac_fn_c_try_link "$LINENO"; then : 25632 tor_can_link__Wshift_count_overflow=yes 25633else 25634 tor_can_link__Wshift_count_overflow=no 25635fi 25636rm -f core conftest.err conftest.$ac_objext \ 25637 conftest$ac_exeext conftest.$ac_ext 25638 25639 fi 25640 CFLAGS="$tor_saved_CFLAGS" 25641 25642fi 25643{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wshift_count_overflow" >&5 25644$as_echo "$tor_cv_cflags__Wshift_count_overflow" >&6; } 25645 if test x$tor_cv_cflags__Wshift_count_overflow = xyes; then 25646 TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Wshift-count-overflow" CFLAGS="$CFLAGS -Wshift-count-overflow" 25647 else 25648 true 25649 fi 25650 25651 25652 25653 25654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wshift-negative-value" >&5 25655$as_echo_n "checking whether the compiler accepts -Wshift-negative-value... " >&6; } 25656if ${tor_cv_cflags__Wshift_negative_value+:} false; then : 25657 $as_echo_n "(cached) " >&6 25658else 25659 25660 tor_saved_CFLAGS="$CFLAGS" 25661 CFLAGS="$CFLAGS -pedantic -Werror -Wshift-negative-value" 25662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25663/* end confdefs.h. */ 25664 25665int 25666main () 25667{ 25668 25669 ; 25670 return 0; 25671} 25672_ACEOF 25673if ac_fn_c_try_compile "$LINENO"; then : 25674 tor_cv_cflags__Wshift_negative_value=yes 25675else 25676 tor_cv_cflags__Wshift_negative_value=no 25677fi 25678rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 25679 if test x != x; then 25680 25681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25682/* end confdefs.h. */ 25683 25684int 25685main () 25686{ 25687 25688 ; 25689 return 0; 25690} 25691_ACEOF 25692if ac_fn_c_try_link "$LINENO"; then : 25693 tor_can_link__Wshift_negative_value=yes 25694else 25695 tor_can_link__Wshift_negative_value=no 25696fi 25697rm -f core conftest.err conftest.$ac_objext \ 25698 conftest$ac_exeext conftest.$ac_ext 25699 25700 fi 25701 CFLAGS="$tor_saved_CFLAGS" 25702 25703fi 25704{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wshift_negative_value" >&5 25705$as_echo "$tor_cv_cflags__Wshift_negative_value" >&6; } 25706 if test x$tor_cv_cflags__Wshift_negative_value = xyes; then 25707 TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Wshift-negative-value" CFLAGS="$CFLAGS -Wshift-negative-value" 25708 else 25709 true 25710 fi 25711 25712 25713 25714 25715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wshift-overflow=2" >&5 25716$as_echo_n "checking whether the compiler accepts -Wshift-overflow=2... " >&6; } 25717if ${tor_cv_cflags__Wshift_overflow_2+:} false; then : 25718 $as_echo_n "(cached) " >&6 25719else 25720 25721 tor_saved_CFLAGS="$CFLAGS" 25722 CFLAGS="$CFLAGS -pedantic -Werror -Wshift-overflow=2" 25723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25724/* end confdefs.h. */ 25725 25726int 25727main () 25728{ 25729 25730 ; 25731 return 0; 25732} 25733_ACEOF 25734if ac_fn_c_try_compile "$LINENO"; then : 25735 tor_cv_cflags__Wshift_overflow_2=yes 25736else 25737 tor_cv_cflags__Wshift_overflow_2=no 25738fi 25739rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 25740 if test x != x; then 25741 25742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25743/* end confdefs.h. */ 25744 25745int 25746main () 25747{ 25748 25749 ; 25750 return 0; 25751} 25752_ACEOF 25753if ac_fn_c_try_link "$LINENO"; then : 25754 tor_can_link__Wshift_overflow_2=yes 25755else 25756 tor_can_link__Wshift_overflow_2=no 25757fi 25758rm -f core conftest.err conftest.$ac_objext \ 25759 conftest$ac_exeext conftest.$ac_ext 25760 25761 fi 25762 CFLAGS="$tor_saved_CFLAGS" 25763 25764fi 25765{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wshift_overflow_2" >&5 25766$as_echo "$tor_cv_cflags__Wshift_overflow_2" >&6; } 25767 if test x$tor_cv_cflags__Wshift_overflow_2 = xyes; then 25768 TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Wshift-overflow=2" CFLAGS="$CFLAGS -Wshift-overflow=2" 25769 else 25770 true 25771 fi 25772 25773 25774 25775 25776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wshift-sign-overflow" >&5 25777$as_echo_n "checking whether the compiler accepts -Wshift-sign-overflow... " >&6; } 25778if ${tor_cv_cflags__Wshift_sign_overflow+:} false; then : 25779 $as_echo_n "(cached) " >&6 25780else 25781 25782 tor_saved_CFLAGS="$CFLAGS" 25783 CFLAGS="$CFLAGS -pedantic -Werror -Wshift-sign-overflow" 25784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25785/* end confdefs.h. */ 25786 25787int 25788main () 25789{ 25790 25791 ; 25792 return 0; 25793} 25794_ACEOF 25795if ac_fn_c_try_compile "$LINENO"; then : 25796 tor_cv_cflags__Wshift_sign_overflow=yes 25797else 25798 tor_cv_cflags__Wshift_sign_overflow=no 25799fi 25800rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 25801 if test x != x; then 25802 25803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25804/* end confdefs.h. */ 25805 25806int 25807main () 25808{ 25809 25810 ; 25811 return 0; 25812} 25813_ACEOF 25814if ac_fn_c_try_link "$LINENO"; then : 25815 tor_can_link__Wshift_sign_overflow=yes 25816else 25817 tor_can_link__Wshift_sign_overflow=no 25818fi 25819rm -f core conftest.err conftest.$ac_objext \ 25820 conftest$ac_exeext conftest.$ac_ext 25821 25822 fi 25823 CFLAGS="$tor_saved_CFLAGS" 25824 25825fi 25826{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wshift_sign_overflow" >&5 25827$as_echo "$tor_cv_cflags__Wshift_sign_overflow" >&6; } 25828 if test x$tor_cv_cflags__Wshift_sign_overflow = xyes; then 25829 TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Wshift-sign-overflow" CFLAGS="$CFLAGS -Wshift-sign-overflow" 25830 else 25831 true 25832 fi 25833 25834 25835 25836 25837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wshorten-64-to-32" >&5 25838$as_echo_n "checking whether the compiler accepts -Wshorten-64-to-32... " >&6; } 25839if ${tor_cv_cflags__Wshorten_64_to_32+:} false; then : 25840 $as_echo_n "(cached) " >&6 25841else 25842 25843 tor_saved_CFLAGS="$CFLAGS" 25844 CFLAGS="$CFLAGS -pedantic -Werror -Wshorten-64-to-32" 25845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25846/* end confdefs.h. */ 25847 25848int 25849main () 25850{ 25851 25852 ; 25853 return 0; 25854} 25855_ACEOF 25856if ac_fn_c_try_compile "$LINENO"; then : 25857 tor_cv_cflags__Wshorten_64_to_32=yes 25858else 25859 tor_cv_cflags__Wshorten_64_to_32=no 25860fi 25861rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 25862 if test x != x; then 25863 25864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25865/* end confdefs.h. */ 25866 25867int 25868main () 25869{ 25870 25871 ; 25872 return 0; 25873} 25874_ACEOF 25875if ac_fn_c_try_link "$LINENO"; then : 25876 tor_can_link__Wshorten_64_to_32=yes 25877else 25878 tor_can_link__Wshorten_64_to_32=no 25879fi 25880rm -f core conftest.err conftest.$ac_objext \ 25881 conftest$ac_exeext conftest.$ac_ext 25882 25883 fi 25884 CFLAGS="$tor_saved_CFLAGS" 25885 25886fi 25887{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wshorten_64_to_32" >&5 25888$as_echo "$tor_cv_cflags__Wshorten_64_to_32" >&6; } 25889 if test x$tor_cv_cflags__Wshorten_64_to_32 = xyes; then 25890 TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Wshorten-64-to-32" CFLAGS="$CFLAGS -Wshorten-64-to-32" 25891 else 25892 true 25893 fi 25894 25895 25896 25897 25898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wsizeof-array-argument" >&5 25899$as_echo_n "checking whether the compiler accepts -Wsizeof-array-argument... " >&6; } 25900if ${tor_cv_cflags__Wsizeof_array_argument+:} false; then : 25901 $as_echo_n "(cached) " >&6 25902else 25903 25904 tor_saved_CFLAGS="$CFLAGS" 25905 CFLAGS="$CFLAGS -pedantic -Werror -Wsizeof-array-argument" 25906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25907/* end confdefs.h. */ 25908 25909int 25910main () 25911{ 25912 25913 ; 25914 return 0; 25915} 25916_ACEOF 25917if ac_fn_c_try_compile "$LINENO"; then : 25918 tor_cv_cflags__Wsizeof_array_argument=yes 25919else 25920 tor_cv_cflags__Wsizeof_array_argument=no 25921fi 25922rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 25923 if test x != x; then 25924 25925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25926/* end confdefs.h. */ 25927 25928int 25929main () 25930{ 25931 25932 ; 25933 return 0; 25934} 25935_ACEOF 25936if ac_fn_c_try_link "$LINENO"; then : 25937 tor_can_link__Wsizeof_array_argument=yes 25938else 25939 tor_can_link__Wsizeof_array_argument=no 25940fi 25941rm -f core conftest.err conftest.$ac_objext \ 25942 conftest$ac_exeext conftest.$ac_ext 25943 25944 fi 25945 CFLAGS="$tor_saved_CFLAGS" 25946 25947fi 25948{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wsizeof_array_argument" >&5 25949$as_echo "$tor_cv_cflags__Wsizeof_array_argument" >&6; } 25950 if test x$tor_cv_cflags__Wsizeof_array_argument = xyes; then 25951 TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Wsizeof-array-argument" CFLAGS="$CFLAGS -Wsizeof-array-argument" 25952 else 25953 true 25954 fi 25955 25956 25957 25958 25959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wsource-uses-openmp" >&5 25960$as_echo_n "checking whether the compiler accepts -Wsource-uses-openmp... " >&6; } 25961if ${tor_cv_cflags__Wsource_uses_openmp+:} false; then : 25962 $as_echo_n "(cached) " >&6 25963else 25964 25965 tor_saved_CFLAGS="$CFLAGS" 25966 CFLAGS="$CFLAGS -pedantic -Werror -Wsource-uses-openmp" 25967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25968/* end confdefs.h. */ 25969 25970int 25971main () 25972{ 25973 25974 ; 25975 return 0; 25976} 25977_ACEOF 25978if ac_fn_c_try_compile "$LINENO"; then : 25979 tor_cv_cflags__Wsource_uses_openmp=yes 25980else 25981 tor_cv_cflags__Wsource_uses_openmp=no 25982fi 25983rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 25984 if test x != x; then 25985 25986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25987/* end confdefs.h. */ 25988 25989int 25990main () 25991{ 25992 25993 ; 25994 return 0; 25995} 25996_ACEOF 25997if ac_fn_c_try_link "$LINENO"; then : 25998 tor_can_link__Wsource_uses_openmp=yes 25999else 26000 tor_can_link__Wsource_uses_openmp=no 26001fi 26002rm -f core conftest.err conftest.$ac_objext \ 26003 conftest$ac_exeext conftest.$ac_ext 26004 26005 fi 26006 CFLAGS="$tor_saved_CFLAGS" 26007 26008fi 26009{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wsource_uses_openmp" >&5 26010$as_echo "$tor_cv_cflags__Wsource_uses_openmp" >&6; } 26011 if test x$tor_cv_cflags__Wsource_uses_openmp = xyes; then 26012 TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Wsource-uses-openmp" CFLAGS="$CFLAGS -Wsource-uses-openmp" 26013 else 26014 true 26015 fi 26016 26017 26018 26019 26020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wstatic-float-init" >&5 26021$as_echo_n "checking whether the compiler accepts -Wstatic-float-init... " >&6; } 26022if ${tor_cv_cflags__Wstatic_float_init+:} false; then : 26023 $as_echo_n "(cached) " >&6 26024else 26025 26026 tor_saved_CFLAGS="$CFLAGS" 26027 CFLAGS="$CFLAGS -pedantic -Werror -Wstatic-float-init" 26028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26029/* end confdefs.h. */ 26030 26031int 26032main () 26033{ 26034 26035 ; 26036 return 0; 26037} 26038_ACEOF 26039if ac_fn_c_try_compile "$LINENO"; then : 26040 tor_cv_cflags__Wstatic_float_init=yes 26041else 26042 tor_cv_cflags__Wstatic_float_init=no 26043fi 26044rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 26045 if test x != x; then 26046 26047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26048/* end confdefs.h. */ 26049 26050int 26051main () 26052{ 26053 26054 ; 26055 return 0; 26056} 26057_ACEOF 26058if ac_fn_c_try_link "$LINENO"; then : 26059 tor_can_link__Wstatic_float_init=yes 26060else 26061 tor_can_link__Wstatic_float_init=no 26062fi 26063rm -f core conftest.err conftest.$ac_objext \ 26064 conftest$ac_exeext conftest.$ac_ext 26065 26066 fi 26067 CFLAGS="$tor_saved_CFLAGS" 26068 26069fi 26070{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wstatic_float_init" >&5 26071$as_echo "$tor_cv_cflags__Wstatic_float_init" >&6; } 26072 if test x$tor_cv_cflags__Wstatic_float_init = xyes; then 26073 TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Wstatic-float-init" CFLAGS="$CFLAGS -Wstatic-float-init" 26074 else 26075 true 26076 fi 26077 26078 26079 26080 26081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wstatic-in-inline" >&5 26082$as_echo_n "checking whether the compiler accepts -Wstatic-in-inline... " >&6; } 26083if ${tor_cv_cflags__Wstatic_in_inline+:} false; then : 26084 $as_echo_n "(cached) " >&6 26085else 26086 26087 tor_saved_CFLAGS="$CFLAGS" 26088 CFLAGS="$CFLAGS -pedantic -Werror -Wstatic-in-inline" 26089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26090/* end confdefs.h. */ 26091 26092int 26093main () 26094{ 26095 26096 ; 26097 return 0; 26098} 26099_ACEOF 26100if ac_fn_c_try_compile "$LINENO"; then : 26101 tor_cv_cflags__Wstatic_in_inline=yes 26102else 26103 tor_cv_cflags__Wstatic_in_inline=no 26104fi 26105rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 26106 if test x != x; then 26107 26108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26109/* end confdefs.h. */ 26110 26111int 26112main () 26113{ 26114 26115 ; 26116 return 0; 26117} 26118_ACEOF 26119if ac_fn_c_try_link "$LINENO"; then : 26120 tor_can_link__Wstatic_in_inline=yes 26121else 26122 tor_can_link__Wstatic_in_inline=no 26123fi 26124rm -f core conftest.err conftest.$ac_objext \ 26125 conftest$ac_exeext conftest.$ac_ext 26126 26127 fi 26128 CFLAGS="$tor_saved_CFLAGS" 26129 26130fi 26131{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wstatic_in_inline" >&5 26132$as_echo "$tor_cv_cflags__Wstatic_in_inline" >&6; } 26133 if test x$tor_cv_cflags__Wstatic_in_inline = xyes; then 26134 TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Wstatic-in-inline" CFLAGS="$CFLAGS -Wstatic-in-inline" 26135 else 26136 true 26137 fi 26138 26139 26140 26141 26142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wstatic-local-in-inline" >&5 26143$as_echo_n "checking whether the compiler accepts -Wstatic-local-in-inline... " >&6; } 26144if ${tor_cv_cflags__Wstatic_local_in_inline+:} false; then : 26145 $as_echo_n "(cached) " >&6 26146else 26147 26148 tor_saved_CFLAGS="$CFLAGS" 26149 CFLAGS="$CFLAGS -pedantic -Werror -Wstatic-local-in-inline" 26150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26151/* end confdefs.h. */ 26152 26153int 26154main () 26155{ 26156 26157 ; 26158 return 0; 26159} 26160_ACEOF 26161if ac_fn_c_try_compile "$LINENO"; then : 26162 tor_cv_cflags__Wstatic_local_in_inline=yes 26163else 26164 tor_cv_cflags__Wstatic_local_in_inline=no 26165fi 26166rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 26167 if test x != x; then 26168 26169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26170/* end confdefs.h. */ 26171 26172int 26173main () 26174{ 26175 26176 ; 26177 return 0; 26178} 26179_ACEOF 26180if ac_fn_c_try_link "$LINENO"; then : 26181 tor_can_link__Wstatic_local_in_inline=yes 26182else 26183 tor_can_link__Wstatic_local_in_inline=no 26184fi 26185rm -f core conftest.err conftest.$ac_objext \ 26186 conftest$ac_exeext conftest.$ac_ext 26187 26188 fi 26189 CFLAGS="$tor_saved_CFLAGS" 26190 26191fi 26192{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wstatic_local_in_inline" >&5 26193$as_echo "$tor_cv_cflags__Wstatic_local_in_inline" >&6; } 26194 if test x$tor_cv_cflags__Wstatic_local_in_inline = xyes; then 26195 TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Wstatic-local-in-inline" CFLAGS="$CFLAGS -Wstatic-local-in-inline" 26196 else 26197 true 26198 fi 26199 26200 26201 26202 26203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wstrict-overflow=1" >&5 26204$as_echo_n "checking whether the compiler accepts -Wstrict-overflow=1... " >&6; } 26205if ${tor_cv_cflags__Wstrict_overflow_1+:} false; then : 26206 $as_echo_n "(cached) " >&6 26207else 26208 26209 tor_saved_CFLAGS="$CFLAGS" 26210 CFLAGS="$CFLAGS -pedantic -Werror -Wstrict-overflow=1" 26211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26212/* end confdefs.h. */ 26213 26214int 26215main () 26216{ 26217 26218 ; 26219 return 0; 26220} 26221_ACEOF 26222if ac_fn_c_try_compile "$LINENO"; then : 26223 tor_cv_cflags__Wstrict_overflow_1=yes 26224else 26225 tor_cv_cflags__Wstrict_overflow_1=no 26226fi 26227rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 26228 if test x != x; then 26229 26230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26231/* end confdefs.h. */ 26232 26233int 26234main () 26235{ 26236 26237 ; 26238 return 0; 26239} 26240_ACEOF 26241if ac_fn_c_try_link "$LINENO"; then : 26242 tor_can_link__Wstrict_overflow_1=yes 26243else 26244 tor_can_link__Wstrict_overflow_1=no 26245fi 26246rm -f core conftest.err conftest.$ac_objext \ 26247 conftest$ac_exeext conftest.$ac_ext 26248 26249 fi 26250 CFLAGS="$tor_saved_CFLAGS" 26251 26252fi 26253{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wstrict_overflow_1" >&5 26254$as_echo "$tor_cv_cflags__Wstrict_overflow_1" >&6; } 26255 if test x$tor_cv_cflags__Wstrict_overflow_1 = xyes; then 26256 TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Wstrict-overflow=1" CFLAGS="$CFLAGS -Wstrict-overflow=1" 26257 else 26258 true 26259 fi 26260 26261 26262 26263 26264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wstring-compare" >&5 26265$as_echo_n "checking whether the compiler accepts -Wstring-compare... " >&6; } 26266if ${tor_cv_cflags__Wstring_compare+:} false; then : 26267 $as_echo_n "(cached) " >&6 26268else 26269 26270 tor_saved_CFLAGS="$CFLAGS" 26271 CFLAGS="$CFLAGS -pedantic -Werror -Wstring-compare" 26272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26273/* end confdefs.h. */ 26274 26275int 26276main () 26277{ 26278 26279 ; 26280 return 0; 26281} 26282_ACEOF 26283if ac_fn_c_try_compile "$LINENO"; then : 26284 tor_cv_cflags__Wstring_compare=yes 26285else 26286 tor_cv_cflags__Wstring_compare=no 26287fi 26288rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 26289 if test x != x; then 26290 26291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26292/* end confdefs.h. */ 26293 26294int 26295main () 26296{ 26297 26298 ; 26299 return 0; 26300} 26301_ACEOF 26302if ac_fn_c_try_link "$LINENO"; then : 26303 tor_can_link__Wstring_compare=yes 26304else 26305 tor_can_link__Wstring_compare=no 26306fi 26307rm -f core conftest.err conftest.$ac_objext \ 26308 conftest$ac_exeext conftest.$ac_ext 26309 26310 fi 26311 CFLAGS="$tor_saved_CFLAGS" 26312 26313fi 26314{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wstring_compare" >&5 26315$as_echo "$tor_cv_cflags__Wstring_compare" >&6; } 26316 if test x$tor_cv_cflags__Wstring_compare = xyes; then 26317 TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Wstring-compare" CFLAGS="$CFLAGS -Wstring-compare" 26318 else 26319 true 26320 fi 26321 26322 26323 26324 26325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wstring-conversion" >&5 26326$as_echo_n "checking whether the compiler accepts -Wstring-conversion... " >&6; } 26327if ${tor_cv_cflags__Wstring_conversion+:} false; then : 26328 $as_echo_n "(cached) " >&6 26329else 26330 26331 tor_saved_CFLAGS="$CFLAGS" 26332 CFLAGS="$CFLAGS -pedantic -Werror -Wstring-conversion" 26333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26334/* end confdefs.h. */ 26335 26336int 26337main () 26338{ 26339 26340 ; 26341 return 0; 26342} 26343_ACEOF 26344if ac_fn_c_try_compile "$LINENO"; then : 26345 tor_cv_cflags__Wstring_conversion=yes 26346else 26347 tor_cv_cflags__Wstring_conversion=no 26348fi 26349rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 26350 if test x != x; then 26351 26352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26353/* end confdefs.h. */ 26354 26355int 26356main () 26357{ 26358 26359 ; 26360 return 0; 26361} 26362_ACEOF 26363if ac_fn_c_try_link "$LINENO"; then : 26364 tor_can_link__Wstring_conversion=yes 26365else 26366 tor_can_link__Wstring_conversion=no 26367fi 26368rm -f core conftest.err conftest.$ac_objext \ 26369 conftest$ac_exeext conftest.$ac_ext 26370 26371 fi 26372 CFLAGS="$tor_saved_CFLAGS" 26373 26374fi 26375{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wstring_conversion" >&5 26376$as_echo "$tor_cv_cflags__Wstring_conversion" >&6; } 26377 if test x$tor_cv_cflags__Wstring_conversion = xyes; then 26378 TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Wstring-conversion" CFLAGS="$CFLAGS -Wstring-conversion" 26379 else 26380 true 26381 fi 26382 26383 26384 26385 26386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wstrlcpy-strlcat-size" >&5 26387$as_echo_n "checking whether the compiler accepts -Wstrlcpy-strlcat-size... " >&6; } 26388if ${tor_cv_cflags__Wstrlcpy_strlcat_size+:} false; then : 26389 $as_echo_n "(cached) " >&6 26390else 26391 26392 tor_saved_CFLAGS="$CFLAGS" 26393 CFLAGS="$CFLAGS -pedantic -Werror -Wstrlcpy-strlcat-size" 26394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26395/* end confdefs.h. */ 26396 26397int 26398main () 26399{ 26400 26401 ; 26402 return 0; 26403} 26404_ACEOF 26405if ac_fn_c_try_compile "$LINENO"; then : 26406 tor_cv_cflags__Wstrlcpy_strlcat_size=yes 26407else 26408 tor_cv_cflags__Wstrlcpy_strlcat_size=no 26409fi 26410rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 26411 if test x != x; then 26412 26413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26414/* end confdefs.h. */ 26415 26416int 26417main () 26418{ 26419 26420 ; 26421 return 0; 26422} 26423_ACEOF 26424if ac_fn_c_try_link "$LINENO"; then : 26425 tor_can_link__Wstrlcpy_strlcat_size=yes 26426else 26427 tor_can_link__Wstrlcpy_strlcat_size=no 26428fi 26429rm -f core conftest.err conftest.$ac_objext \ 26430 conftest$ac_exeext conftest.$ac_ext 26431 26432 fi 26433 CFLAGS="$tor_saved_CFLAGS" 26434 26435fi 26436{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wstrlcpy_strlcat_size" >&5 26437$as_echo "$tor_cv_cflags__Wstrlcpy_strlcat_size" >&6; } 26438 if test x$tor_cv_cflags__Wstrlcpy_strlcat_size = xyes; then 26439 TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Wstrlcpy-strlcat-size" CFLAGS="$CFLAGS -Wstrlcpy-strlcat-size" 26440 else 26441 true 26442 fi 26443 26444 26445 26446 26447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wstrncat-size" >&5 26448$as_echo_n "checking whether the compiler accepts -Wstrncat-size... " >&6; } 26449if ${tor_cv_cflags__Wstrncat_size+:} false; then : 26450 $as_echo_n "(cached) " >&6 26451else 26452 26453 tor_saved_CFLAGS="$CFLAGS" 26454 CFLAGS="$CFLAGS -pedantic -Werror -Wstrncat-size" 26455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26456/* end confdefs.h. */ 26457 26458int 26459main () 26460{ 26461 26462 ; 26463 return 0; 26464} 26465_ACEOF 26466if ac_fn_c_try_compile "$LINENO"; then : 26467 tor_cv_cflags__Wstrncat_size=yes 26468else 26469 tor_cv_cflags__Wstrncat_size=no 26470fi 26471rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 26472 if test x != x; then 26473 26474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26475/* end confdefs.h. */ 26476 26477int 26478main () 26479{ 26480 26481 ; 26482 return 0; 26483} 26484_ACEOF 26485if ac_fn_c_try_link "$LINENO"; then : 26486 tor_can_link__Wstrncat_size=yes 26487else 26488 tor_can_link__Wstrncat_size=no 26489fi 26490rm -f core conftest.err conftest.$ac_objext \ 26491 conftest$ac_exeext conftest.$ac_ext 26492 26493 fi 26494 CFLAGS="$tor_saved_CFLAGS" 26495 26496fi 26497{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wstrncat_size" >&5 26498$as_echo "$tor_cv_cflags__Wstrncat_size" >&6; } 26499 if test x$tor_cv_cflags__Wstrncat_size = xyes; then 26500 TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Wstrncat-size" CFLAGS="$CFLAGS -Wstrncat-size" 26501 else 26502 true 26503 fi 26504 26505 26506 26507 26508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wsuggest-attribute=format" >&5 26509$as_echo_n "checking whether the compiler accepts -Wsuggest-attribute=format... " >&6; } 26510if ${tor_cv_cflags__Wsuggest_attribute_format+:} false; then : 26511 $as_echo_n "(cached) " >&6 26512else 26513 26514 tor_saved_CFLAGS="$CFLAGS" 26515 CFLAGS="$CFLAGS -pedantic -Werror -Wsuggest-attribute=format" 26516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26517/* end confdefs.h. */ 26518 26519int 26520main () 26521{ 26522 26523 ; 26524 return 0; 26525} 26526_ACEOF 26527if ac_fn_c_try_compile "$LINENO"; then : 26528 tor_cv_cflags__Wsuggest_attribute_format=yes 26529else 26530 tor_cv_cflags__Wsuggest_attribute_format=no 26531fi 26532rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 26533 if test x != x; then 26534 26535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26536/* end confdefs.h. */ 26537 26538int 26539main () 26540{ 26541 26542 ; 26543 return 0; 26544} 26545_ACEOF 26546if ac_fn_c_try_link "$LINENO"; then : 26547 tor_can_link__Wsuggest_attribute_format=yes 26548else 26549 tor_can_link__Wsuggest_attribute_format=no 26550fi 26551rm -f core conftest.err conftest.$ac_objext \ 26552 conftest$ac_exeext conftest.$ac_ext 26553 26554 fi 26555 CFLAGS="$tor_saved_CFLAGS" 26556 26557fi 26558{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wsuggest_attribute_format" >&5 26559$as_echo "$tor_cv_cflags__Wsuggest_attribute_format" >&6; } 26560 if test x$tor_cv_cflags__Wsuggest_attribute_format = xyes; then 26561 TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Wsuggest-attribute=format" CFLAGS="$CFLAGS -Wsuggest-attribute=format" 26562 else 26563 true 26564 fi 26565 26566 26567 26568 26569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wsuggest-attribute=noreturn" >&5 26570$as_echo_n "checking whether the compiler accepts -Wsuggest-attribute=noreturn... " >&6; } 26571if ${tor_cv_cflags__Wsuggest_attribute_noreturn+:} false; then : 26572 $as_echo_n "(cached) " >&6 26573else 26574 26575 tor_saved_CFLAGS="$CFLAGS" 26576 CFLAGS="$CFLAGS -pedantic -Werror -Wsuggest-attribute=noreturn" 26577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26578/* end confdefs.h. */ 26579 26580int 26581main () 26582{ 26583 26584 ; 26585 return 0; 26586} 26587_ACEOF 26588if ac_fn_c_try_compile "$LINENO"; then : 26589 tor_cv_cflags__Wsuggest_attribute_noreturn=yes 26590else 26591 tor_cv_cflags__Wsuggest_attribute_noreturn=no 26592fi 26593rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 26594 if test x != x; then 26595 26596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26597/* end confdefs.h. */ 26598 26599int 26600main () 26601{ 26602 26603 ; 26604 return 0; 26605} 26606_ACEOF 26607if ac_fn_c_try_link "$LINENO"; then : 26608 tor_can_link__Wsuggest_attribute_noreturn=yes 26609else 26610 tor_can_link__Wsuggest_attribute_noreturn=no 26611fi 26612rm -f core conftest.err conftest.$ac_objext \ 26613 conftest$ac_exeext conftest.$ac_ext 26614 26615 fi 26616 CFLAGS="$tor_saved_CFLAGS" 26617 26618fi 26619{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wsuggest_attribute_noreturn" >&5 26620$as_echo "$tor_cv_cflags__Wsuggest_attribute_noreturn" >&6; } 26621 if test x$tor_cv_cflags__Wsuggest_attribute_noreturn = xyes; then 26622 TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Wsuggest-attribute=noreturn" CFLAGS="$CFLAGS -Wsuggest-attribute=noreturn" 26623 else 26624 true 26625 fi 26626 26627 26628 26629 26630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wsuper-class-method-mismatch" >&5 26631$as_echo_n "checking whether the compiler accepts -Wsuper-class-method-mismatch... " >&6; } 26632if ${tor_cv_cflags__Wsuper_class_method_mismatch+:} false; then : 26633 $as_echo_n "(cached) " >&6 26634else 26635 26636 tor_saved_CFLAGS="$CFLAGS" 26637 CFLAGS="$CFLAGS -pedantic -Werror -Wsuper-class-method-mismatch" 26638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26639/* end confdefs.h. */ 26640 26641int 26642main () 26643{ 26644 26645 ; 26646 return 0; 26647} 26648_ACEOF 26649if ac_fn_c_try_compile "$LINENO"; then : 26650 tor_cv_cflags__Wsuper_class_method_mismatch=yes 26651else 26652 tor_cv_cflags__Wsuper_class_method_mismatch=no 26653fi 26654rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 26655 if test x != x; then 26656 26657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26658/* end confdefs.h. */ 26659 26660int 26661main () 26662{ 26663 26664 ; 26665 return 0; 26666} 26667_ACEOF 26668if ac_fn_c_try_link "$LINENO"; then : 26669 tor_can_link__Wsuper_class_method_mismatch=yes 26670else 26671 tor_can_link__Wsuper_class_method_mismatch=no 26672fi 26673rm -f core conftest.err conftest.$ac_objext \ 26674 conftest$ac_exeext conftest.$ac_ext 26675 26676 fi 26677 CFLAGS="$tor_saved_CFLAGS" 26678 26679fi 26680{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wsuper_class_method_mismatch" >&5 26681$as_echo "$tor_cv_cflags__Wsuper_class_method_mismatch" >&6; } 26682 if test x$tor_cv_cflags__Wsuper_class_method_mismatch = xyes; then 26683 TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Wsuper-class-method-mismatch" CFLAGS="$CFLAGS -Wsuper-class-method-mismatch" 26684 else 26685 true 26686 fi 26687 26688 26689 26690 26691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wswitch-bool" >&5 26692$as_echo_n "checking whether the compiler accepts -Wswitch-bool... " >&6; } 26693if ${tor_cv_cflags__Wswitch_bool+:} false; then : 26694 $as_echo_n "(cached) " >&6 26695else 26696 26697 tor_saved_CFLAGS="$CFLAGS" 26698 CFLAGS="$CFLAGS -pedantic -Werror -Wswitch-bool" 26699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26700/* end confdefs.h. */ 26701 26702int 26703main () 26704{ 26705 26706 ; 26707 return 0; 26708} 26709_ACEOF 26710if ac_fn_c_try_compile "$LINENO"; then : 26711 tor_cv_cflags__Wswitch_bool=yes 26712else 26713 tor_cv_cflags__Wswitch_bool=no 26714fi 26715rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 26716 if test x != x; then 26717 26718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26719/* end confdefs.h. */ 26720 26721int 26722main () 26723{ 26724 26725 ; 26726 return 0; 26727} 26728_ACEOF 26729if ac_fn_c_try_link "$LINENO"; then : 26730 tor_can_link__Wswitch_bool=yes 26731else 26732 tor_can_link__Wswitch_bool=no 26733fi 26734rm -f core conftest.err conftest.$ac_objext \ 26735 conftest$ac_exeext conftest.$ac_ext 26736 26737 fi 26738 CFLAGS="$tor_saved_CFLAGS" 26739 26740fi 26741{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wswitch_bool" >&5 26742$as_echo "$tor_cv_cflags__Wswitch_bool" >&6; } 26743 if test x$tor_cv_cflags__Wswitch_bool = xyes; then 26744 TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Wswitch-bool" CFLAGS="$CFLAGS -Wswitch-bool" 26745 else 26746 true 26747 fi 26748 26749 26750 26751 26752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wsync-nand" >&5 26753$as_echo_n "checking whether the compiler accepts -Wsync-nand... " >&6; } 26754if ${tor_cv_cflags__Wsync_nand+:} false; then : 26755 $as_echo_n "(cached) " >&6 26756else 26757 26758 tor_saved_CFLAGS="$CFLAGS" 26759 CFLAGS="$CFLAGS -pedantic -Werror -Wsync-nand" 26760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26761/* end confdefs.h. */ 26762 26763int 26764main () 26765{ 26766 26767 ; 26768 return 0; 26769} 26770_ACEOF 26771if ac_fn_c_try_compile "$LINENO"; then : 26772 tor_cv_cflags__Wsync_nand=yes 26773else 26774 tor_cv_cflags__Wsync_nand=no 26775fi 26776rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 26777 if test x != x; then 26778 26779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26780/* end confdefs.h. */ 26781 26782int 26783main () 26784{ 26785 26786 ; 26787 return 0; 26788} 26789_ACEOF 26790if ac_fn_c_try_link "$LINENO"; then : 26791 tor_can_link__Wsync_nand=yes 26792else 26793 tor_can_link__Wsync_nand=no 26794fi 26795rm -f core conftest.err conftest.$ac_objext \ 26796 conftest$ac_exeext conftest.$ac_ext 26797 26798 fi 26799 CFLAGS="$tor_saved_CFLAGS" 26800 26801fi 26802{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wsync_nand" >&5 26803$as_echo "$tor_cv_cflags__Wsync_nand" >&6; } 26804 if test x$tor_cv_cflags__Wsync_nand = xyes; then 26805 TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Wsync-nand" CFLAGS="$CFLAGS -Wsync-nand" 26806 else 26807 true 26808 fi 26809 26810 26811 26812 26813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wtautological-constant-out-of-range-compare" >&5 26814$as_echo_n "checking whether the compiler accepts -Wtautological-constant-out-of-range-compare... " >&6; } 26815if ${tor_cv_cflags__Wtautological_constant_out_of_range_compare+:} false; then : 26816 $as_echo_n "(cached) " >&6 26817else 26818 26819 tor_saved_CFLAGS="$CFLAGS" 26820 CFLAGS="$CFLAGS -pedantic -Werror -Wtautological-constant-out-of-range-compare" 26821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26822/* end confdefs.h. */ 26823 26824int 26825main () 26826{ 26827 26828 ; 26829 return 0; 26830} 26831_ACEOF 26832if ac_fn_c_try_compile "$LINENO"; then : 26833 tor_cv_cflags__Wtautological_constant_out_of_range_compare=yes 26834else 26835 tor_cv_cflags__Wtautological_constant_out_of_range_compare=no 26836fi 26837rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 26838 if test x != x; then 26839 26840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26841/* end confdefs.h. */ 26842 26843int 26844main () 26845{ 26846 26847 ; 26848 return 0; 26849} 26850_ACEOF 26851if ac_fn_c_try_link "$LINENO"; then : 26852 tor_can_link__Wtautological_constant_out_of_range_compare=yes 26853else 26854 tor_can_link__Wtautological_constant_out_of_range_compare=no 26855fi 26856rm -f core conftest.err conftest.$ac_objext \ 26857 conftest$ac_exeext conftest.$ac_ext 26858 26859 fi 26860 CFLAGS="$tor_saved_CFLAGS" 26861 26862fi 26863{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wtautological_constant_out_of_range_compare" >&5 26864$as_echo "$tor_cv_cflags__Wtautological_constant_out_of_range_compare" >&6; } 26865 if test x$tor_cv_cflags__Wtautological_constant_out_of_range_compare = xyes; then 26866 TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Wtautological-constant-out-of-range-compare" CFLAGS="$CFLAGS -Wtautological-constant-out-of-range-compare" 26867 else 26868 true 26869 fi 26870 26871 26872 26873 26874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wtentative-definition-incomplete-type" >&5 26875$as_echo_n "checking whether the compiler accepts -Wtentative-definition-incomplete-type... " >&6; } 26876if ${tor_cv_cflags__Wtentative_definition_incomplete_type+:} false; then : 26877 $as_echo_n "(cached) " >&6 26878else 26879 26880 tor_saved_CFLAGS="$CFLAGS" 26881 CFLAGS="$CFLAGS -pedantic -Werror -Wtentative-definition-incomplete-type" 26882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26883/* end confdefs.h. */ 26884 26885int 26886main () 26887{ 26888 26889 ; 26890 return 0; 26891} 26892_ACEOF 26893if ac_fn_c_try_compile "$LINENO"; then : 26894 tor_cv_cflags__Wtentative_definition_incomplete_type=yes 26895else 26896 tor_cv_cflags__Wtentative_definition_incomplete_type=no 26897fi 26898rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 26899 if test x != x; then 26900 26901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26902/* end confdefs.h. */ 26903 26904int 26905main () 26906{ 26907 26908 ; 26909 return 0; 26910} 26911_ACEOF 26912if ac_fn_c_try_link "$LINENO"; then : 26913 tor_can_link__Wtentative_definition_incomplete_type=yes 26914else 26915 tor_can_link__Wtentative_definition_incomplete_type=no 26916fi 26917rm -f core conftest.err conftest.$ac_objext \ 26918 conftest$ac_exeext conftest.$ac_ext 26919 26920 fi 26921 CFLAGS="$tor_saved_CFLAGS" 26922 26923fi 26924{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wtentative_definition_incomplete_type" >&5 26925$as_echo "$tor_cv_cflags__Wtentative_definition_incomplete_type" >&6; } 26926 if test x$tor_cv_cflags__Wtentative_definition_incomplete_type = xyes; then 26927 TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Wtentative-definition-incomplete-type" CFLAGS="$CFLAGS -Wtentative-definition-incomplete-type" 26928 else 26929 true 26930 fi 26931 26932 26933 26934 26935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wtrampolines" >&5 26936$as_echo_n "checking whether the compiler accepts -Wtrampolines... " >&6; } 26937if ${tor_cv_cflags__Wtrampolines+:} false; then : 26938 $as_echo_n "(cached) " >&6 26939else 26940 26941 tor_saved_CFLAGS="$CFLAGS" 26942 CFLAGS="$CFLAGS -pedantic -Werror -Wtrampolines" 26943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26944/* end confdefs.h. */ 26945 26946int 26947main () 26948{ 26949 26950 ; 26951 return 0; 26952} 26953_ACEOF 26954if ac_fn_c_try_compile "$LINENO"; then : 26955 tor_cv_cflags__Wtrampolines=yes 26956else 26957 tor_cv_cflags__Wtrampolines=no 26958fi 26959rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 26960 if test x != x; then 26961 26962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26963/* end confdefs.h. */ 26964 26965int 26966main () 26967{ 26968 26969 ; 26970 return 0; 26971} 26972_ACEOF 26973if ac_fn_c_try_link "$LINENO"; then : 26974 tor_can_link__Wtrampolines=yes 26975else 26976 tor_can_link__Wtrampolines=no 26977fi 26978rm -f core conftest.err conftest.$ac_objext \ 26979 conftest$ac_exeext conftest.$ac_ext 26980 26981 fi 26982 CFLAGS="$tor_saved_CFLAGS" 26983 26984fi 26985{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wtrampolines" >&5 26986$as_echo "$tor_cv_cflags__Wtrampolines" >&6; } 26987 if test x$tor_cv_cflags__Wtrampolines = xyes; then 26988 TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Wtrampolines" CFLAGS="$CFLAGS -Wtrampolines" 26989 else 26990 true 26991 fi 26992 26993 26994 26995 26996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wtype-safety" >&5 26997$as_echo_n "checking whether the compiler accepts -Wtype-safety... " >&6; } 26998if ${tor_cv_cflags__Wtype_safety+:} false; then : 26999 $as_echo_n "(cached) " >&6 27000else 27001 27002 tor_saved_CFLAGS="$CFLAGS" 27003 CFLAGS="$CFLAGS -pedantic -Werror -Wtype-safety" 27004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27005/* end confdefs.h. */ 27006 27007int 27008main () 27009{ 27010 27011 ; 27012 return 0; 27013} 27014_ACEOF 27015if ac_fn_c_try_compile "$LINENO"; then : 27016 tor_cv_cflags__Wtype_safety=yes 27017else 27018 tor_cv_cflags__Wtype_safety=no 27019fi 27020rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 27021 if test x != x; then 27022 27023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27024/* end confdefs.h. */ 27025 27026int 27027main () 27028{ 27029 27030 ; 27031 return 0; 27032} 27033_ACEOF 27034if ac_fn_c_try_link "$LINENO"; then : 27035 tor_can_link__Wtype_safety=yes 27036else 27037 tor_can_link__Wtype_safety=no 27038fi 27039rm -f core conftest.err conftest.$ac_objext \ 27040 conftest$ac_exeext conftest.$ac_ext 27041 27042 fi 27043 CFLAGS="$tor_saved_CFLAGS" 27044 27045fi 27046{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wtype_safety" >&5 27047$as_echo "$tor_cv_cflags__Wtype_safety" >&6; } 27048 if test x$tor_cv_cflags__Wtype_safety = xyes; then 27049 TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Wtype-safety" CFLAGS="$CFLAGS -Wtype-safety" 27050 else 27051 true 27052 fi 27053 27054 27055 27056 27057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wtypedef-redefinition" >&5 27058$as_echo_n "checking whether the compiler accepts -Wtypedef-redefinition... " >&6; } 27059if ${tor_cv_cflags__Wtypedef_redefinition+:} false; then : 27060 $as_echo_n "(cached) " >&6 27061else 27062 27063 tor_saved_CFLAGS="$CFLAGS" 27064 CFLAGS="$CFLAGS -pedantic -Werror -Wtypedef-redefinition" 27065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27066/* end confdefs.h. */ 27067 27068int 27069main () 27070{ 27071 27072 ; 27073 return 0; 27074} 27075_ACEOF 27076if ac_fn_c_try_compile "$LINENO"; then : 27077 tor_cv_cflags__Wtypedef_redefinition=yes 27078else 27079 tor_cv_cflags__Wtypedef_redefinition=no 27080fi 27081rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 27082 if test x != x; then 27083 27084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27085/* end confdefs.h. */ 27086 27087int 27088main () 27089{ 27090 27091 ; 27092 return 0; 27093} 27094_ACEOF 27095if ac_fn_c_try_link "$LINENO"; then : 27096 tor_can_link__Wtypedef_redefinition=yes 27097else 27098 tor_can_link__Wtypedef_redefinition=no 27099fi 27100rm -f core conftest.err conftest.$ac_objext \ 27101 conftest$ac_exeext conftest.$ac_ext 27102 27103 fi 27104 CFLAGS="$tor_saved_CFLAGS" 27105 27106fi 27107{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wtypedef_redefinition" >&5 27108$as_echo "$tor_cv_cflags__Wtypedef_redefinition" >&6; } 27109 if test x$tor_cv_cflags__Wtypedef_redefinition = xyes; then 27110 TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Wtypedef-redefinition" CFLAGS="$CFLAGS -Wtypedef-redefinition" 27111 else 27112 true 27113 fi 27114 27115 27116 27117 27118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wtypename-missing" >&5 27119$as_echo_n "checking whether the compiler accepts -Wtypename-missing... " >&6; } 27120if ${tor_cv_cflags__Wtypename_missing+:} false; then : 27121 $as_echo_n "(cached) " >&6 27122else 27123 27124 tor_saved_CFLAGS="$CFLAGS" 27125 CFLAGS="$CFLAGS -pedantic -Werror -Wtypename-missing" 27126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27127/* end confdefs.h. */ 27128 27129int 27130main () 27131{ 27132 27133 ; 27134 return 0; 27135} 27136_ACEOF 27137if ac_fn_c_try_compile "$LINENO"; then : 27138 tor_cv_cflags__Wtypename_missing=yes 27139else 27140 tor_cv_cflags__Wtypename_missing=no 27141fi 27142rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 27143 if test x != x; then 27144 27145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27146/* end confdefs.h. */ 27147 27148int 27149main () 27150{ 27151 27152 ; 27153 return 0; 27154} 27155_ACEOF 27156if ac_fn_c_try_link "$LINENO"; then : 27157 tor_can_link__Wtypename_missing=yes 27158else 27159 tor_can_link__Wtypename_missing=no 27160fi 27161rm -f core conftest.err conftest.$ac_objext \ 27162 conftest$ac_exeext conftest.$ac_ext 27163 27164 fi 27165 CFLAGS="$tor_saved_CFLAGS" 27166 27167fi 27168{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wtypename_missing" >&5 27169$as_echo "$tor_cv_cflags__Wtypename_missing" >&6; } 27170 if test x$tor_cv_cflags__Wtypename_missing = xyes; then 27171 TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Wtypename-missing" CFLAGS="$CFLAGS -Wtypename-missing" 27172 else 27173 true 27174 fi 27175 27176 27177 27178 27179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wundefined-inline" >&5 27180$as_echo_n "checking whether the compiler accepts -Wundefined-inline... " >&6; } 27181if ${tor_cv_cflags__Wundefined_inline+:} false; then : 27182 $as_echo_n "(cached) " >&6 27183else 27184 27185 tor_saved_CFLAGS="$CFLAGS" 27186 CFLAGS="$CFLAGS -pedantic -Werror -Wundefined-inline" 27187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27188/* end confdefs.h. */ 27189 27190int 27191main () 27192{ 27193 27194 ; 27195 return 0; 27196} 27197_ACEOF 27198if ac_fn_c_try_compile "$LINENO"; then : 27199 tor_cv_cflags__Wundefined_inline=yes 27200else 27201 tor_cv_cflags__Wundefined_inline=no 27202fi 27203rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 27204 if test x != x; then 27205 27206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27207/* end confdefs.h. */ 27208 27209int 27210main () 27211{ 27212 27213 ; 27214 return 0; 27215} 27216_ACEOF 27217if ac_fn_c_try_link "$LINENO"; then : 27218 tor_can_link__Wundefined_inline=yes 27219else 27220 tor_can_link__Wundefined_inline=no 27221fi 27222rm -f core conftest.err conftest.$ac_objext \ 27223 conftest$ac_exeext conftest.$ac_ext 27224 27225 fi 27226 CFLAGS="$tor_saved_CFLAGS" 27227 27228fi 27229{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wundefined_inline" >&5 27230$as_echo "$tor_cv_cflags__Wundefined_inline" >&6; } 27231 if test x$tor_cv_cflags__Wundefined_inline = xyes; then 27232 TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Wundefined-inline" CFLAGS="$CFLAGS -Wundefined-inline" 27233 else 27234 true 27235 fi 27236 27237 27238 27239 27240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wundefined-internal" >&5 27241$as_echo_n "checking whether the compiler accepts -Wundefined-internal... " >&6; } 27242if ${tor_cv_cflags__Wundefined_internal+:} false; then : 27243 $as_echo_n "(cached) " >&6 27244else 27245 27246 tor_saved_CFLAGS="$CFLAGS" 27247 CFLAGS="$CFLAGS -pedantic -Werror -Wundefined-internal" 27248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27249/* end confdefs.h. */ 27250 27251int 27252main () 27253{ 27254 27255 ; 27256 return 0; 27257} 27258_ACEOF 27259if ac_fn_c_try_compile "$LINENO"; then : 27260 tor_cv_cflags__Wundefined_internal=yes 27261else 27262 tor_cv_cflags__Wundefined_internal=no 27263fi 27264rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 27265 if test x != x; then 27266 27267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27268/* end confdefs.h. */ 27269 27270int 27271main () 27272{ 27273 27274 ; 27275 return 0; 27276} 27277_ACEOF 27278if ac_fn_c_try_link "$LINENO"; then : 27279 tor_can_link__Wundefined_internal=yes 27280else 27281 tor_can_link__Wundefined_internal=no 27282fi 27283rm -f core conftest.err conftest.$ac_objext \ 27284 conftest$ac_exeext conftest.$ac_ext 27285 27286 fi 27287 CFLAGS="$tor_saved_CFLAGS" 27288 27289fi 27290{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wundefined_internal" >&5 27291$as_echo "$tor_cv_cflags__Wundefined_internal" >&6; } 27292 if test x$tor_cv_cflags__Wundefined_internal = xyes; then 27293 TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Wundefined-internal" CFLAGS="$CFLAGS -Wundefined-internal" 27294 else 27295 true 27296 fi 27297 27298 27299 27300 27301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wundefined-reinterpret-cast" >&5 27302$as_echo_n "checking whether the compiler accepts -Wundefined-reinterpret-cast... " >&6; } 27303if ${tor_cv_cflags__Wundefined_reinterpret_cast+:} false; then : 27304 $as_echo_n "(cached) " >&6 27305else 27306 27307 tor_saved_CFLAGS="$CFLAGS" 27308 CFLAGS="$CFLAGS -pedantic -Werror -Wundefined-reinterpret-cast" 27309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27310/* end confdefs.h. */ 27311 27312int 27313main () 27314{ 27315 27316 ; 27317 return 0; 27318} 27319_ACEOF 27320if ac_fn_c_try_compile "$LINENO"; then : 27321 tor_cv_cflags__Wundefined_reinterpret_cast=yes 27322else 27323 tor_cv_cflags__Wundefined_reinterpret_cast=no 27324fi 27325rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 27326 if test x != x; then 27327 27328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27329/* end confdefs.h. */ 27330 27331int 27332main () 27333{ 27334 27335 ; 27336 return 0; 27337} 27338_ACEOF 27339if ac_fn_c_try_link "$LINENO"; then : 27340 tor_can_link__Wundefined_reinterpret_cast=yes 27341else 27342 tor_can_link__Wundefined_reinterpret_cast=no 27343fi 27344rm -f core conftest.err conftest.$ac_objext \ 27345 conftest$ac_exeext conftest.$ac_ext 27346 27347 fi 27348 CFLAGS="$tor_saved_CFLAGS" 27349 27350fi 27351{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wundefined_reinterpret_cast" >&5 27352$as_echo "$tor_cv_cflags__Wundefined_reinterpret_cast" >&6; } 27353 if test x$tor_cv_cflags__Wundefined_reinterpret_cast = xyes; then 27354 TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Wundefined-reinterpret-cast" CFLAGS="$CFLAGS -Wundefined-reinterpret-cast" 27355 else 27356 true 27357 fi 27358 27359 27360 27361 27362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wunicode" >&5 27363$as_echo_n "checking whether the compiler accepts -Wunicode... " >&6; } 27364if ${tor_cv_cflags__Wunicode+:} false; then : 27365 $as_echo_n "(cached) " >&6 27366else 27367 27368 tor_saved_CFLAGS="$CFLAGS" 27369 CFLAGS="$CFLAGS -pedantic -Werror -Wunicode" 27370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27371/* end confdefs.h. */ 27372 27373int 27374main () 27375{ 27376 27377 ; 27378 return 0; 27379} 27380_ACEOF 27381if ac_fn_c_try_compile "$LINENO"; then : 27382 tor_cv_cflags__Wunicode=yes 27383else 27384 tor_cv_cflags__Wunicode=no 27385fi 27386rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 27387 if test x != x; then 27388 27389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27390/* end confdefs.h. */ 27391 27392int 27393main () 27394{ 27395 27396 ; 27397 return 0; 27398} 27399_ACEOF 27400if ac_fn_c_try_link "$LINENO"; then : 27401 tor_can_link__Wunicode=yes 27402else 27403 tor_can_link__Wunicode=no 27404fi 27405rm -f core conftest.err conftest.$ac_objext \ 27406 conftest$ac_exeext conftest.$ac_ext 27407 27408 fi 27409 CFLAGS="$tor_saved_CFLAGS" 27410 27411fi 27412{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wunicode" >&5 27413$as_echo "$tor_cv_cflags__Wunicode" >&6; } 27414 if test x$tor_cv_cflags__Wunicode = xyes; then 27415 TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Wunicode" CFLAGS="$CFLAGS -Wunicode" 27416 else 27417 true 27418 fi 27419 27420 27421 27422 27423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wunicode-whitespace" >&5 27424$as_echo_n "checking whether the compiler accepts -Wunicode-whitespace... " >&6; } 27425if ${tor_cv_cflags__Wunicode_whitespace+:} false; then : 27426 $as_echo_n "(cached) " >&6 27427else 27428 27429 tor_saved_CFLAGS="$CFLAGS" 27430 CFLAGS="$CFLAGS -pedantic -Werror -Wunicode-whitespace" 27431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27432/* end confdefs.h. */ 27433 27434int 27435main () 27436{ 27437 27438 ; 27439 return 0; 27440} 27441_ACEOF 27442if ac_fn_c_try_compile "$LINENO"; then : 27443 tor_cv_cflags__Wunicode_whitespace=yes 27444else 27445 tor_cv_cflags__Wunicode_whitespace=no 27446fi 27447rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 27448 if test x != x; then 27449 27450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27451/* end confdefs.h. */ 27452 27453int 27454main () 27455{ 27456 27457 ; 27458 return 0; 27459} 27460_ACEOF 27461if ac_fn_c_try_link "$LINENO"; then : 27462 tor_can_link__Wunicode_whitespace=yes 27463else 27464 tor_can_link__Wunicode_whitespace=no 27465fi 27466rm -f core conftest.err conftest.$ac_objext \ 27467 conftest$ac_exeext conftest.$ac_ext 27468 27469 fi 27470 CFLAGS="$tor_saved_CFLAGS" 27471 27472fi 27473{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wunicode_whitespace" >&5 27474$as_echo "$tor_cv_cflags__Wunicode_whitespace" >&6; } 27475 if test x$tor_cv_cflags__Wunicode_whitespace = xyes; then 27476 TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Wunicode-whitespace" CFLAGS="$CFLAGS -Wunicode-whitespace" 27477 else 27478 true 27479 fi 27480 27481 27482 27483 27484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wunknown-warning-option" >&5 27485$as_echo_n "checking whether the compiler accepts -Wunknown-warning-option... " >&6; } 27486if ${tor_cv_cflags__Wunknown_warning_option+:} false; then : 27487 $as_echo_n "(cached) " >&6 27488else 27489 27490 tor_saved_CFLAGS="$CFLAGS" 27491 CFLAGS="$CFLAGS -pedantic -Werror -Wunknown-warning-option" 27492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27493/* end confdefs.h. */ 27494 27495int 27496main () 27497{ 27498 27499 ; 27500 return 0; 27501} 27502_ACEOF 27503if ac_fn_c_try_compile "$LINENO"; then : 27504 tor_cv_cflags__Wunknown_warning_option=yes 27505else 27506 tor_cv_cflags__Wunknown_warning_option=no 27507fi 27508rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 27509 if test x != x; then 27510 27511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27512/* end confdefs.h. */ 27513 27514int 27515main () 27516{ 27517 27518 ; 27519 return 0; 27520} 27521_ACEOF 27522if ac_fn_c_try_link "$LINENO"; then : 27523 tor_can_link__Wunknown_warning_option=yes 27524else 27525 tor_can_link__Wunknown_warning_option=no 27526fi 27527rm -f core conftest.err conftest.$ac_objext \ 27528 conftest$ac_exeext conftest.$ac_ext 27529 27530 fi 27531 CFLAGS="$tor_saved_CFLAGS" 27532 27533fi 27534{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wunknown_warning_option" >&5 27535$as_echo "$tor_cv_cflags__Wunknown_warning_option" >&6; } 27536 if test x$tor_cv_cflags__Wunknown_warning_option = xyes; then 27537 TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Wunknown-warning-option" CFLAGS="$CFLAGS -Wunknown-warning-option" 27538 else 27539 true 27540 fi 27541 27542 27543 27544 27545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wunnamed-type-template-args" >&5 27546$as_echo_n "checking whether the compiler accepts -Wunnamed-type-template-args... " >&6; } 27547if ${tor_cv_cflags__Wunnamed_type_template_args+:} false; then : 27548 $as_echo_n "(cached) " >&6 27549else 27550 27551 tor_saved_CFLAGS="$CFLAGS" 27552 CFLAGS="$CFLAGS -pedantic -Werror -Wunnamed-type-template-args" 27553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27554/* end confdefs.h. */ 27555 27556int 27557main () 27558{ 27559 27560 ; 27561 return 0; 27562} 27563_ACEOF 27564if ac_fn_c_try_compile "$LINENO"; then : 27565 tor_cv_cflags__Wunnamed_type_template_args=yes 27566else 27567 tor_cv_cflags__Wunnamed_type_template_args=no 27568fi 27569rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 27570 if test x != x; then 27571 27572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27573/* end confdefs.h. */ 27574 27575int 27576main () 27577{ 27578 27579 ; 27580 return 0; 27581} 27582_ACEOF 27583if ac_fn_c_try_link "$LINENO"; then : 27584 tor_can_link__Wunnamed_type_template_args=yes 27585else 27586 tor_can_link__Wunnamed_type_template_args=no 27587fi 27588rm -f core conftest.err conftest.$ac_objext \ 27589 conftest$ac_exeext conftest.$ac_ext 27590 27591 fi 27592 CFLAGS="$tor_saved_CFLAGS" 27593 27594fi 27595{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wunnamed_type_template_args" >&5 27596$as_echo "$tor_cv_cflags__Wunnamed_type_template_args" >&6; } 27597 if test x$tor_cv_cflags__Wunnamed_type_template_args = xyes; then 27598 TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Wunnamed-type-template-args" CFLAGS="$CFLAGS -Wunnamed-type-template-args" 27599 else 27600 true 27601 fi 27602 27603 27604 27605 27606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wunneeded-member-function" >&5 27607$as_echo_n "checking whether the compiler accepts -Wunneeded-member-function... " >&6; } 27608if ${tor_cv_cflags__Wunneeded_member_function+:} false; then : 27609 $as_echo_n "(cached) " >&6 27610else 27611 27612 tor_saved_CFLAGS="$CFLAGS" 27613 CFLAGS="$CFLAGS -pedantic -Werror -Wunneeded-member-function" 27614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27615/* end confdefs.h. */ 27616 27617int 27618main () 27619{ 27620 27621 ; 27622 return 0; 27623} 27624_ACEOF 27625if ac_fn_c_try_compile "$LINENO"; then : 27626 tor_cv_cflags__Wunneeded_member_function=yes 27627else 27628 tor_cv_cflags__Wunneeded_member_function=no 27629fi 27630rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 27631 if test x != x; then 27632 27633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27634/* end confdefs.h. */ 27635 27636int 27637main () 27638{ 27639 27640 ; 27641 return 0; 27642} 27643_ACEOF 27644if ac_fn_c_try_link "$LINENO"; then : 27645 tor_can_link__Wunneeded_member_function=yes 27646else 27647 tor_can_link__Wunneeded_member_function=no 27648fi 27649rm -f core conftest.err conftest.$ac_objext \ 27650 conftest$ac_exeext conftest.$ac_ext 27651 27652 fi 27653 CFLAGS="$tor_saved_CFLAGS" 27654 27655fi 27656{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wunneeded_member_function" >&5 27657$as_echo "$tor_cv_cflags__Wunneeded_member_function" >&6; } 27658 if test x$tor_cv_cflags__Wunneeded_member_function = xyes; then 27659 TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Wunneeded-member-function" CFLAGS="$CFLAGS -Wunneeded-member-function" 27660 else 27661 true 27662 fi 27663 27664 27665 27666 27667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wunsequenced" >&5 27668$as_echo_n "checking whether the compiler accepts -Wunsequenced... " >&6; } 27669if ${tor_cv_cflags__Wunsequenced+:} false; then : 27670 $as_echo_n "(cached) " >&6 27671else 27672 27673 tor_saved_CFLAGS="$CFLAGS" 27674 CFLAGS="$CFLAGS -pedantic -Werror -Wunsequenced" 27675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27676/* end confdefs.h. */ 27677 27678int 27679main () 27680{ 27681 27682 ; 27683 return 0; 27684} 27685_ACEOF 27686if ac_fn_c_try_compile "$LINENO"; then : 27687 tor_cv_cflags__Wunsequenced=yes 27688else 27689 tor_cv_cflags__Wunsequenced=no 27690fi 27691rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 27692 if test x != x; then 27693 27694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27695/* end confdefs.h. */ 27696 27697int 27698main () 27699{ 27700 27701 ; 27702 return 0; 27703} 27704_ACEOF 27705if ac_fn_c_try_link "$LINENO"; then : 27706 tor_can_link__Wunsequenced=yes 27707else 27708 tor_can_link__Wunsequenced=no 27709fi 27710rm -f core conftest.err conftest.$ac_objext \ 27711 conftest$ac_exeext conftest.$ac_ext 27712 27713 fi 27714 CFLAGS="$tor_saved_CFLAGS" 27715 27716fi 27717{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wunsequenced" >&5 27718$as_echo "$tor_cv_cflags__Wunsequenced" >&6; } 27719 if test x$tor_cv_cflags__Wunsequenced = xyes; then 27720 TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Wunsequenced" CFLAGS="$CFLAGS -Wunsequenced" 27721 else 27722 true 27723 fi 27724 27725 27726 27727 27728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wunsupported-visibility" >&5 27729$as_echo_n "checking whether the compiler accepts -Wunsupported-visibility... " >&6; } 27730if ${tor_cv_cflags__Wunsupported_visibility+:} false; then : 27731 $as_echo_n "(cached) " >&6 27732else 27733 27734 tor_saved_CFLAGS="$CFLAGS" 27735 CFLAGS="$CFLAGS -pedantic -Werror -Wunsupported-visibility" 27736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27737/* end confdefs.h. */ 27738 27739int 27740main () 27741{ 27742 27743 ; 27744 return 0; 27745} 27746_ACEOF 27747if ac_fn_c_try_compile "$LINENO"; then : 27748 tor_cv_cflags__Wunsupported_visibility=yes 27749else 27750 tor_cv_cflags__Wunsupported_visibility=no 27751fi 27752rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 27753 if test x != x; then 27754 27755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27756/* end confdefs.h. */ 27757 27758int 27759main () 27760{ 27761 27762 ; 27763 return 0; 27764} 27765_ACEOF 27766if ac_fn_c_try_link "$LINENO"; then : 27767 tor_can_link__Wunsupported_visibility=yes 27768else 27769 tor_can_link__Wunsupported_visibility=no 27770fi 27771rm -f core conftest.err conftest.$ac_objext \ 27772 conftest$ac_exeext conftest.$ac_ext 27773 27774 fi 27775 CFLAGS="$tor_saved_CFLAGS" 27776 27777fi 27778{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wunsupported_visibility" >&5 27779$as_echo "$tor_cv_cflags__Wunsupported_visibility" >&6; } 27780 if test x$tor_cv_cflags__Wunsupported_visibility = xyes; then 27781 TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Wunsupported-visibility" CFLAGS="$CFLAGS -Wunsupported-visibility" 27782 else 27783 true 27784 fi 27785 27786 27787 27788 27789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wunused-but-set-parameter" >&5 27790$as_echo_n "checking whether the compiler accepts -Wunused-but-set-parameter... " >&6; } 27791if ${tor_cv_cflags__Wunused_but_set_parameter+:} false; then : 27792 $as_echo_n "(cached) " >&6 27793else 27794 27795 tor_saved_CFLAGS="$CFLAGS" 27796 CFLAGS="$CFLAGS -pedantic -Werror -Wunused-but-set-parameter" 27797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27798/* end confdefs.h. */ 27799 27800int 27801main () 27802{ 27803 27804 ; 27805 return 0; 27806} 27807_ACEOF 27808if ac_fn_c_try_compile "$LINENO"; then : 27809 tor_cv_cflags__Wunused_but_set_parameter=yes 27810else 27811 tor_cv_cflags__Wunused_but_set_parameter=no 27812fi 27813rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 27814 if test x != x; then 27815 27816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27817/* end confdefs.h. */ 27818 27819int 27820main () 27821{ 27822 27823 ; 27824 return 0; 27825} 27826_ACEOF 27827if ac_fn_c_try_link "$LINENO"; then : 27828 tor_can_link__Wunused_but_set_parameter=yes 27829else 27830 tor_can_link__Wunused_but_set_parameter=no 27831fi 27832rm -f core conftest.err conftest.$ac_objext \ 27833 conftest$ac_exeext conftest.$ac_ext 27834 27835 fi 27836 CFLAGS="$tor_saved_CFLAGS" 27837 27838fi 27839{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wunused_but_set_parameter" >&5 27840$as_echo "$tor_cv_cflags__Wunused_but_set_parameter" >&6; } 27841 if test x$tor_cv_cflags__Wunused_but_set_parameter = xyes; then 27842 TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Wunused-but-set-parameter" CFLAGS="$CFLAGS -Wunused-but-set-parameter" 27843 else 27844 true 27845 fi 27846 27847 27848 27849 27850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wunused-but-set-variable" >&5 27851$as_echo_n "checking whether the compiler accepts -Wunused-but-set-variable... " >&6; } 27852if ${tor_cv_cflags__Wunused_but_set_variable+:} false; then : 27853 $as_echo_n "(cached) " >&6 27854else 27855 27856 tor_saved_CFLAGS="$CFLAGS" 27857 CFLAGS="$CFLAGS -pedantic -Werror -Wunused-but-set-variable" 27858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27859/* end confdefs.h. */ 27860 27861int 27862main () 27863{ 27864 27865 ; 27866 return 0; 27867} 27868_ACEOF 27869if ac_fn_c_try_compile "$LINENO"; then : 27870 tor_cv_cflags__Wunused_but_set_variable=yes 27871else 27872 tor_cv_cflags__Wunused_but_set_variable=no 27873fi 27874rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 27875 if test x != x; then 27876 27877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27878/* end confdefs.h. */ 27879 27880int 27881main () 27882{ 27883 27884 ; 27885 return 0; 27886} 27887_ACEOF 27888if ac_fn_c_try_link "$LINENO"; then : 27889 tor_can_link__Wunused_but_set_variable=yes 27890else 27891 tor_can_link__Wunused_but_set_variable=no 27892fi 27893rm -f core conftest.err conftest.$ac_objext \ 27894 conftest$ac_exeext conftest.$ac_ext 27895 27896 fi 27897 CFLAGS="$tor_saved_CFLAGS" 27898 27899fi 27900{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wunused_but_set_variable" >&5 27901$as_echo "$tor_cv_cflags__Wunused_but_set_variable" >&6; } 27902 if test x$tor_cv_cflags__Wunused_but_set_variable = xyes; then 27903 TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Wunused-but-set-variable" CFLAGS="$CFLAGS -Wunused-but-set-variable" 27904 else 27905 true 27906 fi 27907 27908 27909 27910 27911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wunused-command-line-argument" >&5 27912$as_echo_n "checking whether the compiler accepts -Wunused-command-line-argument... " >&6; } 27913if ${tor_cv_cflags__Wunused_command_line_argument+:} false; then : 27914 $as_echo_n "(cached) " >&6 27915else 27916 27917 tor_saved_CFLAGS="$CFLAGS" 27918 CFLAGS="$CFLAGS -pedantic -Werror -Wunused-command-line-argument" 27919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27920/* end confdefs.h. */ 27921 27922int 27923main () 27924{ 27925 27926 ; 27927 return 0; 27928} 27929_ACEOF 27930if ac_fn_c_try_compile "$LINENO"; then : 27931 tor_cv_cflags__Wunused_command_line_argument=yes 27932else 27933 tor_cv_cflags__Wunused_command_line_argument=no 27934fi 27935rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 27936 if test x != x; then 27937 27938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27939/* end confdefs.h. */ 27940 27941int 27942main () 27943{ 27944 27945 ; 27946 return 0; 27947} 27948_ACEOF 27949if ac_fn_c_try_link "$LINENO"; then : 27950 tor_can_link__Wunused_command_line_argument=yes 27951else 27952 tor_can_link__Wunused_command_line_argument=no 27953fi 27954rm -f core conftest.err conftest.$ac_objext \ 27955 conftest$ac_exeext conftest.$ac_ext 27956 27957 fi 27958 CFLAGS="$tor_saved_CFLAGS" 27959 27960fi 27961{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wunused_command_line_argument" >&5 27962$as_echo "$tor_cv_cflags__Wunused_command_line_argument" >&6; } 27963 if test x$tor_cv_cflags__Wunused_command_line_argument = xyes; then 27964 TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Wunused-command-line-argument" CFLAGS="$CFLAGS -Wunused-command-line-argument" 27965 else 27966 true 27967 fi 27968 27969 27970 27971 27972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wunused-const-variable=2" >&5 27973$as_echo_n "checking whether the compiler accepts -Wunused-const-variable=2... " >&6; } 27974if ${tor_cv_cflags__Wunused_const_variable_2+:} false; then : 27975 $as_echo_n "(cached) " >&6 27976else 27977 27978 tor_saved_CFLAGS="$CFLAGS" 27979 CFLAGS="$CFLAGS -pedantic -Werror -Wunused-const-variable=2" 27980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27981/* end confdefs.h. */ 27982 27983int 27984main () 27985{ 27986 27987 ; 27988 return 0; 27989} 27990_ACEOF 27991if ac_fn_c_try_compile "$LINENO"; then : 27992 tor_cv_cflags__Wunused_const_variable_2=yes 27993else 27994 tor_cv_cflags__Wunused_const_variable_2=no 27995fi 27996rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 27997 if test x != x; then 27998 27999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28000/* end confdefs.h. */ 28001 28002int 28003main () 28004{ 28005 28006 ; 28007 return 0; 28008} 28009_ACEOF 28010if ac_fn_c_try_link "$LINENO"; then : 28011 tor_can_link__Wunused_const_variable_2=yes 28012else 28013 tor_can_link__Wunused_const_variable_2=no 28014fi 28015rm -f core conftest.err conftest.$ac_objext \ 28016 conftest$ac_exeext conftest.$ac_ext 28017 28018 fi 28019 CFLAGS="$tor_saved_CFLAGS" 28020 28021fi 28022{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wunused_const_variable_2" >&5 28023$as_echo "$tor_cv_cflags__Wunused_const_variable_2" >&6; } 28024 if test x$tor_cv_cflags__Wunused_const_variable_2 = xyes; then 28025 TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Wunused-const-variable=2" CFLAGS="$CFLAGS -Wunused-const-variable=2" 28026 else 28027 true 28028 fi 28029 28030 28031 28032 28033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wunused-exception-parameter" >&5 28034$as_echo_n "checking whether the compiler accepts -Wunused-exception-parameter... " >&6; } 28035if ${tor_cv_cflags__Wunused_exception_parameter+:} false; then : 28036 $as_echo_n "(cached) " >&6 28037else 28038 28039 tor_saved_CFLAGS="$CFLAGS" 28040 CFLAGS="$CFLAGS -pedantic -Werror -Wunused-exception-parameter" 28041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28042/* end confdefs.h. */ 28043 28044int 28045main () 28046{ 28047 28048 ; 28049 return 0; 28050} 28051_ACEOF 28052if ac_fn_c_try_compile "$LINENO"; then : 28053 tor_cv_cflags__Wunused_exception_parameter=yes 28054else 28055 tor_cv_cflags__Wunused_exception_parameter=no 28056fi 28057rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 28058 if test x != x; then 28059 28060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28061/* end confdefs.h. */ 28062 28063int 28064main () 28065{ 28066 28067 ; 28068 return 0; 28069} 28070_ACEOF 28071if ac_fn_c_try_link "$LINENO"; then : 28072 tor_can_link__Wunused_exception_parameter=yes 28073else 28074 tor_can_link__Wunused_exception_parameter=no 28075fi 28076rm -f core conftest.err conftest.$ac_objext \ 28077 conftest$ac_exeext conftest.$ac_ext 28078 28079 fi 28080 CFLAGS="$tor_saved_CFLAGS" 28081 28082fi 28083{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wunused_exception_parameter" >&5 28084$as_echo "$tor_cv_cflags__Wunused_exception_parameter" >&6; } 28085 if test x$tor_cv_cflags__Wunused_exception_parameter = xyes; then 28086 TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Wunused-exception-parameter" CFLAGS="$CFLAGS -Wunused-exception-parameter" 28087 else 28088 true 28089 fi 28090 28091 28092 28093 28094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wunused-local-typedefs" >&5 28095$as_echo_n "checking whether the compiler accepts -Wunused-local-typedefs... " >&6; } 28096if ${tor_cv_cflags__Wunused_local_typedefs+:} false; then : 28097 $as_echo_n "(cached) " >&6 28098else 28099 28100 tor_saved_CFLAGS="$CFLAGS" 28101 CFLAGS="$CFLAGS -pedantic -Werror -Wunused-local-typedefs" 28102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28103/* end confdefs.h. */ 28104 28105int 28106main () 28107{ 28108 28109 ; 28110 return 0; 28111} 28112_ACEOF 28113if ac_fn_c_try_compile "$LINENO"; then : 28114 tor_cv_cflags__Wunused_local_typedefs=yes 28115else 28116 tor_cv_cflags__Wunused_local_typedefs=no 28117fi 28118rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 28119 if test x != x; then 28120 28121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28122/* end confdefs.h. */ 28123 28124int 28125main () 28126{ 28127 28128 ; 28129 return 0; 28130} 28131_ACEOF 28132if ac_fn_c_try_link "$LINENO"; then : 28133 tor_can_link__Wunused_local_typedefs=yes 28134else 28135 tor_can_link__Wunused_local_typedefs=no 28136fi 28137rm -f core conftest.err conftest.$ac_objext \ 28138 conftest$ac_exeext conftest.$ac_ext 28139 28140 fi 28141 CFLAGS="$tor_saved_CFLAGS" 28142 28143fi 28144{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wunused_local_typedefs" >&5 28145$as_echo "$tor_cv_cflags__Wunused_local_typedefs" >&6; } 28146 if test x$tor_cv_cflags__Wunused_local_typedefs = xyes; then 28147 TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Wunused-local-typedefs" CFLAGS="$CFLAGS -Wunused-local-typedefs" 28148 else 28149 true 28150 fi 28151 28152 28153 28154 28155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wunused-member-function" >&5 28156$as_echo_n "checking whether the compiler accepts -Wunused-member-function... " >&6; } 28157if ${tor_cv_cflags__Wunused_member_function+:} false; then : 28158 $as_echo_n "(cached) " >&6 28159else 28160 28161 tor_saved_CFLAGS="$CFLAGS" 28162 CFLAGS="$CFLAGS -pedantic -Werror -Wunused-member-function" 28163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28164/* end confdefs.h. */ 28165 28166int 28167main () 28168{ 28169 28170 ; 28171 return 0; 28172} 28173_ACEOF 28174if ac_fn_c_try_compile "$LINENO"; then : 28175 tor_cv_cflags__Wunused_member_function=yes 28176else 28177 tor_cv_cflags__Wunused_member_function=no 28178fi 28179rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 28180 if test x != x; then 28181 28182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28183/* end confdefs.h. */ 28184 28185int 28186main () 28187{ 28188 28189 ; 28190 return 0; 28191} 28192_ACEOF 28193if ac_fn_c_try_link "$LINENO"; then : 28194 tor_can_link__Wunused_member_function=yes 28195else 28196 tor_can_link__Wunused_member_function=no 28197fi 28198rm -f core conftest.err conftest.$ac_objext \ 28199 conftest$ac_exeext conftest.$ac_ext 28200 28201 fi 28202 CFLAGS="$tor_saved_CFLAGS" 28203 28204fi 28205{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wunused_member_function" >&5 28206$as_echo "$tor_cv_cflags__Wunused_member_function" >&6; } 28207 if test x$tor_cv_cflags__Wunused_member_function = xyes; then 28208 TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Wunused-member-function" CFLAGS="$CFLAGS -Wunused-member-function" 28209 else 28210 true 28211 fi 28212 28213 28214 28215 28216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wunused-sanitize-argument" >&5 28217$as_echo_n "checking whether the compiler accepts -Wunused-sanitize-argument... " >&6; } 28218if ${tor_cv_cflags__Wunused_sanitize_argument+:} false; then : 28219 $as_echo_n "(cached) " >&6 28220else 28221 28222 tor_saved_CFLAGS="$CFLAGS" 28223 CFLAGS="$CFLAGS -pedantic -Werror -Wunused-sanitize-argument" 28224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28225/* end confdefs.h. */ 28226 28227int 28228main () 28229{ 28230 28231 ; 28232 return 0; 28233} 28234_ACEOF 28235if ac_fn_c_try_compile "$LINENO"; then : 28236 tor_cv_cflags__Wunused_sanitize_argument=yes 28237else 28238 tor_cv_cflags__Wunused_sanitize_argument=no 28239fi 28240rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 28241 if test x != x; then 28242 28243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28244/* end confdefs.h. */ 28245 28246int 28247main () 28248{ 28249 28250 ; 28251 return 0; 28252} 28253_ACEOF 28254if ac_fn_c_try_link "$LINENO"; then : 28255 tor_can_link__Wunused_sanitize_argument=yes 28256else 28257 tor_can_link__Wunused_sanitize_argument=no 28258fi 28259rm -f core conftest.err conftest.$ac_objext \ 28260 conftest$ac_exeext conftest.$ac_ext 28261 28262 fi 28263 CFLAGS="$tor_saved_CFLAGS" 28264 28265fi 28266{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wunused_sanitize_argument" >&5 28267$as_echo "$tor_cv_cflags__Wunused_sanitize_argument" >&6; } 28268 if test x$tor_cv_cflags__Wunused_sanitize_argument = xyes; then 28269 TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Wunused-sanitize-argument" CFLAGS="$CFLAGS -Wunused-sanitize-argument" 28270 else 28271 true 28272 fi 28273 28274 28275 28276 28277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wunused-volatile-lvalue" >&5 28278$as_echo_n "checking whether the compiler accepts -Wunused-volatile-lvalue... " >&6; } 28279if ${tor_cv_cflags__Wunused_volatile_lvalue+:} false; then : 28280 $as_echo_n "(cached) " >&6 28281else 28282 28283 tor_saved_CFLAGS="$CFLAGS" 28284 CFLAGS="$CFLAGS -pedantic -Werror -Wunused-volatile-lvalue" 28285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28286/* end confdefs.h. */ 28287 28288int 28289main () 28290{ 28291 28292 ; 28293 return 0; 28294} 28295_ACEOF 28296if ac_fn_c_try_compile "$LINENO"; then : 28297 tor_cv_cflags__Wunused_volatile_lvalue=yes 28298else 28299 tor_cv_cflags__Wunused_volatile_lvalue=no 28300fi 28301rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 28302 if test x != x; then 28303 28304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28305/* end confdefs.h. */ 28306 28307int 28308main () 28309{ 28310 28311 ; 28312 return 0; 28313} 28314_ACEOF 28315if ac_fn_c_try_link "$LINENO"; then : 28316 tor_can_link__Wunused_volatile_lvalue=yes 28317else 28318 tor_can_link__Wunused_volatile_lvalue=no 28319fi 28320rm -f core conftest.err conftest.$ac_objext \ 28321 conftest$ac_exeext conftest.$ac_ext 28322 28323 fi 28324 CFLAGS="$tor_saved_CFLAGS" 28325 28326fi 28327{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wunused_volatile_lvalue" >&5 28328$as_echo "$tor_cv_cflags__Wunused_volatile_lvalue" >&6; } 28329 if test x$tor_cv_cflags__Wunused_volatile_lvalue = xyes; then 28330 TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Wunused-volatile-lvalue" CFLAGS="$CFLAGS -Wunused-volatile-lvalue" 28331 else 28332 true 28333 fi 28334 28335 28336 28337 28338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wuser-defined-literals" >&5 28339$as_echo_n "checking whether the compiler accepts -Wuser-defined-literals... " >&6; } 28340if ${tor_cv_cflags__Wuser_defined_literals+:} false; then : 28341 $as_echo_n "(cached) " >&6 28342else 28343 28344 tor_saved_CFLAGS="$CFLAGS" 28345 CFLAGS="$CFLAGS -pedantic -Werror -Wuser-defined-literals" 28346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28347/* end confdefs.h. */ 28348 28349int 28350main () 28351{ 28352 28353 ; 28354 return 0; 28355} 28356_ACEOF 28357if ac_fn_c_try_compile "$LINENO"; then : 28358 tor_cv_cflags__Wuser_defined_literals=yes 28359else 28360 tor_cv_cflags__Wuser_defined_literals=no 28361fi 28362rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 28363 if test x != x; then 28364 28365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28366/* end confdefs.h. */ 28367 28368int 28369main () 28370{ 28371 28372 ; 28373 return 0; 28374} 28375_ACEOF 28376if ac_fn_c_try_link "$LINENO"; then : 28377 tor_can_link__Wuser_defined_literals=yes 28378else 28379 tor_can_link__Wuser_defined_literals=no 28380fi 28381rm -f core conftest.err conftest.$ac_objext \ 28382 conftest$ac_exeext conftest.$ac_ext 28383 28384 fi 28385 CFLAGS="$tor_saved_CFLAGS" 28386 28387fi 28388{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wuser_defined_literals" >&5 28389$as_echo "$tor_cv_cflags__Wuser_defined_literals" >&6; } 28390 if test x$tor_cv_cflags__Wuser_defined_literals = xyes; then 28391 TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Wuser-defined-literals" CFLAGS="$CFLAGS -Wuser-defined-literals" 28392 else 28393 true 28394 fi 28395 28396 28397 28398 28399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wvariadic-macros" >&5 28400$as_echo_n "checking whether the compiler accepts -Wvariadic-macros... " >&6; } 28401if ${tor_cv_cflags__Wvariadic_macros+:} false; then : 28402 $as_echo_n "(cached) " >&6 28403else 28404 28405 tor_saved_CFLAGS="$CFLAGS" 28406 CFLAGS="$CFLAGS -pedantic -Werror -Wvariadic-macros" 28407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28408/* end confdefs.h. */ 28409 28410int 28411main () 28412{ 28413 28414 ; 28415 return 0; 28416} 28417_ACEOF 28418if ac_fn_c_try_compile "$LINENO"; then : 28419 tor_cv_cflags__Wvariadic_macros=yes 28420else 28421 tor_cv_cflags__Wvariadic_macros=no 28422fi 28423rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 28424 if test x != x; then 28425 28426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28427/* end confdefs.h. */ 28428 28429int 28430main () 28431{ 28432 28433 ; 28434 return 0; 28435} 28436_ACEOF 28437if ac_fn_c_try_link "$LINENO"; then : 28438 tor_can_link__Wvariadic_macros=yes 28439else 28440 tor_can_link__Wvariadic_macros=no 28441fi 28442rm -f core conftest.err conftest.$ac_objext \ 28443 conftest$ac_exeext conftest.$ac_ext 28444 28445 fi 28446 CFLAGS="$tor_saved_CFLAGS" 28447 28448fi 28449{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wvariadic_macros" >&5 28450$as_echo "$tor_cv_cflags__Wvariadic_macros" >&6; } 28451 if test x$tor_cv_cflags__Wvariadic_macros = xyes; then 28452 TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Wvariadic-macros" CFLAGS="$CFLAGS -Wvariadic-macros" 28453 else 28454 true 28455 fi 28456 28457 28458 28459 28460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wvector-conversion" >&5 28461$as_echo_n "checking whether the compiler accepts -Wvector-conversion... " >&6; } 28462if ${tor_cv_cflags__Wvector_conversion+:} false; then : 28463 $as_echo_n "(cached) " >&6 28464else 28465 28466 tor_saved_CFLAGS="$CFLAGS" 28467 CFLAGS="$CFLAGS -pedantic -Werror -Wvector-conversion" 28468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28469/* end confdefs.h. */ 28470 28471int 28472main () 28473{ 28474 28475 ; 28476 return 0; 28477} 28478_ACEOF 28479if ac_fn_c_try_compile "$LINENO"; then : 28480 tor_cv_cflags__Wvector_conversion=yes 28481else 28482 tor_cv_cflags__Wvector_conversion=no 28483fi 28484rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 28485 if test x != x; then 28486 28487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28488/* end confdefs.h. */ 28489 28490int 28491main () 28492{ 28493 28494 ; 28495 return 0; 28496} 28497_ACEOF 28498if ac_fn_c_try_link "$LINENO"; then : 28499 tor_can_link__Wvector_conversion=yes 28500else 28501 tor_can_link__Wvector_conversion=no 28502fi 28503rm -f core conftest.err conftest.$ac_objext \ 28504 conftest$ac_exeext conftest.$ac_ext 28505 28506 fi 28507 CFLAGS="$tor_saved_CFLAGS" 28508 28509fi 28510{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wvector_conversion" >&5 28511$as_echo "$tor_cv_cflags__Wvector_conversion" >&6; } 28512 if test x$tor_cv_cflags__Wvector_conversion = xyes; then 28513 TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Wvector-conversion" CFLAGS="$CFLAGS -Wvector-conversion" 28514 else 28515 true 28516 fi 28517 28518 28519 28520 28521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wvector-conversions" >&5 28522$as_echo_n "checking whether the compiler accepts -Wvector-conversions... " >&6; } 28523if ${tor_cv_cflags__Wvector_conversions+:} false; then : 28524 $as_echo_n "(cached) " >&6 28525else 28526 28527 tor_saved_CFLAGS="$CFLAGS" 28528 CFLAGS="$CFLAGS -pedantic -Werror -Wvector-conversions" 28529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28530/* end confdefs.h. */ 28531 28532int 28533main () 28534{ 28535 28536 ; 28537 return 0; 28538} 28539_ACEOF 28540if ac_fn_c_try_compile "$LINENO"; then : 28541 tor_cv_cflags__Wvector_conversions=yes 28542else 28543 tor_cv_cflags__Wvector_conversions=no 28544fi 28545rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 28546 if test x != x; then 28547 28548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28549/* end confdefs.h. */ 28550 28551int 28552main () 28553{ 28554 28555 ; 28556 return 0; 28557} 28558_ACEOF 28559if ac_fn_c_try_link "$LINENO"; then : 28560 tor_can_link__Wvector_conversions=yes 28561else 28562 tor_can_link__Wvector_conversions=no 28563fi 28564rm -f core conftest.err conftest.$ac_objext \ 28565 conftest$ac_exeext conftest.$ac_ext 28566 28567 fi 28568 CFLAGS="$tor_saved_CFLAGS" 28569 28570fi 28571{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wvector_conversions" >&5 28572$as_echo "$tor_cv_cflags__Wvector_conversions" >&6; } 28573 if test x$tor_cv_cflags__Wvector_conversions = xyes; then 28574 TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Wvector-conversions" CFLAGS="$CFLAGS -Wvector-conversions" 28575 else 28576 true 28577 fi 28578 28579 28580 28581 28582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wvexing-parse" >&5 28583$as_echo_n "checking whether the compiler accepts -Wvexing-parse... " >&6; } 28584if ${tor_cv_cflags__Wvexing_parse+:} false; then : 28585 $as_echo_n "(cached) " >&6 28586else 28587 28588 tor_saved_CFLAGS="$CFLAGS" 28589 CFLAGS="$CFLAGS -pedantic -Werror -Wvexing-parse" 28590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28591/* end confdefs.h. */ 28592 28593int 28594main () 28595{ 28596 28597 ; 28598 return 0; 28599} 28600_ACEOF 28601if ac_fn_c_try_compile "$LINENO"; then : 28602 tor_cv_cflags__Wvexing_parse=yes 28603else 28604 tor_cv_cflags__Wvexing_parse=no 28605fi 28606rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 28607 if test x != x; then 28608 28609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28610/* end confdefs.h. */ 28611 28612int 28613main () 28614{ 28615 28616 ; 28617 return 0; 28618} 28619_ACEOF 28620if ac_fn_c_try_link "$LINENO"; then : 28621 tor_can_link__Wvexing_parse=yes 28622else 28623 tor_can_link__Wvexing_parse=no 28624fi 28625rm -f core conftest.err conftest.$ac_objext \ 28626 conftest$ac_exeext conftest.$ac_ext 28627 28628 fi 28629 CFLAGS="$tor_saved_CFLAGS" 28630 28631fi 28632{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wvexing_parse" >&5 28633$as_echo "$tor_cv_cflags__Wvexing_parse" >&6; } 28634 if test x$tor_cv_cflags__Wvexing_parse = xyes; then 28635 TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Wvexing-parse" CFLAGS="$CFLAGS -Wvexing-parse" 28636 else 28637 true 28638 fi 28639 28640 28641 28642 28643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wvisibility" >&5 28644$as_echo_n "checking whether the compiler accepts -Wvisibility... " >&6; } 28645if ${tor_cv_cflags__Wvisibility+:} false; then : 28646 $as_echo_n "(cached) " >&6 28647else 28648 28649 tor_saved_CFLAGS="$CFLAGS" 28650 CFLAGS="$CFLAGS -pedantic -Werror -Wvisibility" 28651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28652/* end confdefs.h. */ 28653 28654int 28655main () 28656{ 28657 28658 ; 28659 return 0; 28660} 28661_ACEOF 28662if ac_fn_c_try_compile "$LINENO"; then : 28663 tor_cv_cflags__Wvisibility=yes 28664else 28665 tor_cv_cflags__Wvisibility=no 28666fi 28667rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 28668 if test x != x; then 28669 28670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28671/* end confdefs.h. */ 28672 28673int 28674main () 28675{ 28676 28677 ; 28678 return 0; 28679} 28680_ACEOF 28681if ac_fn_c_try_link "$LINENO"; then : 28682 tor_can_link__Wvisibility=yes 28683else 28684 tor_can_link__Wvisibility=no 28685fi 28686rm -f core conftest.err conftest.$ac_objext \ 28687 conftest$ac_exeext conftest.$ac_ext 28688 28689 fi 28690 CFLAGS="$tor_saved_CFLAGS" 28691 28692fi 28693{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wvisibility" >&5 28694$as_echo "$tor_cv_cflags__Wvisibility" >&6; } 28695 if test x$tor_cv_cflags__Wvisibility = xyes; then 28696 TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Wvisibility" CFLAGS="$CFLAGS -Wvisibility" 28697 else 28698 true 28699 fi 28700 28701 28702 28703 28704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wvla-extension" >&5 28705$as_echo_n "checking whether the compiler accepts -Wvla-extension... " >&6; } 28706if ${tor_cv_cflags__Wvla_extension+:} false; then : 28707 $as_echo_n "(cached) " >&6 28708else 28709 28710 tor_saved_CFLAGS="$CFLAGS" 28711 CFLAGS="$CFLAGS -pedantic -Werror -Wvla-extension" 28712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28713/* end confdefs.h. */ 28714 28715int 28716main () 28717{ 28718 28719 ; 28720 return 0; 28721} 28722_ACEOF 28723if ac_fn_c_try_compile "$LINENO"; then : 28724 tor_cv_cflags__Wvla_extension=yes 28725else 28726 tor_cv_cflags__Wvla_extension=no 28727fi 28728rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 28729 if test x != x; then 28730 28731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28732/* end confdefs.h. */ 28733 28734int 28735main () 28736{ 28737 28738 ; 28739 return 0; 28740} 28741_ACEOF 28742if ac_fn_c_try_link "$LINENO"; then : 28743 tor_can_link__Wvla_extension=yes 28744else 28745 tor_can_link__Wvla_extension=no 28746fi 28747rm -f core conftest.err conftest.$ac_objext \ 28748 conftest$ac_exeext conftest.$ac_ext 28749 28750 fi 28751 CFLAGS="$tor_saved_CFLAGS" 28752 28753fi 28754{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wvla_extension" >&5 28755$as_echo "$tor_cv_cflags__Wvla_extension" >&6; } 28756 if test x$tor_cv_cflags__Wvla_extension = xyes; then 28757 TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Wvla-extension" CFLAGS="$CFLAGS -Wvla-extension" 28758 else 28759 true 28760 fi 28761 28762 28763 28764 28765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wzero-length-array" >&5 28766$as_echo_n "checking whether the compiler accepts -Wzero-length-array... " >&6; } 28767if ${tor_cv_cflags__Wzero_length_array+:} false; then : 28768 $as_echo_n "(cached) " >&6 28769else 28770 28771 tor_saved_CFLAGS="$CFLAGS" 28772 CFLAGS="$CFLAGS -pedantic -Werror -Wzero-length-array" 28773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28774/* end confdefs.h. */ 28775 28776int 28777main () 28778{ 28779 28780 ; 28781 return 0; 28782} 28783_ACEOF 28784if ac_fn_c_try_compile "$LINENO"; then : 28785 tor_cv_cflags__Wzero_length_array=yes 28786else 28787 tor_cv_cflags__Wzero_length_array=no 28788fi 28789rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 28790 if test x != x; then 28791 28792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28793/* end confdefs.h. */ 28794 28795int 28796main () 28797{ 28798 28799 ; 28800 return 0; 28801} 28802_ACEOF 28803if ac_fn_c_try_link "$LINENO"; then : 28804 tor_can_link__Wzero_length_array=yes 28805else 28806 tor_can_link__Wzero_length_array=no 28807fi 28808rm -f core conftest.err conftest.$ac_objext \ 28809 conftest$ac_exeext conftest.$ac_ext 28810 28811 fi 28812 CFLAGS="$tor_saved_CFLAGS" 28813 28814fi 28815{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wzero_length_array" >&5 28816$as_echo "$tor_cv_cflags__Wzero_length_array" >&6; } 28817 if test x$tor_cv_cflags__Wzero_length_array = xyes; then 28818 TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Wzero-length-array" CFLAGS="$CFLAGS -Wzero-length-array" 28819 else 28820 true 28821 fi 28822 28823 28824 28825 28826 28827 28828 W_FLAGS="$W_FLAGS -W -Wfloat-equal -Wundef -Wpointer-arith" 28829 W_FLAGS="$W_FLAGS -Wstrict-prototypes -Wmissing-prototypes -Wwrite-strings" 28830 W_FLAGS="$W_FLAGS -Wredundant-decls -Wchar-subscripts -Wcomment -Wformat=2" 28831 W_FLAGS="$W_FLAGS -Wwrite-strings" 28832 W_FLAGS="$W_FLAGS -Wnested-externs -Wbad-function-cast -Wswitch-enum" 28833 W_FLAGS="$W_FLAGS -Waggregate-return -Wpacked -Wunused" 28834 W_FLAGS="$W_FLAGS -Wunused-parameter " 28835 # These interfere with building main() { return 0; }, which autoconf 28836 # likes to use as its default program. 28837 W_FLAGS="$W_FLAGS -Wold-style-definition -Wmissing-declarations" 28838 28839 TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS $W_FLAGS" 28840 CFLAGS="$CFLAGS $W_FLAGS" 28841 28842 if test "$tor_cv_cflags__Wnull_dereference" = "yes"; then 28843 28844$as_echo "#define HAVE_CFLAG_WNULL_DEREFERENCE 1" >>confdefs.h 28845 28846 fi 28847 if test "$tor_cv_cflags__Woverlength_strings" = "yes"; then 28848 28849$as_echo "#define HAVE_CFLAG_WOVERLENGTH_STRINGS 1" >>confdefs.h 28850 28851 fi 28852 if test "$tor_cv_cflags__warn_unused_const_variable_2" = "yes"; then 28853 28854$as_echo "#define HAVE_CFLAG_WUNUSED_CONST_VARIABLE 1" >>confdefs.h 28855 28856 fi 28857 28858 CFLAGS="$CFLAGS_NOWARNINGS" 28859 28860 if test "x$enable_fatal_warnings" = "xyes"; then 28861 # I'd like to use TOR_CHECK_CFLAGS here, but I can't, since the 28862 # default autoconf programs are full of errors. 28863 CFLAGS="$CFLAGS -Werror" 28864 fi 28865 28866fi 28867 28868 28869 28870echo "$TOR_WARNING_FLAGS">warning_flags 28871 28872 28873 28874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts @warning_flags" >&5 28875$as_echo_n "checking whether the compiler accepts @warning_flags... " >&6; } 28876if ${tor_cv_cflags__warning_flags+:} false; then : 28877 $as_echo_n "(cached) " >&6 28878else 28879 28880 tor_saved_CFLAGS="$CFLAGS" 28881 CFLAGS="$CFLAGS -pedantic -Werror @warning_flags" 28882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28883/* end confdefs.h. */ 28884 28885int 28886main () 28887{ 28888 28889 ; 28890 return 0; 28891} 28892_ACEOF 28893if ac_fn_c_try_compile "$LINENO"; then : 28894 tor_cv_cflags__warning_flags=yes 28895else 28896 tor_cv_cflags__warning_flags=no 28897fi 28898rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 28899 if test x != x; then 28900 28901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28902/* end confdefs.h. */ 28903 28904int 28905main () 28906{ 28907 28908 ; 28909 return 0; 28910} 28911_ACEOF 28912if ac_fn_c_try_link "$LINENO"; then : 28913 tor_can_link__warning_flags=yes 28914else 28915 tor_can_link__warning_flags=no 28916fi 28917rm -f core conftest.err conftest.$ac_objext \ 28918 conftest$ac_exeext conftest.$ac_ext 28919 28920 fi 28921 CFLAGS="$tor_saved_CFLAGS" 28922 28923fi 28924{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__warning_flags" >&5 28925$as_echo "$tor_cv_cflags__warning_flags" >&6; } 28926 if test x$tor_cv_cflags__warning_flags = xyes; then 28927 CFLAGS="$CFLAGS @warning_flags" 28928 else 28929 CFLAGS="$CFLAGS $TOR_WARNING_FLAGS" 28930 fi 28931 28932 28933 28934if test "$enable_coverage" = "yes" && test "$have_clang" = "no"; then 28935 case "$host_os" in 28936 darwin*) 28937 tor_incr_n_warnings 28938 { $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 28939$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;} 28940 esac 28941fi 28942 28943CPPFLAGS="$CPPFLAGS $TOR_CPPFLAGS_libevent $TOR_CPPFLAGS_openssl $TOR_CPPFLAGS_zlib" 28944 28945ac_config_files="$ac_config_files Doxyfile Makefile contrib/operator-tools/tor.logrotate src/config/torrc.sample src/config/torrc.minimal scripts/maint/checkOptionDocs.pl warning_flags" 28946 28947 28948if test "x$asciidoc" = "xtrue" && test "$ASCIIDOC" = "none"; then 28949 regular_mans="doc/man/tor doc/man/tor-gencert doc/man/tor-resolve doc/man/torify" 28950 for file in $regular_mans ; do 28951 if ! [ -f "$srcdir/$file.1.in" ] || ! [ -f "$srcdir/$file.html.in" ] ; then 28952 echo "=================================="; 28953 echo; 28954 echo "Building Tor has failed since manpages cannot be built."; 28955 echo; 28956 echo "You need asciidoc installed to be able to build the manpages."; 28957 echo "To build without manpages, use the --disable-asciidoc argument"; 28958 echo "when calling configure."; 28959 echo; 28960 echo "=================================="; 28961 exit 1; 28962 fi 28963 done 28964fi 28965 28966if test "$fragile_hardening" = "yes"; then 28967 tor_incr_n_warnings 28968 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 28969 28970============ 28971Warning! Building Tor with --enable-fragile-hardening (also known as 28972--enable-expensive-hardening) makes some kinds of attacks harder, but makes 28973other kinds of attacks easier. A Tor instance build with this option will be 28974somewhat less vulnerable to remote code execution, arithmetic overflow, or 28975out-of-bounds read/writes... but at the cost of becoming more vulnerable to 28976denial of service attacks. For more information, see 28977https://gitlab.torproject.org/tpo/core/team/-/wikis/TorFragileHardening 28978============ 28979 " >&5 28980$as_echo "$as_me: WARNING: 28981 28982============ 28983Warning! Building Tor with --enable-fragile-hardening (also known as 28984--enable-expensive-hardening) makes some kinds of attacks harder, but makes 28985other kinds of attacks easier. A Tor instance build with this option will be 28986somewhat less vulnerable to remote code execution, arithmetic overflow, or 28987out-of-bounds read/writes... but at the cost of becoming more vulnerable to 28988denial of service attacks. For more information, see 28989https://gitlab.torproject.org/tpo/core/team/-/wikis/TorFragileHardening 28990============ 28991 " >&2;} 28992fi 28993 28994cat >confcache <<\_ACEOF 28995# This file is a shell script that caches the results of configure 28996# tests run on this system so they can be shared between configure 28997# scripts and configure runs, see configure's option --config-cache. 28998# It is not useful on other systems. If it contains results you don't 28999# want to keep, you may remove or edit it. 29000# 29001# config.status only pays attention to the cache file if you give it 29002# the --recheck option to rerun configure. 29003# 29004# `ac_cv_env_foo' variables (set or unset) will be overridden when 29005# loading this file, other *unset* `ac_cv_foo' will be assigned the 29006# following values. 29007 29008_ACEOF 29009 29010# The following way of writing the cache mishandles newlines in values, 29011# but we know of no workaround that is simple, portable, and efficient. 29012# So, we kill variables containing newlines. 29013# Ultrix sh set writes to stderr and can't be redirected directly, 29014# and sets the high bit in the cache file unless we assign to the vars. 29015( 29016 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 29017 eval ac_val=\$$ac_var 29018 case $ac_val in #( 29019 *${as_nl}*) 29020 case $ac_var in #( 29021 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 29022$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 29023 esac 29024 case $ac_var in #( 29025 _ | IFS | as_nl) ;; #( 29026 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 29027 *) { eval $ac_var=; unset $ac_var;} ;; 29028 esac ;; 29029 esac 29030 done 29031 29032 (set) 2>&1 | 29033 case $as_nl`(ac_space=' '; set) 2>&1` in #( 29034 *${as_nl}ac_space=\ *) 29035 # `set' does not quote correctly, so add quotes: double-quote 29036 # substitution turns \\\\ into \\, and sed turns \\ into \. 29037 sed -n \ 29038 "s/'/'\\\\''/g; 29039 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 29040 ;; #( 29041 *) 29042 # `set' quotes correctly as required by POSIX, so do not add quotes. 29043 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 29044 ;; 29045 esac | 29046 sort 29047) | 29048 sed ' 29049 /^ac_cv_env_/b end 29050 t clear 29051 :clear 29052 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 29053 t end 29054 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 29055 :end' >>confcache 29056if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 29057 if test -w "$cache_file"; then 29058 if test "x$cache_file" != "x/dev/null"; then 29059 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 29060$as_echo "$as_me: updating cache $cache_file" >&6;} 29061 if test ! -f "$cache_file" || test -h "$cache_file"; then 29062 cat confcache >"$cache_file" 29063 else 29064 case $cache_file in #( 29065 */* | ?:*) 29066 mv -f confcache "$cache_file"$$ && 29067 mv -f "$cache_file"$$ "$cache_file" ;; #( 29068 *) 29069 mv -f confcache "$cache_file" ;; 29070 esac 29071 fi 29072 fi 29073 else 29074 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 29075$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 29076 fi 29077fi 29078rm -f confcache 29079 29080test "x$prefix" = xNONE && prefix=$ac_default_prefix 29081# Let make expand exec_prefix. 29082test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 29083 29084DEFS=-DHAVE_CONFIG_H 29085 29086ac_libobjs= 29087ac_ltlibobjs= 29088U= 29089for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 29090 # 1. Remove the extension, and $U if already installed. 29091 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 29092 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 29093 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 29094 # will be set to the directory where LIBOBJS objects are built. 29095 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 29096 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 29097done 29098LIBOBJS=$ac_libobjs 29099 29100LTLIBOBJS=$ac_ltlibobjs 29101 29102 29103{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 29104$as_echo_n "checking that generated files are newer than configure... " >&6; } 29105 if test -n "$am_sleep_pid"; then 29106 # Hide warnings about reused PIDs. 29107 wait $am_sleep_pid 2>/dev/null 29108 fi 29109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 29110$as_echo "done" >&6; } 29111 if test -n "$EXEEXT"; then 29112 am__EXEEXT_TRUE= 29113 am__EXEEXT_FALSE='#' 29114else 29115 am__EXEEXT_TRUE='#' 29116 am__EXEEXT_FALSE= 29117fi 29118 29119if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 29120 as_fn_error $? "conditional \"AMDEP\" was never defined. 29121Usually this means the macro was only invoked conditionally." "$LINENO" 5 29122fi 29123if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 29124 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 29125Usually this means the macro was only invoked conditionally." "$LINENO" 5 29126fi 29127if test -z "${UNITTESTS_ENABLED_TRUE}" && test -z "${UNITTESTS_ENABLED_FALSE}"; then 29128 as_fn_error $? "conditional \"UNITTESTS_ENABLED\" was never defined. 29129Usually this means the macro was only invoked conditionally." "$LINENO" 5 29130fi 29131if test -z "${COVERAGE_ENABLED_TRUE}" && test -z "${COVERAGE_ENABLED_FALSE}"; then 29132 as_fn_error $? "conditional \"COVERAGE_ENABLED\" was never defined. 29133Usually this means the macro was only invoked conditionally." "$LINENO" 5 29134fi 29135if test -z "${DISABLE_ASSERTS_IN_UNIT_TESTS_TRUE}" && test -z "${DISABLE_ASSERTS_IN_UNIT_TESTS_FALSE}"; then 29136 as_fn_error $? "conditional \"DISABLE_ASSERTS_IN_UNIT_TESTS\" was never defined. 29137Usually this means the macro was only invoked conditionally." "$LINENO" 5 29138fi 29139if test -z "${LIBFUZZER_ENABLED_TRUE}" && test -z "${LIBFUZZER_ENABLED_FALSE}"; then 29140 as_fn_error $? "conditional \"LIBFUZZER_ENABLED\" was never defined. 29141Usually this means the macro was only invoked conditionally." "$LINENO" 5 29142fi 29143if test -z "${OSS_FUZZ_ENABLED_TRUE}" && test -z "${OSS_FUZZ_ENABLED_FALSE}"; then 29144 as_fn_error $? "conditional \"OSS_FUZZ_ENABLED\" was never defined. 29145Usually this means the macro was only invoked conditionally." "$LINENO" 5 29146fi 29147if test -z "${USE_NSS_TRUE}" && test -z "${USE_NSS_FALSE}"; then 29148 as_fn_error $? "conditional \"USE_NSS\" was never defined. 29149Usually this means the macro was only invoked conditionally." "$LINENO" 5 29150fi 29151if test -z "${USE_OPENSSL_TRUE}" && test -z "${USE_OPENSSL_FALSE}"; then 29152 as_fn_error $? "conditional \"USE_OPENSSL\" was never defined. 29153Usually this means the macro was only invoked conditionally." "$LINENO" 5 29154fi 29155if test -z "${USE_TRACING_INSTRUMENTATION_LTTNG_TRUE}" && test -z "${USE_TRACING_INSTRUMENTATION_LTTNG_FALSE}"; then 29156 as_fn_error $? "conditional \"USE_TRACING_INSTRUMENTATION_LTTNG\" was never defined. 29157Usually this means the macro was only invoked conditionally." "$LINENO" 5 29158fi 29159if test -z "${USE_TRACING_INSTRUMENTATION_USDT_TRUE}" && test -z "${USE_TRACING_INSTRUMENTATION_USDT_FALSE}"; then 29160 as_fn_error $? "conditional \"USE_TRACING_INSTRUMENTATION_USDT\" was never defined. 29161Usually this means the macro was only invoked conditionally." "$LINENO" 5 29162fi 29163if test -z "${USE_TRACING_INSTRUMENTATION_LOG_DEBUG_TRUE}" && test -z "${USE_TRACING_INSTRUMENTATION_LOG_DEBUG_FALSE}"; then 29164 as_fn_error $? "conditional \"USE_TRACING_INSTRUMENTATION_LOG_DEBUG\" was never defined. 29165Usually this means the macro was only invoked conditionally." "$LINENO" 5 29166fi 29167if test -z "${USE_TRACING_TRUE}" && test -z "${USE_TRACING_FALSE}"; then 29168 as_fn_error $? "conditional \"USE_TRACING\" was never defined. 29169Usually this means the macro was only invoked conditionally." "$LINENO" 5 29170fi 29171if test -z "${USE_ANDROID_TRUE}" && test -z "${USE_ANDROID_FALSE}"; then 29172 as_fn_error $? "conditional \"USE_ANDROID\" was never defined. 29173Usually this means the macro was only invoked conditionally." "$LINENO" 5 29174fi 29175if test -z "${BUILD_MODULE_RELAY_TRUE}" && test -z "${BUILD_MODULE_RELAY_FALSE}"; then 29176 as_fn_error $? "conditional \"BUILD_MODULE_RELAY\" was never defined. 29177Usually this means the macro was only invoked conditionally." "$LINENO" 5 29178fi 29179if test -z "${BUILD_MODULE_DIRCACHE_TRUE}" && test -z "${BUILD_MODULE_DIRCACHE_FALSE}"; then 29180 as_fn_error $? "conditional \"BUILD_MODULE_DIRCACHE\" was never defined. 29181Usually this means the macro was only invoked conditionally." "$LINENO" 5 29182fi 29183if test -z "${BUILD_MODULE_DIRAUTH_TRUE}" && test -z "${BUILD_MODULE_DIRAUTH_FALSE}"; then 29184 as_fn_error $? "conditional \"BUILD_MODULE_DIRAUTH\" was never defined. 29185Usually this means the macro was only invoked conditionally." "$LINENO" 5 29186fi 29187if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 29188 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 29189Usually this means the macro was only invoked conditionally." "$LINENO" 5 29190fi 29191if test -z "${USE_PERL_TRUE}" && test -z "${USE_PERL_FALSE}"; then 29192 as_fn_error $? "conditional \"USE_PERL\" was never defined. 29193Usually this means the macro was only invoked conditionally." "$LINENO" 5 29194fi 29195if test -z "${USE_ASCIIDOC_TRUE}" && test -z "${USE_ASCIIDOC_FALSE}"; then 29196 as_fn_error $? "conditional \"USE_ASCIIDOC\" was never defined. 29197Usually this means the macro was only invoked conditionally." "$LINENO" 5 29198fi 29199if test -z "${BUILD_MANPAGE_TRUE}" && test -z "${BUILD_MANPAGE_FALSE}"; then 29200 as_fn_error $? "conditional \"BUILD_MANPAGE\" was never defined. 29201Usually this means the macro was only invoked conditionally." "$LINENO" 5 29202fi 29203if test -z "${BUILD_HTML_DOCS_TRUE}" && test -z "${BUILD_HTML_DOCS_FALSE}"; then 29204 as_fn_error $? "conditional \"BUILD_HTML_DOCS\" was never defined. 29205Usually this means the macro was only invoked conditionally." "$LINENO" 5 29206fi 29207if test -z "${USEPYTHON_TRUE}" && test -z "${USEPYTHON_FALSE}"; then 29208 as_fn_error $? "conditional \"USEPYTHON\" was never defined. 29209Usually this means the macro was only invoked conditionally." "$LINENO" 5 29210fi 29211if test -z "${WIN32_TRUE}" && test -z "${WIN32_FALSE}"; then 29212 as_fn_error $? "conditional \"WIN32\" was never defined. 29213Usually this means the macro was only invoked conditionally." "$LINENO" 5 29214fi 29215if test -z "${BUILD_NT_SERVICES_TRUE}" && test -z "${BUILD_NT_SERVICES_FALSE}"; then 29216 as_fn_error $? "conditional \"BUILD_NT_SERVICES\" was never defined. 29217Usually this means the macro was only invoked conditionally." "$LINENO" 5 29218fi 29219if test -z "${BUILD_LIBTORRUNNER_TRUE}" && test -z "${BUILD_LIBTORRUNNER_FALSE}"; then 29220 as_fn_error $? "conditional \"BUILD_LIBTORRUNNER\" was never defined. 29221Usually this means the macro was only invoked conditionally." "$LINENO" 5 29222fi 29223 29224if test -z "${THREADS_WIN32_TRUE}" && test -z "${THREADS_WIN32_FALSE}"; then 29225 as_fn_error $? "conditional \"THREADS_WIN32\" was never defined. 29226Usually this means the macro was only invoked conditionally." "$LINENO" 5 29227fi 29228if test -z "${THREADS_PTHREADS_TRUE}" && test -z "${THREADS_PTHREADS_FALSE}"; then 29229 as_fn_error $? "conditional \"THREADS_PTHREADS\" was never defined. 29230Usually this means the macro was only invoked conditionally." "$LINENO" 5 29231fi 29232if test -z "${BUILD_READPASSPHRASE_C_TRUE}" && test -z "${BUILD_READPASSPHRASE_C_FALSE}"; then 29233 as_fn_error $? "conditional \"BUILD_READPASSPHRASE_C\" was never defined. 29234Usually this means the macro was only invoked conditionally." "$LINENO" 5 29235fi 29236if test -z "${BUILD_KECCAK_TINY_TRUE}" && test -z "${BUILD_KECCAK_TINY_FALSE}"; then 29237 as_fn_error $? "conditional \"BUILD_KECCAK_TINY\" was never defined. 29238Usually this means the macro was only invoked conditionally." "$LINENO" 5 29239fi 29240if test -z "${ADD_MULODI4_TRUE}" && test -z "${ADD_MULODI4_FALSE}"; then 29241 as_fn_error $? "conditional \"ADD_MULODI4\" was never defined. 29242Usually this means the macro was only invoked conditionally." "$LINENO" 5 29243fi 29244if test -z "${BUILD_CURVE25519_DONNA_TRUE}" && test -z "${BUILD_CURVE25519_DONNA_FALSE}"; then 29245 as_fn_error $? "conditional \"BUILD_CURVE25519_DONNA\" was never defined. 29246Usually this means the macro was only invoked conditionally." "$LINENO" 5 29247fi 29248if test -z "${BUILD_CURVE25519_DONNA_C64_TRUE}" && test -z "${BUILD_CURVE25519_DONNA_C64_FALSE}"; then 29249 as_fn_error $? "conditional \"BUILD_CURVE25519_DONNA_C64\" was never defined. 29250Usually this means the macro was only invoked conditionally." "$LINENO" 5 29251fi 29252if test -z "${USE_OPENBSD_MALLOC_TRUE}" && test -z "${USE_OPENBSD_MALLOC_FALSE}"; then 29253 as_fn_error $? "conditional \"USE_OPENBSD_MALLOC\" was never defined. 29254Usually this means the macro was only invoked conditionally." "$LINENO" 5 29255fi 29256 29257: "${CONFIG_STATUS=./config.status}" 29258ac_write_fail=0 29259ac_clean_files_save=$ac_clean_files 29260ac_clean_files="$ac_clean_files $CONFIG_STATUS" 29261{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 29262$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 29263as_write_fail=0 29264cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 29265#! $SHELL 29266# Generated by $as_me. 29267# Run this file to recreate the current configuration. 29268# Compiler output produced by configure, useful for debugging 29269# configure, is in config.log if it exists. 29270 29271debug=false 29272ac_cs_recheck=false 29273ac_cs_silent=false 29274 29275SHELL=\${CONFIG_SHELL-$SHELL} 29276export SHELL 29277_ASEOF 29278cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 29279## -------------------- ## 29280## M4sh Initialization. ## 29281## -------------------- ## 29282 29283# Be more Bourne compatible 29284DUALCASE=1; export DUALCASE # for MKS sh 29285if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 29286 emulate sh 29287 NULLCMD=: 29288 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 29289 # is contrary to our usage. Disable this feature. 29290 alias -g '${1+"$@"}'='"$@"' 29291 setopt NO_GLOB_SUBST 29292else 29293 case `(set -o) 2>/dev/null` in #( 29294 *posix*) : 29295 set -o posix ;; #( 29296 *) : 29297 ;; 29298esac 29299fi 29300 29301 29302as_nl=' 29303' 29304export as_nl 29305# Printing a long string crashes Solaris 7 /usr/bin/printf. 29306as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 29307as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 29308as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 29309# Prefer a ksh shell builtin over an external printf program on Solaris, 29310# but without wasting forks for bash or zsh. 29311if test -z "$BASH_VERSION$ZSH_VERSION" \ 29312 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 29313 as_echo='print -r --' 29314 as_echo_n='print -rn --' 29315elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 29316 as_echo='printf %s\n' 29317 as_echo_n='printf %s' 29318else 29319 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 29320 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 29321 as_echo_n='/usr/ucb/echo -n' 29322 else 29323 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 29324 as_echo_n_body='eval 29325 arg=$1; 29326 case $arg in #( 29327 *"$as_nl"*) 29328 expr "X$arg" : "X\\(.*\\)$as_nl"; 29329 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 29330 esac; 29331 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 29332 ' 29333 export as_echo_n_body 29334 as_echo_n='sh -c $as_echo_n_body as_echo' 29335 fi 29336 export as_echo_body 29337 as_echo='sh -c $as_echo_body as_echo' 29338fi 29339 29340# The user is always right. 29341if test "${PATH_SEPARATOR+set}" != set; then 29342 PATH_SEPARATOR=: 29343 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 29344 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 29345 PATH_SEPARATOR=';' 29346 } 29347fi 29348 29349 29350# IFS 29351# We need space, tab and new line, in precisely that order. Quoting is 29352# there to prevent editors from complaining about space-tab. 29353# (If _AS_PATH_WALK were called with IFS unset, it would disable word 29354# splitting by setting IFS to empty value.) 29355IFS=" "" $as_nl" 29356 29357# Find who we are. Look in the path if we contain no directory separator. 29358as_myself= 29359case $0 in #(( 29360 *[\\/]* ) as_myself=$0 ;; 29361 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 29362for as_dir in $PATH 29363do 29364 IFS=$as_save_IFS 29365 test -z "$as_dir" && as_dir=. 29366 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 29367 done 29368IFS=$as_save_IFS 29369 29370 ;; 29371esac 29372# We did not find ourselves, most probably we were run as `sh COMMAND' 29373# in which case we are not to be found in the path. 29374if test "x$as_myself" = x; then 29375 as_myself=$0 29376fi 29377if test ! -f "$as_myself"; then 29378 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 29379 exit 1 29380fi 29381 29382# Unset variables that we do not need and which cause bugs (e.g. in 29383# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 29384# suppresses any "Segmentation fault" message there. '((' could 29385# trigger a bug in pdksh 5.2.14. 29386for as_var in BASH_ENV ENV MAIL MAILPATH 29387do eval test x\${$as_var+set} = xset \ 29388 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 29389done 29390PS1='$ ' 29391PS2='> ' 29392PS4='+ ' 29393 29394# NLS nuisances. 29395LC_ALL=C 29396export LC_ALL 29397LANGUAGE=C 29398export LANGUAGE 29399 29400# CDPATH. 29401(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 29402 29403 29404# as_fn_error STATUS ERROR [LINENO LOG_FD] 29405# ---------------------------------------- 29406# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 29407# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 29408# script with STATUS, using 1 if that was 0. 29409as_fn_error () 29410{ 29411 as_status=$1; test $as_status -eq 0 && as_status=1 29412 if test "$4"; then 29413 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 29414 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 29415 fi 29416 $as_echo "$as_me: error: $2" >&2 29417 as_fn_exit $as_status 29418} # as_fn_error 29419 29420 29421# as_fn_set_status STATUS 29422# ----------------------- 29423# Set $? to STATUS, without forking. 29424as_fn_set_status () 29425{ 29426 return $1 29427} # as_fn_set_status 29428 29429# as_fn_exit STATUS 29430# ----------------- 29431# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 29432as_fn_exit () 29433{ 29434 set +e 29435 as_fn_set_status $1 29436 exit $1 29437} # as_fn_exit 29438 29439# as_fn_unset VAR 29440# --------------- 29441# Portably unset VAR. 29442as_fn_unset () 29443{ 29444 { eval $1=; unset $1;} 29445} 29446as_unset=as_fn_unset 29447# as_fn_append VAR VALUE 29448# ---------------------- 29449# Append the text in VALUE to the end of the definition contained in VAR. Take 29450# advantage of any shell optimizations that allow amortized linear growth over 29451# repeated appends, instead of the typical quadratic growth present in naive 29452# implementations. 29453if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 29454 eval 'as_fn_append () 29455 { 29456 eval $1+=\$2 29457 }' 29458else 29459 as_fn_append () 29460 { 29461 eval $1=\$$1\$2 29462 } 29463fi # as_fn_append 29464 29465# as_fn_arith ARG... 29466# ------------------ 29467# Perform arithmetic evaluation on the ARGs, and store the result in the 29468# global $as_val. Take advantage of shells that can avoid forks. The arguments 29469# must be portable across $(()) and expr. 29470if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 29471 eval 'as_fn_arith () 29472 { 29473 as_val=$(( $* )) 29474 }' 29475else 29476 as_fn_arith () 29477 { 29478 as_val=`expr "$@" || test $? -eq 1` 29479 } 29480fi # as_fn_arith 29481 29482 29483if expr a : '\(a\)' >/dev/null 2>&1 && 29484 test "X`expr 00001 : '.*\(...\)'`" = X001; then 29485 as_expr=expr 29486else 29487 as_expr=false 29488fi 29489 29490if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 29491 as_basename=basename 29492else 29493 as_basename=false 29494fi 29495 29496if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 29497 as_dirname=dirname 29498else 29499 as_dirname=false 29500fi 29501 29502as_me=`$as_basename -- "$0" || 29503$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 29504 X"$0" : 'X\(//\)$' \| \ 29505 X"$0" : 'X\(/\)' \| . 2>/dev/null || 29506$as_echo X/"$0" | 29507 sed '/^.*\/\([^/][^/]*\)\/*$/{ 29508 s//\1/ 29509 q 29510 } 29511 /^X\/\(\/\/\)$/{ 29512 s//\1/ 29513 q 29514 } 29515 /^X\/\(\/\).*/{ 29516 s//\1/ 29517 q 29518 } 29519 s/.*/./; q'` 29520 29521# Avoid depending upon Character Ranges. 29522as_cr_letters='abcdefghijklmnopqrstuvwxyz' 29523as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 29524as_cr_Letters=$as_cr_letters$as_cr_LETTERS 29525as_cr_digits='0123456789' 29526as_cr_alnum=$as_cr_Letters$as_cr_digits 29527 29528ECHO_C= ECHO_N= ECHO_T= 29529case `echo -n x` in #((((( 29530-n*) 29531 case `echo 'xy\c'` in 29532 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 29533 xy) ECHO_C='\c';; 29534 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 29535 ECHO_T=' ';; 29536 esac;; 29537*) 29538 ECHO_N='-n';; 29539esac 29540 29541rm -f conf$$ conf$$.exe conf$$.file 29542if test -d conf$$.dir; then 29543 rm -f conf$$.dir/conf$$.file 29544else 29545 rm -f conf$$.dir 29546 mkdir conf$$.dir 2>/dev/null 29547fi 29548if (echo >conf$$.file) 2>/dev/null; then 29549 if ln -s conf$$.file conf$$ 2>/dev/null; then 29550 as_ln_s='ln -s' 29551 # ... but there are two gotchas: 29552 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 29553 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 29554 # In both cases, we have to default to `cp -pR'. 29555 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 29556 as_ln_s='cp -pR' 29557 elif ln conf$$.file conf$$ 2>/dev/null; then 29558 as_ln_s=ln 29559 else 29560 as_ln_s='cp -pR' 29561 fi 29562else 29563 as_ln_s='cp -pR' 29564fi 29565rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 29566rmdir conf$$.dir 2>/dev/null 29567 29568 29569# as_fn_mkdir_p 29570# ------------- 29571# Create "$as_dir" as a directory, including parents if necessary. 29572as_fn_mkdir_p () 29573{ 29574 29575 case $as_dir in #( 29576 -*) as_dir=./$as_dir;; 29577 esac 29578 test -d "$as_dir" || eval $as_mkdir_p || { 29579 as_dirs= 29580 while :; do 29581 case $as_dir in #( 29582 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 29583 *) as_qdir=$as_dir;; 29584 esac 29585 as_dirs="'$as_qdir' $as_dirs" 29586 as_dir=`$as_dirname -- "$as_dir" || 29587$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 29588 X"$as_dir" : 'X\(//\)[^/]' \| \ 29589 X"$as_dir" : 'X\(//\)$' \| \ 29590 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 29591$as_echo X"$as_dir" | 29592 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 29593 s//\1/ 29594 q 29595 } 29596 /^X\(\/\/\)[^/].*/{ 29597 s//\1/ 29598 q 29599 } 29600 /^X\(\/\/\)$/{ 29601 s//\1/ 29602 q 29603 } 29604 /^X\(\/\).*/{ 29605 s//\1/ 29606 q 29607 } 29608 s/.*/./; q'` 29609 test -d "$as_dir" && break 29610 done 29611 test -z "$as_dirs" || eval "mkdir $as_dirs" 29612 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 29613 29614 29615} # as_fn_mkdir_p 29616if mkdir -p . 2>/dev/null; then 29617 as_mkdir_p='mkdir -p "$as_dir"' 29618else 29619 test -d ./-p && rmdir ./-p 29620 as_mkdir_p=false 29621fi 29622 29623 29624# as_fn_executable_p FILE 29625# ----------------------- 29626# Test if FILE is an executable regular file. 29627as_fn_executable_p () 29628{ 29629 test -f "$1" && test -x "$1" 29630} # as_fn_executable_p 29631as_test_x='test -x' 29632as_executable_p=as_fn_executable_p 29633 29634# Sed expression to map a string onto a valid CPP name. 29635as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 29636 29637# Sed expression to map a string onto a valid variable name. 29638as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 29639 29640 29641exec 6>&1 29642## ----------------------------------- ## 29643## Main body of $CONFIG_STATUS script. ## 29644## ----------------------------------- ## 29645_ASEOF 29646test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 29647 29648cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 29649# Save the log message, to keep $0 and so on meaningful, and to 29650# report actual input values of CONFIG_FILES etc. instead of their 29651# values after options handling. 29652ac_log=" 29653This file was extended by tor $as_me 0.4.7.2-alpha, which was 29654generated by GNU Autoconf 2.69. Invocation command line was 29655 29656 CONFIG_FILES = $CONFIG_FILES 29657 CONFIG_HEADERS = $CONFIG_HEADERS 29658 CONFIG_LINKS = $CONFIG_LINKS 29659 CONFIG_COMMANDS = $CONFIG_COMMANDS 29660 $ $0 $@ 29661 29662on `(hostname || uname -n) 2>/dev/null | sed 1q` 29663" 29664 29665_ACEOF 29666 29667case $ac_config_files in *" 29668"*) set x $ac_config_files; shift; ac_config_files=$*;; 29669esac 29670 29671case $ac_config_headers in *" 29672"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 29673esac 29674 29675 29676cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 29677# Files that config.status was made for. 29678config_files="$ac_config_files" 29679config_headers="$ac_config_headers" 29680config_commands="$ac_config_commands" 29681 29682_ACEOF 29683 29684cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 29685ac_cs_usage="\ 29686\`$as_me' instantiates files and other configuration actions 29687from templates according to the current configuration. Unless the files 29688and actions are specified as TAGs, all are instantiated by default. 29689 29690Usage: $0 [OPTION]... [TAG]... 29691 29692 -h, --help print this help, then exit 29693 -V, --version print version number and configuration settings, then exit 29694 --config print configuration, then exit 29695 -q, --quiet, --silent 29696 do not print progress messages 29697 -d, --debug don't remove temporary files 29698 --recheck update $as_me by reconfiguring in the same conditions 29699 --file=FILE[:TEMPLATE] 29700 instantiate the configuration file FILE 29701 --header=FILE[:TEMPLATE] 29702 instantiate the configuration header FILE 29703 29704Configuration files: 29705$config_files 29706 29707Configuration headers: 29708$config_headers 29709 29710Configuration commands: 29711$config_commands 29712 29713Report bugs to the package provider." 29714 29715_ACEOF 29716cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 29717ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 29718ac_cs_version="\\ 29719tor config.status 0.4.7.2-alpha 29720configured by $0, generated by GNU Autoconf 2.69, 29721 with options \\"\$ac_cs_config\\" 29722 29723Copyright (C) 2012 Free Software Foundation, Inc. 29724This config.status script is free software; the Free Software Foundation 29725gives unlimited permission to copy, distribute and modify it." 29726 29727ac_pwd='$ac_pwd' 29728srcdir='$srcdir' 29729INSTALL='$INSTALL' 29730MKDIR_P='$MKDIR_P' 29731AWK='$AWK' 29732test -n "\$AWK" || AWK=awk 29733_ACEOF 29734 29735cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 29736# The default lists apply if the user does not specify any file. 29737ac_need_defaults=: 29738while test $# != 0 29739do 29740 case $1 in 29741 --*=?*) 29742 ac_option=`expr "X$1" : 'X\([^=]*\)='` 29743 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 29744 ac_shift=: 29745 ;; 29746 --*=) 29747 ac_option=`expr "X$1" : 'X\([^=]*\)='` 29748 ac_optarg= 29749 ac_shift=: 29750 ;; 29751 *) 29752 ac_option=$1 29753 ac_optarg=$2 29754 ac_shift=shift 29755 ;; 29756 esac 29757 29758 case $ac_option in 29759 # Handling of the options. 29760 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 29761 ac_cs_recheck=: ;; 29762 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 29763 $as_echo "$ac_cs_version"; exit ;; 29764 --config | --confi | --conf | --con | --co | --c ) 29765 $as_echo "$ac_cs_config"; exit ;; 29766 --debug | --debu | --deb | --de | --d | -d ) 29767 debug=: ;; 29768 --file | --fil | --fi | --f ) 29769 $ac_shift 29770 case $ac_optarg in 29771 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 29772 '') as_fn_error $? "missing file argument" ;; 29773 esac 29774 as_fn_append CONFIG_FILES " '$ac_optarg'" 29775 ac_need_defaults=false;; 29776 --header | --heade | --head | --hea ) 29777 $ac_shift 29778 case $ac_optarg in 29779 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 29780 esac 29781 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 29782 ac_need_defaults=false;; 29783 --he | --h) 29784 # Conflict between --help and --header 29785 as_fn_error $? "ambiguous option: \`$1' 29786Try \`$0 --help' for more information.";; 29787 --help | --hel | -h ) 29788 $as_echo "$ac_cs_usage"; exit ;; 29789 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 29790 | -silent | --silent | --silen | --sile | --sil | --si | --s) 29791 ac_cs_silent=: ;; 29792 29793 # This is an error. 29794 -*) as_fn_error $? "unrecognized option: \`$1' 29795Try \`$0 --help' for more information." ;; 29796 29797 *) as_fn_append ac_config_targets " $1" 29798 ac_need_defaults=false ;; 29799 29800 esac 29801 shift 29802done 29803 29804ac_configure_extra_args= 29805 29806if $ac_cs_silent; then 29807 exec 6>/dev/null 29808 ac_configure_extra_args="$ac_configure_extra_args --silent" 29809fi 29810 29811_ACEOF 29812cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 29813if \$ac_cs_recheck; then 29814 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 29815 shift 29816 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 29817 CONFIG_SHELL='$SHELL' 29818 export CONFIG_SHELL 29819 exec "\$@" 29820fi 29821 29822_ACEOF 29823cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 29824exec 5>>config.log 29825{ 29826 echo 29827 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 29828## Running $as_me. ## 29829_ASBOX 29830 $as_echo "$ac_log" 29831} >&5 29832 29833_ACEOF 29834cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 29835# 29836# INIT-COMMANDS 29837# 29838AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}" 29839 29840_ACEOF 29841 29842cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 29843 29844# Handling of arguments. 29845for ac_config_target in $ac_config_targets 29846do 29847 case $ac_config_target in 29848 "orconfig.h") CONFIG_HEADERS="$CONFIG_HEADERS orconfig.h" ;; 29849 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 29850 "Doxyfile") CONFIG_FILES="$CONFIG_FILES Doxyfile" ;; 29851 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 29852 "contrib/operator-tools/tor.logrotate") CONFIG_FILES="$CONFIG_FILES contrib/operator-tools/tor.logrotate" ;; 29853 "src/config/torrc.sample") CONFIG_FILES="$CONFIG_FILES src/config/torrc.sample" ;; 29854 "src/config/torrc.minimal") CONFIG_FILES="$CONFIG_FILES src/config/torrc.minimal" ;; 29855 "scripts/maint/checkOptionDocs.pl") CONFIG_FILES="$CONFIG_FILES scripts/maint/checkOptionDocs.pl" ;; 29856 "warning_flags") CONFIG_FILES="$CONFIG_FILES warning_flags" ;; 29857 29858 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 29859 esac 29860done 29861 29862 29863# If the user did not use the arguments to specify the items to instantiate, 29864# then the envvar interface is used. Set only those that are not. 29865# We use the long form for the default assignment because of an extremely 29866# bizarre bug on SunOS 4.1.3. 29867if $ac_need_defaults; then 29868 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 29869 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 29870 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 29871fi 29872 29873# Have a temporary directory for convenience. Make it in the build tree 29874# simply because there is no reason against having it here, and in addition, 29875# creating and moving files from /tmp can sometimes cause problems. 29876# Hook for its removal unless debugging. 29877# Note that there is a small window in which the directory will not be cleaned: 29878# after its creation but before its name has been assigned to `$tmp'. 29879$debug || 29880{ 29881 tmp= ac_tmp= 29882 trap 'exit_status=$? 29883 : "${ac_tmp:=$tmp}" 29884 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 29885' 0 29886 trap 'as_fn_exit 1' 1 2 13 15 29887} 29888# Create a (secure) tmp directory for tmp files. 29889 29890{ 29891 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 29892 test -d "$tmp" 29893} || 29894{ 29895 tmp=./conf$$-$RANDOM 29896 (umask 077 && mkdir "$tmp") 29897} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 29898ac_tmp=$tmp 29899 29900# Set up the scripts for CONFIG_FILES section. 29901# No need to generate them if there are no CONFIG_FILES. 29902# This happens for instance with `./config.status config.h'. 29903if test -n "$CONFIG_FILES"; then 29904 29905 29906ac_cr=`echo X | tr X '\015'` 29907# On cygwin, bash can eat \r inside `` if the user requested igncr. 29908# But we know of no other shell where ac_cr would be empty at this 29909# point, so we can use a bashism as a fallback. 29910if test "x$ac_cr" = x; then 29911 eval ac_cr=\$\'\\r\' 29912fi 29913ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 29914if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 29915 ac_cs_awk_cr='\\r' 29916else 29917 ac_cs_awk_cr=$ac_cr 29918fi 29919 29920echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 29921_ACEOF 29922 29923 29924{ 29925 echo "cat >conf$$subs.awk <<_ACEOF" && 29926 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 29927 echo "_ACEOF" 29928} >conf$$subs.sh || 29929 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 29930ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 29931ac_delim='%!_!# ' 29932for ac_last_try in false false false false false :; do 29933 . ./conf$$subs.sh || 29934 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 29935 29936 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 29937 if test $ac_delim_n = $ac_delim_num; then 29938 break 29939 elif $ac_last_try; then 29940 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 29941 else 29942 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 29943 fi 29944done 29945rm -f conf$$subs.sh 29946 29947cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 29948cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 29949_ACEOF 29950sed -n ' 29951h 29952s/^/S["/; s/!.*/"]=/ 29953p 29954g 29955s/^[^!]*!// 29956:repl 29957t repl 29958s/'"$ac_delim"'$// 29959t delim 29960:nl 29961h 29962s/\(.\{148\}\)..*/\1/ 29963t more1 29964s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 29965p 29966n 29967b repl 29968:more1 29969s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 29970p 29971g 29972s/.\{148\}// 29973t nl 29974:delim 29975h 29976s/\(.\{148\}\)..*/\1/ 29977t more2 29978s/["\\]/\\&/g; s/^/"/; s/$/"/ 29979p 29980b 29981:more2 29982s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 29983p 29984g 29985s/.\{148\}// 29986t delim 29987' <conf$$subs.awk | sed ' 29988/^[^""]/{ 29989 N 29990 s/\n// 29991} 29992' >>$CONFIG_STATUS || ac_write_fail=1 29993rm -f conf$$subs.awk 29994cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 29995_ACAWK 29996cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 29997 for (key in S) S_is_set[key] = 1 29998 FS = "" 29999 30000} 30001{ 30002 line = $ 0 30003 nfields = split(line, field, "@") 30004 substed = 0 30005 len = length(field[1]) 30006 for (i = 2; i < nfields; i++) { 30007 key = field[i] 30008 keylen = length(key) 30009 if (S_is_set[key]) { 30010 value = S[key] 30011 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 30012 len += length(value) + length(field[++i]) 30013 substed = 1 30014 } else 30015 len += 1 + keylen 30016 } 30017 30018 print line 30019} 30020 30021_ACAWK 30022_ACEOF 30023cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 30024if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 30025 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 30026else 30027 cat 30028fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 30029 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 30030_ACEOF 30031 30032# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 30033# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 30034# trailing colons and then remove the whole line if VPATH becomes empty 30035# (actually we leave an empty line to preserve line numbers). 30036if test "x$srcdir" = x.; then 30037 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 30038h 30039s/// 30040s/^/:/ 30041s/[ ]*$/:/ 30042s/:\$(srcdir):/:/g 30043s/:\${srcdir}:/:/g 30044s/:@srcdir@:/:/g 30045s/^:*// 30046s/:*$// 30047x 30048s/\(=[ ]*\).*/\1/ 30049G 30050s/\n// 30051s/^[^=]*=[ ]*$// 30052}' 30053fi 30054 30055cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 30056fi # test -n "$CONFIG_FILES" 30057 30058# Set up the scripts for CONFIG_HEADERS section. 30059# No need to generate them if there are no CONFIG_HEADERS. 30060# This happens for instance with `./config.status Makefile'. 30061if test -n "$CONFIG_HEADERS"; then 30062cat >"$ac_tmp/defines.awk" <<\_ACAWK || 30063BEGIN { 30064_ACEOF 30065 30066# Transform confdefs.h into an awk script `defines.awk', embedded as 30067# here-document in config.status, that substitutes the proper values into 30068# config.h.in to produce config.h. 30069 30070# Create a delimiter string that does not exist in confdefs.h, to ease 30071# handling of long lines. 30072ac_delim='%!_!# ' 30073for ac_last_try in false false :; do 30074 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 30075 if test -z "$ac_tt"; then 30076 break 30077 elif $ac_last_try; then 30078 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 30079 else 30080 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 30081 fi 30082done 30083 30084# For the awk script, D is an array of macro values keyed by name, 30085# likewise P contains macro parameters if any. Preserve backslash 30086# newline sequences. 30087 30088ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 30089sed -n ' 30090s/.\{148\}/&'"$ac_delim"'/g 30091t rset 30092:rset 30093s/^[ ]*#[ ]*define[ ][ ]*/ / 30094t def 30095d 30096:def 30097s/\\$// 30098t bsnl 30099s/["\\]/\\&/g 30100s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 30101D["\1"]=" \3"/p 30102s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 30103d 30104:bsnl 30105s/["\\]/\\&/g 30106s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 30107D["\1"]=" \3\\\\\\n"\\/p 30108t cont 30109s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 30110t cont 30111d 30112:cont 30113n 30114s/.\{148\}/&'"$ac_delim"'/g 30115t clear 30116:clear 30117s/\\$// 30118t bsnlc 30119s/["\\]/\\&/g; s/^/"/; s/$/"/p 30120d 30121:bsnlc 30122s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 30123b cont 30124' <confdefs.h | sed ' 30125s/'"$ac_delim"'/"\\\ 30126"/g' >>$CONFIG_STATUS || ac_write_fail=1 30127 30128cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 30129 for (key in D) D_is_set[key] = 1 30130 FS = "" 30131} 30132/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 30133 line = \$ 0 30134 split(line, arg, " ") 30135 if (arg[1] == "#") { 30136 defundef = arg[2] 30137 mac1 = arg[3] 30138 } else { 30139 defundef = substr(arg[1], 2) 30140 mac1 = arg[2] 30141 } 30142 split(mac1, mac2, "(") #) 30143 macro = mac2[1] 30144 prefix = substr(line, 1, index(line, defundef) - 1) 30145 if (D_is_set[macro]) { 30146 # Preserve the white space surrounding the "#". 30147 print prefix "define", macro P[macro] D[macro] 30148 next 30149 } else { 30150 # Replace #undef with comments. This is necessary, for example, 30151 # in the case of _POSIX_SOURCE, which is predefined and required 30152 # on some systems where configure will not decide to define it. 30153 if (defundef == "undef") { 30154 print "/*", prefix defundef, macro, "*/" 30155 next 30156 } 30157 } 30158} 30159{ print } 30160_ACAWK 30161_ACEOF 30162cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 30163 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 30164fi # test -n "$CONFIG_HEADERS" 30165 30166 30167eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 30168shift 30169for ac_tag 30170do 30171 case $ac_tag in 30172 :[FHLC]) ac_mode=$ac_tag; continue;; 30173 esac 30174 case $ac_mode$ac_tag in 30175 :[FHL]*:*);; 30176 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 30177 :[FH]-) ac_tag=-:-;; 30178 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 30179 esac 30180 ac_save_IFS=$IFS 30181 IFS=: 30182 set x $ac_tag 30183 IFS=$ac_save_IFS 30184 shift 30185 ac_file=$1 30186 shift 30187 30188 case $ac_mode in 30189 :L) ac_source=$1;; 30190 :[FH]) 30191 ac_file_inputs= 30192 for ac_f 30193 do 30194 case $ac_f in 30195 -) ac_f="$ac_tmp/stdin";; 30196 *) # Look for the file first in the build tree, then in the source tree 30197 # (if the path is not absolute). The absolute path cannot be DOS-style, 30198 # because $ac_f cannot contain `:'. 30199 test -f "$ac_f" || 30200 case $ac_f in 30201 [\\/$]*) false;; 30202 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 30203 esac || 30204 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 30205 esac 30206 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 30207 as_fn_append ac_file_inputs " '$ac_f'" 30208 done 30209 30210 # Let's still pretend it is `configure' which instantiates (i.e., don't 30211 # use $as_me), people would be surprised to read: 30212 # /* config.h. Generated by config.status. */ 30213 configure_input='Generated from '` 30214 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 30215 `' by configure.' 30216 if test x"$ac_file" != x-; then 30217 configure_input="$ac_file. $configure_input" 30218 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 30219$as_echo "$as_me: creating $ac_file" >&6;} 30220 fi 30221 # Neutralize special characters interpreted by sed in replacement strings. 30222 case $configure_input in #( 30223 *\&* | *\|* | *\\* ) 30224 ac_sed_conf_input=`$as_echo "$configure_input" | 30225 sed 's/[\\\\&|]/\\\\&/g'`;; #( 30226 *) ac_sed_conf_input=$configure_input;; 30227 esac 30228 30229 case $ac_tag in 30230 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 30231 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 30232 esac 30233 ;; 30234 esac 30235 30236 ac_dir=`$as_dirname -- "$ac_file" || 30237$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 30238 X"$ac_file" : 'X\(//\)[^/]' \| \ 30239 X"$ac_file" : 'X\(//\)$' \| \ 30240 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 30241$as_echo X"$ac_file" | 30242 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 30243 s//\1/ 30244 q 30245 } 30246 /^X\(\/\/\)[^/].*/{ 30247 s//\1/ 30248 q 30249 } 30250 /^X\(\/\/\)$/{ 30251 s//\1/ 30252 q 30253 } 30254 /^X\(\/\).*/{ 30255 s//\1/ 30256 q 30257 } 30258 s/.*/./; q'` 30259 as_dir="$ac_dir"; as_fn_mkdir_p 30260 ac_builddir=. 30261 30262case "$ac_dir" in 30263.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 30264*) 30265 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 30266 # A ".." for each directory in $ac_dir_suffix. 30267 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 30268 case $ac_top_builddir_sub in 30269 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 30270 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 30271 esac ;; 30272esac 30273ac_abs_top_builddir=$ac_pwd 30274ac_abs_builddir=$ac_pwd$ac_dir_suffix 30275# for backward compatibility: 30276ac_top_builddir=$ac_top_build_prefix 30277 30278case $srcdir in 30279 .) # We are building in place. 30280 ac_srcdir=. 30281 ac_top_srcdir=$ac_top_builddir_sub 30282 ac_abs_top_srcdir=$ac_pwd ;; 30283 [\\/]* | ?:[\\/]* ) # Absolute name. 30284 ac_srcdir=$srcdir$ac_dir_suffix; 30285 ac_top_srcdir=$srcdir 30286 ac_abs_top_srcdir=$srcdir ;; 30287 *) # Relative name. 30288 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 30289 ac_top_srcdir=$ac_top_build_prefix$srcdir 30290 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 30291esac 30292ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 30293 30294 30295 case $ac_mode in 30296 :F) 30297 # 30298 # CONFIG_FILE 30299 # 30300 30301 case $INSTALL in 30302 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 30303 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 30304 esac 30305 ac_MKDIR_P=$MKDIR_P 30306 case $MKDIR_P in 30307 [\\/$]* | ?:[\\/]* ) ;; 30308 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 30309 esac 30310_ACEOF 30311 30312cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 30313# If the template does not know about datarootdir, expand it. 30314# FIXME: This hack should be removed a few years after 2.60. 30315ac_datarootdir_hack=; ac_datarootdir_seen= 30316ac_sed_dataroot=' 30317/datarootdir/ { 30318 p 30319 q 30320} 30321/@datadir@/p 30322/@docdir@/p 30323/@infodir@/p 30324/@localedir@/p 30325/@mandir@/p' 30326case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 30327*datarootdir*) ac_datarootdir_seen=yes;; 30328*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 30329 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 30330$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 30331_ACEOF 30332cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 30333 ac_datarootdir_hack=' 30334 s&@datadir@&$datadir&g 30335 s&@docdir@&$docdir&g 30336 s&@infodir@&$infodir&g 30337 s&@localedir@&$localedir&g 30338 s&@mandir@&$mandir&g 30339 s&\\\${datarootdir}&$datarootdir&g' ;; 30340esac 30341_ACEOF 30342 30343# Neutralize VPATH when `$srcdir' = `.'. 30344# Shell code in configure.ac might set extrasub. 30345# FIXME: do we really want to maintain this feature? 30346cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 30347ac_sed_extra="$ac_vpsub 30348$extrasub 30349_ACEOF 30350cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 30351:t 30352/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 30353s|@configure_input@|$ac_sed_conf_input|;t t 30354s&@top_builddir@&$ac_top_builddir_sub&;t t 30355s&@top_build_prefix@&$ac_top_build_prefix&;t t 30356s&@srcdir@&$ac_srcdir&;t t 30357s&@abs_srcdir@&$ac_abs_srcdir&;t t 30358s&@top_srcdir@&$ac_top_srcdir&;t t 30359s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 30360s&@builddir@&$ac_builddir&;t t 30361s&@abs_builddir@&$ac_abs_builddir&;t t 30362s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 30363s&@INSTALL@&$ac_INSTALL&;t t 30364s&@MKDIR_P@&$ac_MKDIR_P&;t t 30365$ac_datarootdir_hack 30366" 30367eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 30368 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 30369 30370test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 30371 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 30372 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 30373 "$ac_tmp/out"`; test -z "$ac_out"; } && 30374 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 30375which seems to be undefined. Please make sure it is defined" >&5 30376$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 30377which seems to be undefined. Please make sure it is defined" >&2;} 30378 30379 rm -f "$ac_tmp/stdin" 30380 case $ac_file in 30381 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 30382 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 30383 esac \ 30384 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 30385 ;; 30386 :H) 30387 # 30388 # CONFIG_HEADER 30389 # 30390 if test x"$ac_file" != x-; then 30391 { 30392 $as_echo "/* $configure_input */" \ 30393 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 30394 } >"$ac_tmp/config.h" \ 30395 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 30396 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 30397 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 30398$as_echo "$as_me: $ac_file is unchanged" >&6;} 30399 else 30400 rm -f "$ac_file" 30401 mv "$ac_tmp/config.h" "$ac_file" \ 30402 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 30403 fi 30404 else 30405 $as_echo "/* $configure_input */" \ 30406 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 30407 || as_fn_error $? "could not create -" "$LINENO" 5 30408 fi 30409# Compute "$ac_file"'s index in $config_headers. 30410_am_arg="$ac_file" 30411_am_stamp_count=1 30412for _am_header in $config_headers :; do 30413 case $_am_header in 30414 $_am_arg | $_am_arg:* ) 30415 break ;; 30416 * ) 30417 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 30418 esac 30419done 30420echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 30421$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 30422 X"$_am_arg" : 'X\(//\)[^/]' \| \ 30423 X"$_am_arg" : 'X\(//\)$' \| \ 30424 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 30425$as_echo X"$_am_arg" | 30426 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 30427 s//\1/ 30428 q 30429 } 30430 /^X\(\/\/\)[^/].*/{ 30431 s//\1/ 30432 q 30433 } 30434 /^X\(\/\/\)$/{ 30435 s//\1/ 30436 q 30437 } 30438 /^X\(\/\).*/{ 30439 s//\1/ 30440 q 30441 } 30442 s/.*/./; q'`/stamp-h$_am_stamp_count 30443 ;; 30444 30445 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 30446$as_echo "$as_me: executing $ac_file commands" >&6;} 30447 ;; 30448 esac 30449 30450 30451 case $ac_file$ac_mode in 30452 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 30453 # Older Autoconf quotes --file arguments for eval, but not when files 30454 # are listed without --file. Let's play safe and only enable the eval 30455 # if we detect the quoting. 30456 # TODO: see whether this extra hack can be removed once we start 30457 # requiring Autoconf 2.70 or later. 30458 case $CONFIG_FILES in #( 30459 *\'*) : 30460 eval set x "$CONFIG_FILES" ;; #( 30461 *) : 30462 set x $CONFIG_FILES ;; #( 30463 *) : 30464 ;; 30465esac 30466 shift 30467 # Used to flag and report bootstrapping failures. 30468 am_rc=0 30469 for am_mf 30470 do 30471 # Strip MF so we end up with the name of the file. 30472 am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'` 30473 # Check whether this is an Automake generated Makefile which includes 30474 # dependency-tracking related rules and includes. 30475 # Grep'ing the whole file directly is not great: AIX grep has a line 30476 # limit of 2048, but all sed's we know have understand at least 4000. 30477 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ 30478 || continue 30479 am_dirpart=`$as_dirname -- "$am_mf" || 30480$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 30481 X"$am_mf" : 'X\(//\)[^/]' \| \ 30482 X"$am_mf" : 'X\(//\)$' \| \ 30483 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 30484$as_echo X"$am_mf" | 30485 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 30486 s//\1/ 30487 q 30488 } 30489 /^X\(\/\/\)[^/].*/{ 30490 s//\1/ 30491 q 30492 } 30493 /^X\(\/\/\)$/{ 30494 s//\1/ 30495 q 30496 } 30497 /^X\(\/\).*/{ 30498 s//\1/ 30499 q 30500 } 30501 s/.*/./; q'` 30502 am_filepart=`$as_basename -- "$am_mf" || 30503$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \ 30504 X"$am_mf" : 'X\(//\)$' \| \ 30505 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 30506$as_echo X/"$am_mf" | 30507 sed '/^.*\/\([^/][^/]*\)\/*$/{ 30508 s//\1/ 30509 q 30510 } 30511 /^X\/\(\/\/\)$/{ 30512 s//\1/ 30513 q 30514 } 30515 /^X\/\(\/\).*/{ 30516 s//\1/ 30517 q 30518 } 30519 s/.*/./; q'` 30520 { echo "$as_me:$LINENO: cd "$am_dirpart" \ 30521 && sed -e '/# am--include-marker/d' "$am_filepart" \ 30522 | $MAKE -f - am--depfiles" >&5 30523 (cd "$am_dirpart" \ 30524 && sed -e '/# am--include-marker/d' "$am_filepart" \ 30525 | $MAKE -f - am--depfiles) >&5 2>&5 30526 ac_status=$? 30527 echo "$as_me:$LINENO: \$? = $ac_status" >&5 30528 (exit $ac_status); } || am_rc=$? 30529 done 30530 if test $am_rc -ne 0; then 30531 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 30532$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 30533as_fn_error $? "Something went wrong bootstrapping makefile fragments 30534 for automatic dependency tracking. If GNU make was not used, consider 30535 re-running the configure script with MAKE=\"gmake\" (or whatever is 30536 necessary). You can also try re-running configure with the 30537 '--disable-dependency-tracking' option to at least be able to build 30538 the package (albeit without support for automatic dependency tracking). 30539See \`config.log' for more details" "$LINENO" 5; } 30540 fi 30541 { am_dirpart=; unset am_dirpart;} 30542 { am_filepart=; unset am_filepart;} 30543 { am_mf=; unset am_mf;} 30544 { am_rc=; unset am_rc;} 30545 rm -f conftest-deps.mk 30546} 30547 ;; 30548 30549 esac 30550done # for ac_tag 30551 30552 30553as_fn_exit 0 30554_ACEOF 30555ac_clean_files=$ac_clean_files_save 30556 30557test $ac_write_fail = 0 || 30558 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 30559 30560 30561# configure is writing to config.log, and then calls config.status. 30562# config.status does its own redirection, appending to config.log. 30563# Unfortunately, on DOS this fails, as config.log is still kept open 30564# by configure, so config.status won't be able to write to it; its 30565# output is simply discarded. So we exec the FD to /dev/null, 30566# effectively closing config.log, so it can be properly (re)opened and 30567# appended to by config.status. When coming back to configure, we 30568# need to make the FD available again. 30569if test "$no_create" != yes; then 30570 ac_cs_success=: 30571 ac_config_status_args= 30572 test "$silent" = yes && 30573 ac_config_status_args="$ac_config_status_args --quiet" 30574 exec 5>/dev/null 30575 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 30576 exec 5>>config.log 30577 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 30578 # would make configure fail if this is the last instruction. 30579 $ac_cs_success || as_fn_exit 1 30580fi 30581if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 30582 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 30583$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 30584fi 30585 30586 30587if test "$openssl_ver_mismatch" = "yes"; then 30588 tor_incr_n_warnings 30589 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 30590============ 30591Warning! The version OpenSSL headers we get from compiling with 30592 \"${TOR_CPPFLAGS_OPENSSL:-(no extra options)}\" 30593do not match version of the OpenSSL library we get when linking with 30594 \"$TOR_LDFLAGS_OPENSSL $TOR_OPENSSL_LIBS\". 30595This might cause compilation to fail. Try using --with-openssl-dir to specify 30596the exact OpenSSL path you want. 30597============ 30598" >&5 30599$as_echo "$as_me: WARNING: 30600============ 30601Warning! The version OpenSSL headers we get from compiling with 30602 \"${TOR_CPPFLAGS_OPENSSL:-(no extra options)}\" 30603do not match version of the OpenSSL library we get when linking with 30604 \"$TOR_LDFLAGS_OPENSSL $TOR_OPENSSL_LIBS\". 30605This might cause compilation to fail. Try using --with-openssl-dir to specify 30606the exact OpenSSL path you want. 30607============ 30608" >&2;} 30609fi 30610 30611# 30612# Mini-report on what will be built. 30613# 30614 30615 30616 30617 30618 PPRINT_YES_MSG=yes 30619 PPRINT_NO_MSG=no 30620 30621 # find tput, which tells us if colors are supported and gives us color codes 30622 # Extract the first word of "tput", so it can be a program name with args. 30623set dummy tput; ac_word=$2 30624{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 30625$as_echo_n "checking for $ac_word... " >&6; } 30626if ${ac_cv_path_pprint_tput+:} false; then : 30627 $as_echo_n "(cached) " >&6 30628else 30629 case $pprint_tput in 30630 [\\/]* | ?:[\\/]*) 30631 ac_cv_path_pprint_tput="$pprint_tput" # Let the user override the test with a path. 30632 ;; 30633 *) 30634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 30635for as_dir in $PATH 30636do 30637 IFS=$as_save_IFS 30638 test -z "$as_dir" && as_dir=. 30639 for ac_exec_ext in '' $ac_executable_extensions; do 30640 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 30641 ac_cv_path_pprint_tput="$as_dir/$ac_word$ac_exec_ext" 30642 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 30643 break 2 30644 fi 30645done 30646 done 30647IFS=$as_save_IFS 30648 30649 ;; 30650esac 30651fi 30652pprint_tput=$ac_cv_path_pprint_tput 30653if test -n "$pprint_tput"; then 30654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pprint_tput" >&5 30655$as_echo "$pprint_tput" >&6; } 30656else 30657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 30658$as_echo "no" >&6; } 30659fi 30660 30661 30662 30663 if test -n "$pprint_tput"; then : 30664 30665 if test -n "$PS1" && test `"$pprint_tput" colors` -ge 8 && test -t 1; then : 30666 30667 # interactive shell and colors supported and standard output 30668 # file descriptor is opened on a terminal 30669 PPRINT_COLOR_TXTBLK="`"$pprint_tput" setaf 0`" 30670 PPRINT_COLOR_TXTBLU="`"$pprint_tput" setaf 4`" 30671 PPRINT_COLOR_TXTGRN="`"$pprint_tput" setaf 2`" 30672 PPRINT_COLOR_TXTCYN="`"$pprint_tput" setaf 6`" 30673 PPRINT_COLOR_TXTRED="`"$pprint_tput" setaf 1`" 30674 PPRINT_COLOR_TXTPUR="`"$pprint_tput" setaf 5`" 30675 PPRINT_COLOR_TXTYLW="`"$pprint_tput" setaf 3`" 30676 PPRINT_COLOR_TXTWHT="`"$pprint_tput" setaf 7`" 30677 PPRINT_COLOR_BLD=`"$pprint_tput" bold` 30678 PPRINT_COLOR_BLDBLK="$PPRINT_COLOR_BLD$PPRINT_COLOR_TXTBLK" 30679 PPRINT_COLOR_BLDBLU="$PPRINT_COLOR_BLD$PPRINT_COLOR_TXTBLU" 30680 PPRINT_COLOR_BLDGRN="$PPRINT_COLOR_BLD$PPRINT_COLOR_TXTGRN" 30681 PPRINT_COLOR_BLDCYN="$PPRINT_COLOR_BLD$PPRINT_COLOR_TXTCYN" 30682 PPRINT_COLOR_BLDRED="$PPRINT_COLOR_BLD$PPRINT_COLOR_TXTRED" 30683 PPRINT_COLOR_BLDPUR="$PPRINT_COLOR_BLD$PPRINT_COLOR_TXTPUR" 30684 PPRINT_COLOR_BLDYLW="$PPRINT_COLOR_BLD$PPRINT_COLOR_TXTYLW" 30685 PPRINT_COLOR_BLDWHT="$PPRINT_COLOR_BLD$PPRINT_COLOR_TXTWHT" 30686 PPRINT_COLOR_RST="`"$pprint_tput" sgr0`" 30687 30688 # colored yes and no 30689 PPRINT_YES_MSG="$PPRINT_COLOR_BLDGRN$PPRINT_YES_MSG$PPRINT_COLOR_RST" 30690 PPRINT_NO_MSG="$PPRINT_COLOR_BLDRED$PPRINT_NO_MSG$PPRINT_COLOR_RST" 30691 30692 # subtitle color 30693 PPRINT_COLOR_SUBTITLE="$PPRINT_COLOR_BLDCYN" 30694 30695fi 30696 30697fi 30698 30699 30700 30701 30702 30703 30704 30705 30706$as_echo 30707$as_echo "Tor Version: ${PPRINT_COLOR_BLDBLU}Tor $PACKAGE_VERSION $PPRINT_COLOR_RST" 30708$as_echo 30709 30710 30711 $as_echo "${PPRINT_COLOR_SUBTITLE}Build Features$PPRINT_COLOR_RST" 30712 30713 30714 30715 30716 30717 30718 30719 30720 30721 30722 30723 30724 30725 30726 30727 30728 30729 30730 30731 30732 30733 30734 30735 30736 30737 30738 30739 30740 30741 30742 30743 30744 30745 30746 30747 30748 30749 30750 30751 30752 30753 30754 30755 30756 30757 30758 30759 30760 30761 30762 30763 30764 30765 30766 30767 30768 30769 30770 30771 30772 30773 30774 30775 30776 30777 30778 30779 30780 30781 30782 30783 30784 30785 30786 30787 30788 30789 30790 30791 30792 30793 30794 30795 30796 30797 30798 30799 30800 30801 30802 30803 30804 30805 30806 30807 30808 30809 30810 30811 30812 30813 30814 30815 30816 30817 30818 30819 30820 30821 30822 30823 30824 30825 30826 30827 30828 30829 30830 30831 30832 30833 30834 30835 30836 30837 30838 $as_echo_n " " 30839 30840 $as_echo_n " " 30841 30842 30843 30844 30845 $as_echo_n """Compiler$PPRINT_COLOR_RST: " 30846 $as_echo "${PPRINT_COLOR_BLD}$CC$PPRINT_COLOR_RST" 30847 30848 30849 30850 30851 30852 30853 30854 30855 30856 30857 30858 30859 30860 30861 30862 30863 30864 30865 30866 30867 30868 30869 30870 30871 30872 30873 30874 30875 30876 30877 30878 30879 30880 30881 30882 30883 30884 30885 30886 30887 30888 30889 30890 30891 30892 30893 30894 30895 30896 30897 30898 30899 30900 30901 30902 30903 30904 30905 30906 30907 30908 30909 30910 30911 30912 30913 30914 30915 30916 30917 30918 30919 30920 30921 30922 30923 30924 30925 30926 30927 30928 30929 30930 30931 30932 30933 30934 30935 30936 30937 30938 30939 30940 30941 30942 30943 30944 30945 30946 30947 30948 30949 30950 30951 30952 30953 30954 30955 30956 30957 30958 30959 30960 30961 30962 30963 30964 30965 30966 30967 30968 30969 30970 30971 30972 30973 30974 30975 30976 30977 30978 30979 30980 30981 $as_echo_n " " 30982 30983 $as_echo_n " " 30984 30985 30986 30987 30988 $as_echo_n """Host OS$PPRINT_COLOR_RST: " 30989 $as_echo "${PPRINT_COLOR_BLD}$host_os$PPRINT_COLOR_RST" 30990 30991 30992 30993 30994 30995 30996 30997 30998$as_echo 30999 31000test "x$enable_fatal_warnings" = "xyes" && value=1 || value=0 31001 31002 31003 31004 31005 test $value -eq 0 && pprint_msg="$PPRINT_NO_MSG" || pprint_msg="$PPRINT_YES_MSG" 31006 31007 31008 31009 31010 31011 31012 31013 31014 31015 31016 31017 31018 31019 31020 31021 31022 31023 31024 31025 31026 31027 31028 31029 31030 31031 31032 31033 31034 31035 31036 31037 31038 31039 31040 31041 31042 31043 31044 31045 31046 31047 31048 31049 31050 31051 31052 31053 31054 31055 31056 31057 31058 31059 31060 $as_echo_n " " 31061 31062 $as_echo_n " " 31063 31064 31065 31066 31067 $as_echo_n """Warnings are fatal (--enable-fatal-warnings)$PPRINT_COLOR_RST: " 31068 $as_echo "${PPRINT_COLOR_BLD}$pprint_msg$PPRINT_COLOR_RST" 31069 31070 31071 31072 31073 31074 31075 31076 31077 31078 31079 31080 31081 31082 31083test "x$enable_android" = "xyes" && value=1 || value=0 31084 31085 31086 31087 31088 test $value -eq 0 && pprint_msg="$PPRINT_NO_MSG" || pprint_msg="$PPRINT_YES_MSG" 31089 31090 31091 31092 31093 31094 31095 31096 31097 31098 31099 31100 31101 31102 31103 31104 31105 31106 31107 31108 31109 31110 31111 31112 31113 31114 31115 31116 31117 31118 31119 31120 31121 31122 31123 31124 31125 31126 31127 31128 31129 31130 31131 31132 31133 31134 31135 31136 31137 31138 31139 31140 31141 31142 31143 31144 31145 31146 31147 31148 31149 31150 31151 31152 31153 31154 31155 31156 31157 31158 31159 31160 31161 31162 31163 $as_echo_n " " 31164 31165 $as_echo_n " " 31166 31167 31168 31169 31170 $as_echo_n """Android support (--enable-android)$PPRINT_COLOR_RST: " 31171 $as_echo "${PPRINT_COLOR_BLD}$pprint_msg$PPRINT_COLOR_RST" 31172 31173 31174 31175 31176 31177 31178 31179 31180 31181 31182 31183 31184 31185 31186$as_echo 31187 31188 $as_echo "${PPRINT_COLOR_SUBTITLE}Static Build$PPRINT_COLOR_RST" 31189 31190 31191test "x$enable_static_tor" = "xyes" && value=1 || value=0 31192 31193 31194 31195 31196 test $value -eq 0 && pprint_msg="$PPRINT_NO_MSG" || pprint_msg="$PPRINT_YES_MSG" 31197 31198 31199 31200 31201 31202 31203 31204 31205 31206 31207 31208 31209 31210 31211 31212 31213 31214 31215 31216 31217 31218 31219 31220 31221 31222 31223 31224 31225 31226 31227 31228 31229 31230 31231 31232 31233 31234 31235 31236 31237 31238 31239 31240 31241 31242 31243 31244 31245 31246 31247 31248 31249 31250 31251 31252 31253 31254 31255 31256 31257 31258 31259 31260 31261 31262 31263 31264 31265 31266 31267 31268 31269 31270 31271 31272 31273 31274 31275 31276 31277 31278 31279 31280 31281 31282 31283 31284 31285 31286 31287 31288 31289 $as_echo_n " " 31290 31291 $as_echo_n " " 31292 31293 31294 31295 31296 $as_echo_n """tor (--enable-static-tor)$PPRINT_COLOR_RST: " 31297 $as_echo "${PPRINT_COLOR_BLD}$pprint_msg$PPRINT_COLOR_RST" 31298 31299 31300 31301 31302 31303 31304 31305 31306 31307 31308 31309 31310 31311 31312if test "x$enable_static_libevent" = "xyes"; then 31313 31314 31315 31316 31317 31318 31319 31320 31321 31322 31323 31324 31325 31326 31327 31328 31329 31330 31331 31332 31333 31334 31335 31336 31337 31338 31339 31340 31341 31342 31343 31344 31345 31346 31347 31348 31349 31350 31351 31352 31353 31354 31355 31356 31357 31358 31359 31360 31361 31362 31363 31364 31365 31366 31367 31368 31369 31370 31371 31372 31373 31374 31375 31376 31377 31378 31379 31380 31381 31382 31383 31384 31385 31386 31387 31388 31389 31390 31391 31392 31393 31394 31395 31396 31397 31398 31399 31400 31401 31402 31403 31404 31405 31406 31407 31408 31409 31410 31411 31412 31413 31414 31415 31416 31417 31418 31419 31420 31421 31422 31423 31424 31425 31426 31427 31428 31429 31430 31431 31432 31433 31434 31435 31436 31437 $as_echo_n " " 31438 31439 $as_echo_n " " 31440 31441 31442 31443 31444 $as_echo_n """libevent$PPRINT_COLOR_RST: " 31445 $as_echo "${PPRINT_COLOR_BLD}$TOR_LIBDIR_libevent$PPRINT_COLOR_RST" 31446 31447 31448 31449 31450 31451 31452 31453 31454else 31455 31456 31457 31458 31459 test $value -eq 0 && pprint_msg="$PPRINT_NO_MSG" || pprint_msg="$PPRINT_YES_MSG" 31460 31461 31462 31463 31464 31465 31466 31467 31468 31469 31470 31471 31472 31473 31474 31475 31476 31477 31478 31479 31480 31481 31482 31483 31484 31485 31486 31487 31488 31489 31490 31491 31492 31493 31494 31495 31496 31497 31498 31499 31500 31501 31502 31503 31504 31505 31506 31507 31508 31509 31510 31511 31512 31513 31514 31515 31516 31517 31518 31519 31520 31521 31522 31523 31524 31525 31526 31527 31528 31529 31530 31531 31532 $as_echo_n " " 31533 31534 $as_echo_n " " 31535 31536 31537 31538 31539 $as_echo_n """libevent (--enable-static-libevent)$PPRINT_COLOR_RST: " 31540 $as_echo "${PPRINT_COLOR_BLD}$pprint_msg$PPRINT_COLOR_RST" 31541 31542 31543 31544 31545 31546 31547 31548 31549 31550 31551 31552 31553 31554fi 31555 31556if test "x$enable_static_openssl" = "xyes"; then 31557 31558 31559 31560 31561 31562 31563 31564 31565 31566 31567 31568 31569 31570 31571 31572 31573 31574 31575 31576 31577 31578 31579 31580 31581 31582 31583 31584 31585 31586 31587 31588 31589 31590 31591 31592 31593 31594 31595 31596 31597 31598 31599 31600 31601 31602 31603 31604 31605 31606 31607 31608 31609 31610 31611 31612 31613 31614 31615 31616 31617 31618 31619 31620 31621 31622 31623 31624 31625 31626 31627 31628 31629 31630 31631 31632 31633 31634 31635 31636 31637 31638 31639 31640 31641 31642 31643 31644 31645 31646 31647 31648 31649 31650 31651 31652 31653 31654 31655 31656 31657 31658 31659 31660 31661 31662 31663 31664 31665 31666 31667 31668 31669 31670 31671 31672 31673 31674 31675 31676 31677 31678 31679 31680 31681 31682 31683 31684 31685 $as_echo_n " " 31686 31687 $as_echo_n " " 31688 31689 31690 31691 31692 $as_echo_n """libssl$PPRINT_COLOR_RST: " 31693 $as_echo "${PPRINT_COLOR_BLD}$TOR_LIBDIR_openssl$PPRINT_COLOR_RST" 31694 31695 31696 31697 31698 31699 31700 31701 31702else 31703 31704 31705 31706 31707 test $value -eq 0 && pprint_msg="$PPRINT_NO_MSG" || pprint_msg="$PPRINT_YES_MSG" 31708 31709 31710 31711 31712 31713 31714 31715 31716 31717 31718 31719 31720 31721 31722 31723 31724 31725 31726 31727 31728 31729 31730 31731 31732 31733 31734 31735 31736 31737 31738 31739 31740 31741 31742 31743 31744 31745 31746 31747 31748 31749 31750 31751 31752 31753 31754 31755 31756 31757 31758 31759 31760 31761 31762 31763 31764 31765 31766 31767 31768 31769 31770 31771 31772 31773 31774 31775 31776 31777 31778 31779 31780 31781 31782 31783 31784 31785 31786 $as_echo_n " " 31787 31788 $as_echo_n " " 31789 31790 31791 31792 31793 $as_echo_n """libssl (--enable-static-openssl)$PPRINT_COLOR_RST: " 31794 $as_echo "${PPRINT_COLOR_BLD}$pprint_msg$PPRINT_COLOR_RST" 31795 31796 31797 31798 31799 31800 31801 31802 31803 31804 31805 31806 31807 31808fi 31809 31810if test "x$enable_static_zlib" = "xyes"; then 31811 31812 31813 31814 31815 31816 31817 31818 31819 31820 31821 31822 31823 31824 31825 31826 31827 31828 31829 31830 31831 31832 31833 31834 31835 31836 31837 31838 31839 31840 31841 31842 31843 31844 31845 31846 31847 31848 31849 31850 31851 31852 31853 31854 31855 31856 31857 31858 31859 31860 31861 31862 31863 31864 31865 31866 31867 31868 31869 31870 31871 31872 31873 31874 31875 31876 31877 31878 31879 31880 31881 31882 31883 31884 31885 31886 31887 31888 31889 31890 31891 31892 31893 31894 31895 31896 31897 31898 31899 31900 31901 31902 31903 31904 31905 31906 31907 31908 31909 31910 31911 31912 31913 31914 31915 31916 31917 31918 31919 31920 31921 31922 31923 31924 31925 31926 31927 31928 31929 31930 31931 31932 31933 31934 31935 31936 31937 31938 31939 $as_echo_n " " 31940 31941 $as_echo_n " " 31942 31943 31944 31945 31946 $as_echo_n """zlib1g$PPRINT_COLOR_RST: " 31947 $as_echo "${PPRINT_COLOR_BLD}$TOR_LIBDIR_zlib$PPRINT_COLOR_RST" 31948 31949 31950 31951 31952 31953 31954 31955 31956else 31957 31958 31959 31960 31961 test $value -eq 0 && pprint_msg="$PPRINT_NO_MSG" || pprint_msg="$PPRINT_YES_MSG" 31962 31963 31964 31965 31966 31967 31968 31969 31970 31971 31972 31973 31974 31975 31976 31977 31978 31979 31980 31981 31982 31983 31984 31985 31986 31987 31988 31989 31990 31991 31992 31993 31994 31995 31996 31997 31998 31999 32000 32001 32002 32003 32004 32005 32006 32007 32008 32009 32010 32011 32012 32013 32014 32015 32016 32017 32018 32019 32020 32021 32022 32023 32024 32025 32026 32027 32028 32029 32030 32031 32032 32033 32034 32035 32036 32037 32038 32039 32040 32041 32042 32043 32044 32045 32046 $as_echo_n " " 32047 32048 $as_echo_n " " 32049 32050 32051 32052 32053 $as_echo_n """zlib1g (--enable-static-zlib)$PPRINT_COLOR_RST: " 32054 $as_echo "${PPRINT_COLOR_BLD}$pprint_msg$PPRINT_COLOR_RST" 32055 32056 32057 32058 32059 32060 32061 32062 32063 32064 32065 32066 32067 32068fi 32069 32070$as_echo 32071 32072 $as_echo "${PPRINT_COLOR_SUBTITLE}Optional Libraries$PPRINT_COLOR_RST" 32073 32074 32075test "x$enable_nss" = "xyes" && value=1 || value=0 32076 32077 32078 32079 32080 test $value -eq 0 && pprint_msg="$PPRINT_NO_MSG" || pprint_msg="$PPRINT_YES_MSG" 32081 32082 32083 32084 32085 32086 32087 32088 32089 32090 32091 32092 32093 32094 32095 32096 32097 32098 32099 32100 32101 32102 32103 32104 32105 32106 32107 32108 32109 32110 32111 32112 32113 32114 32115 32116 32117 32118 32119 32120 32121 32122 32123 32124 32125 32126 32127 32128 32129 32130 32131 32132 32133 32134 32135 32136 32137 32138 32139 32140 32141 32142 32143 32144 32145 32146 32147 32148 32149 32150 32151 32152 32153 32154 32155 32156 32157 32158 32159 32160 32161 32162 32163 32164 32165 32166 32167 32168 32169 32170 32171 32172 32173 32174 32175 32176 32177 32178 32179 32180 32181 $as_echo_n " " 32182 32183 $as_echo_n " " 32184 32185 32186 32187 32188 $as_echo_n """libnss (--enable-nss)$PPRINT_COLOR_RST: " 32189 $as_echo "${PPRINT_COLOR_BLD}$pprint_msg$PPRINT_COLOR_RST" 32190 32191 32192 32193 32194 32195 32196 32197 32198 32199 32200 32201 32202 32203 32204test "x$enable_seccomp" != "xno" && value=1 || value=0 32205 32206 32207 32208 32209 test $value -eq 0 && pprint_msg="$PPRINT_NO_MSG" || pprint_msg="$PPRINT_YES_MSG" 32210 32211 32212 32213 32214 32215 32216 32217 32218 32219 32220 32221 32222 32223 32224 32225 32226 32227 32228 32229 32230 32231 32232 32233 32234 32235 32236 32237 32238 32239 32240 32241 32242 32243 32244 32245 32246 32247 32248 32249 32250 32251 32252 32253 32254 32255 32256 32257 32258 32259 32260 32261 32262 32263 32264 32265 32266 32267 32268 32269 32270 32271 32272 32273 32274 32275 32276 32277 32278 32279 32280 32281 32282 32283 32284 32285 32286 32287 32288 32289 32290 32291 32292 $as_echo_n " " 32293 32294 $as_echo_n " " 32295 32296 32297 32298 32299 $as_echo_n """libseccomp (--disable-seccomp)$PPRINT_COLOR_RST: " 32300 $as_echo "${PPRINT_COLOR_BLD}$pprint_msg$PPRINT_COLOR_RST" 32301 32302 32303 32304 32305 32306 32307 32308 32309 32310 32311 32312 32313 32314 32315test "x$enable_libscrypt" != "xno" && value=1 || value=0 32316 32317 32318 32319 32320 test $value -eq 0 && pprint_msg="$PPRINT_NO_MSG" || pprint_msg="$PPRINT_YES_MSG" 32321 32322 32323 32324 32325 32326 32327 32328 32329 32330 32331 32332 32333 32334 32335 32336 32337 32338 32339 32340 32341 32342 32343 32344 32345 32346 32347 32348 32349 32350 32351 32352 32353 32354 32355 32356 32357 32358 32359 32360 32361 32362 32363 32364 32365 32366 32367 32368 32369 32370 32371 32372 32373 32374 32375 32376 32377 32378 32379 32380 32381 32382 32383 32384 32385 32386 32387 32388 32389 32390 32391 32392 32393 32394 32395 32396 32397 32398 32399 32400 32401 $as_echo_n " " 32402 32403 $as_echo_n " " 32404 32405 32406 32407 32408 $as_echo_n """libscrypt (--disable-libscrypt)$PPRINT_COLOR_RST: " 32409 $as_echo "${PPRINT_COLOR_BLD}$pprint_msg$PPRINT_COLOR_RST" 32410 32411 32412 32413 32414 32415 32416 32417 32418 32419 32420 32421 32422 32423 32424test "x$enable_systemd" = "xyes" && value=1 || value=0 32425 32426 32427 32428 32429 test $value -eq 0 && pprint_msg="$PPRINT_NO_MSG" || pprint_msg="$PPRINT_YES_MSG" 32430 32431 32432 32433 32434 32435 32436 32437 32438 32439 32440 32441 32442 32443 32444 32445 32446 32447 32448 32449 32450 32451 32452 32453 32454 32455 32456 32457 32458 32459 32460 32461 32462 32463 32464 32465 32466 32467 32468 32469 32470 32471 32472 32473 32474 32475 32476 32477 32478 32479 32480 32481 32482 32483 32484 32485 32486 32487 32488 32489 32490 32491 32492 32493 32494 32495 32496 32497 32498 32499 32500 32501 32502 32503 32504 $as_echo_n " " 32505 32506 $as_echo_n " " 32507 32508 32509 32510 32511 $as_echo_n """Systemd support (--enable-systemd)$PPRINT_COLOR_RST: " 32512 $as_echo "${PPRINT_COLOR_BLD}$pprint_msg$PPRINT_COLOR_RST" 32513 32514 32515 32516 32517 32518 32519 32520 32521 32522 32523 32524 32525 32526 32527test "x$have_lzma" = "xyes" && value=1 || value=0 32528 32529 32530 32531 32532 test $value -eq 0 && pprint_msg="$PPRINT_NO_MSG" || pprint_msg="$PPRINT_YES_MSG" 32533 32534 32535 32536 32537 32538 32539 32540 32541 32542 32543 32544 32545 32546 32547 32548 32549 32550 32551 32552 32553 32554 32555 32556 32557 32558 32559 32560 32561 32562 32563 32564 32565 32566 32567 32568 32569 32570 32571 32572 32573 32574 32575 32576 32577 32578 32579 32580 32581 32582 32583 32584 32585 32586 32587 32588 32589 32590 32591 32592 32593 32594 32595 32596 32597 32598 32599 32600 32601 32602 32603 32604 32605 32606 32607 32608 32609 32610 32611 32612 32613 32614 32615 32616 32617 32618 32619 32620 32621 32622 32623 32624 32625 32626 32627 32628 32629 $as_echo_n " " 32630 32631 $as_echo_n " " 32632 32633 32634 32635 32636 $as_echo_n """liblzma (--enable-lzma)$PPRINT_COLOR_RST: " 32637 $as_echo "${PPRINT_COLOR_BLD}$pprint_msg$PPRINT_COLOR_RST" 32638 32639 32640 32641 32642 32643 32644 32645 32646 32647 32648 32649 32650 32651 32652test "x$have_zstd" = "xyes" && value=1 || value=0 32653 32654 32655 32656 32657 test $value -eq 0 && pprint_msg="$PPRINT_NO_MSG" || pprint_msg="$PPRINT_YES_MSG" 32658 32659 32660 32661 32662 32663 32664 32665 32666 32667 32668 32669 32670 32671 32672 32673 32674 32675 32676 32677 32678 32679 32680 32681 32682 32683 32684 32685 32686 32687 32688 32689 32690 32691 32692 32693 32694 32695 32696 32697 32698 32699 32700 32701 32702 32703 32704 32705 32706 32707 32708 32709 32710 32711 32712 32713 32714 32715 32716 32717 32718 32719 32720 32721 32722 32723 32724 32725 32726 32727 32728 32729 32730 32731 32732 32733 32734 32735 32736 32737 32738 32739 32740 32741 32742 32743 32744 32745 32746 32747 32748 32749 32750 32751 32752 32753 32754 $as_echo_n " " 32755 32756 $as_echo_n " " 32757 32758 32759 32760 32761 $as_echo_n """libzstd (--enable-zstd)$PPRINT_COLOR_RST: " 32762 $as_echo "${PPRINT_COLOR_BLD}$pprint_msg$PPRINT_COLOR_RST" 32763 32764 32765 32766 32767 32768 32769 32770 32771 32772 32773 32774 32775 32776 32777$as_echo 32778 32779 $as_echo "${PPRINT_COLOR_SUBTITLE}Hardening$PPRINT_COLOR_RST" 32780 32781 32782test "x$enable_gcc_hardening" != "xno" && value=1 || value=0 32783 32784 32785 32786 32787 test $value -eq 0 && pprint_msg="$PPRINT_NO_MSG" || pprint_msg="$PPRINT_YES_MSG" 32788 32789 32790 32791 32792 32793 32794 32795 32796 32797 32798 32799 32800 32801 32802 32803 32804 32805 32806 32807 32808 32809 32810 32811 32812 32813 32814 32815 32816 32817 32818 32819 32820 32821 32822 32823 32824 32825 32826 32827 32828 32829 32830 32831 32832 32833 32834 32835 32836 32837 32838 32839 32840 32841 32842 $as_echo_n " " 32843 32844 $as_echo_n " " 32845 32846 32847 32848 32849 $as_echo_n """Compiler Hardening (--disable-gcc-hardening)$PPRINT_COLOR_RST: " 32850 $as_echo "${PPRINT_COLOR_BLD}$pprint_msg$PPRINT_COLOR_RST" 32851 32852 32853 32854 32855 32856 32857 32858 32859 32860 32861 32862 32863 32864 32865test "x$enable_linker_hardening" != "xno" && value=1 || value=0 32866 32867 32868 32869 32870 test $value -eq 0 && pprint_msg="$PPRINT_NO_MSG" || pprint_msg="$PPRINT_YES_MSG" 32871 32872 32873 32874 32875 32876 32877 32878 32879 32880 32881 32882 32883 32884 32885 32886 32887 32888 32889 32890 32891 32892 32893 32894 32895 32896 32897 32898 32899 32900 32901 32902 32903 32904 32905 32906 32907 32908 32909 32910 32911 32912 32913 32914 32915 32916 32917 32918 32919 32920 32921 32922 32923 $as_echo_n " " 32924 32925 $as_echo_n " " 32926 32927 32928 32929 32930 $as_echo_n """Linker Hardening (--disable-linker-hardening)$PPRINT_COLOR_RST: " 32931 $as_echo "${PPRINT_COLOR_BLD}$pprint_msg$PPRINT_COLOR_RST" 32932 32933 32934 32935 32936 32937 32938 32939 32940 32941 32942 32943 32944 32945 32946test "x$fragile_hardening" = "xyes" && value=1 || value=0 32947 32948 32949 32950 32951 test $value -eq 0 && pprint_msg="$PPRINT_NO_MSG" || pprint_msg="$PPRINT_YES_MSG" 32952 32953 32954 32955 32956 32957 32958 32959 32960 32961 32962 32963 32964 32965 32966 32967 32968 32969 32970 32971 32972 32973 32974 32975 32976 32977 32978 32979 32980 32981 32982 $as_echo_n " " 32983 32984 $as_echo_n " " 32985 32986 32987 32988 32989 $as_echo_n """Fragile Hardening (--enable-fragile-hardening, dev only)$PPRINT_COLOR_RST: " 32990 $as_echo "${PPRINT_COLOR_BLD}$pprint_msg$PPRINT_COLOR_RST" 32991 32992 32993 32994 32995 32996 32997 32998 32999 33000 33001 33002 33003 33004 33005$as_echo 33006 33007 $as_echo "${PPRINT_COLOR_SUBTITLE}Modules$PPRINT_COLOR_RST" 33008 33009 33010 33011 if test -z "$BUILD_MODULE_RELAY_TRUE"; then : 33012 value=1 33013else 33014 value=0 33015fi 33016 33017 33018 33019 33020 test $value -eq 0 && pprint_msg="$PPRINT_NO_MSG" || pprint_msg="$PPRINT_YES_MSG" 33021 33022 33023 33024 33025 33026 33027 33028 33029 33030 33031 33032 33033 33034 33035 33036 33037 33038 33039 33040 33041 33042 33043 33044 33045 33046 33047 33048 33049 33050 33051 33052 33053 33054 33055 33056 33057 33058 33059 33060 33061 33062 33063 33064 33065 33066 33067 33068 33069 33070 33071 33072 33073 33074 33075 33076 33077 33078 33079 33080 33081 33082 33083 33084 33085 33086 33087 33088 33089 33090 33091 33092 33093 33094 33095 33096 33097 33098 33099 33100 33101 33102 33103 $as_echo_n " " 33104 33105 $as_echo_n " " 33106 33107 33108 33109 33110 $as_echo_n """relay (--disable-module-relay)$PPRINT_COLOR_RST: " 33111 $as_echo "${PPRINT_COLOR_BLD}$pprint_msg$PPRINT_COLOR_RST" 33112 33113 33114 33115 33116 33117 33118 33119 33120 33121 33122 33123 33124 33125 33126 33127 if test -z "$BUILD_MODULE_DIRAUTH_TRUE"; then : 33128 value=1 33129else 33130 value=0 33131fi 33132 33133 33134 33135 33136 test $value -eq 0 && pprint_msg="$PPRINT_NO_MSG" || pprint_msg="$PPRINT_YES_MSG" 33137 33138 33139 33140 33141 33142 33143 33144 33145 33146 33147 33148 33149 33150 33151 33152 33153 33154 33155 33156 33157 33158 33159 33160 33161 33162 33163 33164 33165 33166 33167 33168 33169 33170 33171 33172 33173 33174 33175 33176 33177 33178 33179 33180 33181 33182 33183 33184 33185 33186 33187 33188 33189 33190 33191 33192 33193 33194 33195 33196 33197 33198 33199 33200 33201 33202 33203 33204 33205 33206 33207 33208 33209 33210 33211 $as_echo_n " " 33212 33213 $as_echo_n " " 33214 33215 33216 33217 33218 $as_echo_n """dirauth (--disable-module-dirauth)$PPRINT_COLOR_RST: " 33219 $as_echo "${PPRINT_COLOR_BLD}$pprint_msg$PPRINT_COLOR_RST" 33220 33221 33222 33223 33224 33225 33226 33227 33228 33229 33230 33231 33232 33233 33234 33235 if test -z "$BUILD_MODULE_DIRCACHE_TRUE"; then : 33236 value=1 33237else 33238 value=0 33239fi 33240 33241 33242 33243 33244 test $value -eq 0 && pprint_msg="$PPRINT_NO_MSG" || pprint_msg="$PPRINT_YES_MSG" 33245 33246 33247 33248 33249 33250 33251 33252 33253 33254 33255 33256 33257 33258 33259 33260 33261 33262 33263 33264 33265 33266 33267 33268 33269 33270 33271 33272 33273 33274 33275 33276 33277 33278 33279 33280 33281 33282 33283 33284 33285 33286 33287 33288 33289 33290 33291 33292 33293 33294 33295 33296 33297 33298 33299 33300 33301 33302 33303 33304 33305 33306 33307 33308 33309 33310 33311 33312 33313 33314 33315 33316 33317 33318 33319 33320 33321 33322 33323 33324 33325 33326 33327 33328 33329 33330 33331 33332 33333 33334 33335 33336 33337 33338 33339 33340 33341 33342 33343 33344 33345 33346 33347 33348 33349 33350 33351 33352 33353 33354 33355 33356 33357 33358 33359 33360 33361 33362 33363 33364 33365 33366 33367 33368 33369 33370 33371 $as_echo_n " " 33372 33373 $as_echo_n " " 33374 33375 33376 33377 33378 $as_echo_n """dircache$PPRINT_COLOR_RST: " 33379 $as_echo "${PPRINT_COLOR_BLD}$pprint_msg$PPRINT_COLOR_RST" 33380 33381 33382 33383 33384 33385 33386 33387 33388 33389 33390 33391 33392 33393 33394 33395 33396$as_echo 33397 33398 $as_echo "${PPRINT_COLOR_SUBTITLE}Documentation$PPRINT_COLOR_RST" 33399 33400 33401test "x$enable_asciidoc" != "xno" && value=1 || value=0 33402 33403 33404 33405 33406 test $value -eq 0 && pprint_msg="$PPRINT_NO_MSG" || pprint_msg="$PPRINT_YES_MSG" 33407 33408 33409 33410 33411 33412 33413 33414 33415 33416 33417 33418 33419 33420 33421 33422 33423 33424 33425 33426 33427 33428 33429 33430 33431 33432 33433 33434 33435 33436 33437 33438 33439 33440 33441 33442 33443 33444 33445 33446 33447 33448 33449 33450 33451 33452 33453 33454 33455 33456 33457 33458 33459 33460 33461 33462 33463 33464 33465 33466 33467 33468 33469 33470 33471 33472 33473 33474 33475 33476 33477 33478 33479 33480 33481 33482 33483 33484 33485 33486 33487 33488 33489 33490 33491 $as_echo_n " " 33492 33493 $as_echo_n " " 33494 33495 33496 33497 33498 $as_echo_n """AsciiDoc (--disable-asciidoc)$PPRINT_COLOR_RST: " 33499 $as_echo "${PPRINT_COLOR_BLD}$pprint_msg$PPRINT_COLOR_RST" 33500 33501 33502 33503 33504 33505 33506 33507 33508 33509 33510 33511 33512 33513 33514test "x$enable_manpage" != "xno" && value=1 || value=0 33515 33516 33517 33518 33519 test $value -eq 0 && pprint_msg="$PPRINT_NO_MSG" || pprint_msg="$PPRINT_YES_MSG" 33520 33521 33522 33523 33524 33525 33526 33527 33528 33529 33530 33531 33532 33533 33534 33535 33536 33537 33538 33539 33540 33541 33542 33543 33544 33545 33546 33547 33548 33549 33550 33551 33552 33553 33554 33555 33556 33557 33558 33559 33560 33561 33562 33563 33564 33565 33566 33567 33568 33569 33570 33571 33572 33573 33574 33575 33576 33577 33578 33579 33580 33581 33582 33583 33584 33585 33586 33587 33588 33589 33590 33591 33592 33593 33594 33595 33596 33597 33598 33599 33600 33601 33602 33603 33604 $as_echo_n " " 33605 33606 $as_echo_n " " 33607 33608 33609 33610 33611 $as_echo_n """Man Pages (--disable-manpage)$PPRINT_COLOR_RST: " 33612 $as_echo "${PPRINT_COLOR_BLD}$pprint_msg$PPRINT_COLOR_RST" 33613 33614 33615 33616 33617 33618 33619 33620 33621 33622 33623 33624 33625 33626 33627test "x$enable_html_manual" != "xno" && value=1 || value=0 33628 33629 33630 33631 33632 test $value -eq 0 && pprint_msg="$PPRINT_NO_MSG" || pprint_msg="$PPRINT_YES_MSG" 33633 33634 33635 33636 33637 33638 33639 33640 33641 33642 33643 33644 33645 33646 33647 33648 33649 33650 33651 33652 33653 33654 33655 33656 33657 33658 33659 33660 33661 33662 33663 33664 33665 33666 33667 33668 33669 33670 33671 33672 33673 33674 33675 33676 33677 33678 33679 33680 33681 33682 33683 33684 33685 33686 33687 33688 33689 33690 33691 33692 33693 33694 33695 33696 33697 33698 33699 33700 33701 33702 33703 33704 33705 $as_echo_n " " 33706 33707 $as_echo_n " " 33708 33709 33710 33711 33712 $as_echo_n """HTML Manual (--disable-html-manual)$PPRINT_COLOR_RST: " 33713 $as_echo "${PPRINT_COLOR_BLD}$pprint_msg$PPRINT_COLOR_RST" 33714 33715 33716 33717 33718 33719 33720 33721 33722 33723 33724 33725 33726 33727 33728$as_echo 33729 33730 $as_echo "${PPRINT_COLOR_SUBTITLE}Tests$PPRINT_COLOR_RST" 33731 33732 33733test "x$enable_unittests" != "xno" && value=1 || value=0 33734 33735 33736 33737 33738 test $value -eq 0 && pprint_msg="$PPRINT_NO_MSG" || pprint_msg="$PPRINT_YES_MSG" 33739 33740 33741 33742 33743 33744 33745 33746 33747 33748 33749 33750 33751 33752 33753 33754 33755 33756 33757 33758 33759 33760 33761 33762 33763 33764 33765 33766 33767 33768 33769 33770 33771 33772 33773 33774 33775 33776 33777 33778 33779 33780 33781 33782 33783 33784 33785 33786 33787 33788 33789 33790 33791 33792 33793 33794 33795 33796 33797 33798 33799 33800 33801 33802 33803 33804 33805 33806 33807 33808 33809 33810 33811 33812 33813 33814 33815 33816 33817 $as_echo_n " " 33818 33819 $as_echo_n " " 33820 33821 33822 33823 33824 $as_echo_n """Unit tests (--disable-unittests)$PPRINT_COLOR_RST: " 33825 $as_echo "${PPRINT_COLOR_BLD}$pprint_msg$PPRINT_COLOR_RST" 33826 33827 33828 33829 33830 33831 33832 33833 33834 33835 33836 33837 33838 33839 33840test "x$enable_asserts_in_tests" = "xno" && value=1 || value=0 33841 33842 33843 33844 33845 test $value -eq 0 && pprint_msg="$PPRINT_NO_MSG" || pprint_msg="$PPRINT_YES_MSG" 33846 33847 33848 33849 33850 33851 33852 33853 33854 33855 33856 33857 33858 33859 33860 33861 33862 33863 33864 33865 33866 33867 33868 33869 33870 33871 33872 33873 33874 33875 33876 33877 33878 $as_echo_n " " 33879 33880 $as_echo_n " " 33881 33882 33883 33884 33885 $as_echo_n """assert()s enabled (--enable-asserts-in-tests, dev only)$PPRINT_COLOR_RST: " 33886 $as_echo "${PPRINT_COLOR_BLD}$pprint_msg$PPRINT_COLOR_RST" 33887 33888 33889 33890 33891 33892 33893 33894 33895 33896 33897 33898 33899 33900 33901test "x$enable_coverage" = "xyes" && value=1 || value=0 33902 33903 33904 33905 33906 test $value -eq 0 && pprint_msg="$PPRINT_NO_MSG" || pprint_msg="$PPRINT_YES_MSG" 33907 33908 33909 33910 33911 33912 33913 33914 33915 33916 33917 33918 33919 33920 33921 33922 33923 33924 33925 33926 33927 33928 33929 33930 33931 33932 33933 33934 33935 33936 33937 33938 33939 33940 33941 33942 33943 33944 33945 33946 33947 33948 33949 33950 33951 33952 33953 33954 33955 33956 33957 33958 33959 33960 33961 33962 33963 33964 33965 33966 33967 33968 33969 33970 33971 33972 33973 33974 33975 33976 33977 33978 33979 33980 33981 33982 33983 $as_echo_n " " 33984 33985 $as_echo_n " " 33986 33987 33988 33989 33990 $as_echo_n """Code Coverage (--enable-coverage)$PPRINT_COLOR_RST: " 33991 $as_echo "${PPRINT_COLOR_BLD}$pprint_msg$PPRINT_COLOR_RST" 33992 33993 33994 33995 33996 33997 33998 33999 34000 34001 34002 34003 34004 34005 34006test "x$enable_libfuzzer" = "xyes" && value=1 || value=0 34007 34008 34009 34010 34011 test $value -eq 0 && pprint_msg="$PPRINT_NO_MSG" || pprint_msg="$PPRINT_YES_MSG" 34012 34013 34014 34015 34016 34017 34018 34019 34020 34021 34022 34023 34024 34025 34026 34027 34028 34029 34030 34031 34032 34033 34034 34035 34036 34037 34038 34039 34040 34041 34042 34043 34044 34045 34046 34047 34048 34049 34050 34051 34052 34053 34054 34055 34056 34057 34058 34059 34060 34061 34062 34063 34064 34065 34066 34067 34068 34069 34070 34071 34072 34073 34074 34075 34076 34077 34078 $as_echo_n " " 34079 34080 $as_echo_n " " 34081 34082 34083 34084 34085 $as_echo_n """libFuzzer support (--enable-libfuzzer)$PPRINT_COLOR_RST: " 34086 $as_echo "${PPRINT_COLOR_BLD}$pprint_msg$PPRINT_COLOR_RST" 34087 34088 34089 34090 34091 34092 34093 34094 34095 34096 34097 34098 34099 34100 34101test "x$enable_oss_fuzz" = "xyes" && value=1 || value=0 34102 34103 34104 34105 34106 test $value -eq 0 && pprint_msg="$PPRINT_NO_MSG" || pprint_msg="$PPRINT_YES_MSG" 34107 34108 34109 34110 34111 34112 34113 34114 34115 34116 34117 34118 34119 34120 34121 34122 34123 34124 34125 34126 34127 34128 34129 34130 34131 34132 34133 34134 34135 34136 34137 34138 34139 34140 34141 34142 34143 34144 34145 34146 34147 34148 34149 34150 34151 34152 34153 34154 34155 34156 34157 34158 34159 34160 34161 34162 34163 34164 34165 34166 34167 34168 34169 34170 34171 34172 34173 34174 34175 34176 34177 $as_echo_n " " 34178 34179 $as_echo_n " " 34180 34181 34182 34183 34184 $as_echo_n """OSS-Fuzz support (--enable-oss-fuzz)$PPRINT_COLOR_RST: " 34185 $as_echo "${PPRINT_COLOR_BLD}$pprint_msg$PPRINT_COLOR_RST" 34186 34187 34188 34189 34190 34191 34192 34193 34194 34195 34196 34197 34198 34199 34200$as_echo 34201 34202 $as_echo "${PPRINT_COLOR_SUBTITLE}Tracing (--enable-tracing-instrumentation-<type>)$PPRINT_COLOR_RST" 34203 34204 34205test "x$enable_tracing_instrumentation_log_debug" = "xyes" && value=1 || value=0 34206 34207 34208 34209 34210 test $value -eq 0 && pprint_msg="$PPRINT_NO_MSG" || pprint_msg="$PPRINT_YES_MSG" 34211 34212 34213 34214 34215 34216 34217 34218 34219 34220 34221 34222 34223 34224 34225 34226 34227 34228 34229 34230 34231 34232 34233 34234 34235 34236 34237 34238 34239 34240 34241 34242 34243 34244 34245 34246 34247 34248 34249 34250 34251 34252 34253 34254 34255 34256 34257 34258 34259 34260 34261 34262 34263 34264 34265 34266 34267 34268 34269 34270 34271 34272 34273 34274 34275 34276 34277 $as_echo_n " " 34278 34279 $as_echo_n " " 34280 34281 34282 34283 34284 $as_echo_n """Tracepoints to log_debug() (log-debug)$PPRINT_COLOR_RST: " 34285 $as_echo "${PPRINT_COLOR_BLD}$pprint_msg$PPRINT_COLOR_RST" 34286 34287 34288 34289 34290 34291 34292 34293 34294 34295 34296 34297 34298 34299 34300test "x$enable_tracing_instrumentation_usdt" = "xyes" && value=1 || value=0 34301 34302 34303 34304 34305 test $value -eq 0 && pprint_msg="$PPRINT_NO_MSG" || pprint_msg="$PPRINT_YES_MSG" 34306 34307 34308 34309 34310 34311 34312 34313 34314 34315 34316 34317 34318 34319 34320 34321 34322 34323 34324 34325 34326 34327 34328 34329 34330 34331 34332 34333 34334 34335 34336 34337 34338 34339 34340 34341 34342 34343 34344 34345 34346 34347 34348 34349 34350 34351 34352 34353 34354 34355 34356 34357 34358 34359 34360 34361 34362 34363 34364 34365 34366 34367 34368 34369 34370 34371 34372 34373 34374 34375 34376 34377 34378 34379 34380 34381 34382 34383 34384 34385 34386 34387 34388 34389 34390 34391 34392 34393 34394 $as_echo_n " " 34395 34396 $as_echo_n " " 34397 34398 34399 34400 34401 $as_echo_n """USDT Instrumentation (usdt)$PPRINT_COLOR_RST: " 34402 $as_echo "${PPRINT_COLOR_BLD}$pprint_msg$PPRINT_COLOR_RST" 34403 34404 34405 34406 34407 34408 34409 34410 34411 34412 34413 34414 34415 34416 34417test "x$enable_tracing_instrumentation_lttng" = "xyes" && value=1 || value=0 34418 34419 34420 34421 34422 test $value -eq 0 && pprint_msg="$PPRINT_NO_MSG" || pprint_msg="$PPRINT_YES_MSG" 34423 34424 34425 34426 34427 34428 34429 34430 34431 34432 34433 34434 34435 34436 34437 34438 34439 34440 34441 34442 34443 34444 34445 34446 34447 34448 34449 34450 34451 34452 34453 34454 34455 34456 34457 34458 34459 34460 34461 34462 34463 34464 34465 34466 34467 34468 34469 34470 34471 34472 34473 34474 34475 34476 34477 34478 34479 34480 34481 34482 34483 34484 34485 34486 34487 34488 34489 34490 34491 34492 34493 34494 34495 34496 34497 34498 34499 34500 34501 34502 34503 34504 34505 34506 34507 $as_echo_n " " 34508 34509 $as_echo_n " " 34510 34511 34512 34513 34514 $as_echo_n """LTTng Instrumentation (lttng)$PPRINT_COLOR_RST: " 34515 $as_echo "${PPRINT_COLOR_BLD}$pprint_msg$PPRINT_COLOR_RST" 34516 34517 34518 34519 34520 34521 34522 34523 34524 34525 34526 34527 34528 34529 34530$as_echo 34531 34532 $as_echo "${PPRINT_COLOR_SUBTITLE}Install Directories$PPRINT_COLOR_RST" 34533 34534 34535report_mandir="`eval eval echo $mandir`" 34536 34537 34538 34539 34540 34541 34542 34543 34544 34545 34546 34547 34548 34549 34550 34551 34552 34553 34554 34555 34556 34557 34558 34559 34560 34561 34562 34563 34564 34565 34566 34567 34568 34569 34570 34571 34572 34573 34574 34575 34576 34577 34578 34579 34580 34581 34582 34583 34584 34585 34586 34587 34588 34589 34590 34591 34592 34593 34594 34595 34596 34597 34598 34599 34600 34601 34602 34603 34604 34605 34606 34607 34608 34609 34610 34611 34612 34613 34614 34615 34616 34617 34618 34619 34620 34621 34622 34623 34624 34625 34626 34627 34628 34629 34630 34631 34632 34633 34634 34635 34636 34637 34638 34639 34640 34641 34642 34643 34644 34645 34646 34647 34648 34649 34650 34651 34652 34653 34654 34655 34656 34657 34658 34659 34660 $as_echo_n " " 34661 34662 $as_echo_n " " 34663 34664 34665 34666 34667 $as_echo_n """Binaries$PPRINT_COLOR_RST: " 34668 $as_echo "${PPRINT_COLOR_BLD}$BINDIR$PPRINT_COLOR_RST" 34669 34670 34671 34672 34673 34674 34675 34676 34677 34678 34679 34680 34681 34682 34683 34684 34685 34686 34687 34688 34689 34690 34691 34692 34693 34694 34695 34696 34697 34698 34699 34700 34701 34702 34703 34704 34705 34706 34707 34708 34709 34710 34711 34712 34713 34714 34715 34716 34717 34718 34719 34720 34721 34722 34723 34724 34725 34726 34727 34728 34729 34730 34731 34732 34733 34734 34735 34736 34737 34738 34739 34740 34741 34742 34743 34744 34745 34746 34747 34748 34749 34750 34751 34752 34753 34754 34755 34756 34757 34758 34759 34760 34761 34762 34763 34764 34765 34766 34767 34768 34769 34770 34771 34772 34773 34774 34775 34776 34777 34778 34779 34780 34781 34782 34783 34784 34785 34786 34787 34788 34789 34790 34791 $as_echo_n " " 34792 34793 $as_echo_n " " 34794 34795 34796 34797 34798 $as_echo_n """Configuration$PPRINT_COLOR_RST: " 34799 $as_echo "${PPRINT_COLOR_BLD}$CONFDIR$PPRINT_COLOR_RST" 34800 34801 34802 34803 34804 34805 34806 34807 34808 34809 34810 34811 34812 34813 34814 34815 34816 34817 34818 34819 34820 34821 34822 34823 34824 34825 34826 34827 34828 34829 34830 34831 34832 34833 34834 34835 34836 34837 34838 34839 34840 34841 34842 34843 34844 34845 34846 34847 34848 34849 34850 34851 34852 34853 34854 34855 34856 34857 34858 34859 34860 34861 34862 34863 34864 34865 34866 34867 34868 34869 34870 34871 34872 34873 34874 34875 34876 34877 34878 34879 34880 34881 34882 34883 34884 34885 34886 34887 34888 34889 34890 34891 34892 34893 34894 34895 34896 34897 34898 34899 34900 34901 34902 34903 34904 34905 34906 34907 34908 34909 34910 34911 34912 34913 34914 34915 34916 34917 34918 34919 34920 34921 34922 34923 34924 34925 34926 34927 34928 34929 34930 $as_echo_n " " 34931 34932 $as_echo_n " " 34933 34934 34935 34936 34937 $as_echo_n """Man Pages$PPRINT_COLOR_RST: " 34938 $as_echo "${PPRINT_COLOR_BLD}$report_mandir$PPRINT_COLOR_RST" 34939 34940 34941 34942 34943 34944 34945 34946 34947 34948$as_echo 34949$as_echo "Configure Line: ./configure $configure_flags" 34950 34951if test "$tor_ac_n_warnings" != "0"; then 34952 $as_echo 34953 34954 34955 34956 34957 34958 34959 $as_echo_n " " 34960 34961 $as_echo_n " " 34962 34963 34964 34965 $as_echo "${PPRINT_COLOR_TXTYLW}WARNING:$PPRINT_COLOR_RST ${PPRINT_COLOR_BLDYLW} 34966Encountered $tor_ac_n_warnings warning(s). See messages above for more info. 34967 $PPRINT_COLOR_RST" 34968 34969 34970 34971fi 34972