#! /bin/sh
# Guess values for system-dependent variables and create Makefiles.
# Generated by GNU Autoconf 2.69 for tor 0.4.3.1-alpha.
#
#
# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
#
#
# This configure script is free software; the Free Software Foundation
# gives unlimited permission to copy, distribute and modify it.
## -------------------- ##
## M4sh Initialization. ##
## -------------------- ##

# Be more Bourne compatible
DUALCASE=1; export DUALCASE # for MKS sh
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  emulate sh
  NULLCMD=:
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  # is contrary to our usage.  Disable this feature.
  alias -g '${1+"$@"}'='"$@"'
  setopt NO_GLOB_SUBST
else
  case `(set -o) 2>/dev/null` in #(
  *posix*) :
    set -o posix ;; #(
  *) :
     ;;
esac
fi


as_nl='
'
export as_nl
# Printing a long string crashes Solaris 7 /usr/bin/printf.
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
# Prefer a ksh shell builtin over an external printf program on Solaris,
# but without wasting forks for bash or zsh.
if test -z "$BASH_VERSION$ZSH_VERSION" \
    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  as_echo='print -r --'
  as_echo_n='print -rn --'
elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  as_echo='printf %s\n'
  as_echo_n='printf %s'
else
  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
    as_echo_n='/usr/ucb/echo -n'
  else
    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
    as_echo_n_body='eval
      arg=$1;
      case $arg in #(
      *"$as_nl"*)
	expr "X$arg" : "X\\(.*\\)$as_nl";
	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
      esac;
      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
    '
    export as_echo_n_body
    as_echo_n='sh -c $as_echo_n_body as_echo'
  fi
  export as_echo_body
  as_echo='sh -c $as_echo_body as_echo'
fi

# The user is always right.
if test "${PATH_SEPARATOR+set}" != set; then
  PATH_SEPARATOR=:
  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
      PATH_SEPARATOR=';'
  }
fi


# IFS
# We need space, tab and new line, in precisely that order.  Quoting is
# there to prevent editors from complaining about space-tab.
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
# splitting by setting IFS to empty value.)
IFS=" ""	$as_nl"

# Find who we are.  Look in the path if we contain no directory separator.
as_myself=
case $0 in #((
  *[\\/]* ) as_myself=$0 ;;
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  done
IFS=$as_save_IFS

     ;;
esac
# We did not find ourselves, most probably we were run as `sh COMMAND'
# in which case we are not to be found in the path.
if test "x$as_myself" = x; then
  as_myself=$0
fi
if test ! -f "$as_myself"; then
  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  exit 1
fi

# Unset variables that we do not need and which cause bugs (e.g. in
# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
# suppresses any "Segmentation fault" message there.  '((' could
# trigger a bug in pdksh 5.2.14.
for as_var in BASH_ENV ENV MAIL MAILPATH
do eval test x\${$as_var+set} = xset \
  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
done
PS1='$ '
PS2='> '
PS4='+ '

# NLS nuisances.
LC_ALL=C
export LC_ALL
LANGUAGE=C
export LANGUAGE

# CDPATH.
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH

# Use a proper internal environment variable to ensure we don't fall
  # into an infinite loop, continuously re-executing ourselves.
  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
    _as_can_reexec=no; export _as_can_reexec;
    # We cannot yet assume a decent shell, so we have to provide a
# neutralization value for shells without unset; and this also
# works around shells that cannot unset nonexistent variables.
# Preserve -v and -x to the replacement shell.
BASH_ENV=/dev/null
ENV=/dev/null
(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
case $- in # ((((
  *v*x* | *x*v* ) as_opts=-vx ;;
  *v* ) as_opts=-v ;;
  *x* ) as_opts=-x ;;
  * ) as_opts= ;;
esac
exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
# Admittedly, this is quite paranoid, since all the known shells bail
# out after a failed `exec'.
$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
as_fn_exit 255
  fi
  # We don't want this to propagate to other subprocesses.
          { _as_can_reexec=; unset _as_can_reexec;}
if test "x$CONFIG_SHELL" = x; then
  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  emulate sh
  NULLCMD=:
  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  # is contrary to our usage.  Disable this feature.
  alias -g '\${1+\"\$@\"}'='\"\$@\"'
  setopt NO_GLOB_SUBST
else
  case \`(set -o) 2>/dev/null\` in #(
  *posix*) :
    set -o posix ;; #(
  *) :
     ;;
esac
fi
"
  as_required="as_fn_return () { (exit \$1); }
as_fn_success () { as_fn_return 0; }
as_fn_failure () { as_fn_return 1; }
as_fn_ret_success () { return 0; }
as_fn_ret_failure () { return 1; }

exitcode=0
as_fn_success || { exitcode=1; echo as_fn_success failed.; }
as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :

else
  exitcode=1; echo positional parameters were not saved.
fi
test x\$exitcode = x0 || exit 1
test -x / || exit 1"
  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
test \$(( 1 + 1 )) = 2 || exit 1"
  if (eval "$as_required") 2>/dev/null; then :
  as_have_required=yes
else
  as_have_required=no
fi
  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :

else
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
as_found=false
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  as_found=:
  case $as_dir in #(
	 /*)
	   for as_base in sh bash ksh sh5; do
	     # Try only shells that exist, to save several forks.
	     as_shell=$as_dir/$as_base
	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  CONFIG_SHELL=$as_shell as_have_required=yes
		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  break 2
fi
fi
	   done;;
       esac
  as_found=false
done
$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  CONFIG_SHELL=$SHELL as_have_required=yes
fi; }
IFS=$as_save_IFS


      if test "x$CONFIG_SHELL" != x; then :
  export CONFIG_SHELL
             # We cannot yet assume a decent shell, so we have to provide a
# neutralization value for shells without unset; and this also
# works around shells that cannot unset nonexistent variables.
# Preserve -v and -x to the replacement shell.
BASH_ENV=/dev/null
ENV=/dev/null
(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
case $- in # ((((
  *v*x* | *x*v* ) as_opts=-vx ;;
  *v* ) as_opts=-v ;;
  *x* ) as_opts=-x ;;
  * ) as_opts= ;;
esac
exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
# Admittedly, this is quite paranoid, since all the known shells bail
# out after a failed `exec'.
$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
exit 255
fi

    if test x$as_have_required = xno; then :
  $as_echo "$0: This script requires a shell more modern than all"
  $as_echo "$0: the shells that I found on your system."
  if test x${ZSH_VERSION+set} = xset ; then
    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  else
    $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
$0: including any error possibly output before this
$0: message. Then install a modern shell, or manually run
$0: the script under such a shell if you do have one."
  fi
  exit 1
fi
fi
fi
SHELL=${CONFIG_SHELL-/bin/sh}
export SHELL
# Unset more variables known to interfere with behavior of common tools.
CLICOLOR_FORCE= GREP_OPTIONS=
unset CLICOLOR_FORCE GREP_OPTIONS

## --------------------- ##
## M4sh Shell Functions. ##
## --------------------- ##
# as_fn_unset VAR
# ---------------
# Portably unset VAR.
as_fn_unset ()
{
  { eval $1=; unset $1;}
}
as_unset=as_fn_unset

# as_fn_set_status STATUS
# -----------------------
# Set $? to STATUS, without forking.
as_fn_set_status ()
{
  return $1
} # as_fn_set_status

# as_fn_exit STATUS
# -----------------
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
as_fn_exit ()
{
  set +e
  as_fn_set_status $1
  exit $1
} # as_fn_exit

# as_fn_mkdir_p
# -------------
# Create "$as_dir" as a directory, including parents if necessary.
as_fn_mkdir_p ()
{

  case $as_dir in #(
  -*) as_dir=./$as_dir;;
  esac
  test -d "$as_dir" || eval $as_mkdir_p || {
    as_dirs=
    while :; do
      case $as_dir in #(
      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
      *) as_qdir=$as_dir;;
      esac
      as_dirs="'$as_qdir' $as_dirs"
      as_dir=`$as_dirname -- "$as_dir" ||
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
	 X"$as_dir" : 'X\(//\)[^/]' \| \
	 X"$as_dir" : 'X\(//\)$' \| \
	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
$as_echo X"$as_dir" |
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
	    s//\1/
	    q
	  }
	  /^X\(\/\/\)[^/].*/{
	    s//\1/
	    q
	  }
	  /^X\(\/\/\)$/{
	    s//\1/
	    q
	  }
	  /^X\(\/\).*/{
	    s//\1/
	    q
	  }
	  s/.*/./; q'`
      test -d "$as_dir" && break
    done
    test -z "$as_dirs" || eval "mkdir $as_dirs"
  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"


} # as_fn_mkdir_p

# as_fn_executable_p FILE
# -----------------------
# Test if FILE is an executable regular file.
as_fn_executable_p ()
{
  test -f "$1" && test -x "$1"
} # as_fn_executable_p
# as_fn_append VAR VALUE
# ----------------------
# Append the text in VALUE to the end of the definition contained in VAR. Take
# advantage of any shell optimizations that allow amortized linear growth over
# repeated appends, instead of the typical quadratic growth present in naive
# implementations.
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  eval 'as_fn_append ()
  {
    eval $1+=\$2
  }'
else
  as_fn_append ()
  {
    eval $1=\$$1\$2
  }
fi # as_fn_append

# as_fn_arith ARG...
# ------------------
# Perform arithmetic evaluation on the ARGs, and store the result in the
# global $as_val. Take advantage of shells that can avoid forks. The arguments
# must be portable across $(()) and expr.
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  eval 'as_fn_arith ()
  {
    as_val=$(( $* ))
  }'
else
  as_fn_arith ()
  {
    as_val=`expr "$@" || test $? -eq 1`
  }
fi # as_fn_arith


# as_fn_error STATUS ERROR [LINENO LOG_FD]
# ----------------------------------------
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
# script with STATUS, using 1 if that was 0.
as_fn_error ()
{
  as_status=$1; test $as_status -eq 0 && as_status=1
  if test "$4"; then
    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  fi
  $as_echo "$as_me: error: $2" >&2
  as_fn_exit $as_status
} # as_fn_error

if expr a : '\(a\)' >/dev/null 2>&1 &&
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
  as_expr=expr
else
  as_expr=false
fi

if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  as_basename=basename
else
  as_basename=false
fi

if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  as_dirname=dirname
else
  as_dirname=false
fi

as_me=`$as_basename -- "$0" ||
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
	 X"$0" : 'X\(//\)$' \| \
	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
$as_echo X/"$0" |
    sed '/^.*\/\([^/][^/]*\)\/*$/{
	    s//\1/
	    q
	  }
	  /^X\/\(\/\/\)$/{
	    s//\1/
	    q
	  }
	  /^X\/\(\/\).*/{
	    s//\1/
	    q
	  }
	  s/.*/./; q'`

# Avoid depending upon Character Ranges.
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
as_cr_digits='0123456789'
as_cr_alnum=$as_cr_Letters$as_cr_digits


  as_lineno_1=$LINENO as_lineno_1a=$LINENO
  as_lineno_2=$LINENO as_lineno_2a=$LINENO
  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
  sed -n '
    p
    /[$]LINENO/=
  ' <$as_myself |
    sed '
      s/[$]LINENO.*/&-/
      t lineno
      b
      :lineno
      N
      :loop
      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
      t loop
      s/-\n.*//
    ' >$as_me.lineno &&
  chmod +x "$as_me.lineno" ||
    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }

  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
  # already done that, so ensure we don't try to do so again and fall
  # in an infinite loop.  This has already happened in practice.
  _as_can_reexec=no; export _as_can_reexec
  # Don't try to exec as it changes $[0], causing all sort of problems
  # (the dirname of $[0] is not the place where we might find the
  # original and so on.  Autoconf is especially sensitive to this).
  . "./$as_me.lineno"
  # Exit status is that of the last command.
  exit
}

ECHO_C= ECHO_N= ECHO_T=
case `echo -n x` in #(((((
-n*)
  case `echo 'xy\c'` in
  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
  xy)  ECHO_C='\c';;
  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
       ECHO_T='	';;
  esac;;
*)
  ECHO_N='-n';;
esac

rm -f conf$$ conf$$.exe conf$$.file
if test -d conf$$.dir; then
  rm -f conf$$.dir/conf$$.file
else
  rm -f conf$$.dir
  mkdir conf$$.dir 2>/dev/null
fi
if (echo >conf$$.file) 2>/dev/null; then
  if ln -s conf$$.file conf$$ 2>/dev/null; then
    as_ln_s='ln -s'
    # ... but there are two gotchas:
    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
    # In both cases, we have to default to `cp -pR'.
    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
      as_ln_s='cp -pR'
  elif ln conf$$.file conf$$ 2>/dev/null; then
    as_ln_s=ln
  else
    as_ln_s='cp -pR'
  fi
else
  as_ln_s='cp -pR'
fi
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
rmdir conf$$.dir 2>/dev/null

if mkdir -p . 2>/dev/null; then
  as_mkdir_p='mkdir -p "$as_dir"'
else
  test -d ./-p && rmdir ./-p
  as_mkdir_p=false
fi

as_test_x='test -x'
as_executable_p=as_fn_executable_p

# Sed expression to map a string onto a valid CPP name.
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"

# Sed expression to map a string onto a valid variable name.
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"


test -n "$DJDIR" || exec 7<&0 </dev/null
exec 6>&1

# Name of the host.
# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
# so uname gets run too.
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`

#
# Initializations.
#
ac_default_prefix=/usr/local
ac_clean_files=
ac_config_libobj_dir=.
LIBOBJS=
cross_compiling=no
subdirs=
MFLAGS=
MAKEFLAGS=

# Identity of this package.
PACKAGE_NAME='tor'
PACKAGE_TARNAME='tor'
PACKAGE_VERSION='0.4.3.1-alpha'
PACKAGE_STRING='tor 0.4.3.1-alpha'
PACKAGE_BUGREPORT=''
PACKAGE_URL=''

ac_unique_file="src/app/main/tor_main.c"
# Factoring default headers for most tests.
ac_includes_default="\
#include <stdio.h>
#ifdef HAVE_SYS_TYPES_H
# include <sys/types.h>
#endif
#ifdef HAVE_SYS_STAT_H
# include <sys/stat.h>
#endif
#ifdef STDC_HEADERS
# include <stdlib.h>
# include <stddef.h>
#else
# ifdef HAVE_STDLIB_H
#  include <stdlib.h>
# endif
#endif
#ifdef HAVE_STRING_H
# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
#  include <memory.h>
# endif
# include <string.h>
#endif
#ifdef HAVE_STRINGS_H
# include <strings.h>
#endif
#ifdef HAVE_INTTYPES_H
# include <inttypes.h>
#endif
#ifdef HAVE_STDINT_H
# include <stdint.h>
#endif
#ifdef HAVE_UNISTD_H
# include <unistd.h>
#endif"

ac_subst_vars='pprint_tput
am__EXEEXT_FALSE
am__EXEEXT_TRUE
LTLIBOBJS
LIBOBJS
TOR_WARNING_FLAGS
LOCALSTATEDIR
BINDIR
CONFDIR
BUILDDIR
LOGFACILITY
USE_OPENBSD_MALLOC_FALSE
USE_OPENBSD_MALLOC_TRUE
JEMALLOC_LIBS
JEMALLOC_CFLAGS
TCMALLOC_LIBS
TCMALLOC_CFLAGS
CURVE25519_LIBS
BUILD_CURVE25519_DONNA_C64_FALSE
BUILD_CURVE25519_DONNA_C64_TRUE
BUILD_CURVE25519_DONNA_FALSE
BUILD_CURVE25519_DONNA_TRUE
F_OMIT_FRAME_POINTER
CFLAGS_CONSTTIME
CFLAGS_BUGTRAP
ADD_MULODI4_FALSE
ADD_MULODI4_TRUE
RUST_LINKER_OPTIONS
TOR_ZSTD_LIBS
TOR_ZSTD_CFLAGS
ZSTD_LIBS
ZSTD_CFLAGS
TOR_LZMA_LIBS
TOR_LZMA_CFLAGS
LZMA_LIBS
LZMA_CFLAGS
TOR_ZLIB_LIBS
TOR_LDFLAGS_zlib
TOR_CPPFLAGS_zlib
BUILD_KECCAK_TINY_FALSE
BUILD_KECCAK_TINY_TRUE
TOR_OPENSSL_LIBS
TOR_LDFLAGS_openssl
TOR_CPPFLAGS_openssl
NSS_LIBS
NSS_CFLAGS
TOR_LIB_MATH
TOR_LIBEVENT_LIBS
TOR_LDFLAGS_libevent
TOR_CPPFLAGS_libevent
TOR_LIB_USERENV
TOR_LIB_IPHLPAPI
TOR_LIB_GDI
TOR_LIB_WS32
BUILD_READPASSPHRASE_C_FALSE
BUILD_READPASSPHRASE_C_TRUE
THREADS_PTHREADS_FALSE
THREADS_PTHREADS_TRUE
THREADS_WIN32_FALSE
THREADS_WIN32_TRUE
RUST_DL
RUST_WARN
CARGO_ONLINE
TOR_RUST_LIB_PATH
RUST_TARGET_PROP
TOR_RUST_DEPENDENCIES
CARGO
RUSTC
TOR_RUST_TARGET
BUILD_LIBTORRUNNER_FALSE
BUILD_LIBTORRUNNER_TRUE
BUILD_NT_SERVICES_FALSE
BUILD_NT_SERVICES_TRUE
WIN32_FALSE
WIN32_TRUE
TORGROUP
TORUSER
rust_crates
USEPYTHON_FALSE
USEPYTHON_TRUE
PYTHON
BUILD_HTML_DOCS_FALSE
BUILD_HTML_DOCS_TRUE
BUILD_MANPAGE_FALSE
BUILD_MANPAGE_TRUE
USE_ASCIIDOC_FALSE
USE_ASCIIDOC_TRUE
A2X
ASCIIDOC
USE_PERL_FALSE
USE_PERL_TRUE
PERL
SED
RANLIB
ac_ct_AR
AR
TOR_MODULES_ALL_ENABLED
BUILD_MODULE_DIRAUTH_FALSE
BUILD_MODULE_DIRAUTH_TRUE
BUILD_MODULE_DIRCACHE_FALSE
BUILD_MODULE_DIRCACHE_TRUE
BUILD_MODULE_RELAY_FALSE
BUILD_MODULE_RELAY_TRUE
USE_ANDROID_FALSE
USE_ANDROID_TRUE
USE_EVENT_TRACING_DEBUG_FALSE
USE_EVENT_TRACING_DEBUG_TRUE
TOR_SYSTEMD_LIBS
TOR_SYSTEMD_CFLAGS
LIBSYSTEMD209_LIBS
LIBSYSTEMD209_CFLAGS
SYSTEMD_LIBS
SYSTEMD_CFLAGS
USE_OPENSSL_FALSE
USE_OPENSSL_TRUE
USE_NSS_FALSE
USE_NSS_TRUE
USE_RUST_FALSE
USE_RUST_TRUE
OSS_FUZZ_ENABLED_FALSE
OSS_FUZZ_ENABLED_TRUE
LIBFUZZER_ENABLED_FALSE
LIBFUZZER_ENABLED_TRUE
DISABLE_ASSERTS_IN_UNIT_TESTS_FALSE
DISABLE_ASSERTS_IN_UNIT_TESTS_TRUE
COVERAGE_ENABLED_FALSE
COVERAGE_ENABLED_TRUE
UNITTESTS_ENABLED_FALSE
UNITTESTS_ENABLED_TRUE
DOXYGEN_WARN_ON_MISSING
DOXYGEN_FATAL_WARNINGS
PKG_CONFIG_LIBDIR
PKG_CONFIG_PATH
PKG_CONFIG
host_os
host_vendor
host_cpu
host
build_os
build_vendor
build_cpu
build
EGREP
GREP
CPP
am__fastdepCC_FALSE
am__fastdepCC_TRUE
CCDEPMODE
am__nodep
AMDEPBACKSLASH
AMDEP_FALSE
AMDEP_TRUE
am__include
DEPDIR
OBJEXT
EXEEXT
ac_ct_CC
CPPFLAGS
LDFLAGS
CFLAGS
CC
AM_BACKSLASH
AM_DEFAULT_VERBOSITY
AM_DEFAULT_V
AM_V
am__untar
am__tar
AMTAR
am__leading_dot
SET_MAKE
AWK
mkdir_p
MKDIR_P
INSTALL_STRIP_PROGRAM
STRIP
install_sh
MAKEINFO
AUTOHEADER
AUTOMAKE
AUTOCONF
ACLOCAL
VERSION
PACKAGE
CYGPATH_W
am__isrc
INSTALL_DATA
INSTALL_SCRIPT
INSTALL_PROGRAM
target_alias
host_alias
build_alias
LIBS
ECHO_T
ECHO_N
ECHO_C
DEFS
mandir
localedir
libdir
psdir
pdfdir
dvidir
htmldir
infodir
docdir
oldincludedir
includedir
localstatedir
sharedstatedir
sysconfdir
datadir
datarootdir
libexecdir
sbindir
bindir
program_transform_name
prefix
exec_prefix
PACKAGE_URL
PACKAGE_BUGREPORT
PACKAGE_STRING
PACKAGE_VERSION
PACKAGE_TARNAME
PACKAGE_NAME
PATH_SEPARATOR
SHELL
am__quote'
ac_subst_files=''
ac_user_opts='
enable_option_checking
enable_silent_rules
enable_dependency_tracking
enable_openbsd_malloc
enable_static_openssl
enable_static_libevent
enable_static_zlib
enable_static_tor
enable_unittests
enable_coverage
enable_asserts_in_tests
enable_system_torrc
enable_libfuzzer
enable_oss_fuzz
enable_memory_sentinels
enable_rust
enable_cargo_online_mode
enable_restart_debugging
enable_zstd_advanced_apis
enable_nss
enable_pic
enable_missing_doc_warnings
enable_manpage
enable_html_manual
enable_asciidoc
enable_systemd
enable_gcc_warnings
enable_fatal_warnings
enable_gcc_warnings_advisory
enable_gcc_hardening
enable_expensive_hardening
enable_fragile_hardening
enable_linker_hardening
enable_local_appdata
enable_tool_name_check
enable_seccomp
enable_libscrypt
enable_event_tracing_debug
enable_android
enable_module_relay
enable_module_dirauth
with_tor_user
with_tor_group
with_libevent_dir
with_ssl_dir
with_openssl_dir
with_zlib_dir
enable_lzma
enable_zstd
enable_largefile
with_tcmalloc
with_malloc
with_syslog_facility
'
      ac_precious_vars='build_alias
host_alias
target_alias
CC
CFLAGS
LDFLAGS
LIBS
CPPFLAGS
CPP
PKG_CONFIG
PKG_CONFIG_PATH
PKG_CONFIG_LIBDIR
SYSTEMD_CFLAGS
SYSTEMD_LIBS
LIBSYSTEMD209_CFLAGS
LIBSYSTEMD209_LIBS
PERL
TOR_RUST_TARGET
RUSTC
CARGO
TOR_RUST_DEPENDENCIES
NSS_CFLAGS
NSS_LIBS
LZMA_CFLAGS
LZMA_LIBS
ZSTD_CFLAGS
ZSTD_LIBS
TCMALLOC_CFLAGS
TCMALLOC_LIBS
JEMALLOC_CFLAGS
JEMALLOC_LIBS'


# Initialize some variables set by options.
ac_init_help=
ac_init_version=false
ac_unrecognized_opts=
ac_unrecognized_sep=
# The variables have the same names as the options, with
# dashes changed to underlines.
cache_file=/dev/null
exec_prefix=NONE
no_create=
no_recursion=
prefix=NONE
program_prefix=NONE
program_suffix=NONE
program_transform_name=s,x,x,
silent=
site=
srcdir=
verbose=
x_includes=NONE
x_libraries=NONE

# Installation directory options.
# These are left unexpanded so users can "make install exec_prefix=/foo"
# and all the variables that are supposed to be based on exec_prefix
# by default will actually change.
# Use braces instead of parens because sh, perl, etc. also accept them.
# (The list follows the same order as the GNU Coding Standards.)
bindir='${exec_prefix}/bin'
sbindir='${exec_prefix}/sbin'
libexecdir='${exec_prefix}/libexec'
datarootdir='${prefix}/share'
datadir='${datarootdir}'
sysconfdir='${prefix}/etc'
sharedstatedir='${prefix}/com'
localstatedir='${prefix}/var'
includedir='${prefix}/include'
oldincludedir='/usr/include'
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
infodir='${datarootdir}/info'
htmldir='${docdir}'
dvidir='${docdir}'
pdfdir='${docdir}'
psdir='${docdir}'
libdir='${exec_prefix}/lib'
localedir='${datarootdir}/locale'
mandir='${datarootdir}/man'

ac_prev=
ac_dashdash=
for ac_option
do
  # If the previous option needs an argument, assign it.
  if test -n "$ac_prev"; then
    eval $ac_prev=\$ac_option
    ac_prev=
    continue
  fi

  case $ac_option in
  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  *=)   ac_optarg= ;;
  *)    ac_optarg=yes ;;
  esac

  # Accept the important Cygnus configure options, so we can diagnose typos.

  case $ac_dashdash$ac_option in
  --)
    ac_dashdash=yes ;;

  -bindir | --bindir | --bindi | --bind | --bin | --bi)
    ac_prev=bindir ;;
  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
    bindir=$ac_optarg ;;

  -build | --build | --buil | --bui | --bu)
    ac_prev=build_alias ;;
  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
    build_alias=$ac_optarg ;;

  -cache-file | --cache-file | --cache-fil | --cache-fi \
  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
    ac_prev=cache_file ;;
  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
    cache_file=$ac_optarg ;;

  --config-cache | -C)
    cache_file=config.cache ;;

  -datadir | --datadir | --datadi | --datad)
    ac_prev=datadir ;;
  -datadir=* | --datadir=* | --datadi=* | --datad=*)
    datadir=$ac_optarg ;;

  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  | --dataroo | --dataro | --datar)
    ac_prev=datarootdir ;;
  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
    datarootdir=$ac_optarg ;;

  -disable-* | --disable-*)
    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
    # Reject names that are not valid shell variable names.
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
      as_fn_error $? "invalid feature name: $ac_useropt"
    ac_useropt_orig=$ac_useropt
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
    case $ac_user_opts in
      *"
"enable_$ac_useropt"
"*) ;;
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
	 ac_unrecognized_sep=', ';;
    esac
    eval enable_$ac_useropt=no ;;

  -docdir | --docdir | --docdi | --doc | --do)
    ac_prev=docdir ;;
  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
    docdir=$ac_optarg ;;

  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
    ac_prev=dvidir ;;
  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
    dvidir=$ac_optarg ;;

  -enable-* | --enable-*)
    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
    # Reject names that are not valid shell variable names.
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
      as_fn_error $? "invalid feature name: $ac_useropt"
    ac_useropt_orig=$ac_useropt
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
    case $ac_user_opts in
      *"
"enable_$ac_useropt"
"*) ;;
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
	 ac_unrecognized_sep=', ';;
    esac
    eval enable_$ac_useropt=\$ac_optarg ;;

  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  | --exec | --exe | --ex)
    ac_prev=exec_prefix ;;
  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  | --exec=* | --exe=* | --ex=*)
    exec_prefix=$ac_optarg ;;

  -gas | --gas | --ga | --g)
    # Obsolete; use --with-gas.
    with_gas=yes ;;

  -help | --help | --hel | --he | -h)
    ac_init_help=long ;;
  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
    ac_init_help=recursive ;;
  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
    ac_init_help=short ;;

  -host | --host | --hos | --ho)
    ac_prev=host_alias ;;
  -host=* | --host=* | --hos=* | --ho=*)
    host_alias=$ac_optarg ;;

  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
    ac_prev=htmldir ;;
  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  | --ht=*)
    htmldir=$ac_optarg ;;

  -includedir | --includedir | --includedi | --included | --include \
  | --includ | --inclu | --incl | --inc)
    ac_prev=includedir ;;
  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  | --includ=* | --inclu=* | --incl=* | --inc=*)
    includedir=$ac_optarg ;;

  -infodir | --infodir | --infodi | --infod | --info | --inf)
    ac_prev=infodir ;;
  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
    infodir=$ac_optarg ;;

  -libdir | --libdir | --libdi | --libd)
    ac_prev=libdir ;;
  -libdir=* | --libdir=* | --libdi=* | --libd=*)
    libdir=$ac_optarg ;;

  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  | --libexe | --libex | --libe)
    ac_prev=libexecdir ;;
  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  | --libexe=* | --libex=* | --libe=*)
    libexecdir=$ac_optarg ;;

  -localedir | --localedir | --localedi | --localed | --locale)
    ac_prev=localedir ;;
  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
    localedir=$ac_optarg ;;

  -localstatedir | --localstatedir | --localstatedi | --localstated \
  | --localstate | --localstat | --localsta | --localst | --locals)
    ac_prev=localstatedir ;;
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
    localstatedir=$ac_optarg ;;

  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
    ac_prev=mandir ;;
  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
    mandir=$ac_optarg ;;

  -nfp | --nfp | --nf)
    # Obsolete; use --without-fp.
    with_fp=no ;;

  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  | --no-cr | --no-c | -n)
    no_create=yes ;;

  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
    no_recursion=yes ;;

  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  | --oldin | --oldi | --old | --ol | --o)
    ac_prev=oldincludedir ;;
  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
    oldincludedir=$ac_optarg ;;

  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
    ac_prev=prefix ;;
  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
    prefix=$ac_optarg ;;

  -program-prefix | --program-prefix | --program-prefi | --program-pref \
  | --program-pre | --program-pr | --program-p)
    ac_prev=program_prefix ;;
  -program-prefix=* | --program-prefix=* | --program-prefi=* \
  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
    program_prefix=$ac_optarg ;;

  -program-suffix | --program-suffix | --program-suffi | --program-suff \
  | --program-suf | --program-su | --program-s)
    ac_prev=program_suffix ;;
  -program-suffix=* | --program-suffix=* | --program-suffi=* \
  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
    program_suffix=$ac_optarg ;;

  -program-transform-name | --program-transform-name \
  | --program-transform-nam | --program-transform-na \
  | --program-transform-n | --program-transform- \
  | --program-transform | --program-transfor \
  | --program-transfo | --program-transf \
  | --program-trans | --program-tran \
  | --progr-tra | --program-tr | --program-t)
    ac_prev=program_transform_name ;;
  -program-transform-name=* | --program-transform-name=* \
  | --program-transform-nam=* | --program-transform-na=* \
  | --program-transform-n=* | --program-transform-=* \
  | --program-transform=* | --program-transfor=* \
  | --program-transfo=* | --program-transf=* \
  | --program-trans=* | --program-tran=* \
  | --progr-tra=* | --program-tr=* | --program-t=*)
    program_transform_name=$ac_optarg ;;

  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
    ac_prev=pdfdir ;;
  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
    pdfdir=$ac_optarg ;;

  -psdir | --psdir | --psdi | --psd | --ps)
    ac_prev=psdir ;;
  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
    psdir=$ac_optarg ;;

  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  | -silent | --silent | --silen | --sile | --sil)
    silent=yes ;;

  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
    ac_prev=sbindir ;;
  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  | --sbi=* | --sb=*)
    sbindir=$ac_optarg ;;

  -sharedstatedir | --sharedstatedir | --sharedstatedi \
  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  | --sharedst | --shareds | --shared | --share | --shar \
  | --sha | --sh)
    ac_prev=sharedstatedir ;;
  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  | --sha=* | --sh=*)
    sharedstatedir=$ac_optarg ;;

  -site | --site | --sit)
    ac_prev=site ;;
  -site=* | --site=* | --sit=*)
    site=$ac_optarg ;;

  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
    ac_prev=srcdir ;;
  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
    srcdir=$ac_optarg ;;

  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  | --syscon | --sysco | --sysc | --sys | --sy)
    ac_prev=sysconfdir ;;
  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
    sysconfdir=$ac_optarg ;;

  -target | --target | --targe | --targ | --tar | --ta | --t)
    ac_prev=target_alias ;;
  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
    target_alias=$ac_optarg ;;

  -v | -verbose | --verbose | --verbos | --verbo | --verb)
    verbose=yes ;;

  -version | --version | --versio | --versi | --vers | -V)
    ac_init_version=: ;;

  -with-* | --with-*)
    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
    # Reject names that are not valid shell variable names.
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
      as_fn_error $? "invalid package name: $ac_useropt"
    ac_useropt_orig=$ac_useropt
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
    case $ac_user_opts in
      *"
"with_$ac_useropt"
"*) ;;
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
	 ac_unrecognized_sep=', ';;
    esac
    eval with_$ac_useropt=\$ac_optarg ;;

  -without-* | --without-*)
    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
    # Reject names that are not valid shell variable names.
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
      as_fn_error $? "invalid package name: $ac_useropt"
    ac_useropt_orig=$ac_useropt
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
    case $ac_user_opts in
      *"
"with_$ac_useropt"
"*) ;;
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
	 ac_unrecognized_sep=', ';;
    esac
    eval with_$ac_useropt=no ;;

  --x)
    # Obsolete; use --with-x.
    with_x=yes ;;

  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  | --x-incl | --x-inc | --x-in | --x-i)
    ac_prev=x_includes ;;
  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
    x_includes=$ac_optarg ;;

  -x-libraries | --x-libraries | --x-librarie | --x-librari \
  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
    ac_prev=x_libraries ;;
  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
    x_libraries=$ac_optarg ;;

  -*) as_fn_error $? "unrecognized option: \`$ac_option'
Try \`$0 --help' for more information"
    ;;

  *=*)
    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
    # Reject names that are not valid shell variable names.
    case $ac_envvar in #(
      '' | [0-9]* | *[!_$as_cr_alnum]* )
      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
    esac
    eval $ac_envvar=\$ac_optarg
    export $ac_envvar ;;

  *)
    # FIXME: should be removed in autoconf 3.0.
    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
    ;;

  esac
done

if test -n "$ac_prev"; then
  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  as_fn_error $? "missing argument to $ac_option"
fi

if test -n "$ac_unrecognized_opts"; then
  case $enable_option_checking in
    no) ;;
    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  esac
fi

# Check all directory arguments for consistency.
for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
		datadir sysconfdir sharedstatedir localstatedir includedir \
		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
		libdir localedir mandir
do
  eval ac_val=\$$ac_var
  # Remove trailing slashes.
  case $ac_val in
    */ )
      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
      eval $ac_var=\$ac_val;;
  esac
  # Be sure to have absolute directory names.
  case $ac_val in
    [\\/$]* | ?:[\\/]* )  continue;;
    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  esac
  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
done

# There might be people who depend on the old broken behavior: `$host'
# used to hold the argument of --host etc.
# FIXME: To remove some day.
build=$build_alias
host=$host_alias
target=$target_alias

# FIXME: To remove some day.
if test "x$host_alias" != x; then
  if test "x$build_alias" = x; then
    cross_compiling=maybe
  elif test "x$build_alias" != "x$host_alias"; then
    cross_compiling=yes
  fi
fi

ac_tool_prefix=
test -n "$host_alias" && ac_tool_prefix=$host_alias-

test "$silent" = yes && exec 6>/dev/null


ac_pwd=`pwd` && test -n "$ac_pwd" &&
ac_ls_di=`ls -di .` &&
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  as_fn_error $? "working directory cannot be determined"
test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  as_fn_error $? "pwd does not report name of working directory"


# Find the source files, if location was not specified.
if test -z "$srcdir"; then
  ac_srcdir_defaulted=yes
  # Try the directory containing this script, then the parent directory.
  ac_confdir=`$as_dirname -- "$as_myself" ||
$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
	 X"$as_myself" : 'X\(//\)[^/]' \| \
	 X"$as_myself" : 'X\(//\)$' \| \
	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
$as_echo X"$as_myself" |
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
	    s//\1/
	    q
	  }
	  /^X\(\/\/\)[^/].*/{
	    s//\1/
	    q
	  }
	  /^X\(\/\/\)$/{
	    s//\1/
	    q
	  }
	  /^X\(\/\).*/{
	    s//\1/
	    q
	  }
	  s/.*/./; q'`
  srcdir=$ac_confdir
  if test ! -r "$srcdir/$ac_unique_file"; then
    srcdir=..
  fi
else
  ac_srcdir_defaulted=no
fi
if test ! -r "$srcdir/$ac_unique_file"; then
  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
fi
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
ac_abs_confdir=`(
	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
	pwd)`
# When building in place, set srcdir=.
if test "$ac_abs_confdir" = "$ac_pwd"; then
  srcdir=.
fi
# Remove unnecessary trailing slashes from srcdir.
# Double slashes in file names in object file debugging info
# mess up M-x gdb in Emacs.
case $srcdir in
*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
esac
for ac_var in $ac_precious_vars; do
  eval ac_env_${ac_var}_set=\${${ac_var}+set}
  eval ac_env_${ac_var}_value=\$${ac_var}
  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  eval ac_cv_env_${ac_var}_value=\$${ac_var}
done

#
# Report the --help message.
#
if test "$ac_init_help" = "long"; then
  # Omit some internal or obsolete options to make the list less imposing.
  # This message is too long to be a string in the A/UX 3.1 sh.
  cat <<_ACEOF
\`configure' configures tor 0.4.3.1-alpha to adapt to many kinds of systems.

Usage: $0 [OPTION]... [VAR=VALUE]...

To assign environment variables (e.g., CC, CFLAGS...), specify them as
VAR=VALUE.  See below for descriptions of some of the useful variables.

Defaults for the options are specified in brackets.

Configuration:
  -h, --help              display this help and exit
      --help=short        display options specific to this package
      --help=recursive    display the short help of all the included packages
  -V, --version           display version information and exit
  -q, --quiet, --silent   do not print \`checking ...' messages
      --cache-file=FILE   cache test results in FILE [disabled]
  -C, --config-cache      alias for \`--cache-file=config.cache'
  -n, --no-create         do not create output files
      --srcdir=DIR        find the sources in DIR [configure dir or \`..']

Installation directories:
  --prefix=PREFIX         install architecture-independent files in PREFIX
                          [$ac_default_prefix]
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
                          [PREFIX]

By default, \`make install' will install all the files in
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
for instance \`--prefix=\$HOME'.

For better control, use the options below.

Fine tuning of the installation directories:
  --bindir=DIR            user executables [EPREFIX/bin]
  --sbindir=DIR           system admin executables [EPREFIX/sbin]
  --libexecdir=DIR        program executables [EPREFIX/libexec]
  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
  --libdir=DIR            object code libraries [EPREFIX/lib]
  --includedir=DIR        C header files [PREFIX/include]
  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
  --infodir=DIR           info documentation [DATAROOTDIR/info]
  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
  --mandir=DIR            man documentation [DATAROOTDIR/man]
  --docdir=DIR            documentation root [DATAROOTDIR/doc/tor]
  --htmldir=DIR           html documentation [DOCDIR]
  --dvidir=DIR            dvi documentation [DOCDIR]
  --pdfdir=DIR            pdf documentation [DOCDIR]
  --psdir=DIR             ps documentation [DOCDIR]
_ACEOF

  cat <<\_ACEOF

Program names:
  --program-prefix=PREFIX            prepend PREFIX to installed program names
  --program-suffix=SUFFIX            append SUFFIX to installed program names
  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names

System types:
  --build=BUILD     configure for building on BUILD [guessed]
  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
_ACEOF
fi

if test -n "$ac_init_help"; then
  case $ac_init_help in
     short | recursive ) echo "Configuration of tor 0.4.3.1-alpha:";;
   esac
  cat <<\_ACEOF

Optional Features:
  --disable-option-checking  ignore unrecognized --enable/--with options
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
  --enable-silent-rules   less verbose build output (undo: "make V=1")
  --disable-silent-rules  verbose build output (undo: "make V=0")
  --enable-dependency-tracking
                          do not reject slow dependency extractors
  --disable-dependency-tracking
                          speeds up one-time build
  --enable-openbsd-malloc use malloc code from OpenBSD. Linux only.
                          Deprecated: see --with-malloc
  --enable-static-openssl link against a static openssl library. Requires
                          --with-openssl-dir
  --enable-static-libevent
                          link against a static libevent library. Requires
                          --with-libevent-dir
  --enable-static-zlib    link against a static zlib library. Requires
                          --with-zlib-dir
  --enable-static-tor     create an entirely static Tor binary. Requires
                          --with-openssl-dir and --with-libevent-dir and
                          --with-zlib-dir
  --disable-unittests     don't build unit tests for Tor. Risky!
  --enable-coverage       enable coverage support in the unit-test build
  --disable-asserts-in-tests
                          disable tor_assert() calls in the unit tests, for
                          branch coverage
  --disable-system-torrc  don't look for a system-wide torrc file
  --enable-libfuzzer      build extra fuzzers based on 'libfuzzer'
  --enable-oss-fuzz       build extra fuzzers based on 'oss-fuzz' environment
  --disable-memory-sentinels
                          disable code that tries to prevent some kinds of
                          memory access bugs. For fuzzing only.
  --enable-rust           enable rust integration
  --enable-cargo-online-mode
                          Allow cargo to make network requests to fetch
                          crates. For builds with rust only.
  --enable-restart-debugging
                          Build Tor with support for debugging in-process
                          restart. Developers only.
  --disable-zstd-advanced-apis
                          Build without support for zstd's "static-only" APIs.
  --enable-nss            Use Mozilla's NSS TLS library. (EXPERIMENTAL)
  --enable-pic            Build Tor's binaries as position-independent code,
                          suitable to link as a library.
  --enable-missing-doc-warnings
                          Tell doxygen to warn about missing documentation.
                          Makes doxygen warnings nonfatal.
  --disable-manpage       Disable manpage generation.
  --disable-html-manual   Disable HTML documentation.
  --disable-asciidoc      don't use asciidoc (disables building of manpages)
  --enable-systemd        enable systemd notification support
  --enable-gcc-warnings   deprecated alias for enable-fatal-warnings
  --enable-fatal-warnings tell the compiler to treat all warnings as errors.
  --disable-gcc-warnings-advisory
                          disable the regular verbose warnings
  --disable-gcc-hardening disable compiler security checks
  --enable-expensive-hardening
                          enable more fragile and expensive compiler
                          hardening; makes Tor slower
  --enable-fragile-hardening
                          enable more fragile and expensive compiler
                          hardening; makes Tor slower
  --disable-linker-hardening
                          disable linker security fixups
  --enable-local-appdata  default to host local application data paths on
                          Windows
  --disable-tool-name-check
                          check for sanely named toolchain when
                          cross-compiling
  --disable-seccomp       do not attempt to use libseccomp
  --disable-libscrypt     do not attempt to use libscrypt
  --enable-event-tracing-debug
                          build with event tracing to debug log
  --enable-android        build with Android features enabled
  --disable-module-relay  Build tor without the Relay modules: tor can not run
                          as a relay, bridge, or authority. Implies
                          --disable-module-dirauth
  --disable-module-dirauth
                          Build tor without the Directory Authority module:
                          tor can not run as a directory authority or bridge
                          authority
  --enable-lzma           enable support for the LZMA compression scheme.
  --enable-zstd           enable support for the Zstandard compression scheme.
  --disable-largefile     omit support for large files

Optional Packages:
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
  --with-tor-user=NAME    specify username for tor daemon
  --with-tor-group=NAME   specify group name for tor daemon
  --with-libevent-dir=PATH
                          specify path to libevent installation
  --with-ssl-dir=PATH     obsolete alias for --with-openssl-dir
  --with-openssl-dir=PATH specify path to openssl installation
  --with-zlib-dir=PATH    specify path to zlib installation
  --with-tcmalloc         use tcmalloc memory allocation library. Deprecated;
                          see --with-malloc
  --with-malloc=system,jemalloc,tcmalloc,openbsd
                          select special malloc implementation [system]
  --with-syslog-facility=LOG
                          syslog facility to use (default=LOG_DAEMON)

Some influential environment variables:
  CC          C compiler command
  CFLAGS      C compiler flags
  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
              nonstandard directory <lib dir>
  LIBS        libraries to pass to the linker, e.g. -l<library>
  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
              you have headers in a nonstandard directory <include dir>
  CPP         C preprocessor
  PKG_CONFIG  path to pkg-config utility
  PKG_CONFIG_PATH
              directories to add to pkg-config's search path
  PKG_CONFIG_LIBDIR
              path overriding pkg-config's built-in search path
  SYSTEMD_CFLAGS
              C compiler flags for SYSTEMD, overriding pkg-config
  SYSTEMD_LIBS
              linker flags for SYSTEMD, overriding pkg-config
  LIBSYSTEMD209_CFLAGS
              C compiler flags for LIBSYSTEMD209, overriding pkg-config
  LIBSYSTEMD209_LIBS
              linker flags for LIBSYSTEMD209, overriding pkg-config
  PERL        path to Perl binary
  TOR_RUST_TARGET
              Rust target, must be specified when cross-compiling (HOST !=
              BUILD). example: i686-pc-windows-gnu
  RUSTC       path to the rustc binary
  CARGO       path to the cargo binary
  TOR_RUST_DEPENDENCIES
              path to directory with local crate mirror
  NSS_CFLAGS  C compiler flags for NSS, overriding pkg-config
  NSS_LIBS    linker flags for NSS, overriding pkg-config
  LZMA_CFLAGS C compiler flags for LZMA, overriding pkg-config
  LZMA_LIBS   linker flags for LZMA, overriding pkg-config
  ZSTD_CFLAGS C compiler flags for ZSTD, overriding pkg-config
  ZSTD_LIBS   linker flags for ZSTD, overriding pkg-config
  TCMALLOC_CFLAGS
              C compiler flags for TCMALLOC, overriding pkg-config
  TCMALLOC_LIBS
              linker flags for TCMALLOC, overriding pkg-config
  JEMALLOC_CFLAGS
              C compiler flags for JEMALLOC, overriding pkg-config
  JEMALLOC_LIBS
              linker flags for JEMALLOC, overriding pkg-config

Use these variables to override the choices made by `configure' or to help
it to find libraries and programs with nonstandard names/locations.

Report bugs to the package provider.
_ACEOF
ac_status=$?
fi

if test "$ac_init_help" = "recursive"; then
  # If there are subdirs, report their specific --help.
  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
    test -d "$ac_dir" ||
      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
      continue
    ac_builddir=.

case "$ac_dir" in
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
*)
  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  # A ".." for each directory in $ac_dir_suffix.
  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  case $ac_top_builddir_sub in
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  esac ;;
esac
ac_abs_top_builddir=$ac_pwd
ac_abs_builddir=$ac_pwd$ac_dir_suffix
# for backward compatibility:
ac_top_builddir=$ac_top_build_prefix

case $srcdir in
  .)  # We are building in place.
    ac_srcdir=.
    ac_top_srcdir=$ac_top_builddir_sub
    ac_abs_top_srcdir=$ac_pwd ;;
  [\\/]* | ?:[\\/]* )  # Absolute name.
    ac_srcdir=$srcdir$ac_dir_suffix;
    ac_top_srcdir=$srcdir
    ac_abs_top_srcdir=$srcdir ;;
  *) # Relative name.
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
    ac_top_srcdir=$ac_top_build_prefix$srcdir
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
esac
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix

    cd "$ac_dir" || { ac_status=$?; continue; }
    # Check for guested configure.
    if test -f "$ac_srcdir/configure.gnu"; then
      echo &&
      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
    elif test -f "$ac_srcdir/configure"; then
      echo &&
      $SHELL "$ac_srcdir/configure" --help=recursive
    else
      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
    fi || ac_status=$?
    cd "$ac_pwd" || { ac_status=$?; break; }
  done
fi

test -n "$ac_init_help" && exit $ac_status
if $ac_init_version; then
  cat <<\_ACEOF
tor configure 0.4.3.1-alpha
generated by GNU Autoconf 2.69

Copyright (C) 2012 Free Software Foundation, Inc.
This configure script is free software; the Free Software Foundation
gives unlimited permission to copy, distribute and modify it.
_ACEOF
  exit
fi

## ------------------------ ##
## Autoconf initialization. ##
## ------------------------ ##

# ac_fn_c_try_compile LINENO
# --------------------------
# Try to compile conftest.$ac_ext, and return whether this succeeded.
ac_fn_c_try_compile ()
{
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  rm -f conftest.$ac_objext
  if { { ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
$as_echo "$ac_try_echo"; } >&5
  (eval "$ac_compile") 2>conftest.err
  ac_status=$?
  if test -s conftest.err; then
    grep -v '^ *+' conftest.err >conftest.er1
    cat conftest.er1 >&5
    mv -f conftest.er1 conftest.err
  fi
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext; then :
  ac_retval=0
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_retval=1
fi
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  as_fn_set_status $ac_retval

} # ac_fn_c_try_compile

# ac_fn_c_try_cpp LINENO
# ----------------------
# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
ac_fn_c_try_cpp ()
{
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  if { { ac_try="$ac_cpp conftest.$ac_ext"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
$as_echo "$ac_try_echo"; } >&5
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  ac_status=$?
  if test -s conftest.err; then
    grep -v '^ *+' conftest.err >conftest.er1
    cat conftest.er1 >&5
    mv -f conftest.er1 conftest.err
  fi
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; } > conftest.i && {
	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
	 test ! -s conftest.err
       }; then :
  ac_retval=0
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

    ac_retval=1
fi
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  as_fn_set_status $ac_retval

} # ac_fn_c_try_cpp

# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
# -------------------------------------------------------
# Tests whether HEADER exists, giving a warning if it cannot be compiled using
# the include files in INCLUDES and setting the cache variable VAR
# accordingly.
ac_fn_c_check_header_mongrel ()
{
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  if eval \${$3+:} false; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
$as_echo_n "checking for $2... " >&6; }
if eval \${$3+:} false; then :
  $as_echo_n "(cached) " >&6
fi
eval ac_res=\$$3
	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
$as_echo "$ac_res" >&6; }
else
  # Is the header compilable?
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
$as_echo_n "checking $2 usability... " >&6; }
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
$4
#include <$2>
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ac_header_compiler=yes
else
  ac_header_compiler=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
$as_echo "$ac_header_compiler" >&6; }

# Is the header present?
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
$as_echo_n "checking $2 presence... " >&6; }
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <$2>
_ACEOF
if ac_fn_c_try_cpp "$LINENO"; then :
  ac_header_preproc=yes
else
  ac_header_preproc=no
fi
rm -f conftest.err conftest.i conftest.$ac_ext
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
$as_echo "$ac_header_preproc" >&6; }

# So?  What about this header?
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  yes:no: )
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
    ;;
  no:yes:* )
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
    ;;
esac
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
$as_echo_n "checking for $2... " >&6; }
if eval \${$3+:} false; then :
  $as_echo_n "(cached) " >&6
else
  eval "$3=\$ac_header_compiler"
fi
eval ac_res=\$$3
	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
$as_echo "$ac_res" >&6; }
fi
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno

} # ac_fn_c_check_header_mongrel

# ac_fn_c_try_run LINENO
# ----------------------
# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
# that executables *can* be run.
ac_fn_c_try_run ()
{
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  if { { ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
$as_echo "$ac_try_echo"; } >&5
  (eval "$ac_link") 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  { { case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
$as_echo "$ac_try_echo"; } >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }; }; then :
  ac_retval=0
else
  $as_echo "$as_me: program exited with status $ac_status" >&5
       $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

       ac_retval=$ac_status
fi
  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  as_fn_set_status $ac_retval

} # ac_fn_c_try_run

# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
# -------------------------------------------------------
# Tests whether HEADER exists and can be compiled using the include files in
# INCLUDES, setting the cache variable VAR accordingly.
ac_fn_c_check_header_compile ()
{
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
$as_echo_n "checking for $2... " >&6; }
if eval \${$3+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
$4
#include <$2>
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  eval "$3=yes"
else
  eval "$3=no"
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
eval ac_res=\$$3
	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
$as_echo "$ac_res" >&6; }
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno

} # ac_fn_c_check_header_compile

# ac_fn_c_try_link LINENO
# -----------------------
# Try to link conftest.$ac_ext, and return whether this succeeded.
ac_fn_c_try_link ()
{
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  rm -f conftest.$ac_objext conftest$ac_exeext
  if { { ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
$as_echo "$ac_try_echo"; } >&5
  (eval "$ac_link") 2>conftest.err
  ac_status=$?
  if test -s conftest.err; then
    grep -v '^ *+' conftest.err >conftest.er1
    cat conftest.er1 >&5
    mv -f conftest.er1 conftest.err
  fi
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; } && {
	 test -z "$ac_c_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest$ac_exeext && {
	 test "$cross_compiling" = yes ||
	 test -x conftest$ac_exeext
       }; then :
  ac_retval=0
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_retval=1
fi
  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  # interfere with the next link command; also delete a directory that is
  # left behind by Apple's compiler.  We do this before executing the actions.
  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  as_fn_set_status $ac_retval

} # ac_fn_c_try_link

# ac_fn_c_check_func LINENO FUNC VAR
# ----------------------------------
# Tests whether FUNC exists, setting the cache variable VAR accordingly
ac_fn_c_check_func ()
{
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
$as_echo_n "checking for $2... " >&6; }
if eval \${$3+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
#define $2 innocuous_$2

/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $2 (); below.
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    <limits.h> exists even on freestanding compilers.  */

#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif

#undef $2

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char $2 ();
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined __stub_$2 || defined __stub___$2
choke me
#endif

int
main ()
{
return $2 ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  eval "$3=yes"
else
  eval "$3=no"
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
fi
eval ac_res=\$$3
	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
$as_echo "$ac_res" >&6; }
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno

} # ac_fn_c_check_func

# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
# ---------------------------------------------
# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
# accordingly.
ac_fn_c_check_decl ()
{
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  as_decl_name=`echo $2|sed 's/ *(.*//'`
  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
if eval \${$3+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
$4
int
main ()
{
#ifndef $as_decl_name
#ifdef __cplusplus
  (void) $as_decl_use;
#else
  (void) $as_decl_name;
#endif
#endif

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  eval "$3=yes"
else
  eval "$3=no"
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
eval ac_res=\$$3
	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
$as_echo "$ac_res" >&6; }
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno

} # ac_fn_c_check_decl

# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
# ----------------------------------------------------
# Tries to find if the field MEMBER exists in type AGGR, after including
# INCLUDES, setting cache variable VAR accordingly.
ac_fn_c_check_member ()
{
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
$as_echo_n "checking for $2.$3... " >&6; }
if eval \${$4+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
$5
int
main ()
{
static $2 ac_aggr;
if (ac_aggr.$3)
return 0;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  eval "$4=yes"
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
$5
int
main ()
{
static $2 ac_aggr;
if (sizeof ac_aggr.$3)
return 0;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  eval "$4=yes"
else
  eval "$4=no"
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
eval ac_res=\$$4
	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
$as_echo "$ac_res" >&6; }
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno

} # ac_fn_c_check_member

# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
# --------------------------------------------
# Tries to find the compile-time value of EXPR in a program that includes
# INCLUDES, setting VAR accordingly. Returns whether the value could be
# computed
ac_fn_c_compute_int ()
{
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  if test "$cross_compiling" = yes; then
    # Depending upon the size, compute the lo and hi bounds.
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
$4
int
main ()
{
static int test_array [1 - 2 * !(($2) >= 0)];
test_array [0] = 0;
return test_array [0];

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ac_lo=0 ac_mid=0
  while :; do
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
$4
int
main ()
{
static int test_array [1 - 2 * !(($2) <= $ac_mid)];
test_array [0] = 0;
return test_array [0];

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ac_hi=$ac_mid; break
else
  as_fn_arith $ac_mid + 1 && ac_lo=$as_val
			if test $ac_lo -le $ac_mid; then
			  ac_lo= ac_hi=
			  break
			fi
			as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  done
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
$4
int
main ()
{
static int test_array [1 - 2 * !(($2) < 0)];
test_array [0] = 0;
return test_array [0];

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ac_hi=-1 ac_mid=-1
  while :; do
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
$4
int
main ()
{
static int test_array [1 - 2 * !(($2) >= $ac_mid)];
test_array [0] = 0;
return test_array [0];

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ac_lo=$ac_mid; break
else
  as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
			if test $ac_mid -le $ac_hi; then
			  ac_lo= ac_hi=
			  break
			fi
			as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  done
else
  ac_lo= ac_hi=
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
# Binary search between lo and hi bounds.
while test "x$ac_lo" != "x$ac_hi"; do
  as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
$4
int
main ()
{
static int test_array [1 - 2 * !(($2) <= $ac_mid)];
test_array [0] = 0;
return test_array [0];

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ac_hi=$ac_mid
else
  as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
done
case $ac_lo in #((
?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
'') ac_retval=1 ;;
esac
  else
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
$4
static long int longval () { return $2; }
static unsigned long int ulongval () { return $2; }
#include <stdio.h>
#include <stdlib.h>
int
main ()
{

  FILE *f = fopen ("conftest.val", "w");
  if (! f)
    return 1;
  if (($2) < 0)
    {
      long int i = longval ();
      if (i != ($2))
	return 1;
      fprintf (f, "%ld", i);
    }
  else
    {
      unsigned long int i = ulongval ();
      if (i != ($2))
	return 1;
      fprintf (f, "%lu", i);
    }
  /* Do not output a trailing newline, as this causes \r\n confusion
     on some platforms.  */
  return ferror (f) || fclose (f) != 0;

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  echo >>conftest.val; read $3 <conftest.val; ac_retval=0
else
  ac_retval=1
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
rm -f conftest.val

  fi
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  as_fn_set_status $ac_retval

} # ac_fn_c_compute_int

# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
# -------------------------------------------
# Tests whether TYPE exists after having included INCLUDES, setting cache
# variable VAR accordingly.
ac_fn_c_check_type ()
{
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
$as_echo_n "checking for $2... " >&6; }
if eval \${$3+:} false; then :
  $as_echo_n "(cached) " >&6
else
  eval "$3=no"
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
$4
int
main ()
{
if (sizeof ($2))
	 return 0;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
$4
int
main ()
{
if (sizeof (($2)))
	    return 0;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :

else
  eval "$3=yes"
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
eval ac_res=\$$3
	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
$as_echo "$ac_res" >&6; }
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno

} # ac_fn_c_check_type
cat >config.log <<_ACEOF
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

It was created by tor $as_me 0.4.3.1-alpha, which was
generated by GNU Autoconf 2.69.  Invocation command line was

  $ $0 $@

_ACEOF
exec 5>>config.log
{
cat <<_ASUNAME
## --------- ##
## Platform. ##
## --------- ##

hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
uname -m = `(uname -m) 2>/dev/null || echo unknown`
uname -r = `(uname -r) 2>/dev/null || echo unknown`
uname -s = `(uname -s) 2>/dev/null || echo unknown`
uname -v = `(uname -v) 2>/dev/null || echo unknown`

/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`

/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`

_ASUNAME

as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    $as_echo "PATH: $as_dir"
  done
IFS=$as_save_IFS

} >&5

cat >&5 <<_ACEOF


## ----------- ##
## Core tests. ##
## ----------- ##

_ACEOF


# Keep a trace of the command line.
# Strip out --no-create and --no-recursion so they do not pile up.
# Strip out --silent because we don't want to record it for future runs.
# Also quote any args containing shell meta-characters.
# Make two passes to allow for proper duplicate-argument suppression.
ac_configure_args=
ac_configure_args0=
ac_configure_args1=
ac_must_keep_next=false
for ac_pass in 1 2
do
  for ac_arg
  do
    case $ac_arg in
    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
    | -silent | --silent | --silen | --sile | --sil)
      continue ;;
    *\'*)
      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
    esac
    case $ac_pass in
    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
    2)
      as_fn_append ac_configure_args1 " '$ac_arg'"
      if test $ac_must_keep_next = true; then
	ac_must_keep_next=false # Got value, back to normal.
      else
	case $ac_arg in
	  *=* | --config-cache | -C | -disable-* | --disable-* \
	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
	  | -with-* | --with-* | -without-* | --without-* | --x)
	    case "$ac_configure_args0 " in
	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
	    esac
	    ;;
	  -* ) ac_must_keep_next=true ;;
	esac
      fi
      as_fn_append ac_configure_args " '$ac_arg'"
      ;;
    esac
  done
done
{ ac_configure_args0=; unset ac_configure_args0;}
{ ac_configure_args1=; unset ac_configure_args1;}

# When interrupted or exit'd, cleanup temporary files, and complete
# config.log.  We remove comments because anyway the quotes in there
# would cause problems or look ugly.
# WARNING: Use '\'' to represent an apostrophe within the trap.
# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
trap 'exit_status=$?
  # Save into config.log some information that might help in debugging.
  {
    echo

    $as_echo "## ---------------- ##
## Cache variables. ##
## ---------------- ##"
    echo
    # The following way of writing the cache mishandles newlines in values,
(
  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
    eval ac_val=\$$ac_var
    case $ac_val in #(
    *${as_nl}*)
      case $ac_var in #(
      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
      esac
      case $ac_var in #(
      _ | IFS | as_nl) ;; #(
      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
      *) { eval $ac_var=; unset $ac_var;} ;;
      esac ;;
    esac
  done
  (set) 2>&1 |
    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
    *${as_nl}ac_space=\ *)
      sed -n \
	"s/'\''/'\''\\\\'\'''\''/g;
	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
      ;; #(
    *)
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
      ;;
    esac |
    sort
)
    echo

    $as_echo "## ----------------- ##
## Output variables. ##
## ----------------- ##"
    echo
    for ac_var in $ac_subst_vars
    do
      eval ac_val=\$$ac_var
      case $ac_val in
      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
      esac
      $as_echo "$ac_var='\''$ac_val'\''"
    done | sort
    echo

    if test -n "$ac_subst_files"; then
      $as_echo "## ------------------- ##
## File substitutions. ##
## ------------------- ##"
      echo
      for ac_var in $ac_subst_files
      do
	eval ac_val=\$$ac_var
	case $ac_val in
	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
	esac
	$as_echo "$ac_var='\''$ac_val'\''"
      done | sort
      echo
    fi

    if test -s confdefs.h; then
      $as_echo "## ----------- ##
## confdefs.h. ##
## ----------- ##"
      echo
      cat confdefs.h
      echo
    fi
    test "$ac_signal" != 0 &&
      $as_echo "$as_me: caught signal $ac_signal"
    $as_echo "$as_me: exit $exit_status"
  } >&5
  rm -f core *.core core.conftest.* &&
    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
    exit $exit_status
' 0
for ac_signal in 1 2 13 15; do
  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
done
ac_signal=0

# confdefs.h avoids OS command line length limits that DEFS can exceed.
rm -f -r conftest* confdefs.h

$as_echo "/* confdefs.h */" > confdefs.h

# Predefined preprocessor variables.

cat >>confdefs.h <<_ACEOF
#define PACKAGE_NAME "$PACKAGE_NAME"
_ACEOF

cat >>confdefs.h <<_ACEOF
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
_ACEOF

cat >>confdefs.h <<_ACEOF
#define PACKAGE_VERSION "$PACKAGE_VERSION"
_ACEOF

cat >>confdefs.h <<_ACEOF
#define PACKAGE_STRING "$PACKAGE_STRING"
_ACEOF

cat >>confdefs.h <<_ACEOF
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
_ACEOF

cat >>confdefs.h <<_ACEOF
#define PACKAGE_URL "$PACKAGE_URL"
_ACEOF


# Let the site file select an alternate cache file if it wants to.
# Prefer an explicitly selected file to automatically selected ones.
ac_site_file1=NONE
ac_site_file2=NONE
if test -n "$CONFIG_SITE"; then
  # We do not want a PATH search for config.site.
  case $CONFIG_SITE in #((
    -*)  ac_site_file1=./$CONFIG_SITE;;
    */*) ac_site_file1=$CONFIG_SITE;;
    *)   ac_site_file1=./$CONFIG_SITE;;
  esac
elif test "x$prefix" != xNONE; then
  ac_site_file1=$prefix/share/config.site
  ac_site_file2=$prefix/etc/config.site
else
  ac_site_file1=$ac_default_prefix/share/config.site
  ac_site_file2=$ac_default_prefix/etc/config.site
fi
for ac_site_file in "$ac_site_file1" "$ac_site_file2"
do
  test "x$ac_site_file" = xNONE && continue
  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
$as_echo "$as_me: loading site script $ac_site_file" >&6;}
    sed 's/^/| /' "$ac_site_file" >&5
    . "$ac_site_file" \
      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error $? "failed to load site script $ac_site_file
See \`config.log' for more details" "$LINENO" 5; }
  fi
done

if test -r "$cache_file"; then
  # Some versions of bash will fail to source /dev/null (special files
  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
$as_echo "$as_me: loading cache $cache_file" >&6;}
    case $cache_file in
      [\\/]* | ?:[\\/]* ) . "$cache_file";;
      *)                      . "./$cache_file";;
    esac
  fi
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
$as_echo "$as_me: creating cache $cache_file" >&6;}
  >$cache_file
fi

# Check that the precious variables saved in the cache have kept the same
# value.
ac_cache_corrupted=false
for ac_var in $ac_precious_vars; do
  eval ac_old_set=\$ac_cv_env_${ac_var}_set
  eval ac_new_set=\$ac_env_${ac_var}_set
  eval ac_old_val=\$ac_cv_env_${ac_var}_value
  eval ac_new_val=\$ac_env_${ac_var}_value
  case $ac_old_set,$ac_new_set in
    set,)
      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
      ac_cache_corrupted=: ;;
    ,set)
      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
      ac_cache_corrupted=: ;;
    ,);;
    *)
      if test "x$ac_old_val" != "x$ac_new_val"; then
	# differences in whitespace do not lead to failure.
	ac_old_val_w=`echo x $ac_old_val`
	ac_new_val_w=`echo x $ac_new_val`
	if test "$ac_old_val_w" != "$ac_new_val_w"; then
	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
	  ac_cache_corrupted=:
	else
	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
	  eval $ac_var=\$ac_old_val
	fi
	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
      fi;;
  esac
  # Pass precious variables to config.status.
  if test "$ac_new_set" = set; then
    case $ac_new_val in
    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
    *) ac_arg=$ac_var=$ac_new_val ;;
    esac
    case " $ac_configure_args " in
      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
    esac
  fi
done
if $ac_cache_corrupted; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
fi
## -------------------- ##
## Main body of script. ##
## -------------------- ##

ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu





configure_flags="$*"

# DO NOT EDIT THIS DEFINITION BY HAND UNLESS YOU KNOW WHAT YOU'RE DOING.
#
# The update_versions.py script updates this definition when the
# version number changes.  Tor uses it to make sure that it
# only shuts down for missing "required protocols" when those protocols
# are listed as required by a consensus after this date.

$as_echo "#define APPROX_RELEASE_DATE \"2020-01-21\"" >>confdefs.h


# "foreign" means we don't follow GNU package layout standards
# "1.11" means we require automake version 1.11 or newer
# "subdir-objects" means put .o files in the same directory as the .c files
am__api_version='1.16'

ac_aux_dir=
for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  if test -f "$ac_dir/install-sh"; then
    ac_aux_dir=$ac_dir
    ac_install_sh="$ac_aux_dir/install-sh -c"
    break
  elif test -f "$ac_dir/install.sh"; then
    ac_aux_dir=$ac_dir
    ac_install_sh="$ac_aux_dir/install.sh -c"
    break
  elif test -f "$ac_dir/shtool"; then
    ac_aux_dir=$ac_dir
    ac_install_sh="$ac_aux_dir/shtool install -c"
    break
  fi
done
if test -z "$ac_aux_dir"; then
  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
fi

# These three variables are undocumented and unsupported,
# and are intended to be withdrawn in a future Autoconf release.
# They can cause serious problems if a builder's source tree is in a directory
# whose full name contains unusual characters.
ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.


# Find a good install program.  We prefer a C program (faster),
# so one script is as good as another.  But avoid the broken or
# incompatible versions:
# SysV /etc/install, /usr/sbin/install
# SunOS /usr/etc/install
# IRIX /sbin/install
# AIX /bin/install
# AmigaOS /C/install, which installs bootblocks on floppy discs
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
# OS/2's system install, which has a completely different semantic
# ./install, which can be erroneously created by make from ./install.sh.
# Reject install programs that cannot install multiple files.
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
$as_echo_n "checking for a BSD-compatible install... " >&6; }
if test -z "$INSTALL"; then
if ${ac_cv_path_install+:} false; then :
  $as_echo_n "(cached) " >&6
else
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    # Account for people who put trailing slashes in PATH elements.
case $as_dir/ in #((
  ./ | .// | /[cC]/* | \
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  /usr/ucb/* ) ;;
  *)
    # OSF1 and SCO ODT 3.0 have their own names for install.
    # Don't use installbsd from OSF since it installs stuff as root
    # by default.
    for ac_prog in ginstall scoinst install; do
      for ac_exec_ext in '' $ac_executable_extensions; do
	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
	  if test $ac_prog = install &&
	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
	    # AIX install.  It has an incompatible calling convention.
	    :
	  elif test $ac_prog = install &&
	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
	    # program-specific install script used by HP pwplus--don't use.
	    :
	  else
	    rm -rf conftest.one conftest.two conftest.dir
	    echo one > conftest.one
	    echo two > conftest.two
	    mkdir conftest.dir
	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
	      test -s conftest.one && test -s conftest.two &&
	      test -s conftest.dir/conftest.one &&
	      test -s conftest.dir/conftest.two
	    then
	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
	      break 3
	    fi
	  fi
	fi
      done
    done
    ;;
esac

  done
IFS=$as_save_IFS

rm -rf conftest.one conftest.two conftest.dir

fi
  if test "${ac_cv_path_install+set}" = set; then
    INSTALL=$ac_cv_path_install
  else
    # As a last resort, use the slow shell script.  Don't cache a
    # value for INSTALL within a source directory, because that will
    # break other packages using the cache if that directory is
    # removed, or if the value is a relative name.
    INSTALL=$ac_install_sh
  fi
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
$as_echo "$INSTALL" >&6; }

# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
# It thinks the first close brace ends the variable substitution.
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'

test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'

test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
$as_echo_n "checking whether build environment is sane... " >&6; }
# Reject unsafe characters in $srcdir or the absolute working directory
# name.  Accept space and tab only in the latter.
am_lf='
'
case `pwd` in
  *[\\\"\#\$\&\'\`$am_lf]*)
    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
esac
case $srcdir in
  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
esac

# Do 'set' in a subshell so we don't clobber the current shell's
# arguments.  Must try -L first in case configure is actually a
# symlink; some systems play weird games with the mod time of symlinks
# (eg FreeBSD returns the mod time of the symlink's containing
# directory).
if (
   am_has_slept=no
   for am_try in 1 2; do
     echo "timestamp, slept: $am_has_slept" > conftest.file
     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
     if test "$*" = "X"; then
	# -L didn't work.
	set X `ls -t "$srcdir/configure" conftest.file`
     fi
     if test "$*" != "X $srcdir/configure conftest.file" \
	&& test "$*" != "X conftest.file $srcdir/configure"; then

	# If neither matched, then we have a broken ls.  This can happen
	# if, for instance, CONFIG_SHELL is bash and it inherits a
	# broken ls alias from the environment.  This has actually
	# happened.  Such a system could not be considered "sane".
	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
  alias in your environment" "$LINENO" 5
     fi
     if test "$2" = conftest.file || test $am_try -eq 2; then
       break
     fi
     # Just in case.
     sleep 1
     am_has_slept=yes
   done
   test "$2" = conftest.file
   )
then
   # Ok.
   :
else
   as_fn_error $? "newly created file is older than distributed files!
Check your system clock" "$LINENO" 5
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
# If we didn't sleep, we still need to ensure time stamps of config.status and
# generated files are strictly newer.
am_sleep_pid=
if grep 'slept: no' conftest.file >/dev/null 2>&1; then
  ( sleep 1 ) &
  am_sleep_pid=$!
fi

rm -f conftest.file

test "$program_prefix" != NONE &&
  program_transform_name="s&^&$program_prefix&;$program_transform_name"
# Use a double $ so make ignores it.
test "$program_suffix" != NONE &&
  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
# Double any \ or $.
# By default was `s,x,x', remove it if useless.
ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`

# Expand $ac_aux_dir to an absolute path.
am_aux_dir=`cd "$ac_aux_dir" && pwd`

if test x"${MISSING+set}" != xset; then
  case $am_aux_dir in
  *\ * | *\	*)
    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  *)
    MISSING="\${SHELL} $am_aux_dir/missing" ;;
  esac
fi
# Use eval to expand $SHELL
if eval "$MISSING --is-lightweight"; then
  am_missing_run="$MISSING "
else
  am_missing_run=
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
fi

if test x"${install_sh+set}" != xset; then
  case $am_aux_dir in
  *\ * | *\	*)
    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  *)
    install_sh="\${SHELL} $am_aux_dir/install-sh"
  esac
fi

# Installed binaries are usually stripped using 'strip' when the user
# run "make install-strip".  However 'strip' might not be the right
# tool to use in cross-compilation environments, therefore Automake
# will honor the 'STRIP' environment variable to overrule this program.
if test "$cross_compiling" != no; then
  if test -n "$ac_tool_prefix"; then
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
set dummy ${ac_tool_prefix}strip; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_STRIP+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$STRIP"; then
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
STRIP=$ac_cv_prog_STRIP
if test -n "$STRIP"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
$as_echo "$STRIP" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


fi
if test -z "$ac_cv_prog_STRIP"; then
  ac_ct_STRIP=$STRIP
  # Extract the first word of "strip", so it can be a program name with args.
set dummy strip; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$ac_ct_STRIP"; then
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    ac_cv_prog_ac_ct_STRIP="strip"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
if test -n "$ac_ct_STRIP"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
$as_echo "$ac_ct_STRIP" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi

  if test "x$ac_ct_STRIP" = x; then
    STRIP=":"
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
ac_tool_warned=yes ;;
esac
    STRIP=$ac_ct_STRIP
  fi
else
  STRIP="$ac_cv_prog_STRIP"
fi

fi
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
if test -z "$MKDIR_P"; then
  if ${ac_cv_path_mkdir+:} false; then :
  $as_echo_n "(cached) " >&6
else
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_prog in mkdir gmkdir; do
	 for ac_exec_ext in '' $ac_executable_extensions; do
	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
	     'mkdir (GNU coreutils) '* | \
	     'mkdir (coreutils) '* | \
	     'mkdir (fileutils) '4.1*)
	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
	       break 3;;
	   esac
	 done
       done
  done
IFS=$as_save_IFS

fi

  test -d ./--version && rmdir ./--version
  if test "${ac_cv_path_mkdir+set}" = set; then
    MKDIR_P="$ac_cv_path_mkdir -p"
  else
    # As a last resort, use the slow shell script.  Don't cache a
    # value for MKDIR_P within a source directory, because that will
    # break other packages using the cache if that directory is
    # removed, or if the value is a relative name.
    MKDIR_P="$ac_install_sh -d"
  fi
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
$as_echo "$MKDIR_P" >&6; }

for ac_prog in gawk mawk nawk awk
do
  # Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_AWK+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$AWK"; then
  ac_cv_prog_AWK="$AWK" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    ac_cv_prog_AWK="$ac_prog"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
AWK=$ac_cv_prog_AWK
if test -n "$AWK"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
$as_echo "$AWK" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


  test -n "$AWK" && break
done

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
set x ${MAKE-make}
ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat >conftest.make <<\_ACEOF
SHELL = /bin/sh
all:
	@echo '@@@%%%=$(MAKE)=@@@%%%'
_ACEOF
# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
case `${MAKE-make} -f conftest.make 2>/dev/null` in
  *@@@%%%=?*=@@@%%%*)
    eval ac_cv_prog_make_${ac_make}_set=yes;;
  *)
    eval ac_cv_prog_make_${ac_make}_set=no;;
esac
rm -f conftest.make
fi
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
  SET_MAKE=
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
  SET_MAKE="MAKE=${MAKE-make}"
fi

rm -rf .tst 2>/dev/null
mkdir .tst 2>/dev/null
if test -d .tst; then
  am__leading_dot=.
else
  am__leading_dot=_
fi
rmdir .tst 2>/dev/null

# Check whether --enable-silent-rules was given.
if test "${enable_silent_rules+set}" = set; then :
  enableval=$enable_silent_rules;
fi

case $enable_silent_rules in # (((
  yes) AM_DEFAULT_VERBOSITY=0;;
   no) AM_DEFAULT_VERBOSITY=1;;
    *) AM_DEFAULT_VERBOSITY=1;;
esac
am_make=${MAKE-make}
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
if ${am_cv_make_support_nested_variables+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if $as_echo 'TRUE=$(BAR$(V))
BAR0=false
BAR1=true
V=1
am__doit:
	@$(TRUE)
.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
  am_cv_make_support_nested_variables=yes
else
  am_cv_make_support_nested_variables=no
fi
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
$as_echo "$am_cv_make_support_nested_variables" >&6; }
if test $am_cv_make_support_nested_variables = yes; then
    AM_V='$(V)'
  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
else
  AM_V=$AM_DEFAULT_VERBOSITY
  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
fi
AM_BACKSLASH='\'

if test "`cd $srcdir && pwd`" != "`pwd`"; then
  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  # is not polluted with repeated "-I."
  am__isrc=' -I$(srcdir)'
  # test to see if srcdir already configured
  if test -f $srcdir/config.status; then
    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
  fi
fi

# test whether we have cygpath
if test -z "$CYGPATH_W"; then
  if (cygpath --version) >/dev/null 2>/dev/null; then
    CYGPATH_W='cygpath -w'
  else
    CYGPATH_W=echo
  fi
fi


# Define the identity of the package.
 PACKAGE='tor'
 VERSION='0.4.3.1-alpha'


cat >>confdefs.h <<_ACEOF
#define PACKAGE "$PACKAGE"
_ACEOF


cat >>confdefs.h <<_ACEOF
#define VERSION "$VERSION"
_ACEOF

# Some tools Automake needs.

ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}


AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}


AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}


AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}


MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}

# For better backward compatibility.  To be removed once Automake 1.9.x
# dies out for good.  For more background, see:
# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
mkdir_p='$(MKDIR_P)'

# We need awk for the "check" target (and possibly the TAP driver).  The
# system "awk" is bad on some platforms.
# Always define AMTAR for backward compatibility.  Yes, it's still used
# in the wild :-(  We should find a proper way to deprecate it ...
AMTAR='$${TAR-tar}'


# We'll loop over all known methods to create a tar archive until one works.
_am_tools='gnutar  pax cpio none'

am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'






# POSIX will say in a future version that running "rm -f" with no argument
# is OK; and we want to be able to make that assumption in our Makefile
# recipes.  So use an aggressive probe to check that the usage we want is
# actually supported "in the wild" to an acceptable degree.
# See automake bug#10828.
# To make any issue more visible, cause the running configure to be aborted
# by default if the 'rm' program in use doesn't match our expectations; the
# user can still override this though.
if rm -f && rm -fr && rm -rf; then : OK; else
  cat >&2 <<'END'
Oops!

Your 'rm' program seems unable to run without file operands specified
on the command line, even when the '-f' option is present.  This is contrary
to the behaviour of most rm programs out there, and not conforming with
the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>

Please tell bug-automake@gnu.org about your system, including the value
of your $PATH and any error possibly output before this message.  This
can help us improve future automake versions.

END
  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
    echo 'Configuration will proceed anyway, since you have set the' >&2
    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
    echo >&2
  else
    cat >&2 <<'END'
Aborting the configuration process, to ensure you take notice of the issue.

You can download and install GNU coreutils to get an 'rm' implementation
that behaves properly: <https://www.gnu.org/software/coreutils/>.

If you want to complete the configuration process using your problematic
'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
to "yes", and re-run configure.

END
    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
  fi
fi


# Check whether --enable-silent-rules was given.
if test "${enable_silent_rules+set}" = set; then :
  enableval=$enable_silent_rules;
fi

case $enable_silent_rules in # (((
  yes) AM_DEFAULT_VERBOSITY=0;;
   no) AM_DEFAULT_VERBOSITY=1;;
    *) AM_DEFAULT_VERBOSITY=0;;
esac
am_make=${MAKE-make}
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
if ${am_cv_make_support_nested_variables+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if $as_echo 'TRUE=$(BAR$(V))
BAR0=false
BAR1=true
V=1
am__doit:
	@$(TRUE)
.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
  am_cv_make_support_nested_variables=yes
else
  am_cv_make_support_nested_variables=no
fi
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
$as_echo "$am_cv_make_support_nested_variables" >&6; }
if test $am_cv_make_support_nested_variables = yes; then
    AM_V='$(V)'
  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
else
  AM_V=$AM_DEFAULT_VERBOSITY
  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
fi
AM_BACKSLASH='\'

ac_config_headers="$ac_config_headers orconfig.h"


DEPDIR="${am__leading_dot}deps"

ac_config_commands="$ac_config_commands depfiles"

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
$as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; }
cat > confinc.mk << 'END'
am__doit:
	@echo this is the am__doit target >confinc.out
.PHONY: am__doit
END
am__include="#"
am__quote=
# BSD make does it like this.
echo '.include "confinc.mk" # ignored' > confmf.BSD
# Other make implementations (GNU, Solaris 10, AIX) do it like this.
echo 'include confinc.mk # ignored' > confmf.GNU
_am_result=no
for s in GNU BSD; do
  { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
   (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
   ac_status=$?
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   (exit $ac_status); }
  case $?:`cat confinc.out 2>/dev/null` in #(
  '0:this is the am__doit target') :
    case $s in #(
  BSD) :
    am__include='.include' am__quote='"' ;; #(
  *) :
    am__include='include' am__quote='' ;;
esac ;; #(
  *) :
     ;;
esac
  if test "$am__include" != "#"; then
    _am_result="yes ($s style)"
    break
  fi
done
rm -f confinc.* confmf.*
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
$as_echo "${_am_result}" >&6; }

# Check whether --enable-dependency-tracking was given.
if test "${enable_dependency_tracking+set}" = set; then :
  enableval=$enable_dependency_tracking;
fi

if test "x$enable_dependency_tracking" != xno; then
  am_depcomp="$ac_aux_dir/depcomp"
  AMDEPBACKSLASH='\'
  am__nodep='_no'
fi
 if test "x$enable_dependency_tracking" != xno; then
  AMDEP_TRUE=
  AMDEP_FALSE='#'
else
  AMDEP_TRUE='#'
  AMDEP_FALSE=
fi


ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu
if test -n "$ac_tool_prefix"; then
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
set dummy ${ac_tool_prefix}gcc; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_CC+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$CC"; then
  ac_cv_prog_CC="$CC" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
CC=$ac_cv_prog_CC
if test -n "$CC"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
$as_echo "$CC" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


fi
if test -z "$ac_cv_prog_CC"; then
  ac_ct_CC=$CC
  # Extract the first word of "gcc", so it can be a program name with args.
set dummy gcc; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_ac_ct_CC+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$ac_ct_CC"; then
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    ac_cv_prog_ac_ct_CC="gcc"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
ac_ct_CC=$ac_cv_prog_ac_ct_CC
if test -n "$ac_ct_CC"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
$as_echo "$ac_ct_CC" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi

  if test "x$ac_ct_CC" = x; then
    CC=""
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
ac_tool_warned=yes ;;
esac
    CC=$ac_ct_CC
  fi
else
  CC="$ac_cv_prog_CC"
fi

if test -z "$CC"; then
          if test -n "$ac_tool_prefix"; then
    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
set dummy ${ac_tool_prefix}cc; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_CC+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$CC"; then
  ac_cv_prog_CC="$CC" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    ac_cv_prog_CC="${ac_tool_prefix}cc"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
CC=$ac_cv_prog_CC
if test -n "$CC"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
$as_echo "$CC" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


  fi
fi
if test -z "$CC"; then
  # Extract the first word of "cc", so it can be a program name with args.
set dummy cc; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_CC+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$CC"; then
  ac_cv_prog_CC="$CC" # Let the user override the test.
else
  ac_prog_rejected=no
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
       ac_prog_rejected=yes
       continue
     fi
    ac_cv_prog_CC="cc"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

if test $ac_prog_rejected = yes; then
  # We found a bogon in the path, so make sure we never use it.
  set dummy $ac_cv_prog_CC
  shift
  if test $# != 0; then
    # We chose a different compiler from the bogus one.
    # However, it has the same basename, so the bogon will be chosen
    # first if we set CC to just the basename; use the full file name.
    shift
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  fi
fi
fi
fi
CC=$ac_cv_prog_CC
if test -n "$CC"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
$as_echo "$CC" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


fi
if test -z "$CC"; then
  if test -n "$ac_tool_prefix"; then
  for ac_prog in cl.exe
  do
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_CC+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$CC"; then
  ac_cv_prog_CC="$CC" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
CC=$ac_cv_prog_CC
if test -n "$CC"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
$as_echo "$CC" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


    test -n "$CC" && break
  done
fi
if test -z "$CC"; then
  ac_ct_CC=$CC
  for ac_prog in cl.exe
do
  # Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_ac_ct_CC+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$ac_ct_CC"; then
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    ac_cv_prog_ac_ct_CC="$ac_prog"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
ac_ct_CC=$ac_cv_prog_ac_ct_CC
if test -n "$ac_ct_CC"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
$as_echo "$ac_ct_CC" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


  test -n "$ac_ct_CC" && break
done

  if test "x$ac_ct_CC" = x; then
    CC=""
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
ac_tool_warned=yes ;;
esac
    CC=$ac_ct_CC
  fi
fi

fi


test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error $? "no acceptable C compiler found in \$PATH
See \`config.log' for more details" "$LINENO" 5; }

# Provide some information about the compiler.
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
set X $ac_compile
ac_compiler=$2
for ac_option in --version -v -V -qversion; do
  { { ac_try="$ac_compiler $ac_option >&5"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
$as_echo "$ac_try_echo"; } >&5
  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  ac_status=$?
  if test -s conftest.err; then
    sed '10a\
... rest of stderr output deleted ...
         10q' conftest.err >conftest.er1
    cat conftest.er1 >&5
  fi
  rm -f conftest.er1 conftest.err
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }
done

cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
ac_clean_files_save=$ac_clean_files
ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
# Try to create an executable without -o first, disregard a.out.
# It will help us diagnose broken compilers, and finding out an intuition
# of exeext.
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
$as_echo_n "checking whether the C compiler works... " >&6; }
ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`

# The possible output files:
ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"

ac_rmfiles=
for ac_file in $ac_files
do
  case $ac_file in
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  esac
done
rm -f $ac_rmfiles

if { { ac_try="$ac_link_default"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
$as_echo "$ac_try_echo"; } >&5
  (eval "$ac_link_default") 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }; then :
  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
# in a Makefile.  We should not override ac_cv_exeext if it was cached,
# so that the user can short-circuit this test for compilers unknown to
# Autoconf.
for ac_file in $ac_files ''
do
  test -f "$ac_file" || continue
  case $ac_file in
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
	;;
    [ab].out )
	# We found the default executable, but exeext='' is most
	# certainly right.
	break;;
    *.* )
	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
	then :; else
	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
	fi
	# We set ac_cv_exeext here because the later test for it is not
	# safe: cross compilers may not add the suffix if given an `-o'
	# argument, so we may need to know it at that point already.
	# Even if this section looks crufty: it has the advantage of
	# actually working.
	break;;
    * )
	break;;
  esac
done
test "$ac_cv_exeext" = no && ac_cv_exeext=

else
  ac_file=''
fi
if test -z "$ac_file"; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
$as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error 77 "C compiler cannot create executables
See \`config.log' for more details" "$LINENO" 5; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
$as_echo_n "checking for C compiler default output file name... " >&6; }
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
$as_echo "$ac_file" >&6; }
ac_exeext=$ac_cv_exeext

rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
ac_clean_files=$ac_clean_files_save
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
$as_echo_n "checking for suffix of executables... " >&6; }
if { { ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
$as_echo "$ac_try_echo"; } >&5
  (eval "$ac_link") 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }; then :
  # If both `conftest.exe' and `conftest' are `present' (well, observable)
# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
# work properly (i.e., refer to `conftest.exe'), while it won't with
# `rm'.
for ac_file in conftest.exe conftest conftest.*; do
  test -f "$ac_file" || continue
  case $ac_file in
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
	  break;;
    * ) break;;
  esac
done
else
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error $? "cannot compute suffix of executables: cannot compile and link
See \`config.log' for more details" "$LINENO" 5; }
fi
rm -f conftest conftest$ac_cv_exeext
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
$as_echo "$ac_cv_exeext" >&6; }

rm -f conftest.$ac_ext
EXEEXT=$ac_cv_exeext
ac_exeext=$EXEEXT
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <stdio.h>
int
main ()
{
FILE *f = fopen ("conftest.out", "w");
 return ferror (f) || fclose (f) != 0;

  ;
  return 0;
}
_ACEOF
ac_clean_files="$ac_clean_files conftest.out"
# Check that the compiler produces executables we can run.  If not, either
# the compiler is broken, or we cross compile.
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
$as_echo_n "checking whether we are cross compiling... " >&6; }
if test "$cross_compiling" != yes; then
  { { ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
$as_echo "$ac_try_echo"; } >&5
  (eval "$ac_link") 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }
  if { ac_try='./conftest$ac_cv_exeext'
  { { case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
$as_echo "$ac_try_echo"; } >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }; }; then
    cross_compiling=no
  else
    if test "$cross_compiling" = maybe; then
	cross_compiling=yes
    else
	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error $? "cannot run C compiled programs.
If you meant to cross compile, use \`--host'.
See \`config.log' for more details" "$LINENO" 5; }
    fi
  fi
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
$as_echo "$cross_compiling" >&6; }

rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
ac_clean_files=$ac_clean_files_save
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
$as_echo_n "checking for suffix of object files... " >&6; }
if ${ac_cv_objext+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
rm -f conftest.o conftest.obj
if { { ac_try="$ac_compile"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
$as_echo "$ac_try_echo"; } >&5
  (eval "$ac_compile") 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }; then :
  for ac_file in conftest.o conftest.obj conftest.*; do
  test -f "$ac_file" || continue;
  case $ac_file in
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
       break;;
  esac
done
else
  $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error $? "cannot compute suffix of object files: cannot compile
See \`config.log' for more details" "$LINENO" 5; }
fi
rm -f conftest.$ac_cv_objext conftest.$ac_ext
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
$as_echo "$ac_cv_objext" >&6; }
OBJEXT=$ac_cv_objext
ac_objext=$OBJEXT
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
if ${ac_cv_c_compiler_gnu+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{
#ifndef __GNUC__
       choke me
#endif

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ac_compiler_gnu=yes
else
  ac_compiler_gnu=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ac_cv_c_compiler_gnu=$ac_compiler_gnu

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
$as_echo "$ac_cv_c_compiler_gnu" >&6; }
if test $ac_compiler_gnu = yes; then
  GCC=yes
else
  GCC=
fi
ac_test_CFLAGS=${CFLAGS+set}
ac_save_CFLAGS=$CFLAGS
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
$as_echo_n "checking whether $CC accepts -g... " >&6; }
if ${ac_cv_prog_cc_g+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_save_c_werror_flag=$ac_c_werror_flag
   ac_c_werror_flag=yes
   ac_cv_prog_cc_g=no
   CFLAGS="-g"
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ac_cv_prog_cc_g=yes
else
  CFLAGS=""
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :

else
  ac_c_werror_flag=$ac_save_c_werror_flag
	 CFLAGS="-g"
	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ac_cv_prog_cc_g=yes
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   ac_c_werror_flag=$ac_save_c_werror_flag
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
$as_echo "$ac_cv_prog_cc_g" >&6; }
if test "$ac_test_CFLAGS" = set; then
  CFLAGS=$ac_save_CFLAGS
elif test $ac_cv_prog_cc_g = yes; then
  if test "$GCC" = yes; then
    CFLAGS="-g -O2"
  else
    CFLAGS="-g"
  fi
else
  if test "$GCC" = yes; then
    CFLAGS="-O2"
  else
    CFLAGS=
  fi
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
if ${ac_cv_prog_cc_c89+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_cv_prog_cc_c89=no
ac_save_CC=$CC
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <stdarg.h>
#include <stdio.h>
struct stat;
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
struct buf { int x; };
FILE * (*rcsopen) (struct buf *, struct stat *, int);
static char *e (p, i)
     char **p;
     int i;
{
  return p[i];
}
static char *f (char * (*g) (char **, int), char **p, ...)
{
  char *s;
  va_list v;
  va_start (v,p);
  s = g (p, va_arg (v,int));
  va_end (v);
  return s;
}

/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
   function prototypes and stuff, but not '\xHH' hex character constants.
   These don't provoke an error unfortunately, instead are silently treated
   as 'x'.  The following induces an error, until -std is added to get
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
   array size at least.  It's necessary to write '\x00'==0 to get something
   that's true only with -std.  */
int osf4_cc_array ['\x00' == 0 ? 1 : -1];

/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
   inside strings and character constants.  */
#define FOO(x) 'x'
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];

int test (int i, double x);
struct s1 {int (*f) (int a);};
struct s2 {int (*f) (double a);};
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
int argc;
char **argv;
int
main ()
{
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
  ;
  return 0;
}
_ACEOF
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
do
  CC="$ac_save_CC $ac_arg"
  if ac_fn_c_try_compile "$LINENO"; then :
  ac_cv_prog_cc_c89=$ac_arg
fi
rm -f core conftest.err conftest.$ac_objext
  test "x$ac_cv_prog_cc_c89" != "xno" && break
done
rm -f conftest.$ac_ext
CC=$ac_save_CC

fi
# AC_CACHE_VAL
case "x$ac_cv_prog_cc_c89" in
  x)
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
$as_echo "none needed" >&6; } ;;
  xno)
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
$as_echo "unsupported" >&6; } ;;
  *)
    CC="$CC $ac_cv_prog_cc_c89"
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
esac
if test "x$ac_cv_prog_cc_c89" != xno; then :

fi

ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu

ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
if ${am_cv_prog_cc_c_o+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
  # Make sure it works both with $CC and with simple cc.
  # Following AC_PROG_CC_C_O, we do the test twice because some
  # compilers refuse to overwrite an existing .o file with -o,
  # though they will create one.
  am_cv_prog_cc_c_o=yes
  for am_i in 1 2; do
    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
   ac_status=$?
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   (exit $ac_status); } \
         && test -f conftest2.$ac_objext; then
      : OK
    else
      am_cv_prog_cc_c_o=no
      break
    fi
  done
  rm -f core conftest*
  unset am_i
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
$as_echo "$am_cv_prog_cc_c_o" >&6; }
if test "$am_cv_prog_cc_c_o" != yes; then
   # Losing compiler, so override with the script.
   # FIXME: It is wrong to rewrite CC.
   # But if we don't then we get into trouble of one sort or another.
   # A longer-term fix would be to have automake use am__CC in this case,
   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
   CC="$am_aux_dir/compile $CC"
fi
ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu


depcc="$CC"   am_compiler_list=

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
$as_echo_n "checking dependency style of $depcc... " >&6; }
if ${am_cv_CC_dependencies_compiler_type+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  # We make a subdir and do the tests there.  Otherwise we can end up
  # making bogus files that we don't know about and never remove.  For
  # instance it was reported that on HP-UX the gcc test will end up
  # making a dummy file named 'D' -- because '-MD' means "put the output
  # in D".
  rm -rf conftest.dir
  mkdir conftest.dir
  # Copy depcomp to subdir because otherwise we won't find it if we're
  # using a relative directory.
  cp "$am_depcomp" conftest.dir
  cd conftest.dir
  # We will build objects and dependencies in a subdirectory because
  # it helps to detect inapplicable dependency modes.  For instance
  # both Tru64's cc and ICC support -MD to output dependencies as a
  # side effect of compilation, but ICC will put the dependencies in
  # the current directory while Tru64 will put them in the object
  # directory.
  mkdir sub

  am_cv_CC_dependencies_compiler_type=none
  if test "$am_compiler_list" = ""; then
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  fi
  am__universal=false
  case " $depcc " in #(
     *\ -arch\ *\ -arch\ *) am__universal=true ;;
     esac

  for depmode in $am_compiler_list; do
    # Setup a source with many dependencies, because some compilers
    # like to wrap large dependency lists on column 80 (with \), and
    # we should not choose a depcomp mode which is confused by this.
    #
    # We need to recreate these files for each test, as the compiler may
    # overwrite some of them when testing with obscure command lines.
    # This happens at least with the AIX C compiler.
    : > sub/conftest.c
    for i in 1 2 3 4 5 6; do
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
      # Solaris 10 /bin/sh.
      echo '/* dummy */' > sub/conftst$i.h
    done
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf

    # We check with '-c' and '-o' for the sake of the "dashmstdout"
    # mode.  It turns out that the SunPro C++ compiler does not properly
    # handle '-M -o', and we need to detect this.  Also, some Intel
    # versions had trouble with output in subdirs.
    am__obj=sub/conftest.${OBJEXT-o}
    am__minus_obj="-o $am__obj"
    case $depmode in
    gcc)
      # This depmode causes a compiler race in universal mode.
      test "$am__universal" = false || continue
      ;;
    nosideeffect)
      # After this tag, mechanisms are not by side-effect, so they'll
      # only be used when explicitly requested.
      if test "x$enable_dependency_tracking" = xyes; then
	continue
      else
	break
      fi
      ;;
    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
      # This compiler won't grok '-c -o', but also, the minuso test has
      # not run yet.  These depmodes are late enough in the game, and
      # so weak that their functioning should not be impacted.
      am__obj=conftest.${OBJEXT-o}
      am__minus_obj=
      ;;
    none) break ;;
    esac
    if depmode=$depmode \
       source=sub/conftest.c object=$am__obj \
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
         >/dev/null 2>conftest.err &&
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
      # icc doesn't choke on unknown options, it will just issue warnings
      # or remarks (even with -Werror).  So we grep stderr for any message
      # that says an option was ignored or not supported.
      # When given -MP, icc 7.0 and 7.1 complain thusly:
      #   icc: Command line warning: ignoring option '-M'; no argument required
      # The diagnosis changed in icc 8.0:
      #   icc: Command line remark: option '-MP' not supported
      if (grep 'ignoring option' conftest.err ||
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
        am_cv_CC_dependencies_compiler_type=$depmode
        break
      fi
    fi
  done

  cd ..
  rm -rf conftest.dir
else
  am_cv_CC_dependencies_compiler_type=none
fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type

 if
  test "x$enable_dependency_tracking" != xno \
  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  am__fastdepCC_TRUE=
  am__fastdepCC_FALSE='#'
else
  am__fastdepCC_TRUE='#'
  am__fastdepCC_FALSE=
fi



ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
$as_echo_n "checking how to run the C preprocessor... " >&6; }
# On Suns, sometimes $CPP names a directory.
if test -n "$CPP" && test -d "$CPP"; then
  CPP=
fi
if test -z "$CPP"; then
  if ${ac_cv_prog_CPP+:} false; then :
  $as_echo_n "(cached) " >&6
else
      # Double quotes because CPP needs to be expanded
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
    do
      ac_preproc_ok=false
for ac_c_preproc_warn_flag in '' yes
do
  # Use a header file that comes with gcc, so configuring glibc
  # with a fresh cross-compiler works.
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  # <limits.h> exists even on freestanding compilers.
  # On the NeXT, cc -E runs the code through the compiler's parser,
  # not just through cpp. "Syntax error" is here to catch this case.
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif
		     Syntax error
_ACEOF
if ac_fn_c_try_cpp "$LINENO"; then :

else
  # Broken: fails on valid input.
continue
fi
rm -f conftest.err conftest.i conftest.$ac_ext

  # OK, works on sane cases.  Now check whether nonexistent headers
  # can be detected and how.
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <ac_nonexistent.h>
_ACEOF
if ac_fn_c_try_cpp "$LINENO"; then :
  # Broken: success on invalid input.
continue
else
  # Passes both tests.
ac_preproc_ok=:
break
fi
rm -f conftest.err conftest.i conftest.$ac_ext

done
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
rm -f conftest.i conftest.err conftest.$ac_ext
if $ac_preproc_ok; then :
  break
fi

    done
    ac_cv_prog_CPP=$CPP

fi
  CPP=$ac_cv_prog_CPP
else
  ac_cv_prog_CPP=$CPP
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
$as_echo "$CPP" >&6; }
ac_preproc_ok=false
for ac_c_preproc_warn_flag in '' yes
do
  # Use a header file that comes with gcc, so configuring glibc
  # with a fresh cross-compiler works.
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  # <limits.h> exists even on freestanding compilers.
  # On the NeXT, cc -E runs the code through the compiler's parser,
  # not just through cpp. "Syntax error" is here to catch this case.
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif
		     Syntax error
_ACEOF
if ac_fn_c_try_cpp "$LINENO"; then :

else
  # Broken: fails on valid input.
continue
fi
rm -f conftest.err conftest.i conftest.$ac_ext

  # OK, works on sane cases.  Now check whether nonexistent headers
  # can be detected and how.
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <ac_nonexistent.h>
_ACEOF
if ac_fn_c_try_cpp "$LINENO"; then :
  # Broken: success on invalid input.
continue
else
  # Passes both tests.
ac_preproc_ok=:
break
fi
rm -f conftest.err conftest.i conftest.$ac_ext

done
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
rm -f conftest.i conftest.err conftest.$ac_ext
if $ac_preproc_ok; then :

else
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
See \`config.log' for more details" "$LINENO" 5; }
fi

ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu


{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
if ${ac_cv_path_GREP+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test -z "$GREP"; then
  ac_path_GREP_found=false
  # Loop through the user's path and test for each of PROGNAME-LIST
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_prog in grep ggrep; do
    for ac_exec_ext in '' $ac_executable_extensions; do
      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
      as_fn_executable_p "$ac_path_GREP" || continue
# Check for GNU ac_path_GREP and select it if it is found.
  # Check for GNU $ac_path_GREP
case `"$ac_path_GREP" --version 2>&1` in
*GNU*)
  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
*)
  ac_count=0
  $as_echo_n 0123456789 >"conftest.in"
  while :
  do
    cat "conftest.in" "conftest.in" >"conftest.tmp"
    mv "conftest.tmp" "conftest.in"
    cp "conftest.in" "conftest.nl"
    $as_echo 'GREP' >> "conftest.nl"
    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
    as_fn_arith $ac_count + 1 && ac_count=$as_val
    if test $ac_count -gt ${ac_path_GREP_max-0}; then
      # Best one so far, save it but keep looking for a better one
      ac_cv_path_GREP="$ac_path_GREP"
      ac_path_GREP_max=$ac_count
    fi
    # 10*(2^10) chars as input seems more than enough
    test $ac_count -gt 10 && break
  done
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
esac

      $ac_path_GREP_found && break 3
    done
  done
  done
IFS=$as_save_IFS
  if test -z "$ac_cv_path_GREP"; then
    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  fi
else
  ac_cv_path_GREP=$GREP
fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
$as_echo "$ac_cv_path_GREP" >&6; }
 GREP="$ac_cv_path_GREP"


{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
$as_echo_n "checking for egrep... " >&6; }
if ${ac_cv_path_EGREP+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
   then ac_cv_path_EGREP="$GREP -E"
   else
     if test -z "$EGREP"; then
  ac_path_EGREP_found=false
  # Loop through the user's path and test for each of PROGNAME-LIST
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_prog in egrep; do
    for ac_exec_ext in '' $ac_executable_extensions; do
      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
      as_fn_executable_p "$ac_path_EGREP" || continue
# Check for GNU ac_path_EGREP and select it if it is found.
  # Check for GNU $ac_path_EGREP
case `"$ac_path_EGREP" --version 2>&1` in
*GNU*)
  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
*)
  ac_count=0
  $as_echo_n 0123456789 >"conftest.in"
  while :
  do
    cat "conftest.in" "conftest.in" >"conftest.tmp"
    mv "conftest.tmp" "conftest.in"
    cp "conftest.in" "conftest.nl"
    $as_echo 'EGREP' >> "conftest.nl"
    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
    as_fn_arith $ac_count + 1 && ac_count=$as_val
    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
      # Best one so far, save it but keep looking for a better one
      ac_cv_path_EGREP="$ac_path_EGREP"
      ac_path_EGREP_max=$ac_count
    fi
    # 10*(2^10) chars as input seems more than enough
    test $ac_count -gt 10 && break
  done
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
esac

      $ac_path_EGREP_found && break 3
    done
  done
  done
IFS=$as_save_IFS
  if test -z "$ac_cv_path_EGREP"; then
    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  fi
else
  ac_cv_path_EGREP=$EGREP
fi

   fi
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
$as_echo "$ac_cv_path_EGREP" >&6; }
 EGREP="$ac_cv_path_EGREP"


{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
$as_echo_n "checking for ANSI C header files... " >&6; }
if ${ac_cv_header_stdc+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <stdlib.h>
#include <stdarg.h>
#include <string.h>
#include <float.h>

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ac_cv_header_stdc=yes
else
  ac_cv_header_stdc=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

if test $ac_cv_header_stdc = yes; then
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <string.h>

_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP "memchr" >/dev/null 2>&1; then :

else
  ac_cv_header_stdc=no
fi
rm -f conftest*

fi

if test $ac_cv_header_stdc = yes; then
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <stdlib.h>

_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP "free" >/dev/null 2>&1; then :

else
  ac_cv_header_stdc=no
fi
rm -f conftest*

fi

if test $ac_cv_header_stdc = yes; then
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  if test "$cross_compiling" = yes; then :
  :
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <ctype.h>
#include <stdlib.h>
#if ((' ' & 0x0FF) == 0x020)
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
#else
# define ISLOWER(c) \
		   (('a' <= (c) && (c) <= 'i') \
		     || ('j' <= (c) && (c) <= 'r') \
		     || ('s' <= (c) && (c) <= 'z'))
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
#endif

#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
int
main ()
{
  int i;
  for (i = 0; i < 256; i++)
    if (XOR (islower (i), ISLOWER (i))
	|| toupper (i) != TOUPPER (i))
      return 2;
  return 0;
}
_ACEOF
if ac_fn_c_try_run "$LINENO"; then :

else
  ac_cv_header_stdc=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

fi
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
$as_echo "$ac_cv_header_stdc" >&6; }
if test $ac_cv_header_stdc = yes; then

$as_echo "#define STDC_HEADERS 1" >>confdefs.h

fi

# On IRIX 5.3, sys/types and inttypes.h are conflicting.
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
		  inttypes.h stdint.h unistd.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

fi

done



  ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
if test "x$ac_cv_header_minix_config_h" = xyes; then :
  MINIX=yes
else
  MINIX=
fi


  if test "$MINIX" = yes; then

$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h


$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h


$as_echo "#define _MINIX 1" >>confdefs.h

  fi


  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
if ${ac_cv_safe_to_define___extensions__+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#         define __EXTENSIONS__ 1
          $ac_includes_default
int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ac_cv_safe_to_define___extensions__=yes
else
  ac_cv_safe_to_define___extensions__=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
  test $ac_cv_safe_to_define___extensions__ = yes &&
    $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h

  $as_echo "#define _ALL_SOURCE 1" >>confdefs.h

  $as_echo "#define _GNU_SOURCE 1" >>confdefs.h

  $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h

  $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h


# Make sure we can run config.sub.
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
$as_echo_n "checking build system type... " >&6; }
if ${ac_cv_build+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_build_alias=$build_alias
test "x$ac_build_alias" = x &&
  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
test "x$ac_build_alias" = x &&
  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
$as_echo "$ac_cv_build" >&6; }
case $ac_cv_build in
*-*-*) ;;
*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
esac
build=$ac_cv_build
ac_save_IFS=$IFS; IFS='-'
set x $ac_cv_build
shift
build_cpu=$1
build_vendor=$2
shift; shift
# Remember, the first character of IFS is used to create $*,
# except with old shells:
build_os=$*
IFS=$ac_save_IFS
case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac


{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
$as_echo_n "checking host system type... " >&6; }
if ${ac_cv_host+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test "x$host_alias" = x; then
  ac_cv_host=$ac_cv_build
else
  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
$as_echo "$ac_cv_host" >&6; }
case $ac_cv_host in
*-*-*) ;;
*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
esac
host=$ac_cv_host
ac_save_IFS=$IFS; IFS='-'
set x $ac_cv_host
shift
host_cpu=$1
host_vendor=$2
shift; shift
# Remember, the first character of IFS is used to create $*,
# except with old shells:
host_os=$*
IFS=$ac_save_IFS
case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac










if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
	if test -n "$ac_tool_prefix"; then
  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_path_PKG_CONFIG+:} false; then :
  $as_echo_n "(cached) " >&6
else
  case $PKG_CONFIG in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

  ;;
esac
fi
PKG_CONFIG=$ac_cv_path_PKG_CONFIG
if test -n "$PKG_CONFIG"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
$as_echo "$PKG_CONFIG" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


fi
if test -z "$ac_cv_path_PKG_CONFIG"; then
  ac_pt_PKG_CONFIG=$PKG_CONFIG
  # Extract the first word of "pkg-config", so it can be a program name with args.
set dummy pkg-config; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
  $as_echo_n "(cached) " >&6
else
  case $ac_pt_PKG_CONFIG in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

  ;;
esac
fi
ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
if test -n "$ac_pt_PKG_CONFIG"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
$as_echo "$ac_pt_PKG_CONFIG" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi

  if test "x$ac_pt_PKG_CONFIG" = x; then
    PKG_CONFIG=""
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
ac_tool_warned=yes ;;
esac
    PKG_CONFIG=$ac_pt_PKG_CONFIG
  fi
else
  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
fi

fi
if test -n "$PKG_CONFIG"; then
	_pkg_min_version=0.9.0
	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
	else
		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
		PKG_CONFIG=""
	fi
fi
if test "x$PKG_CONFIG" = "x" ; then
    pkg_config_user_action="install pkg-config, and check the PKG_CONFIG_PATH environment variable"
    { $as_echo "$as_me:${as_lineno-$LINENO}: Some libraries need pkg-config, including systemd, nss, lzma, zstd, and custom mallocs." >&5
$as_echo "$as_me: Some libraries need pkg-config, including systemd, nss, lzma, zstd, and custom mallocs." >&6;}
    { $as_echo "$as_me:${as_lineno-$LINENO}: To use those libraries, $pkg_config_user_action." >&5
$as_echo "$as_me: To use those libraries, $pkg_config_user_action." >&6;}
else
    pkg_config_user_action="check the PKG_CONFIG_PATH environment variable"
fi

if test "x$PKG_CONFIG_PATH" = "x" && test "x$prefix" != "xNONE" && test "$host" != "$build"; then
   export PKG_CONFIG_PATH=$prefix/lib/pkgconfig
   { $as_echo "$as_me:${as_lineno-$LINENO}: set PKG_CONFIG_PATH=$PKG_CONFIG_PATH to support cross-compiling" >&5
$as_echo "$as_me: set PKG_CONFIG_PATH=$PKG_CONFIG_PATH to support cross-compiling" >&6;}
fi

# Check whether --enable-openbsd-malloc was given.
if test "${enable_openbsd_malloc+set}" = set; then :
  enableval=$enable_openbsd_malloc;
fi

# Check whether --enable-static-openssl was given.
if test "${enable_static_openssl+set}" = set; then :
  enableval=$enable_static_openssl;
fi

# Check whether --enable-static-libevent was given.
if test "${enable_static_libevent+set}" = set; then :
  enableval=$enable_static_libevent;
fi

# Check whether --enable-static-zlib was given.
if test "${enable_static_zlib+set}" = set; then :
  enableval=$enable_static_zlib;
fi

# Check whether --enable-static-tor was given.
if test "${enable_static_tor+set}" = set; then :
  enableval=$enable_static_tor;
fi

# Check whether --enable-unittests was given.
if test "${enable_unittests+set}" = set; then :
  enableval=$enable_unittests;
fi

# Check whether --enable-coverage was given.
if test "${enable_coverage+set}" = set; then :
  enableval=$enable_coverage;
fi

# Check whether --enable-asserts-in-tests was given.
if test "${enable_asserts_in_tests+set}" = set; then :
  enableval=$enable_asserts_in_tests;
fi

# Check whether --enable-system-torrc was given.
if test "${enable_system_torrc+set}" = set; then :
  enableval=$enable_system_torrc;
fi

# Check whether --enable-libfuzzer was given.
if test "${enable_libfuzzer+set}" = set; then :
  enableval=$enable_libfuzzer;
fi

# Check whether --enable-oss-fuzz was given.
if test "${enable_oss_fuzz+set}" = set; then :
  enableval=$enable_oss_fuzz;
fi

# Check whether --enable-memory-sentinels was given.
if test "${enable_memory_sentinels+set}" = set; then :
  enableval=$enable_memory_sentinels;
fi

# Check whether --enable-rust was given.
if test "${enable_rust+set}" = set; then :
  enableval=$enable_rust;
fi

# Check whether --enable-cargo-online-mode was given.
if test "${enable_cargo_online_mode+set}" = set; then :
  enableval=$enable_cargo_online_mode;
fi

# Check whether --enable-restart-debugging was given.
if test "${enable_restart_debugging+set}" = set; then :
  enableval=$enable_restart_debugging;
fi

# Check whether --enable-zstd-advanced-apis was given.
if test "${enable_zstd_advanced_apis+set}" = set; then :
  enableval=$enable_zstd_advanced_apis;
fi

# Check whether --enable-nss was given.
if test "${enable_nss+set}" = set; then :
  enableval=$enable_nss;
fi

# Check whether --enable-pic was given.
if test "${enable_pic+set}" = set; then :
  enableval=$enable_pic;
fi


# Check whether --enable-missing-doc-warnings was given.
if test "${enable_missing_doc_warnings+set}" = set; then :
  enableval=$enable_missing_doc_warnings;
fi


if test "$enable_missing_doc_warnings" = "yes"; then
   DOXYGEN_FATAL_WARNINGS=NO
   DOXYGEN_WARN_ON_MISSING=YES
elif test "$enable_fatal_warnings" = "yes"; then
   # Fatal warnings from doxygen are nice, but not if we're warning about
   # missing documentation.
   DOXYGEN_FATAL_WARNINGS=YES
   DOXYGEN_WARN_ON_MISSING=NO
else
   DOXYGEN_FATAL_WARNINGS=NO
   DOXYGEN_WARN_ON_MISSING=NO
fi



if test "x$enable_coverage" != "xyes" -a "x$enable_asserts_in_tests" = "xno" ; then
    as_fn_error $? "Can't disable assertions outside of coverage build" "$LINENO" 5
fi

 if test "x$enable_unittests" != "xno"; then
  UNITTESTS_ENABLED_TRUE=
  UNITTESTS_ENABLED_FALSE='#'
else
  UNITTESTS_ENABLED_TRUE='#'
  UNITTESTS_ENABLED_FALSE=
fi

 if test "x$enable_coverage" = "xyes"; then
  COVERAGE_ENABLED_TRUE=
  COVERAGE_ENABLED_FALSE='#'
else
  COVERAGE_ENABLED_TRUE='#'
  COVERAGE_ENABLED_FALSE=
fi

 if test "x$enable_asserts_in_tests" = "xno"; then
  DISABLE_ASSERTS_IN_UNIT_TESTS_TRUE=
  DISABLE_ASSERTS_IN_UNIT_TESTS_FALSE='#'
else
  DISABLE_ASSERTS_IN_UNIT_TESTS_TRUE='#'
  DISABLE_ASSERTS_IN_UNIT_TESTS_FALSE=
fi

 if test "x$enable_libfuzzer" = "xyes"; then
  LIBFUZZER_ENABLED_TRUE=
  LIBFUZZER_ENABLED_FALSE='#'
else
  LIBFUZZER_ENABLED_TRUE='#'
  LIBFUZZER_ENABLED_FALSE=
fi

 if test "x$enable_oss_fuzz" = "xyes"; then
  OSS_FUZZ_ENABLED_TRUE=
  OSS_FUZZ_ENABLED_FALSE='#'
else
  OSS_FUZZ_ENABLED_TRUE='#'
  OSS_FUZZ_ENABLED_FALSE=
fi

 if test "x$enable_rust" = "xyes"; then
  USE_RUST_TRUE=
  USE_RUST_FALSE='#'
else
  USE_RUST_TRUE='#'
  USE_RUST_FALSE=
fi

 if test "x$enable_nss" = "xyes"; then
  USE_NSS_TRUE=
  USE_NSS_FALSE='#'
else
  USE_NSS_TRUE='#'
  USE_NSS_FALSE=
fi

 if test "x$enable_nss" != "xyes"; then
  USE_OPENSSL_TRUE=
  USE_OPENSSL_FALSE='#'
else
  USE_OPENSSL_TRUE='#'
  USE_OPENSSL_FALSE=
fi


if test "x$enable_nss" = "xyes"; then

$as_echo "#define ENABLE_NSS 1" >>confdefs.h

else

$as_echo "#define ENABLE_OPENSSL 1" >>confdefs.h

fi

if test "$enable_static_tor" = "yes"; then
  enable_static_libevent="yes";
  enable_static_openssl="yes";
  enable_static_zlib="yes";
  CFLAGS="$CFLAGS -static"
fi

if test "$enable_system_torrc" = "no"; then

$as_echo "#define DISABLE_SYSTEM_TORRC 1" >>confdefs.h

fi

if test "$enable_memory_sentinels" = "no"; then

$as_echo "#define DISABLE_MEMORY_SENTINELS 1" >>confdefs.h

fi

# Check whether --enable-manpage was given.
if test "${enable_manpage+set}" = set; then :
  enableval=$enable_manpage;
fi


# Check whether --enable-html-manual was given.
if test "${enable_html_manual+set}" = set; then :
  enableval=$enable_html_manual;
fi


# Check whether --enable-asciidoc was given.
if test "${enable_asciidoc+set}" = set; then :
  enableval=$enable_asciidoc; case "${enableval}" in
        "yes") asciidoc=true ;;
        "no")  asciidoc=false ;;
        *) as_fn_error $? "bad value for --disable-asciidoc" "$LINENO" 5 ;;
      esac
else
  asciidoc=true
fi


# systemd notify support
# Check whether --enable-systemd was given.
if test "${enable_systemd+set}" = set; then :
  enableval=$enable_systemd; case "${enableval}" in
        "yes") systemd=true ;;
        "no")  systemd=false ;;
        * ) as_fn_error $? "bad value for --enable-systemd" "$LINENO" 5 ;;
      esac
else
  systemd=auto
fi


if test "$enable_restart_debugging" = "yes"; then

$as_echo "#define ENABLE_RESTART_DEBUGGING 1" >>confdefs.h

fi

if test "$enable_zstd_advanced_apis" != "no"; then

$as_echo "#define ENABLE_ZSTD_ADVANCED_APIS 1" >>confdefs.h

fi

# systemd support
if test "x$enable_systemd" = "xno"; then
    have_systemd=no;
else

pkg_failed=no
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SYSTEMD" >&5
$as_echo_n "checking for SYSTEMD... " >&6; }

if test -n "$SYSTEMD_CFLAGS"; then
    pkg_cv_SYSTEMD_CFLAGS="$SYSTEMD_CFLAGS"
 elif test -n "$PKG_CONFIG"; then
    if test -n "$PKG_CONFIG" && \
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd-daemon\""; } >&5
  ($PKG_CONFIG --exists --print-errors "libsystemd-daemon") 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }; then
  pkg_cv_SYSTEMD_CFLAGS=`$PKG_CONFIG --cflags "libsystemd-daemon" 2>/dev/null`
		      test "x$?" != "x0" && pkg_failed=yes
else
  pkg_failed=yes
fi
 else
    pkg_failed=untried
fi
if test -n "$SYSTEMD_LIBS"; then
    pkg_cv_SYSTEMD_LIBS="$SYSTEMD_LIBS"
 elif test -n "$PKG_CONFIG"; then
    if test -n "$PKG_CONFIG" && \
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd-daemon\""; } >&5
  ($PKG_CONFIG --exists --print-errors "libsystemd-daemon") 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }; then
  pkg_cv_SYSTEMD_LIBS=`$PKG_CONFIG --libs "libsystemd-daemon" 2>/dev/null`
		      test "x$?" != "x0" && pkg_failed=yes
else
  pkg_failed=yes
fi
 else
    pkg_failed=untried
fi



if test $pkg_failed = yes; then
   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
        _pkg_short_errors_supported=yes
else
        _pkg_short_errors_supported=no
fi
        if test $_pkg_short_errors_supported = yes; then
	        SYSTEMD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libsystemd-daemon" 2>&1`
        else
	        SYSTEMD_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libsystemd-daemon" 2>&1`
        fi
	# Put the nasty error message in config.log where it belongs
	echo "$SYSTEMD_PKG_ERRORS" >&5

	have_systemd=no
elif test $pkg_failed = untried; then
     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
	have_systemd=no
else
	SYSTEMD_CFLAGS=$pkg_cv_SYSTEMD_CFLAGS
	SYSTEMD_LIBS=$pkg_cv_SYSTEMD_LIBS
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
	have_systemd=yes
fi
    if test "x$have_systemd" = "xno"; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: Okay, checking for systemd a different way..." >&5
$as_echo "$as_me: Okay, checking for systemd a different way..." >&6;}

pkg_failed=no
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SYSTEMD" >&5
$as_echo_n "checking for SYSTEMD... " >&6; }

if test -n "$SYSTEMD_CFLAGS"; then
    pkg_cv_SYSTEMD_CFLAGS="$SYSTEMD_CFLAGS"
 elif test -n "$PKG_CONFIG"; then
    if test -n "$PKG_CONFIG" && \
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd\""; } >&5
  ($PKG_CONFIG --exists --print-errors "libsystemd") 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }; then
  pkg_cv_SYSTEMD_CFLAGS=`$PKG_CONFIG --cflags "libsystemd" 2>/dev/null`
		      test "x$?" != "x0" && pkg_failed=yes
else
  pkg_failed=yes
fi
 else
    pkg_failed=untried
fi
if test -n "$SYSTEMD_LIBS"; then
    pkg_cv_SYSTEMD_LIBS="$SYSTEMD_LIBS"
 elif test -n "$PKG_CONFIG"; then
    if test -n "$PKG_CONFIG" && \
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd\""; } >&5
  ($PKG_CONFIG --exists --print-errors "libsystemd") 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }; then
  pkg_cv_SYSTEMD_LIBS=`$PKG_CONFIG --libs "libsystemd" 2>/dev/null`
		      test "x$?" != "x0" && pkg_failed=yes
else
  pkg_failed=yes
fi
 else
    pkg_failed=untried
fi



if test $pkg_failed = yes; then
   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
        _pkg_short_errors_supported=yes
else
        _pkg_short_errors_supported=no
fi
        if test $_pkg_short_errors_supported = yes; then
	        SYSTEMD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libsystemd" 2>&1`
        else
	        SYSTEMD_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libsystemd" 2>&1`
        fi
	# Put the nasty error message in config.log where it belongs
	echo "$SYSTEMD_PKG_ERRORS" >&5

	have_systemd=no
elif test $pkg_failed = untried; then
     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
	have_systemd=no
else
	SYSTEMD_CFLAGS=$pkg_cv_SYSTEMD_CFLAGS
	SYSTEMD_LIBS=$pkg_cv_SYSTEMD_LIBS
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
	have_systemd=yes
fi
    fi
fi

if test "x$have_systemd" = "xyes"; then

$as_echo "#define HAVE_SYSTEMD 1" >>confdefs.h

    TOR_SYSTEMD_CFLAGS="${SYSTEMD_CFLAGS}"
    TOR_SYSTEMD_LIBS="${SYSTEMD_LIBS}"

pkg_failed=no
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBSYSTEMD209" >&5
$as_echo_n "checking for LIBSYSTEMD209... " >&6; }

if test -n "$LIBSYSTEMD209_CFLAGS"; then
    pkg_cv_LIBSYSTEMD209_CFLAGS="$LIBSYSTEMD209_CFLAGS"
 elif test -n "$PKG_CONFIG"; then
    if test -n "$PKG_CONFIG" && \
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd >= 209\""; } >&5
  ($PKG_CONFIG --exists --print-errors "libsystemd >= 209") 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }; then
  pkg_cv_LIBSYSTEMD209_CFLAGS=`$PKG_CONFIG --cflags "libsystemd >= 209" 2>/dev/null`
		      test "x$?" != "x0" && pkg_failed=yes
else
  pkg_failed=yes
fi
 else
    pkg_failed=untried
fi
if test -n "$LIBSYSTEMD209_LIBS"; then
    pkg_cv_LIBSYSTEMD209_LIBS="$LIBSYSTEMD209_LIBS"
 elif test -n "$PKG_CONFIG"; then
    if test -n "$PKG_CONFIG" && \
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd >= 209\""; } >&5
  ($PKG_CONFIG --exists --print-errors "libsystemd >= 209") 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }; then
  pkg_cv_LIBSYSTEMD209_LIBS=`$PKG_CONFIG --libs "libsystemd >= 209" 2>/dev/null`
		      test "x$?" != "x0" && pkg_failed=yes
else
  pkg_failed=yes
fi
 else
    pkg_failed=untried
fi



if test $pkg_failed = yes; then
   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
        _pkg_short_errors_supported=yes
else
        _pkg_short_errors_supported=no
fi
        if test $_pkg_short_errors_supported = yes; then
	        LIBSYSTEMD209_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libsystemd >= 209" 2>&1`
        else
	        LIBSYSTEMD209_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libsystemd >= 209" 2>&1`
        fi
	# Put the nasty error message in config.log where it belongs
	echo "$LIBSYSTEMD209_PKG_ERRORS" >&5

	as_fn_error $? "Package requirements (libsystemd >= 209) were not met:

$LIBSYSTEMD209_PKG_ERRORS

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

Alternatively, you may set the environment variables LIBSYSTEMD209_CFLAGS
and LIBSYSTEMD209_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details." "$LINENO" 5
elif test $pkg_failed = untried; then
     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
is in your PATH or set the PKG_CONFIG environment variable to the full
path to pkg-config.

Alternatively, you may set the environment variables LIBSYSTEMD209_CFLAGS
and LIBSYSTEMD209_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.

To get pkg-config, see <http://pkg-config.freedesktop.org/>.
See \`config.log' for more details" "$LINENO" 5; }
else
	LIBSYSTEMD209_CFLAGS=$pkg_cv_LIBSYSTEMD209_CFLAGS
	LIBSYSTEMD209_LIBS=$pkg_cv_LIBSYSTEMD209_LIBS
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

$as_echo "#define HAVE_SYSTEMD_209 1" >>confdefs.h

fi
fi



if test "x$enable_systemd" = "xyes" -a "x$have_systemd" != "xyes" ; then
    as_fn_error $? "Explicitly requested systemd support, but systemd not found, $pkg_config_user_action, or set SYSTEMD_CFLAGS and SYSTEMD_LIBS." "$LINENO" 5
fi

case "$host" in
   *-*-solaris* )

$as_echo "#define _REENTRANT 1" >>confdefs.h

     ;;
esac

# Check whether --enable-gcc-warnings was given.
if test "${enable_gcc_warnings+set}" = set; then :
  enableval=$enable_gcc_warnings;
fi

# Check whether --enable-fatal-warnings was given.
if test "${enable_fatal_warnings+set}" = set; then :
  enableval=$enable_fatal_warnings;
fi

# Check whether --enable-gcc-warnings-advisory was given.
if test "${enable_gcc_warnings_advisory+set}" = set; then :
  enableval=$enable_gcc_warnings_advisory;
fi


# Check whether --enable-gcc-hardening was given.
if test "${enable_gcc_hardening+set}" = set; then :
  enableval=$enable_gcc_hardening;
fi


# Check whether --enable-expensive-hardening was given.
if test "${enable_expensive_hardening+set}" = set; then :
  enableval=$enable_expensive_hardening;
fi

# Check whether --enable-fragile-hardening was given.
if test "${enable_fragile_hardening+set}" = set; then :
  enableval=$enable_fragile_hardening;
fi

if test "x$enable_expensive_hardening" = "xyes" || test "x$enable_fragile_hardening" = "xyes"; then
  fragile_hardening="yes"

$as_echo "#define DEBUG_SMARTLIST 1" >>confdefs.h

fi

# Check whether --enable-linker-hardening was given.
if test "${enable_linker_hardening+set}" = set; then :
  enableval=$enable_linker_hardening;
fi


# Check whether --enable-local-appdata was given.
if test "${enable_local_appdata+set}" = set; then :
  enableval=$enable_local_appdata;
fi

if test "$enable_local_appdata" = "yes"; then

$as_echo "#define ENABLE_LOCAL_APPDATA 1" >>confdefs.h

fi

# Check whether --enable-tool-name-check was given.
if test "${enable_tool_name_check+set}" = set; then :
  enableval=$enable_tool_name_check;
fi


# Check whether --enable-seccomp was given.
if test "${enable_seccomp+set}" = set; then :
  enableval=$enable_seccomp;
fi


# Check whether --enable-libscrypt was given.
if test "${enable_libscrypt+set}" = set; then :
  enableval=$enable_libscrypt;
fi


# Check whether --enable-event-tracing-debug was given.
if test "${enable_event_tracing_debug+set}" = set; then :
  enableval=$enable_event_tracing_debug;
fi

 if test "x$enable_event_tracing_debug" = "xyes"; then
  USE_EVENT_TRACING_DEBUG_TRUE=
  USE_EVENT_TRACING_DEBUG_FALSE='#'
else
  USE_EVENT_TRACING_DEBUG_TRUE='#'
  USE_EVENT_TRACING_DEBUG_FALSE=
fi


if test x$enable_event_tracing_debug = xyes; then

$as_echo "#define USE_EVENT_TRACING_DEBUG 1" >>confdefs.h


$as_echo "#define TOR_EVENT_TRACING_ENABLED 1" >>confdefs.h

fi

# Check whether --enable-android was given.
if test "${enable_android+set}" = set; then :
  enableval=$enable_android;
fi

 if test "x$enable_android" = "xyes"; then
  USE_ANDROID_TRUE=
  USE_ANDROID_FALSE='#'
else
  USE_ANDROID_TRUE='#'
  USE_ANDROID_FALSE=
fi


if test "x$enable_android" = "xyes"; then

$as_echo "#define USE_ANDROID 1" >>confdefs.h


    for ac_header in android/log.h
do :
  ac_fn_c_check_header_mongrel "$LINENO" "android/log.h" "ac_cv_header_android_log_h" "$ac_includes_default"
if test "x$ac_cv_header_android_log_h" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_ANDROID_LOG_H 1
_ACEOF

fi

done

  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing __android_log_write" >&5
$as_echo_n "checking for library containing __android_log_write... " >&6; }
if ${ac_cv_search___android_log_write+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_func_search_save_LIBS=$LIBS
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char __android_log_write ();
int
main ()
{
return __android_log_write ();
  ;
  return 0;
}
_ACEOF
for ac_lib in '' log; do
  if test -z "$ac_lib"; then
    ac_res="none required"
  else
    ac_res=-l$ac_lib
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
  fi
  if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_search___android_log_write=$ac_res
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext
  if ${ac_cv_search___android_log_write+:} false; then :
  break
fi
done
if ${ac_cv_search___android_log_write+:} false; then :

else
  ac_cv_search___android_log_write=no
fi
rm conftest.$ac_ext
LIBS=$ac_func_search_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search___android_log_write" >&5
$as_echo "$ac_cv_search___android_log_write" >&6; }
ac_res=$ac_cv_search___android_log_write
if test "$ac_res" != no; then :
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"

fi


fi




# Check whether --enable-module-relay was given.
if test "${enable_module_relay+set}" = set; then :
  enableval=$enable_module_relay;
fi

 if test "x$enable_module_relay" != "xno"; then
  BUILD_MODULE_RELAY_TRUE=
  BUILD_MODULE_RELAY_FALSE='#'
else
  BUILD_MODULE_RELAY_TRUE='#'
  BUILD_MODULE_RELAY_FALSE=
fi

if test -z "$BUILD_MODULE_RELAY_TRUE"; then :

$as_echo "#define HAVE_MODULE_RELAY 1" >>confdefs.h

fi

 if test "x$enable_module_relay" != "xno"; then
  BUILD_MODULE_DIRCACHE_TRUE=
  BUILD_MODULE_DIRCACHE_FALSE='#'
else
  BUILD_MODULE_DIRCACHE_TRUE='#'
  BUILD_MODULE_DIRCACHE_FALSE=
fi

if test -z "$BUILD_MODULE_DIRCACHE_TRUE"; then :

$as_echo "#define HAVE_MODULE_DIRCACHE 1" >>confdefs.h

fi

# Check whether --enable-module-dirauth was given.
if test "${enable_module_dirauth+set}" = set; then :
  enableval=$enable_module_dirauth;
fi

 if test "x$enable_module_dirauth" != "xno" && test "x$enable_module_relay" != "xno"; then
  BUILD_MODULE_DIRAUTH_TRUE=
  BUILD_MODULE_DIRAUTH_FALSE='#'
else
  BUILD_MODULE_DIRAUTH_TRUE='#'
  BUILD_MODULE_DIRAUTH_FALSE=
fi

if test -z "$BUILD_MODULE_DIRAUTH_TRUE"; then :

$as_echo "#define HAVE_MODULE_DIRAUTH 1" >>confdefs.h

fi

TOR_MODULES_ALL_ENABLED=


    MODULE=RELAY
    TOR_MODULES_ALL_ENABLED="${TOR_MODULES_ALL_ENABLED} -DHAVE_MODULE_${MODULE}=1"

    MODULE=DIRAUTH
    TOR_MODULES_ALL_ENABLED="${TOR_MODULES_ALL_ENABLED} -DHAVE_MODULE_${MODULE}=1"

    MODULE=DIRCACHE
    TOR_MODULES_ALL_ENABLED="${TOR_MODULES_ALL_ENABLED} -DHAVE_MODULE_${MODULE}=1"



if test -n "$ac_tool_prefix"; then
  for ac_prog in ar lib "link -lib"
  do
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_AR+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$AR"; then
  ac_cv_prog_AR="$AR" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
AR=$ac_cv_prog_AR
if test -n "$AR"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
$as_echo "$AR" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


    test -n "$AR" && break
  done
fi
if test -z "$AR"; then
  ac_ct_AR=$AR
  for ac_prog in ar lib "link -lib"
do
  # Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_ac_ct_AR+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$ac_ct_AR"; then
  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    ac_cv_prog_ac_ct_AR="$ac_prog"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
ac_ct_AR=$ac_cv_prog_ac_ct_AR
if test -n "$ac_ct_AR"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
$as_echo "$ac_ct_AR" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


  test -n "$ac_ct_AR" && break
done

  if test "x$ac_ct_AR" = x; then
    AR="false"
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
ac_tool_warned=yes ;;
esac
    AR=$ac_ct_AR
  fi
fi

: ${AR=ar}

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
$as_echo_n "checking the archiver ($AR) interface... " >&6; }
if ${am_cv_ar_interface+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu

   am_cv_ar_interface=ar
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
int some_variable = 0;
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
  (eval $am_ar_try) 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }
      if test "$ac_status" -eq 0; then
        am_cv_ar_interface=ar
      else
        am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
        { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
  (eval $am_ar_try) 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }
        if test "$ac_status" -eq 0; then
          am_cv_ar_interface=lib
        else
          am_cv_ar_interface=unknown
        fi
      fi
      rm -f conftest.lib libconftest.a

fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
$as_echo "$am_cv_ar_interface" >&6; }

case $am_cv_ar_interface in
ar)
  ;;
lib)
  # Microsoft lib, so override with the ar-lib wrapper script.
  # FIXME: It is wrong to rewrite AR.
  # But if we don't then we get into trouble of one sort or another.
  # A longer-term fix would be to have automake use am__AR in this case,
  # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
  # similar.
  AR="$am_aux_dir/ar-lib $AR"
  ;;
unknown)
  as_fn_error $? "could not determine $AR interface" "$LINENO" 5
  ;;
esac


if test "x$enable_tool_name_check" != "xno"; then
    if test "x$ac_tool_warned" = "xyes"; then
        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
	elif test "x$ac_ct_AR" != "x" -a "x$cross_compiling" = "xmaybe"; then
		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
	fi
fi

ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu
if test -n "$ac_tool_prefix"; then
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
set dummy ${ac_tool_prefix}gcc; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_CC+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$CC"; then
  ac_cv_prog_CC="$CC" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
CC=$ac_cv_prog_CC
if test -n "$CC"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
$as_echo "$CC" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


fi
if test -z "$ac_cv_prog_CC"; then
  ac_ct_CC=$CC
  # Extract the first word of "gcc", so it can be a program name with args.
set dummy gcc; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_ac_ct_CC+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$ac_ct_CC"; then
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    ac_cv_prog_ac_ct_CC="gcc"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
ac_ct_CC=$ac_cv_prog_ac_ct_CC
if test -n "$ac_ct_CC"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
$as_echo "$ac_ct_CC" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi

  if test "x$ac_ct_CC" = x; then
    CC=""
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
ac_tool_warned=yes ;;
esac
    CC=$ac_ct_CC
  fi
else
  CC="$ac_cv_prog_CC"
fi

if test -z "$CC"; then
          if test -n "$ac_tool_prefix"; then
    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
set dummy ${ac_tool_prefix}cc; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_CC+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$CC"; then
  ac_cv_prog_CC="$CC" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    ac_cv_prog_CC="${ac_tool_prefix}cc"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
CC=$ac_cv_prog_CC
if test -n "$CC"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
$as_echo "$CC" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


  fi
fi
if test -z "$CC"; then
  # Extract the first word of "cc", so it can be a program name with args.
set dummy cc; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_CC+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$CC"; then
  ac_cv_prog_CC="$CC" # Let the user override the test.
else
  ac_prog_rejected=no
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
       ac_prog_rejected=yes
       continue
     fi
    ac_cv_prog_CC="cc"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

if test $ac_prog_rejected = yes; then
  # We found a bogon in the path, so make sure we never use it.
  set dummy $ac_cv_prog_CC
  shift
  if test $# != 0; then
    # We chose a different compiler from the bogus one.
    # However, it has the same basename, so the bogon will be chosen
    # first if we set CC to just the basename; use the full file name.
    shift
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  fi
fi
fi
fi
CC=$ac_cv_prog_CC
if test -n "$CC"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
$as_echo "$CC" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


fi
if test -z "$CC"; then
  if test -n "$ac_tool_prefix"; then
  for ac_prog in cl.exe
  do
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_CC+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$CC"; then
  ac_cv_prog_CC="$CC" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
CC=$ac_cv_prog_CC
if test -n "$CC"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
$as_echo "$CC" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


    test -n "$CC" && break
  done
fi
if test -z "$CC"; then
  ac_ct_CC=$CC
  for ac_prog in cl.exe
do
  # Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_ac_ct_CC+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$ac_ct_CC"; then
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    ac_cv_prog_ac_ct_CC="$ac_prog"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
ac_ct_CC=$ac_cv_prog_ac_ct_CC
if test -n "$ac_ct_CC"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
$as_echo "$ac_ct_CC" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


  test -n "$ac_ct_CC" && break
done

  if test "x$ac_ct_CC" = x; then
    CC=""
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
ac_tool_warned=yes ;;
esac
    CC=$ac_ct_CC
  fi
fi

fi


test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error $? "no acceptable C compiler found in \$PATH
See \`config.log' for more details" "$LINENO" 5; }

# Provide some information about the compiler.
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
set X $ac_compile
ac_compiler=$2
for ac_option in --version -v -V -qversion; do
  { { ac_try="$ac_compiler $ac_option >&5"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
$as_echo "$ac_try_echo"; } >&5
  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  ac_status=$?
  if test -s conftest.err; then
    sed '10a\
... rest of stderr output deleted ...
         10q' conftest.err >conftest.er1
    cat conftest.er1 >&5
  fi
  rm -f conftest.er1 conftest.err
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }
done

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
if ${ac_cv_c_compiler_gnu+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{
#ifndef __GNUC__
       choke me
#endif

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ac_compiler_gnu=yes
else
  ac_compiler_gnu=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ac_cv_c_compiler_gnu=$ac_compiler_gnu

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
$as_echo "$ac_cv_c_compiler_gnu" >&6; }
if test $ac_compiler_gnu = yes; then
  GCC=yes
else
  GCC=
fi
ac_test_CFLAGS=${CFLAGS+set}
ac_save_CFLAGS=$CFLAGS
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
$as_echo_n "checking whether $CC accepts -g... " >&6; }
if ${ac_cv_prog_cc_g+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_save_c_werror_flag=$ac_c_werror_flag
   ac_c_werror_flag=yes
   ac_cv_prog_cc_g=no
   CFLAGS="-g"
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ac_cv_prog_cc_g=yes
else
  CFLAGS=""
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :

else
  ac_c_werror_flag=$ac_save_c_werror_flag
	 CFLAGS="-g"
	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ac_cv_prog_cc_g=yes
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   ac_c_werror_flag=$ac_save_c_werror_flag
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
$as_echo "$ac_cv_prog_cc_g" >&6; }
if test "$ac_test_CFLAGS" = set; then
  CFLAGS=$ac_save_CFLAGS
elif test $ac_cv_prog_cc_g = yes; then
  if test "$GCC" = yes; then
    CFLAGS="-g -O2"
  else
    CFLAGS="-g"
  fi
else
  if test "$GCC" = yes; then
    CFLAGS="-O2"
  else
    CFLAGS=
  fi
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
if ${ac_cv_prog_cc_c89+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_cv_prog_cc_c89=no
ac_save_CC=$CC
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <stdarg.h>
#include <stdio.h>
struct stat;
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
struct buf { int x; };
FILE * (*rcsopen) (struct buf *, struct stat *, int);
static char *e (p, i)
     char **p;
     int i;
{
  return p[i];
}
static char *f (char * (*g) (char **, int), char **p, ...)
{
  char *s;
  va_list v;
  va_start (v,p);
  s = g (p, va_arg (v,int));
  va_end (v);
  return s;
}

/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
   function prototypes and stuff, but not '\xHH' hex character constants.
   These don't provoke an error unfortunately, instead are silently treated
   as 'x'.  The following induces an error, until -std is added to get
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
   array size at least.  It's necessary to write '\x00'==0 to get something
   that's true only with -std.  */
int osf4_cc_array ['\x00' == 0 ? 1 : -1];

/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
   inside strings and character constants.  */
#define FOO(x) 'x'
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];

int test (int i, double x);
struct s1 {int (*f) (int a);};
struct s2 {int (*f) (double a);};
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
int argc;
char **argv;
int
main ()
{
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
  ;
  return 0;
}
_ACEOF
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
do
  CC="$ac_save_CC $ac_arg"
  if ac_fn_c_try_compile "$LINENO"; then :
  ac_cv_prog_cc_c89=$ac_arg
fi
rm -f core conftest.err conftest.$ac_objext
  test "x$ac_cv_prog_cc_c89" != "xno" && break
done
rm -f conftest.$ac_ext
CC=$ac_save_CC

fi
# AC_CACHE_VAL
case "x$ac_cv_prog_cc_c89" in
  x)
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
$as_echo "none needed" >&6; } ;;
  xno)
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
$as_echo "unsupported" >&6; } ;;
  *)
    CC="$CC $ac_cv_prog_cc_c89"
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
esac
if test "x$ac_cv_prog_cc_c89" != xno; then :

fi

ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu

ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
if ${am_cv_prog_cc_c_o+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
  # Make sure it works both with $CC and with simple cc.
  # Following AC_PROG_CC_C_O, we do the test twice because some
  # compilers refuse to overwrite an existing .o file with -o,
  # though they will create one.
  am_cv_prog_cc_c_o=yes
  for am_i in 1 2; do
    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
   ac_status=$?
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   (exit $ac_status); } \
         && test -f conftest2.$ac_objext; then
      : OK
    else
      am_cv_prog_cc_c_o=no
      break
    fi
  done
  rm -f core conftest*
  unset am_i
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
$as_echo "$am_cv_prog_cc_c_o" >&6; }
if test "$am_cv_prog_cc_c_o" != yes; then
   # Losing compiler, so override with the script.
   # FIXME: It is wrong to rewrite CC.
   # But if we don't then we get into trouble of one sort or another.
   # A longer-term fix would be to have automake use am__CC in this case,
   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
   CC="$am_aux_dir/compile $CC"
fi
ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu


depcc="$CC"   am_compiler_list=

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
$as_echo_n "checking dependency style of $depcc... " >&6; }
if ${am_cv_CC_dependencies_compiler_type+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  # We make a subdir and do the tests there.  Otherwise we can end up
  # making bogus files that we don't know about and never remove.  For
  # instance it was reported that on HP-UX the gcc test will end up
  # making a dummy file named 'D' -- because '-MD' means "put the output
  # in D".
  rm -rf conftest.dir
  mkdir conftest.dir
  # Copy depcomp to subdir because otherwise we won't find it if we're
  # using a relative directory.
  cp "$am_depcomp" conftest.dir
  cd conftest.dir
  # We will build objects and dependencies in a subdirectory because
  # it helps to detect inapplicable dependency modes.  For instance
  # both Tru64's cc and ICC support -MD to output dependencies as a
  # side effect of compilation, but ICC will put the dependencies in
  # the current directory while Tru64 will put them in the object
  # directory.
  mkdir sub

  am_cv_CC_dependencies_compiler_type=none
  if test "$am_compiler_list" = ""; then
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  fi
  am__universal=false
  case " $depcc " in #(
     *\ -arch\ *\ -arch\ *) am__universal=true ;;
     esac

  for depmode in $am_compiler_list; do
    # Setup a source with many dependencies, because some compilers
    # like to wrap large dependency lists on column 80 (with \), and
    # we should not choose a depcomp mode which is confused by this.
    #
    # We need to recreate these files for each test, as the compiler may
    # overwrite some of them when testing with obscure command lines.
    # This happens at least with the AIX C compiler.
    : > sub/conftest.c
    for i in 1 2 3 4 5 6; do
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
      # Solaris 10 /bin/sh.
      echo '/* dummy */' > sub/conftst$i.h
    done
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf

    # We check with '-c' and '-o' for the sake of the "dashmstdout"
    # mode.  It turns out that the SunPro C++ compiler does not properly
    # handle '-M -o', and we need to detect this.  Also, some Intel
    # versions had trouble with output in subdirs.
    am__obj=sub/conftest.${OBJEXT-o}
    am__minus_obj="-o $am__obj"
    case $depmode in
    gcc)
      # This depmode causes a compiler race in universal mode.
      test "$am__universal" = false || continue
      ;;
    nosideeffect)
      # After this tag, mechanisms are not by side-effect, so they'll
      # only be used when explicitly requested.
      if test "x$enable_dependency_tracking" = xyes; then
	continue
      else
	break
      fi
      ;;
    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
      # This compiler won't grok '-c -o', but also, the minuso test has
      # not run yet.  These depmodes are late enough in the game, and
      # so weak that their functioning should not be impacted.
      am__obj=conftest.${OBJEXT-o}
      am__minus_obj=
      ;;
    none) break ;;
    esac
    if depmode=$depmode \
       source=sub/conftest.c object=$am__obj \
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
         >/dev/null 2>conftest.err &&
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
      # icc doesn't choke on unknown options, it will just issue warnings
      # or remarks (even with -Werror).  So we grep stderr for any message
      # that says an option was ignored or not supported.
      # When given -MP, icc 7.0 and 7.1 complain thusly:
      #   icc: Command line warning: ignoring option '-M'; no argument required
      # The diagnosis changed in icc 8.0:
      #   icc: Command line remark: option '-MP' not supported
      if (grep 'ignoring option' conftest.err ||
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
        am_cv_CC_dependencies_compiler_type=$depmode
        break
      fi
    fi
  done

  cd ..
  rm -rf conftest.dir
else
  am_cv_CC_dependencies_compiler_type=none
fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type

 if
  test "x$enable_dependency_tracking" != xno \
  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  am__fastdepCC_TRUE=
  am__fastdepCC_FALSE='#'
else
  am__fastdepCC_TRUE='#'
  am__fastdepCC_FALSE=
fi


ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
$as_echo_n "checking how to run the C preprocessor... " >&6; }
# On Suns, sometimes $CPP names a directory.
if test -n "$CPP" && test -d "$CPP"; then
  CPP=
fi
if test -z "$CPP"; then
  if ${ac_cv_prog_CPP+:} false; then :
  $as_echo_n "(cached) " >&6
else
      # Double quotes because CPP needs to be expanded
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
    do
      ac_preproc_ok=false
for ac_c_preproc_warn_flag in '' yes
do
  # Use a header file that comes with gcc, so configuring glibc
  # with a fresh cross-compiler works.
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  # <limits.h> exists even on freestanding compilers.
  # On the NeXT, cc -E runs the code through the compiler's parser,
  # not just through cpp. "Syntax error" is here to catch this case.
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif
		     Syntax error
_ACEOF
if ac_fn_c_try_cpp "$LINENO"; then :

else
  # Broken: fails on valid input.
continue
fi
rm -f conftest.err conftest.i conftest.$ac_ext

  # OK, works on sane cases.  Now check whether nonexistent headers
  # can be detected and how.
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <ac_nonexistent.h>
_ACEOF
if ac_fn_c_try_cpp "$LINENO"; then :
  # Broken: success on invalid input.
continue
else
  # Passes both tests.
ac_preproc_ok=:
break
fi
rm -f conftest.err conftest.i conftest.$ac_ext

done
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
rm -f conftest.i conftest.err conftest.$ac_ext
if $ac_preproc_ok; then :
  break
fi

    done
    ac_cv_prog_CPP=$CPP

fi
  CPP=$ac_cv_prog_CPP
else
  ac_cv_prog_CPP=$CPP
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
$as_echo "$CPP" >&6; }
ac_preproc_ok=false
for ac_c_preproc_warn_flag in '' yes
do
  # Use a header file that comes with gcc, so configuring glibc
  # with a fresh cross-compiler works.
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  # <limits.h> exists even on freestanding compilers.
  # On the NeXT, cc -E runs the code through the compiler's parser,
  # not just through cpp. "Syntax error" is here to catch this case.
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#ifdef __STDC__
# include <limits.h>
#else
# include <assert.h>
#endif
		     Syntax error
_ACEOF
if ac_fn_c_try_cpp "$LINENO"; then :

else
  # Broken: fails on valid input.
continue
fi
rm -f conftest.err conftest.i conftest.$ac_ext

  # OK, works on sane cases.  Now check whether nonexistent headers
  # can be detected and how.
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <ac_nonexistent.h>
_ACEOF
if ac_fn_c_try_cpp "$LINENO"; then :
  # Broken: success on invalid input.
continue
else
  # Passes both tests.
ac_preproc_ok=:
break
fi
rm -f conftest.err conftest.i conftest.$ac_ext

done
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
rm -f conftest.i conftest.err conftest.$ac_ext
if $ac_preproc_ok; then :

else
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
See \`config.log' for more details" "$LINENO" 5; }
fi

ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
set x ${MAKE-make}
ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat >conftest.make <<\_ACEOF
SHELL = /bin/sh
all:
	@echo '@@@%%%=$(MAKE)=@@@%%%'
_ACEOF
# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
case `${MAKE-make} -f conftest.make 2>/dev/null` in
  *@@@%%%=?*=@@@%%%*)
    eval ac_cv_prog_make_${ac_make}_set=yes;;
  *)
    eval ac_cv_prog_make_${ac_make}_set=no;;
esac
rm -f conftest.make
fi
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
  SET_MAKE=
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
  SET_MAKE="MAKE=${MAKE-make}"
fi

if test -n "$ac_tool_prefix"; then
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_RANLIB+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$RANLIB"; then
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
RANLIB=$ac_cv_prog_RANLIB
if test -n "$RANLIB"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
$as_echo "$RANLIB" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


fi
if test -z "$ac_cv_prog_RANLIB"; then
  ac_ct_RANLIB=$RANLIB
  # Extract the first word of "ranlib", so it can be a program name with args.
set dummy ranlib; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$ac_ct_RANLIB"; then
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    ac_cv_prog_ac_ct_RANLIB="ranlib"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
if test -n "$ac_ct_RANLIB"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
$as_echo "$ac_ct_RANLIB" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi

  if test "x$ac_ct_RANLIB" = x; then
    RANLIB=":"
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
ac_tool_warned=yes ;;
esac
    RANLIB=$ac_ct_RANLIB
  fi
else
  RANLIB="$ac_cv_prog_RANLIB"
fi

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
$as_echo_n "checking for a sed that does not truncate output... " >&6; }
if ${ac_cv_path_SED+:} false; then :
  $as_echo_n "(cached) " >&6
else
            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
     for ac_i in 1 2 3 4 5 6 7; do
       ac_script="$ac_script$as_nl$ac_script"
     done
     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
     { ac_script=; unset ac_script;}
     if test -z "$SED"; then
  ac_path_SED_found=false
  # Loop through the user's path and test for each of PROGNAME-LIST
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_prog in sed gsed; do
    for ac_exec_ext in '' $ac_executable_extensions; do
      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
      as_fn_executable_p "$ac_path_SED" || continue
# Check for GNU ac_path_SED and select it if it is found.
  # Check for GNU $ac_path_SED
case `"$ac_path_SED" --version 2>&1` in
*GNU*)
  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
*)
  ac_count=0
  $as_echo_n 0123456789 >"conftest.in"
  while :
  do
    cat "conftest.in" "conftest.in" >"conftest.tmp"
    mv "conftest.tmp" "conftest.in"
    cp "conftest.in" "conftest.nl"
    $as_echo '' >> "conftest.nl"
    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
    as_fn_arith $ac_count + 1 && ac_count=$as_val
    if test $ac_count -gt ${ac_path_SED_max-0}; then
      # Best one so far, save it but keep looking for a better one
      ac_cv_path_SED="$ac_path_SED"
      ac_path_SED_max=$ac_count
    fi
    # 10*(2^10) chars as input seems more than enough
    test $ac_count -gt 10 && break
  done
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
esac

      $ac_path_SED_found && break 3
    done
  done
  done
IFS=$as_save_IFS
  if test -z "$ac_cv_path_SED"; then
    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  fi
else
  ac_cv_path_SED=$SED
fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
$as_echo "$ac_cv_path_SED" >&6; }
 SED="$ac_cv_path_SED"
  rm -f conftest.sed



for ac_prog in perl
do
  # Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_PERL+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$PERL"; then
  ac_cv_prog_PERL="$PERL" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    ac_cv_prog_PERL="$ac_prog"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi
fi
PERL=$ac_cv_prog_PERL
if test -n "$PERL"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
$as_echo "$PERL" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


  test -n "$PERL" && break
done

 if test "x$ac_cv_prog_PERL" != "x"; then
  USE_PERL_TRUE=
  USE_PERL_FALSE='#'
else
  USE_PERL_TRUE='#'
  USE_PERL_FALSE=
fi


# Extract the first word of "asciidoc", so it can be a program name with args.
set dummy asciidoc; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_path_ASCIIDOC+:} false; then :
  $as_echo_n "(cached) " >&6
else
  case $ASCIIDOC in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_ASCIIDOC="$ASCIIDOC" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    ac_cv_path_ASCIIDOC="$as_dir/$ac_word$ac_exec_ext"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

  test -z "$ac_cv_path_ASCIIDOC" && ac_cv_path_ASCIIDOC="none"
  ;;
esac
fi
ASCIIDOC=$ac_cv_path_ASCIIDOC
if test -n "$ASCIIDOC"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ASCIIDOC" >&5
$as_echo "$ASCIIDOC" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


for ac_prog in a2x a2x.py
do
  # Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_path_A2X+:} false; then :
  $as_echo_n "(cached) " >&6
else
  case $A2X in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_A2X="$A2X" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    ac_cv_path_A2X="$as_dir/$ac_word$ac_exec_ext"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

  ;;
esac
fi
A2X=$ac_cv_path_A2X
if test -n "$A2X"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $A2X" >&5
$as_echo "$A2X" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


  test -n "$A2X" && break
done
test -n "$A2X" || A2X="none"


 if test "x$asciidoc" = "xtrue"; then
  USE_ASCIIDOC_TRUE=
  USE_ASCIIDOC_FALSE='#'
else
  USE_ASCIIDOC_TRUE='#'
  USE_ASCIIDOC_FALSE=
fi

 if test "x$enable_manpage" != "xno"; then
  BUILD_MANPAGE_TRUE=
  BUILD_MANPAGE_FALSE='#'
else
  BUILD_MANPAGE_TRUE='#'
  BUILD_MANPAGE_FALSE=
fi

 if test "x$enable_html_manual" != "xno"; then
  BUILD_HTML_DOCS_TRUE=
  BUILD_HTML_DOCS_FALSE='#'
else
  BUILD_HTML_DOCS_TRUE='#'
  BUILD_HTML_DOCS_FALSE=
fi



   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
if ${ac_cv_prog_cc_c99+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_cv_prog_cc_c99=no
ac_save_CC=$CC
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <stdarg.h>
#include <stdbool.h>
#include <stdlib.h>
#include <wchar.h>
#include <stdio.h>

// Check varargs macros.  These examples are taken from C99 6.10.3.5.
#define debug(...) fprintf (stderr, __VA_ARGS__)
#define showlist(...) puts (#__VA_ARGS__)
#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
static void
test_varargs_macros (void)
{
  int x = 1234;
  int y = 5678;
  debug ("Flag");
  debug ("X = %d\n", x);
  showlist (The first, second, and third items.);
  report (x>y, "x is %d but y is %d", x, y);
}

// Check long long types.
#define BIG64 18446744073709551615ull
#define BIG32 4294967295ul
#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
#if !BIG_OK
  your preprocessor is broken;
#endif
#if BIG_OK
#else
  your preprocessor is broken;
#endif
static long long int bignum = -9223372036854775807LL;
static unsigned long long int ubignum = BIG64;

struct incomplete_array
{
  int datasize;
  double data[];
};

struct named_init {
  int number;
  const wchar_t *name;
  double average;
};

typedef const char *ccp;

static inline int
test_restrict (ccp restrict text)
{
  // See if C++-style comments work.
  // Iterate through items via the restricted pointer.
  // Also check for declarations in for loops.
  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
    continue;
  return 0;
}

// Check varargs and va_copy.
static void
test_varargs (const char *format, ...)
{
  va_list args;
  va_start (args, format);
  va_list args_copy;
  va_copy (args_copy, args);

  const char *str;
  int number;
  float fnumber;

  while (*format)
    {
      switch (*format++)
	{
	case 's': // string
	  str = va_arg (args_copy, const char *);
	  break;
	case 'd': // int
	  number = va_arg (args_copy, int);
	  break;
	case 'f': // float
	  fnumber = va_arg (args_copy, double);
	  break;
	default:
	  break;
	}
    }
  va_end (args_copy);
  va_end (args);
}

int
main ()
{

  // Check bool.
  _Bool success = false;

  // Check restrict.
  if (test_restrict ("String literal") == 0)
    success = true;
  char *restrict newvar = "Another string";

  // Check varargs.
  test_varargs ("s, d' f .", "string", 65, 34.234);
  test_varargs_macros ();

  // Check flexible array members.
  struct incomplete_array *ia =
    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
  ia->datasize = 10;
  for (int i = 0; i < ia->datasize; ++i)
    ia->data[i] = i * 1.234;

  // Check named initializers.
  struct named_init ni = {
    .number = 34,
    .name = L"Test wide string",
    .average = 543.34343,
  };

  ni.number = 58;

  int dynamic_array[ni.number];
  dynamic_array[ni.number - 1] = 543;

  // work around unused variable warnings
  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
	  || dynamic_array[ni.number - 1] != 543);

  ;
  return 0;
}
_ACEOF
for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
do
  CC="$ac_save_CC $ac_arg"
  if ac_fn_c_try_compile "$LINENO"; then :
  ac_cv_prog_cc_c99=$ac_arg
fi
rm -f core conftest.err conftest.$ac_objext
  test "x$ac_cv_prog_cc_c99" != "xno" && break
done
rm -f conftest.$ac_ext
CC=$ac_save_CC

fi
# AC_CACHE_VAL
case "x$ac_cv_prog_cc_c99" in
  x)
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
$as_echo "none needed" >&6; } ;;
  xno)
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
$as_echo "unsupported" >&6; } ;;
  *)
    CC="$CC $ac_cv_prog_cc_c99"
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
esac
if test "x$ac_cv_prog_cc_c99" != xno; then :

fi



{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python 3" >&5
$as_echo_n "checking for Python 3... " >&6; }
if ${tor_cv_PYTHON+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test -z "$PYTHON"; then
  ac_path_PYTHON_found=false
  # Loop through the user's path and test for each of PROGNAME-LIST
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_prog in  \
	python3 \
	python3.8 python3.7 python3.6 python3.5 python3.4 \
	python ; do
    for ac_exec_ext in '' $ac_executable_extensions; do
      ac_path_PYTHON="$as_dir/$ac_prog$ac_exec_ext"
      as_fn_executable_p "$ac_path_PYTHON" || continue
"$ac_path_PYTHON" -c 'import sys; sys.exit(sys.version_info[0]<3)' && tor_cv_PYTHON="$ac_path_PYTHON" ac_path_PYTHON_found=:
      $ac_path_PYTHON_found && break 3
    done
  done
  done
IFS=$as_save_IFS
  if test -z "$ac_cv_path_PYTHON"; then
    :
  fi
else
  ac_cv_path_PYTHON=$PYTHON
fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_PYTHON" >&5
$as_echo "$tor_cv_PYTHON" >&6; }
PYTHON=$tor_cv_PYTHON


PYTHON="$tor_cv_PYTHON"

if test "x$PYTHON" = "x"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Python 3 unavailable; some tests will not be run." >&5
$as_echo "$as_me: WARNING: Python 3 unavailable; some tests will not be run." >&2;}
fi

 if test "x$PYTHON" != "x"; then
  USEPYTHON_TRUE=
  USEPYTHON_FALSE='#'
else
  USEPYTHON_TRUE='#'
  USEPYTHON_FALSE=
fi


rust_crates=" \
    digest-0.7.2 \
    libc-0.2.39 \
"




  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for flexible array members" >&5
$as_echo_n "checking for flexible array members... " >&6; }
if ${ac_cv_c_flexmember+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <stdlib.h>
	    #include <stdio.h>
	    #include <stddef.h>
	    struct s { int n; double d[]; };
int
main ()
{
int m = getchar ();
	    struct s *p = malloc (offsetof (struct s, d)
				  + m * sizeof (double));
	    p->d[0] = 0.0;
	    return p->d != (double *) NULL;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ac_cv_c_flexmember=yes
else
  ac_cv_c_flexmember=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_flexmember" >&5
$as_echo "$ac_cv_c_flexmember" >&6; }
  if test $ac_cv_c_flexmember = yes; then

$as_echo "#define FLEXIBLE_ARRAY_MEMBER /**/" >>confdefs.h

  else
    $as_echo "#define FLEXIBLE_ARRAY_MEMBER 1" >>confdefs.h

  fi



{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working C99 mid-block declaration syntax" >&5
$as_echo_n "checking for working C99 mid-block declaration syntax... " >&6; }
if ${tor_cv_c_c99_decl+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{
int x; x = 3; int y; y = 4 + x;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  tor_cv_c_c99_decl=yes
else
  tor_cv_c_c99_decl=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_c_c99_decl" >&5
$as_echo "$tor_cv_c_c99_decl" >&6; }
if test "$tor_cv_c_c99_decl" != "yes"; then
  as_fn_error $? "Your compiler doesn't support c99 mid-block declarations. This is required as of Tor 0.2.6.x" "$LINENO" 5
fi

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working C99 designated initializers" >&5
$as_echo_n "checking for working C99 designated initializers... " >&6; }
if ${tor_cv_c_c99_designated_init+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
struct s { int a; int b; };
int
main ()
{
 struct s ss = { .b = 5, .a = 6 };
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  tor_cv_c_c99_designated_init=yes
else
  tor_cv_c_c99_designated_init=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_c_c99_designated_init" >&5
$as_echo "$tor_cv_c_c99_designated_init" >&6; }

if test "$tor_cv_c_c99_designated_init" != "yes"; then
  as_fn_error $? "Your compiler doesn't support c99 designated initializers. This is required as of Tor 0.2.6.x" "$LINENO" 5
fi

TORUSER=_tor

# Check whether --with-tor-user was given.
if test "${with_tor_user+set}" = set; then :
  withval=$with_tor_user;
           TORUSER=$withval


fi



TORGROUP=_tor

# Check whether --with-tor-group was given.
if test "${with_tor_group+set}" = set; then :
  withval=$with_tor_group;
           TORGROUP=$withval


fi




{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for win32" >&5
$as_echo_n "checking for win32... " >&6; }
if test "$cross_compiling" = yes; then :
  bwin32=cross; { $as_echo "$as_me:${as_lineno-$LINENO}: result: cross" >&5
$as_echo "cross" >&6; }

else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int main(int c, char **v) {
#ifdef _WIN32
#if _WIN32
  return 0;
#else
  return 1;
#endif
#else
  return 2;
#endif
}
_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  bwin32=true; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
else
  bwin32=false; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi


if test "$bwin32" = "cross"; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for win32 (cross)" >&5
$as_echo_n "checking for win32 (cross)... " >&6; }
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef _WIN32
int main(int c, char **v) {return 0;}
#else
#error
int main(int c, char **v) {return x(y);}
#endif

_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  bwin32=true; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
else
  bwin32=false; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi



 if test "x$bwin32" = "xtrue"; then
  WIN32_TRUE=
  WIN32_FALSE='#'
else
  WIN32_TRUE='#'
  WIN32_FALSE=
fi

 if test "x$bwin32" = "xtrue"; then
  BUILD_NT_SERVICES_TRUE=
  BUILD_NT_SERVICES_FALSE='#'
else
  BUILD_NT_SERVICES_TRUE='#'
  BUILD_NT_SERVICES_FALSE=
fi

 if test "x$bwin32" != "xtrue"; then
  BUILD_LIBTORRUNNER_TRUE=
  BUILD_LIBTORRUNNER_FALSE='#'
else
  BUILD_LIBTORRUNNER_TRUE='#'
  BUILD_LIBTORRUNNER_FALSE=
fi


{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for MIPSpro compiler" >&5
$as_echo_n "checking for MIPSpro compiler... " >&6; }
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

#if (defined(__sgi) && defined(_COMPILER_VERSION))
#error
  return x(y);
#endif

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  bmipspro=false; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
else
  bmipspro=true; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

if test "$bmipspro" = "true"; then
  CFLAGS="$CFLAGS -c99"
fi

 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
if ${ac_cv_c_bigendian+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_cv_c_bigendian=unknown
    # See if we're dealing with a universal compiler.
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#ifndef __APPLE_CC__
	       not a universal capable compiler
	     #endif
	     typedef int dummy;

_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :

	# Check for potential -arch flags.  It is not universal unless
	# there are at least two -arch flags with different values.
	ac_arch=
	ac_prev=
	for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
	 if test -n "$ac_prev"; then
	   case $ac_word in
	     i?86 | x86_64 | ppc | ppc64)
	       if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
		 ac_arch=$ac_word
	       else
		 ac_cv_c_bigendian=universal
		 break
	       fi
	       ;;
	   esac
	   ac_prev=
	 elif test "x$ac_word" = "x-arch"; then
	   ac_prev=arch
	 fi
       done
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    if test $ac_cv_c_bigendian = unknown; then
      # See if sys/param.h defines the BYTE_ORDER macro.
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <sys/types.h>
	     #include <sys/param.h>

int
main ()
{
#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
		     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
		     && LITTLE_ENDIAN)
	      bogus endian macros
	     #endif

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  # It does; now see whether it defined to BIG_ENDIAN or not.
	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <sys/types.h>
		#include <sys/param.h>

int
main ()
{
#if BYTE_ORDER != BIG_ENDIAN
		 not big endian
		#endif

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ac_cv_c_bigendian=yes
else
  ac_cv_c_bigendian=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    fi
    if test $ac_cv_c_bigendian = unknown; then
      # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <limits.h>

int
main ()
{
#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
	      bogus endian macros
	     #endif

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  # It does; now see whether it defined to _BIG_ENDIAN or not.
	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <limits.h>

int
main ()
{
#ifndef _BIG_ENDIAN
		 not big endian
		#endif

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ac_cv_c_bigendian=yes
else
  ac_cv_c_bigendian=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    fi
    if test $ac_cv_c_bigendian = unknown; then
      # Compile a test program.
      if test "$cross_compiling" = yes; then :
  # Try to guess by grepping values from an object file.
	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
short int ascii_mm[] =
		  { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
		short int ascii_ii[] =
		  { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
		int use_ascii (int i) {
		  return ascii_mm[i] + ascii_ii[i];
		}
		short int ebcdic_ii[] =
		  { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
		short int ebcdic_mm[] =
		  { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
		int use_ebcdic (int i) {
		  return ebcdic_mm[i] + ebcdic_ii[i];
		}
		extern int foo;

int
main ()
{
return use_ascii (foo) == use_ebcdic (foo);
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
	      ac_cv_c_bigendian=yes
	    fi
	    if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
	      if test "$ac_cv_c_bigendian" = unknown; then
		ac_cv_c_bigendian=no
	      else
		# finding both strings is unlikely to happen, but who knows?
		ac_cv_c_bigendian=unknown
	      fi
	    fi
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
$ac_includes_default
int
main ()
{

	     /* Are we little or big endian?  From Harbison&Steele.  */
	     union
	     {
	       long int l;
	       char c[sizeof (long int)];
	     } u;
	     u.l = 1;
	     return u.c[sizeof (long int) - 1] == 1;

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  ac_cv_c_bigendian=no
else
  ac_cv_c_bigendian=yes
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

    fi
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
$as_echo "$ac_cv_c_bigendian" >&6; }
 case $ac_cv_c_bigendian in #(
   yes)
     $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
;; #(
   no)
      ;; #(
   universal)

$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h

     ;; #(
   *)
     as_fn_error $? "unknown endianness
 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
 esac




if test "x$enable_rust" = "xyes"; then

  # Extract the first word of "rustc", so it can be a program name with args.
set dummy rustc; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_RUSTC+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$RUSTC"; then
  ac_cv_prog_RUSTC="$RUSTC" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    ac_cv_prog_RUSTC="rustc"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

  test -z "$ac_cv_prog_RUSTC" && ac_cv_prog_RUSTC="no"
fi
fi
RUSTC=$ac_cv_prog_RUSTC
if test -n "$RUSTC"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUSTC" >&5
$as_echo "$RUSTC" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


  if test "x$RUSTC" = "xno"; then
    as_fn_error $? "rustc unavailable but rust integration requested." "$LINENO" 5
  fi


  # Extract the first word of "cargo", so it can be a program name with args.
set dummy cargo; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_prog_CARGO+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test -n "$CARGO"; then
  ac_cv_prog_CARGO="$CARGO" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    ac_cv_prog_CARGO="cargo"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

  test -z "$ac_cv_prog_CARGO" && ac_cv_prog_CARGO="no"
fi
fi
CARGO=$ac_cv_prog_CARGO
if test -n "$CARGO"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CARGO" >&5
$as_echo "$CARGO" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi


  if test "x$CARGO" = "xno"; then
    as_fn_error $? "cargo unavailable but rust integration requested." "$LINENO" 5
  fi


$as_echo "#define HAVE_RUST 1" >>confdefs.h

  if test "x$enable_fatal_warnings" = "xyes"; then
    RUST_WARN=
  else
    RUST_WARN=#
  fi
  if test "x$enable_cargo_online_mode" = "xyes"; then
    CARGO_ONLINE=
    RUST_DL=#
  else
    CARGO_ONLINE=--frozen
    RUST_DL=

            { $as_echo "$as_me:${as_lineno-$LINENO}: checking rust crate dependencies" >&5
$as_echo_n "checking rust crate dependencies... " >&6; }

    if test "x$TOR_RUST_DEPENDENCIES" = "x"; then
      TOR_RUST_DEPENDENCIES="${srcdir}/src/ext/rust/crates"
    fi
        if test ! -d "$TOR_RUST_DEPENDENCIES"; then
      as_fn_error $? "Rust dependency directory $TOR_RUST_DEPENDENCIES does not exist. Specify a dependency directory using the TOR_RUST_DEPENDENCIES variable or allow cargo to fetch crates using --enable-cargo-online-mode." "$LINENO" 5
      ERRORED=1
    fi
            TOR_RUST_DEPENDENCIES=$(cd "$TOR_RUST_DEPENDENCIES" ; pwd)

    for dep in $rust_crates; do
      if test ! -d "$TOR_RUST_DEPENDENCIES"/"$dep"; then
        as_fn_error $? "Failure to find rust dependency $TOR_RUST_DEPENDENCIES/$dep. Specify a dependency directory using the TOR_RUST_DEPENDENCIES variable or allow cargo to fetch crates using --enable-cargo-online-mode." "$LINENO" 5
        ERRORED=1
      fi
    done
    if test "x$ERRORED" = "x"; then
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
    fi
  fi

      if test "$bwin32" = "true"; then
    tor_rust_static_name=tor_rust.lib
  else
    tor_rust_static_name=libtor_rust.a
  fi



  if test -n "$TOR_RUST_TARGET"; then
    if test "$host" = "$build"; then
      as_fn_error $? "HOST = BUILD is invalid if TOR_RUST_TARGET is specified, see configure --help for more information." "$LINENO" 5
    fi
    RUST_TARGET_PROP="target = '$TOR_RUST_TARGET'"
    TOR_RUST_LIB_PATH="src/rust/target/$TOR_RUST_TARGET/release/$tor_rust_static_name"
  else
    if test "$host" != "$build"; then
      as_fn_error $? "TOR_RUST_TARGET must be specified when cross-compiling with Rust enabled." "$LINENO" 5
    fi
    RUST_TARGET_PROP=
    TOR_RUST_LIB_PATH="src/rust/target/release/$tor_rust_static_name"
  fi







    { $as_echo "$as_me:${as_lineno-$LINENO}: checking rust version" >&5
$as_echo_n "checking rust version... " >&6; }
  RUSTC_VERSION=`$RUSTC --version`
  RUSTC_VERSION_MAJOR=`$RUSTC --version | cut -d ' ' -f 2 | cut -d '.' -f 1`
  RUSTC_VERSION_MINOR=`$RUSTC --version | cut -d ' ' -f 2 | cut -d '.' -f 2`
  if test "x$RUSTC_VERSION_MAJOR" = "x" -o "x$RUSTC_VERSION_MINOR" = "x"; then
    as_fn_error $? "rustc version couldn't be identified" "$LINENO" 5
  fi
  if test "$RUSTC_VERSION_MAJOR" -lt 2 -a "$RUSTC_VERSION_MINOR" -lt 31; then
    as_fn_error $? "rustc must be at least version 1.31.0" "$LINENO" 5
  fi
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUSTC_VERSION" >&5
$as_echo "$RUSTC_VERSION" >&6; }
fi

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
$as_echo_n "checking for library containing socket... " >&6; }
if ${ac_cv_search_socket+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_func_search_save_LIBS=$LIBS
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char socket ();
int
main ()
{
return socket ();
  ;
  return 0;
}
_ACEOF
for ac_lib in '' socket network; do
  if test -z "$ac_lib"; then
    ac_res="none required"
  else
    ac_res=-l$ac_lib
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
  fi
  if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_search_socket=$ac_res
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext
  if ${ac_cv_search_socket+:} false; then :
  break
fi
done
if ${ac_cv_search_socket+:} false; then :

else
  ac_cv_search_socket=no
fi
rm conftest.$ac_ext
LIBS=$ac_func_search_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
$as_echo "$ac_cv_search_socket" >&6; }
ac_res=$ac_cv_search_socket
if test "$ac_res" != no; then :
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"

fi

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
$as_echo_n "checking for library containing gethostbyname... " >&6; }
if ${ac_cv_search_gethostbyname+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_func_search_save_LIBS=$LIBS
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char gethostbyname ();
int
main ()
{
return gethostbyname ();
  ;
  return 0;
}
_ACEOF
for ac_lib in '' nsl; do
  if test -z "$ac_lib"; then
    ac_res="none required"
  else
    ac_res=-l$ac_lib
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
  fi
  if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_search_gethostbyname=$ac_res
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext
  if ${ac_cv_search_gethostbyname+:} false; then :
  break
fi
done
if ${ac_cv_search_gethostbyname+:} false; then :

else
  ac_cv_search_gethostbyname=no
fi
rm conftest.$ac_ext
LIBS=$ac_func_search_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
$as_echo "$ac_cv_search_gethostbyname" >&6; }
ac_res=$ac_cv_search_gethostbyname
if test "$ac_res" != no; then :
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"

fi

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
$as_echo_n "checking for library containing dlopen... " >&6; }
if ${ac_cv_search_dlopen+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_func_search_save_LIBS=$LIBS
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char dlopen ();
int
main ()
{
return dlopen ();
  ;
  return 0;
}
_ACEOF
for ac_lib in '' dl; do
  if test -z "$ac_lib"; then
    ac_res="none required"
  else
    ac_res=-l$ac_lib
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
  fi
  if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_search_dlopen=$ac_res
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext
  if ${ac_cv_search_dlopen+:} false; then :
  break
fi
done
if ${ac_cv_search_dlopen+:} false; then :

else
  ac_cv_search_dlopen=no
fi
rm conftest.$ac_ext
LIBS=$ac_func_search_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
$as_echo "$ac_cv_search_dlopen" >&6; }
ac_res=$ac_cv_search_dlopen
if test "$ac_res" != no; then :
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"

fi

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_aton" >&5
$as_echo_n "checking for library containing inet_aton... " >&6; }
if ${ac_cv_search_inet_aton+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_func_search_save_LIBS=$LIBS
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char inet_aton ();
int
main ()
{
return inet_aton ();
  ;
  return 0;
}
_ACEOF
for ac_lib in '' resolv; do
  if test -z "$ac_lib"; then
    ac_res="none required"
  else
    ac_res=-l$ac_lib
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
  fi
  if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_search_inet_aton=$ac_res
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext
  if ${ac_cv_search_inet_aton+:} false; then :
  break
fi
done
if ${ac_cv_search_inet_aton+:} false; then :

else
  ac_cv_search_inet_aton=no
fi
rm conftest.$ac_ext
LIBS=$ac_func_search_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_aton" >&5
$as_echo "$ac_cv_search_inet_aton" >&6; }
ac_res=$ac_cv_search_inet_aton
if test "$ac_res" != no; then :
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"

fi

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing backtrace" >&5
$as_echo_n "checking for library containing backtrace... " >&6; }
if ${ac_cv_search_backtrace+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_func_search_save_LIBS=$LIBS
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char backtrace ();
int
main ()
{
return backtrace ();
  ;
  return 0;
}
_ACEOF
for ac_lib in '' execinfo; do
  if test -z "$ac_lib"; then
    ac_res="none required"
  else
    ac_res=-l$ac_lib
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
  fi
  if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_search_backtrace=$ac_res
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext
  if ${ac_cv_search_backtrace+:} false; then :
  break
fi
done
if ${ac_cv_search_backtrace+:} false; then :

else
  ac_cv_search_backtrace=no
fi
rm conftest.$ac_ext
LIBS=$ac_func_search_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_backtrace" >&5
$as_echo "$ac_cv_search_backtrace" >&6; }
ac_res=$ac_cv_search_backtrace
if test "$ac_res" != no; then :
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"

fi

saved_LIBS="$LIBS"
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
$as_echo_n "checking for library containing clock_gettime... " >&6; }
if ${ac_cv_search_clock_gettime+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_func_search_save_LIBS=$LIBS
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char clock_gettime ();
int
main ()
{
return clock_gettime ();
  ;
  return 0;
}
_ACEOF
for ac_lib in '' rt; do
  if test -z "$ac_lib"; then
    ac_res="none required"
  else
    ac_res=-l$ac_lib
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
  fi
  if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_search_clock_gettime=$ac_res
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext
  if ${ac_cv_search_clock_gettime+:} false; then :
  break
fi
done
if ${ac_cv_search_clock_gettime+:} false; then :

else
  ac_cv_search_clock_gettime=no
fi
rm conftest.$ac_ext
LIBS=$ac_func_search_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
$as_echo "$ac_cv_search_clock_gettime" >&6; }
ac_res=$ac_cv_search_clock_gettime
if test "$ac_res" != no; then :
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"

fi

if test "$LIBS" != "$saved_LIBS"; then
   # Looks like we need -lrt for clock_gettime().
   have_rt=yes
fi

if test "$bwin32" = "false"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_create" >&5
$as_echo_n "checking for library containing pthread_create... " >&6; }
if ${ac_cv_search_pthread_create+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_func_search_save_LIBS=$LIBS
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char pthread_create ();
int
main ()
{
return pthread_create ();
  ;
  return 0;
}
_ACEOF
for ac_lib in '' pthread; do
  if test -z "$ac_lib"; then
    ac_res="none required"
  else
    ac_res=-l$ac_lib
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
  fi
  if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_search_pthread_create=$ac_res
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext
  if ${ac_cv_search_pthread_create+:} false; then :
  break
fi
done
if ${ac_cv_search_pthread_create+:} false; then :

else
  ac_cv_search_pthread_create=no
fi
rm conftest.$ac_ext
LIBS=$ac_func_search_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_create" >&5
$as_echo "$ac_cv_search_pthread_create" >&6; }
ac_res=$ac_cv_search_pthread_create
if test "$ac_res" != no; then :
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"

fi

  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_detach" >&5
$as_echo_n "checking for library containing pthread_detach... " >&6; }
if ${ac_cv_search_pthread_detach+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_func_search_save_LIBS=$LIBS
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char pthread_detach ();
int
main ()
{
return pthread_detach ();
  ;
  return 0;
}
_ACEOF
for ac_lib in '' pthread; do
  if test -z "$ac_lib"; then
    ac_res="none required"
  else
    ac_res=-l$ac_lib
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
  fi
  if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_search_pthread_detach=$ac_res
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext
  if ${ac_cv_search_pthread_detach+:} false; then :
  break
fi
done
if ${ac_cv_search_pthread_detach+:} false; then :

else
  ac_cv_search_pthread_detach=no
fi
rm conftest.$ac_ext
LIBS=$ac_func_search_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_detach" >&5
$as_echo "$ac_cv_search_pthread_detach" >&6; }
ac_res=$ac_cv_search_pthread_detach
if test "$ac_res" != no; then :
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"

fi

fi

 if test "$bwin32" = "true"; then
  THREADS_WIN32_TRUE=
  THREADS_WIN32_FALSE='#'
else
  THREADS_WIN32_TRUE='#'
  THREADS_WIN32_FALSE=
fi

 if test "$bwin32" = "false"; then
  THREADS_PTHREADS_TRUE=
  THREADS_PTHREADS_FALSE='#'
else
  THREADS_PTHREADS_TRUE='#'
  THREADS_PTHREADS_FALSE=
fi


for ac_func in _NSGetEnviron \
	RtlSecureZeroMemory \
	SecureZeroMemory \
	accept4 \
	backtrace \
	backtrace_symbols_fd \
	eventfd \
	explicit_bzero \
	timingsafe_memcmp \
	flock \
	ftime \
	get_current_dir_name \
	getaddrinfo \
	getdelim \
	getifaddrs \
	getline \
	getpass \
	getrlimit \
	gettimeofday \
	gmtime_r \
	gnu_get_libc_version \
	htonll \
	inet_aton \
	ioctl \
	issetugid \
	llround \
	localtime_r \
	lround \
	madvise \
	memmem \
	memset_s \
	minherit \
	mmap \
	pipe \
	pipe2 \
	prctl \
	readpassphrase \
	rint \
	sigaction \
	socketpair \
	statvfs \
	strncasecmp \
	strcasecmp \
	strlcat \
	strlcpy \
	strnlen \
	strptime \
	strtok_r \
	strtoull \
	sysconf \
	sysctl \
	truncate \
	uname \
	usleep \
	vasprintf \
	_vscprintf

do :
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF

fi
done


# Apple messed up when they added some functions: they
# forgot to decorate them with appropriate AVAILABLE_MAC_OS_VERSION
# checks.

# We should only probe for these functions if we are sure that we
# are not targeting OS X 10.9 or earlier.
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a pre-Yosemite OS X build target" >&5
$as_echo_n "checking for a pre-Yosemite OS X build target... " >&6; }
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef __APPLE__
#  include <AvailabilityMacros.h>
#  ifndef MAC_OS_X_VERSION_10_10
#    define MAC_OS_X_VERSION_10_10 101000
#  endif
#  if defined(MAC_OS_X_VERSION_MIN_REQUIRED)
#    if MAC_OS_X_VERSION_MIN_REQUIRED < MAC_OS_X_VERSION_10_10
#      error "Running on Mac OS X 10.9 or earlier"
#    endif
#  endif
#endif

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  on_macos_pre_10_10=no ; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
else
  on_macos_pre_10_10=yes; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

if test "$on_macos_pre_10_10" = "no"; then
  for ac_func in mach_approximate_time \

do :
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF

fi
done

fi

# We should only probe for these functions if we are sure that we
# are not targeting OSX 10.11 or earlier.
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a pre-Sierra OSX build target" >&5
$as_echo_n "checking for a pre-Sierra OSX build target... " >&6; }
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef __APPLE__
#  include <AvailabilityMacros.h>
#  ifndef MAC_OS_X_VERSION_10_12
#    define MAC_OS_X_VERSION_10_12 101200
#  endif
#  if defined(MAC_OS_X_VERSION_MIN_REQUIRED)
#    if MAC_OS_X_VERSION_MIN_REQUIRED < MAC_OS_X_VERSION_10_12
#      error "Running on Mac OSX 10.11 or earlier"
#    endif
#  endif
#endif

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  on_macos_pre_10_12=no ; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
else
  on_macos_pre_10_12=yes; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

if test "$on_macos_pre_10_12" = "no"; then
  for ac_func in clock_gettime \
        getentropy \

do :
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF

fi
done

fi

if test "$bwin32" != "true"; then
  for ac_header in pthread.h
do :
  ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
if test "x$ac_cv_header_pthread_h" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_PTHREAD_H 1
_ACEOF

fi

done

  for ac_func in pthread_create
do :
  ac_fn_c_check_func "$LINENO" "pthread_create" "ac_cv_func_pthread_create"
if test "x$ac_cv_func_pthread_create" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_PTHREAD_CREATE 1
_ACEOF

fi
done

  for ac_func in pthread_condattr_setclock
do :
  ac_fn_c_check_func "$LINENO" "pthread_condattr_setclock" "ac_cv_func_pthread_condattr_setclock"
if test "x$ac_cv_func_pthread_condattr_setclock" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_PTHREAD_CONDATTR_SETCLOCK 1
_ACEOF

fi
done

fi

if test "$bwin32" = "true"; then
  ac_fn_c_check_decl "$LINENO" "SecureZeroMemory" "ac_cv_have_decl_SecureZeroMemory" "
#include <windows.h>
#include <conio.h>
#include <wchar.h>

"
if test "x$ac_cv_have_decl_SecureZeroMemory" = xyes; then :
  ac_have_decl=1
else
  ac_have_decl=0
fi

cat >>confdefs.h <<_ACEOF
#define HAVE_DECL_SECUREZEROMEMORY $ac_have_decl
_ACEOF
ac_fn_c_check_decl "$LINENO" "_getwch" "ac_cv_have_decl__getwch" "
#include <windows.h>
#include <conio.h>
#include <wchar.h>

"
if test "x$ac_cv_have_decl__getwch" = xyes; then :
  ac_have_decl=1
else
  ac_have_decl=0
fi

cat >>confdefs.h <<_ACEOF
#define HAVE_DECL__GETWCH $ac_have_decl
_ACEOF

fi

 if test "x$ac_cv_func_readpassphrase" = "xno" && test "$bwin32" = "false"; then
  BUILD_READPASSPHRASE_C_TRUE=
  BUILD_READPASSPHRASE_C_FALSE='#'
else
  BUILD_READPASSPHRASE_C_TRUE='#'
  BUILD_READPASSPHRASE_C_FALSE=
fi


{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether free(NULL) works" >&5
$as_echo_n "checking whether free(NULL) works... " >&6; }
if test "$cross_compiling" = yes; then :
  free_null_ok=cross; { $as_echo "$as_me:${as_lineno-$LINENO}: result: cross" >&5
$as_echo "cross" >&6; }
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

  #include <stdlib.h>

int
main ()
{

char *p = NULL;
free(p);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  free_null_ok=true; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
else
  free_null_ok=false; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi


if test "$free_null_ok" = "false"; then
   as_fn_error $? "Your libc implementation doesn't allow free(NULL), as required by C99." "$LINENO" 5
fi


if test "$bwin32" = "true"; then
  TOR_LIB_WS32=-lws2_32
  TOR_LIB_IPHLPAPI=-liphlpapi
  # Some of the cargo-cults recommend -lwsock32 as well, but I don't
  # think it's actually necessary.
  TOR_LIB_GDI=-lgdi32
  TOR_LIB_USERENV=-luserenv
else
  TOR_LIB_WS32=
  TOR_LIB_GDI=
  TOR_LIB_USERENV=
fi





tor_libevent_pkg_redhat="libevent"
tor_libevent_pkg_debian="libevent-dev"
tor_libevent_devpkg_redhat="libevent-devel"
tor_libevent_devpkg_debian="libevent-dev"

STATIC_LIBEVENT_FLAGS=""
if test "$enable_static_libevent" = "yes"; then
    if test "$have_rt" = "yes"; then
      STATIC_LIBEVENT_FLAGS=" -lrt "
    fi
fi


trylibeventdir=""

# Check whether --with-libevent-dir was given.
if test "${with_libevent_dir+set}" = set; then :
  withval=$with_libevent_dir;
     if test x$withval != xno ; then
        trylibeventdir="$withval"
     fi

fi

if test "x$trylibeventdir" = x && test "x$ALT_libevent_WITHVAL" != x ; then
  trylibeventdir="$ALT_libevent_WITHVAL"
fi

tor_saved_LIBS="$LIBS"
tor_saved_LDFLAGS="$LDFLAGS"
tor_saved_CPPFLAGS="$CPPFLAGS"
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libevent directory" >&5
$as_echo_n "checking for libevent directory... " >&6; }
if ${tor_cv_library_libevent_dir+:} false; then :
  $as_echo_n "(cached) " >&6
else

  tor_libevent_dir_found=no
  tor_libevent_any_linkable=no

  for tor_trydir in "$trylibeventdir" "(system)" "$prefix" /usr/local /usr/pkg /opt/libevent; do
    LDFLAGS="$tor_saved_LDFLAGS"
    LIBS="$tor_saved_LIBS -levent $STATIC_LIBEVENT_FLAGS $TOR_LIB_WS32"
    CPPFLAGS="$tor_saved_CPPFLAGS"

    if test -z "$tor_trydir" ; then
      continue;
    fi

    # Skip the directory if it isn't there.
    if test ! -d "$tor_trydir" && test "$tor_trydir" != "(system)"; then
      continue;
    fi

    # If this isn't blank, try adding the directory (or appropriate
    # include/libs subdirectories) to the command line.
    if test "$tor_trydir" != "(system)"; then

  if test -d "$tor_trydir/lib"; then
    LDFLAGS="-L$tor_trydir/lib $LDFLAGS"
  else
    LDFLAGS="-L$tor_trydir $LDFLAGS"
  fi
  if test -d "$tor_trydir/include"; then
    CPPFLAGS="-I$tor_trydir/include $CPPFLAGS"
  else
    CPPFLAGS="-I$tor_trydir $CPPFLAGS"
  fi

    fi

    # Can we link against (but not necessarily run, or find the headers for)
    # the binary?
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef _WIN32
#include <winsock2.h>
#endif
struct event_base;
struct event_base *event_base_new(void);
void event_base_free(struct event_base *);
int
main ()
{

#ifdef _WIN32
{WSADATA d; WSAStartup(0x101,&d); }
#endif
event_base_free(event_base_new());

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  linkable=yes
else
  linkable=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

    if test "$linkable" = yes; then
      tor_libevent_any_linkable=yes
      # Okay, we can link against it.  Can we find the headers?
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef _WIN32
#include <winsock2.h>
#endif
#include <sys/time.h>
#include <sys/types.h>
#include <event2/event.h>
int
main ()
{

#ifdef _WIN32
{WSADATA d; WSAStartup(0x101,&d); }
#endif
event_base_free(event_base_new());

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  buildable=yes
else
  buildable=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
      if test "$buildable" = yes; then
         tor_cv_library_libevent_dir=$tor_trydir
         tor_libevent_dir_found=yes
         break
      fi
    fi
  done

  if test "$tor_libevent_dir_found" = no; then
    if test "$tor_libevent_any_linkable" = no ; then
      { $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
$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;}

h=""
if test xpkg = xdevpkg; then
  h=" headers for"
fi
if test -f /etc/debian_version && test x"$tor_libevent_pkg_debian" != x; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: On Debian, you can install$h libevent using \"apt-get install $tor_libevent_pkg_debian\"" >&5
$as_echo "$as_me: WARNING: On Debian, you can install$h libevent using \"apt-get install $tor_libevent_pkg_debian\"" >&2;}
  if test x"$tor_libevent_pkg_debian" != x"$tor_libevent_devpkg_debian"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:    You will probably need $tor_libevent_devpkg_debian too." >&5
$as_echo "$as_me: WARNING:    You will probably need $tor_libevent_devpkg_debian too." >&2;}
  fi
fi
if test -f /etc/fedora-release && test x"$tor_libevent_pkg_redhat" != x; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: On Fedora, you can install$h libevent using \"dnf install $tor_libevent_pkg_redhat\"" >&5
$as_echo "$as_me: WARNING: On Fedora, you can install$h libevent using \"dnf install $tor_libevent_pkg_redhat\"" >&2;}
  if test x"$tor_libevent_pkg_redhat" != x"$tor_libevent_devpkg_redhat"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:    You will probably need to install $tor_libevent_devpkg_redhat too." >&5
$as_echo "$as_me: WARNING:    You will probably need to install $tor_libevent_devpkg_redhat too." >&2;}
  fi
else
  if test -f /etc/redhat-release && test x"$tor_libevent_pkg_redhat" != x; then
    { $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
$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;}
    if test x"$tor_libevent_pkg_redhat" != x"$tor_libevent_devpkg_redhat"; then
      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:    You will probably need to install $tor_libevent_devpkg_redhat too." >&5
$as_echo "$as_me: WARNING:    You will probably need to install $tor_libevent_devpkg_redhat too." >&2;}
    fi
  fi
fi

      as_fn_error $? "Missing libraries; unable to proceed." "$LINENO" 5
    else
      { $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
$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;}

h=""
if test xdevpkg = xdevpkg; then
  h=" headers for"
fi
if test -f /etc/debian_version && test x"$tor_libevent_devpkg_debian" != x; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: On Debian, you can install$h libevent using \"apt-get install $tor_libevent_devpkg_debian\"" >&5
$as_echo "$as_me: WARNING: On Debian, you can install$h libevent using \"apt-get install $tor_libevent_devpkg_debian\"" >&2;}
  if test x"$tor_libevent_devpkg_debian" != x"$tor_libevent_devpkg_debian"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:    You will probably need $tor_libevent_devpkg_debian too." >&5
$as_echo "$as_me: WARNING:    You will probably need $tor_libevent_devpkg_debian too." >&2;}
  fi
fi
if test -f /etc/fedora-release && test x"$tor_libevent_devpkg_redhat" != x; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: On Fedora, you can install$h libevent using \"dnf install $tor_libevent_devpkg_redhat\"" >&5
$as_echo "$as_me: WARNING: On Fedora, you can install$h libevent using \"dnf install $tor_libevent_devpkg_redhat\"" >&2;}
  if test x"$tor_libevent_devpkg_redhat" != x"$tor_libevent_devpkg_redhat"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:    You will probably need to install $tor_libevent_devpkg_redhat too." >&5
$as_echo "$as_me: WARNING:    You will probably need to install $tor_libevent_devpkg_redhat too." >&2;}
  fi
else
  if test -f /etc/redhat-release && test x"$tor_libevent_devpkg_redhat" != x; then
    { $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
$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;}
    if test x"$tor_libevent_devpkg_redhat" != x"$tor_libevent_devpkg_redhat"; then
      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:    You will probably need to install $tor_libevent_devpkg_redhat too." >&5
$as_echo "$as_me: WARNING:    You will probably need to install $tor_libevent_devpkg_redhat too." >&2;}
    fi
  fi
fi

      as_fn_error $? "Missing headers; unable to proceed." "$LINENO" 5
    fi
  fi

  LDFLAGS="$tor_saved_LDFLAGS"
  LIBS="$tor_saved_LIBS"
  CPPFLAGS="$tor_saved_CPPFLAGS"

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_library_libevent_dir" >&5
$as_echo "$tor_cv_library_libevent_dir" >&6; }
LIBS="$LIBS -levent $STATIC_LIBEVENT_FLAGS $TOR_LIB_WS32"
if test "$tor_cv_library_libevent_dir" != "(system)"; then

  if test -d "$tor_cv_library_libevent_dir/lib"; then
    LDFLAGS="-L$tor_cv_library_libevent_dir/lib $LDFLAGS"
  else
    LDFLAGS="-L$tor_cv_library_libevent_dir $LDFLAGS"
  fi
  if test -d "$tor_cv_library_libevent_dir/include"; then
    CPPFLAGS="-I$tor_cv_library_libevent_dir/include $CPPFLAGS"
  else
    CPPFLAGS="-I$tor_cv_library_libevent_dir $CPPFLAGS"
  fi

fi


  if test x$tor_cv_library_libevent_dir = "x(system)"; then
    TOR_LDFLAGS_libevent=""
    TOR_CPPFLAGS_libevent=""
  else
   if test -d "$tor_cv_library_libevent_dir/lib"; then
     TOR_LDFLAGS_libevent="-L$tor_cv_library_libevent_dir/lib"
     TOR_LIBDIR_libevent="$tor_cv_library_libevent_dir/lib"
   else
     TOR_LDFLAGS_libevent="-L$tor_cv_library_libevent_dir"
     TOR_LIBDIR_libevent="$tor_cv_library_libevent_dir"
   fi
   if test -d "$tor_cv_library_libevent_dir/include"; then
     TOR_CPPFLAGS_libevent="-I$tor_cv_library_libevent_dir/include"
   else
     TOR_CPPFLAGS_libevent="-I$tor_cv_library_libevent_dir"
   fi
  fi




if test "$cross_compiling" != yes; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need extra options to link libevent" >&5
$as_echo_n "checking whether we need extra options to link libevent... " >&6; }
if ${tor_cv_library_libevent_linker_option+:} false; then :
  $as_echo_n "(cached) " >&6
else

   orig_LDFLAGS="$LDFLAGS"
   runs=no
   linked_with=nothing
   if test -d "$tor_cv_library_libevent_dir/lib"; then
     tor_trydir="$tor_cv_library_libevent_dir/lib"
   else
     tor_trydir="$tor_cv_library_libevent_dir"
   fi
   for tor_tryextra in "(none)" "-Wl,-R$tor_trydir" "-R$tor_trydir" \
                       "-Wl,-rpath,$tor_trydir" ; do
     if test "$tor_tryextra" = "(none)"; then
       LDFLAGS="$orig_LDFLAGS"
     else
       LDFLAGS="$tor_tryextra $orig_LDFLAGS"
     fi
     if test "$cross_compiling" = yes; then :
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  runnable=yes
else
  runnable=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef _WIN32
#include <winsock2.h>
#endif
struct event_base;
struct event_base *event_base_new(void);
void event_base_free(struct event_base *);
int
main ()
{

#ifdef _WIN32
{WSADATA d; WSAStartup(0x101,&d); }
#endif
event_base_free(event_base_new());

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  runnable=yes
else
  runnable=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

     if test "$runnable" = yes; then
        tor_cv_library_libevent_linker_option=$tor_tryextra
        break
     fi
   done

   if test "$runnable" = no; then
     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
   fi
   LDFLAGS="$orig_LDFLAGS"

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_library_libevent_linker_option" >&5
$as_echo "$tor_cv_library_libevent_linker_option" >&6; }
  if test "$tor_cv_library_libevent_linker_option" != "(none)" ; then
    TOR_LDFLAGS_libevent="$TOR_LDFLAGS_libevent $tor_cv_library_libevent_linker_option"
  fi
fi # cross-compile

LIBS="$tor_saved_LIBS"
LDFLAGS="$tor_saved_LDFLAGS"
CPPFLAGS="$tor_saved_CPPFLAGS"



save_LIBS="$LIBS"
save_LDFLAGS="$LDFLAGS"
save_CPPFLAGS="$CPPFLAGS"

LIBS="$STATIC_LIBEVENT_FLAGS $TOR_LIB_WS32 $save_LIBS"
LDFLAGS="$TOR_LDFLAGS_libevent $LDFLAGS"
CPPFLAGS="$TOR_CPPFLAGS_libevent $CPPFLAGS"

for ac_header in event2/event.h event2/dns.h event2/bufferevent_ssl.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

fi

done


if test "$enable_static_libevent" = "yes"; then
   if test "$tor_cv_library_libevent_dir" = "(system)"; then
     as_fn_error $? "\"You must specify an explicit --with-libevent-dir=x option when using --enable-static-libevent\"" "$LINENO" 5
   else
     TOR_LIBEVENT_LIBS="$TOR_LIBDIR_libevent/libevent.a $STATIC_LIBEVENT_FLAGS"
   fi
else
     if test "x$ac_cv_header_event2_event_h" = "xyes"; then
       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing event_new" >&5
$as_echo_n "checking for library containing event_new... " >&6; }
if ${ac_cv_search_event_new+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_func_search_save_LIBS=$LIBS
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char event_new ();
int
main ()
{
return event_new ();
  ;
  return 0;
}
_ACEOF
for ac_lib in '' event event_core; do
  if test -z "$ac_lib"; then
    ac_res="none required"
  else
    ac_res=-l$ac_lib
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
  fi
  if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_search_event_new=$ac_res
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext
  if ${ac_cv_search_event_new+:} false; then :
  break
fi
done
if ${ac_cv_search_event_new+:} false; then :

else
  ac_cv_search_event_new=no
fi
rm conftest.$ac_ext
LIBS=$ac_func_search_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_event_new" >&5
$as_echo "$ac_cv_search_event_new" >&6; }
ac_res=$ac_cv_search_event_new
if test "$ac_res" != no; then :
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"

else
  as_fn_error $? "\"libevent2 is installed but linking it failed while searching for event_new\"" "$LINENO" 5
fi

       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing evdns_base_new" >&5
$as_echo_n "checking for library containing evdns_base_new... " >&6; }
if ${ac_cv_search_evdns_base_new+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_func_search_save_LIBS=$LIBS
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char evdns_base_new ();
int
main ()
{
return evdns_base_new ();
  ;
  return 0;
}
_ACEOF
for ac_lib in '' event event_extra; do
  if test -z "$ac_lib"; then
    ac_res="none required"
  else
    ac_res=-l$ac_lib
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
  fi
  if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_search_evdns_base_new=$ac_res
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext
  if ${ac_cv_search_evdns_base_new+:} false; then :
  break
fi
done
if ${ac_cv_search_evdns_base_new+:} false; then :

else
  ac_cv_search_evdns_base_new=no
fi
rm conftest.$ac_ext
LIBS=$ac_func_search_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_evdns_base_new" >&5
$as_echo "$ac_cv_search_evdns_base_new" >&6; }
ac_res=$ac_cv_search_evdns_base_new
if test "$ac_res" != no; then :
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"

else
  as_fn_error $? "\"libevent2 is installed but linking it failed while searching for evdns_base_new\"" "$LINENO" 5
fi


       if test "$ac_cv_search_event_new" != "none required"; then
         TOR_LIBEVENT_LIBS="$ac_cv_search_event_new"
       fi
       if test "$ac_cv_search_evdns_base_new" != "none required"; then
         TOR_LIBEVENT_LIBS="$ac_cv_search_evdns_base_new $TOR_LIBEVENT_LIBS"
       fi
     else
       as_fn_error $? "\"libevent2 is required but the headers could not be found\"" "$LINENO" 5
     fi
fi

for ac_func in evutil_secure_rng_set_urandom_device_file \
                evutil_secure_rng_add_bytes \
                evdns_base_get_nameserver_addr \


do :
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF

fi
done


LIBS="$save_LIBS"
LDFLAGS="$save_LDFLAGS"
CPPFLAGS="$save_CPPFLAGS"

CPPFLAGS="$CPPFLAGS $TOR_CPPFLAGS_libevent"
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Libevent is new enough" >&5
$as_echo_n "checking whether Libevent is new enough... " >&6; }
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include <event2/event.h>
#if !defined(LIBEVENT_VERSION_NUMBER) || LIBEVENT_VERSION_NUMBER < 0x02000a00
#error
int x = y(zz);
#else
int x = 1;
#endif

_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
else
   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
     as_fn_error $? "Libevent is not new enough.  We require 2.0.10-stable or later" "$LINENO" 5
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

LIBS="$save_LIBS"
LDFLAGS="$save_LDFLAGS"
CPPFLAGS="$save_CPPFLAGS"




TOR_LIB_MATH=""
save_LIBS="$LIBS"
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pow" >&5
$as_echo_n "checking for library containing pow... " >&6; }
if ${ac_cv_search_pow+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_func_search_save_LIBS=$LIBS
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char pow ();
int
main ()
{
return pow ();
  ;
  return 0;
}
_ACEOF
for ac_lib in '' m; do
  if test -z "$ac_lib"; then
    ac_res="none required"
  else
    ac_res=-l$ac_lib
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
  fi
  if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_search_pow=$ac_res
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext
  if ${ac_cv_search_pow+:} false; then :
  break
fi
done
if ${ac_cv_search_pow+:} false; then :

else
  ac_cv_search_pow=no
fi
rm conftest.$ac_ext
LIBS=$ac_func_search_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pow" >&5
$as_echo "$ac_cv_search_pow" >&6; }
ac_res=$ac_cv_search_pow
if test "$ac_res" != no; then :
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"

else
  as_fn_error $? "Could not find pow in libm or libc." "$LINENO" 5
fi

if test "$ac_cv_search_pow" != "none required"; then
    TOR_LIB_MATH="$ac_cv_search_pow"
fi
LIBS="$save_LIBS"


if test "x$enable_nss" = "xyes"; then

pkg_failed=no
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for NSS" >&5
$as_echo_n "checking for NSS... " >&6; }

if test -n "$NSS_CFLAGS"; then
    pkg_cv_NSS_CFLAGS="$NSS_CFLAGS"
 elif test -n "$PKG_CONFIG"; then
    if test -n "$PKG_CONFIG" && \
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"nss\""; } >&5
  ($PKG_CONFIG --exists --print-errors "nss") 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }; then
  pkg_cv_NSS_CFLAGS=`$PKG_CONFIG --cflags "nss" 2>/dev/null`
		      test "x$?" != "x0" && pkg_failed=yes
else
  pkg_failed=yes
fi
 else
    pkg_failed=untried
fi
if test -n "$NSS_LIBS"; then
    pkg_cv_NSS_LIBS="$NSS_LIBS"
 elif test -n "$PKG_CONFIG"; then
    if test -n "$PKG_CONFIG" && \
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"nss\""; } >&5
  ($PKG_CONFIG --exists --print-errors "nss") 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }; then
  pkg_cv_NSS_LIBS=`$PKG_CONFIG --libs "nss" 2>/dev/null`
		      test "x$?" != "x0" && pkg_failed=yes
else
  pkg_failed=yes
fi
 else
    pkg_failed=untried
fi



if test $pkg_failed = yes; then
   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
        _pkg_short_errors_supported=yes
else
        _pkg_short_errors_supported=no
fi
        if test $_pkg_short_errors_supported = yes; then
	        NSS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "nss" 2>&1`
        else
	        NSS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "nss" 2>&1`
        fi
	# Put the nasty error message in config.log where it belongs
	echo "$NSS_PKG_ERRORS" >&5

	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
elif test $pkg_failed = untried; then
     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
	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
else
	NSS_CFLAGS=$pkg_cv_NSS_CFLAGS
	NSS_LIBS=$pkg_cv_NSS_LIBS
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
	have_nss=yes
fi


fi


if test "x$enable_nss" != "xyes"; then

tor_openssl_pkg_redhat="openssl"
tor_openssl_pkg_debian="libssl-dev"
tor_openssl_devpkg_redhat="openssl-devel"
tor_openssl_devpkg_debian="libssl-dev"

ALT_openssl_WITHVAL=""

# Check whether --with-ssl-dir was given.
if test "${with_ssl_dir+set}" = set; then :
  withval=$with_ssl_dir;
      if test "x$withval" != "xno" && test "x$withval" != "x"; then
         ALT_openssl_WITHVAL="$withval"
      fi

fi


{ $as_echo "$as_me:${as_lineno-$LINENO}: Now, we'll look for OpenSSL >= 1.0.1" >&5
$as_echo "$as_me: Now, we'll look for OpenSSL >= 1.0.1" >&6;}

tryopenssldir=""

# Check whether --with-openssl-dir was given.
if test "${with_openssl_dir+set}" = set; then :
  withval=$with_openssl_dir;
     if test x$withval != xno ; then
        tryopenssldir="$withval"
     fi

fi

if test "x$tryopenssldir" = x && test "x$ALT_openssl_WITHVAL" != x ; then
  tryopenssldir="$ALT_openssl_WITHVAL"
fi

tor_saved_LIBS="$LIBS"
tor_saved_LDFLAGS="$LDFLAGS"
tor_saved_CPPFLAGS="$CPPFLAGS"
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for openssl directory" >&5
$as_echo_n "checking for openssl directory... " >&6; }
if ${tor_cv_library_openssl_dir+:} false; then :
  $as_echo_n "(cached) " >&6
else

  tor_openssl_dir_found=no
  tor_openssl_any_linkable=no

  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
    LDFLAGS="$tor_saved_LDFLAGS"
    LIBS="$tor_saved_LIBS -lssl -lcrypto $TOR_LIB_GDI $TOR_LIB_WS32"
    CPPFLAGS="$tor_saved_CPPFLAGS"

    if test -z "$tor_trydir" ; then
      continue;
    fi

    # Skip the directory if it isn't there.
    if test ! -d "$tor_trydir" && test "$tor_trydir" != "(system)"; then
      continue;
    fi

    # If this isn't blank, try adding the directory (or appropriate
    # include/libs subdirectories) to the command line.
    if test "$tor_trydir" != "(system)"; then

  if test -d "$tor_trydir/lib"; then
    LDFLAGS="-L$tor_trydir/lib $LDFLAGS"
  else
    LDFLAGS="-L$tor_trydir $LDFLAGS"
  fi
  if test -d "$tor_trydir/include"; then
    CPPFLAGS="-I$tor_trydir/include $CPPFLAGS"
  else
    CPPFLAGS="-I$tor_trydir $CPPFLAGS"
  fi

    fi

    # Can we link against (but not necessarily run, or find the headers for)
    # the binary?
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
struct ssl_cipher_st;
     unsigned SSL_CIPHER_get_id(const struct ssl_cipher_st *);
     char *getenv(const char *);
int
main ()
{
                        if (getenv("THIS_SHOULDNT_BE_SET_X201803")) SSL_CIPHER_get_id((void *)0);
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  linkable=yes
else
  linkable=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

    if test "$linkable" = yes; then
      tor_openssl_any_linkable=yes
      # Okay, we can link against it.  Can we find the headers?
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <openssl/ssl.h>
     char *getenv(const char *);
int
main ()
{
                        if (getenv("THIS_SHOULDNT_BE_SET_X201803")) SSL_CIPHER_get_id((void *)0);
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  buildable=yes
else
  buildable=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
      if test "$buildable" = yes; then
         tor_cv_library_openssl_dir=$tor_trydir
         tor_openssl_dir_found=yes
         break
      fi
    fi
  done

  if test "$tor_openssl_dir_found" = no; then
    if test "$tor_openssl_any_linkable" = no ; then
      { $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
$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;}

h=""
if test xpkg = xdevpkg; then
  h=" headers for"
fi
if test -f /etc/debian_version && test x"$tor_openssl_pkg_debian" != x; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: On Debian, you can install$h openssl using \"apt-get install $tor_openssl_pkg_debian\"" >&5
$as_echo "$as_me: WARNING: On Debian, you can install$h openssl using \"apt-get install $tor_openssl_pkg_debian\"" >&2;}
  if test x"$tor_openssl_pkg_debian" != x"$tor_openssl_devpkg_debian"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:    You will probably need $tor_openssl_devpkg_debian too." >&5
$as_echo "$as_me: WARNING:    You will probably need $tor_openssl_devpkg_debian too." >&2;}
  fi
fi
if test -f /etc/fedora-release && test x"$tor_openssl_pkg_redhat" != x; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: On Fedora, you can install$h openssl using \"dnf install $tor_openssl_pkg_redhat\"" >&5
$as_echo "$as_me: WARNING: On Fedora, you can install$h openssl using \"dnf install $tor_openssl_pkg_redhat\"" >&2;}
  if test x"$tor_openssl_pkg_redhat" != x"$tor_openssl_devpkg_redhat"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:    You will probably need to install $tor_openssl_devpkg_redhat too." >&5
$as_echo "$as_me: WARNING:    You will probably need to install $tor_openssl_devpkg_redhat too." >&2;}
  fi
else
  if test -f /etc/redhat-release && test x"$tor_openssl_pkg_redhat" != x; then
    { $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
$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;}
    if test x"$tor_openssl_pkg_redhat" != x"$tor_openssl_devpkg_redhat"; then
      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:    You will probably need to install $tor_openssl_devpkg_redhat too." >&5
$as_echo "$as_me: WARNING:    You will probably need to install $tor_openssl_devpkg_redhat too." >&2;}
    fi
  fi
fi

      as_fn_error $? "Missing libraries; unable to proceed." "$LINENO" 5
    else
      { $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
$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;}

h=""
if test xdevpkg = xdevpkg; then
  h=" headers for"
fi
if test -f /etc/debian_version && test x"$tor_openssl_devpkg_debian" != x; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: On Debian, you can install$h openssl using \"apt-get install $tor_openssl_devpkg_debian\"" >&5
$as_echo "$as_me: WARNING: On Debian, you can install$h openssl using \"apt-get install $tor_openssl_devpkg_debian\"" >&2;}
  if test x"$tor_openssl_devpkg_debian" != x"$tor_openssl_devpkg_debian"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:    You will probably need $tor_openssl_devpkg_debian too." >&5
$as_echo "$as_me: WARNING:    You will probably need $tor_openssl_devpkg_debian too." >&2;}
  fi
fi
if test -f /etc/fedora-release && test x"$tor_openssl_devpkg_redhat" != x; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: On Fedora, you can install$h openssl using \"dnf install $tor_openssl_devpkg_redhat\"" >&5
$as_echo "$as_me: WARNING: On Fedora, you can install$h openssl using \"dnf install $tor_openssl_devpkg_redhat\"" >&2;}
  if test x"$tor_openssl_devpkg_redhat" != x"$tor_openssl_devpkg_redhat"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:    You will probably need to install $tor_openssl_devpkg_redhat too." >&5
$as_echo "$as_me: WARNING:    You will probably need to install $tor_openssl_devpkg_redhat too." >&2;}
  fi
else
  if test -f /etc/redhat-release && test x"$tor_openssl_devpkg_redhat" != x; then
    { $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
$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;}
    if test x"$tor_openssl_devpkg_redhat" != x"$tor_openssl_devpkg_redhat"; then
      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:    You will probably need to install $tor_openssl_devpkg_redhat too." >&5
$as_echo "$as_me: WARNING:    You will probably need to install $tor_openssl_devpkg_redhat too." >&2;}
    fi
  fi
fi

      as_fn_error $? "Missing headers; unable to proceed." "$LINENO" 5
    fi
  fi

  LDFLAGS="$tor_saved_LDFLAGS"
  LIBS="$tor_saved_LIBS"
  CPPFLAGS="$tor_saved_CPPFLAGS"

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_library_openssl_dir" >&5
$as_echo "$tor_cv_library_openssl_dir" >&6; }
LIBS="$LIBS -lssl -lcrypto $TOR_LIB_GDI $TOR_LIB_WS32"
if test "$tor_cv_library_openssl_dir" != "(system)"; then

  if test -d "$tor_cv_library_openssl_dir/lib"; then
    LDFLAGS="-L$tor_cv_library_openssl_dir/lib $LDFLAGS"
  else
    LDFLAGS="-L$tor_cv_library_openssl_dir $LDFLAGS"
  fi
  if test -d "$tor_cv_library_openssl_dir/include"; then
    CPPFLAGS="-I$tor_cv_library_openssl_dir/include $CPPFLAGS"
  else
    CPPFLAGS="-I$tor_cv_library_openssl_dir $CPPFLAGS"
  fi

fi


  if test x$tor_cv_library_openssl_dir = "x(system)"; then
    TOR_LDFLAGS_openssl=""
    TOR_CPPFLAGS_openssl=""
  else
   if test -d "$tor_cv_library_openssl_dir/lib"; then
     TOR_LDFLAGS_openssl="-L$tor_cv_library_openssl_dir/lib"
     TOR_LIBDIR_openssl="$tor_cv_library_openssl_dir/lib"
   else
     TOR_LDFLAGS_openssl="-L$tor_cv_library_openssl_dir"
     TOR_LIBDIR_openssl="$tor_cv_library_openssl_dir"
   fi
   if test -d "$tor_cv_library_openssl_dir/include"; then
     TOR_CPPFLAGS_openssl="-I$tor_cv_library_openssl_dir/include"
   else
     TOR_CPPFLAGS_openssl="-I$tor_cv_library_openssl_dir"
   fi
  fi




if test "$cross_compiling" != yes; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need extra options to link openssl" >&5
$as_echo_n "checking whether we need extra options to link openssl... " >&6; }
if ${tor_cv_library_openssl_linker_option+:} false; then :
  $as_echo_n "(cached) " >&6
else

   orig_LDFLAGS="$LDFLAGS"
   runs=no
   linked_with=nothing
   if test -d "$tor_cv_library_openssl_dir/lib"; then
     tor_trydir="$tor_cv_library_openssl_dir/lib"
   else
     tor_trydir="$tor_cv_library_openssl_dir"
   fi
   for tor_tryextra in "(none)" "-Wl,-R$tor_trydir" "-R$tor_trydir" \
                       "-Wl,-rpath,$tor_trydir" ; do
     if test "$tor_tryextra" = "(none)"; then
       LDFLAGS="$orig_LDFLAGS"
     else
       LDFLAGS="$tor_tryextra $orig_LDFLAGS"
     fi
     if test "$cross_compiling" = yes; then :
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  runnable=yes
else
  runnable=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
struct ssl_cipher_st;
     unsigned SSL_CIPHER_get_id(const struct ssl_cipher_st *);
     char *getenv(const char *);
int
main ()
{
                        if (getenv("THIS_SHOULDNT_BE_SET_X201803")) SSL_CIPHER_get_id((void *)0);
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  runnable=yes
else
  runnable=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

     if test "$runnable" = yes; then
        tor_cv_library_openssl_linker_option=$tor_tryextra
        break
     fi
   done

   if test "$runnable" = no; then
     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
   fi
   LDFLAGS="$orig_LDFLAGS"

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_library_openssl_linker_option" >&5
$as_echo "$tor_cv_library_openssl_linker_option" >&6; }
  if test "$tor_cv_library_openssl_linker_option" != "(none)" ; then
    TOR_LDFLAGS_openssl="$TOR_LDFLAGS_openssl $tor_cv_library_openssl_linker_option"
  fi
fi # cross-compile

LIBS="$tor_saved_LIBS"
LDFLAGS="$tor_saved_LDFLAGS"
CPPFLAGS="$tor_saved_CPPFLAGS"




if test "$enable_static_openssl" = "yes"; then
   if test "$tor_cv_library_openssl_dir" = "(system)"; then
     as_fn_error $? "\"You must specify an explicit --with-openssl-dir=x option when using --enable-static-openssl\"" "$LINENO" 5
   else
     TOR_OPENSSL_LIBS="$TOR_LIBDIR_openssl/libssl.a $TOR_LIBDIR_openssl/libcrypto.a"
   fi
else
     TOR_OPENSSL_LIBS="-lssl -lcrypto"
fi


save_LIBS="$LIBS"
save_LDFLAGS="$LDFLAGS"
save_CPPFLAGS="$CPPFLAGS"
LIBS="$TOR_OPENSSL_LIBS $LIBS"
LDFLAGS="$TOR_LDFLAGS_openssl $LDFLAGS"
CPPFLAGS="$TOR_CPPFLAGS_openssl $CPPFLAGS"

cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include <openssl/opensslv.h>
#if !defined(LIBRESSL_VERSION_NUMBER) && OPENSSL_VERSION_NUMBER < 0x1000100fL
#error "too old"
#endif

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
   :
else
   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
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include <openssl/opensslv.h>
#include <openssl/evp.h>
#if defined(OPENSSL_NO_EC) || defined(OPENSSL_NO_ECDH) || defined(OPENSSL_NO_ECDSA)
#error "no ECC"
#endif
#if !defined(NID_X9_62_prime256v1) || !defined(NID_secp224r1)
#error "curves unavailable"
#endif

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
   :
else
   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
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

ac_fn_c_check_member "$LINENO" "struct ssl_method_st" "get_cipher_by_char" "ac_cv_member_struct_ssl_method_st_get_cipher_by_char" "#include <openssl/ssl.h>

"
if test "x$ac_cv_member_struct_ssl_method_st_get_cipher_by_char" = xyes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_STRUCT_SSL_METHOD_ST_GET_CIPHER_BY_CHAR 1
_ACEOF


fi


for ac_func in  \
		ERR_load_KDF_strings \
		EVP_PBE_scrypt \
		EVP_sha3_256 \
		SSL_CIPHER_find \
		SSL_CTX_set1_groups_list \
		SSL_CTX_set_security_level \
		SSL_SESSION_get_master_key \
		SSL_get_client_ciphers \
		SSL_get_client_random \
		SSL_get_server_random \
		TLS_method \

do :
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF

fi
done


ac_fn_c_check_member "$LINENO" "SSL" "state" "ac_cv_member_SSL_state" "#include <openssl/ssl.h>

"
if test "x$ac_cv_member_SSL_state" = xyes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_SSL_STATE 1
_ACEOF


fi


# The cast to long int works around a bug in the HP C Compiler
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
# This bug is HP SR number 8606223364.
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of SHA_CTX" >&5
$as_echo_n "checking size of SHA_CTX... " >&6; }
if ${ac_cv_sizeof_SHA_CTX+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (SHA_CTX))" "ac_cv_sizeof_SHA_CTX"        "$ac_includes_default
#include <openssl/sha.h>

"; then :

else
  if test "$ac_cv_type_SHA_CTX" = yes; then
     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error 77 "cannot compute sizeof (SHA_CTX)
See \`config.log' for more details" "$LINENO" 5; }
   else
     ac_cv_sizeof_SHA_CTX=0
   fi
fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_SHA_CTX" >&5
$as_echo "$ac_cv_sizeof_SHA_CTX" >&6; }



cat >>confdefs.h <<_ACEOF
#define SIZEOF_SHA_CTX $ac_cv_sizeof_SHA_CTX
_ACEOF



fi # enable_nss



 if true; then
  BUILD_KECCAK_TINY_TRUE=
  BUILD_KECCAK_TINY_FALSE='#'
else
  BUILD_KECCAK_TINY_TRUE='#'
  BUILD_KECCAK_TINY_FALSE=
fi





    ac_fn_c_check_member "$LINENO" "struct tcp_info" "tcpi_unacked" "ac_cv_member_struct_tcp_info_tcpi_unacked" "#include <netinet/tcp.h>
"
if test "x$ac_cv_member_struct_tcp_info_tcpi_unacked" = xyes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_STRUCT_TCP_INFO_TCPI_UNACKED 1
_ACEOF


fi
ac_fn_c_check_member "$LINENO" "struct tcp_info" "tcpi_snd_mss" "ac_cv_member_struct_tcp_info_tcpi_snd_mss" "#include <netinet/tcp.h>
"
if test "x$ac_cv_member_struct_tcp_info_tcpi_snd_mss" = xyes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_STRUCT_TCP_INFO_TCPI_SND_MSS 1
_ACEOF


fi

    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

                     #include <linux/sockios.h>
                     #ifndef SIOCOUTQNSD
                     #error
                     #endif

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  have_siocoutqnsd=yes
else
  have_siocoutqnsd=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  if test "x$have_siocoutqnsd" = "xyes"; then
    if test "x$ac_cv_member_struct_tcp_info_tcpi_unacked" = "xyes"; then
      if test "x$ac_cv_member_struct_tcp_info_tcpi_snd_mss" = "xyes"; then
        have_kist_support=yes
      fi
    fi
  fi

if test "x$have_kist_support" = "xyes"; then :

$as_echo "#define HAVE_KIST_SUPPORT 1" >>confdefs.h

else
  { $as_echo "$as_me:${as_lineno-$LINENO}: KIST scheduler can't be used. Missing support." >&5
$as_echo "$as_me: KIST scheduler can't be used. Missing support." >&6;}
fi

LIBS="$save_LIBS"
LDFLAGS="$save_LDFLAGS"
CPPFLAGS="$save_CPPFLAGS"


tor_zlib_pkg_redhat="zlib"
tor_zlib_pkg_debian="zlib1g"
tor_zlib_devpkg_redhat="zlib-devel"
tor_zlib_devpkg_debian="zlib1g-dev"


tryzlibdir=""

# Check whether --with-zlib-dir was given.
if test "${with_zlib_dir+set}" = set; then :
  withval=$with_zlib_dir;
     if test x$withval != xno ; then
        tryzlibdir="$withval"
     fi

fi

if test "x$tryzlibdir" = x && test "x$ALT_zlib_WITHVAL" != x ; then
  tryzlibdir="$ALT_zlib_WITHVAL"
fi

tor_saved_LIBS="$LIBS"
tor_saved_LDFLAGS="$LDFLAGS"
tor_saved_CPPFLAGS="$CPPFLAGS"
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for zlib directory" >&5
$as_echo_n "checking for zlib directory... " >&6; }
if ${tor_cv_library_zlib_dir+:} false; then :
  $as_echo_n "(cached) " >&6
else

  tor_zlib_dir_found=no
  tor_zlib_any_linkable=no

  for tor_trydir in "$tryzlibdir" "(system)" "$prefix" /usr/local /usr/pkg /opt/zlib; do
    LDFLAGS="$tor_saved_LDFLAGS"
    LIBS="$tor_saved_LIBS -lz"
    CPPFLAGS="$tor_saved_CPPFLAGS"

    if test -z "$tor_trydir" ; then
      continue;
    fi

    # Skip the directory if it isn't there.
    if test ! -d "$tor_trydir" && test "$tor_trydir" != "(system)"; then
      continue;
    fi

    # If this isn't blank, try adding the directory (or appropriate
    # include/libs subdirectories) to the command line.
    if test "$tor_trydir" != "(system)"; then

  if test -d "$tor_trydir/lib"; then
    LDFLAGS="-L$tor_trydir/lib $LDFLAGS"
  else
    LDFLAGS="-L$tor_trydir $LDFLAGS"
  fi
  if test -d "$tor_trydir/include"; then
    CPPFLAGS="-I$tor_trydir/include $CPPFLAGS"
  else
    CPPFLAGS="-I$tor_trydir $CPPFLAGS"
  fi

    fi

    # Can we link against (but not necessarily run, or find the headers for)
    # the binary?
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
const char * zlibVersion(void);
int
main ()
{
zlibVersion();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  linkable=yes
else
  linkable=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

    if test "$linkable" = yes; then
      tor_zlib_any_linkable=yes
      # Okay, we can link against it.  Can we find the headers?
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <zlib.h>
int
main ()
{
zlibVersion();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  buildable=yes
else
  buildable=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
      if test "$buildable" = yes; then
         tor_cv_library_zlib_dir=$tor_trydir
         tor_zlib_dir_found=yes
         break
      fi
    fi
  done

  if test "$tor_zlib_dir_found" = no; then
    if test "$tor_zlib_any_linkable" = no ; then
      { $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
$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;}

h=""
if test xpkg = xdevpkg; then
  h=" headers for"
fi
if test -f /etc/debian_version && test x"$tor_zlib_pkg_debian" != x; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: On Debian, you can install$h zlib using \"apt-get install $tor_zlib_pkg_debian\"" >&5
$as_echo "$as_me: WARNING: On Debian, you can install$h zlib using \"apt-get install $tor_zlib_pkg_debian\"" >&2;}
  if test x"$tor_zlib_pkg_debian" != x"$tor_zlib_devpkg_debian"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:    You will probably need $tor_zlib_devpkg_debian too." >&5
$as_echo "$as_me: WARNING:    You will probably need $tor_zlib_devpkg_debian too." >&2;}
  fi
fi
if test -f /etc/fedora-release && test x"$tor_zlib_pkg_redhat" != x; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: On Fedora, you can install$h zlib using \"dnf install $tor_zlib_pkg_redhat\"" >&5
$as_echo "$as_me: WARNING: On Fedora, you can install$h zlib using \"dnf install $tor_zlib_pkg_redhat\"" >&2;}
  if test x"$tor_zlib_pkg_redhat" != x"$tor_zlib_devpkg_redhat"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:    You will probably need to install $tor_zlib_devpkg_redhat too." >&5
$as_echo "$as_me: WARNING:    You will probably need to install $tor_zlib_devpkg_redhat too." >&2;}
  fi
else
  if test -f /etc/redhat-release && test x"$tor_zlib_pkg_redhat" != x; then
    { $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
$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;}
    if test x"$tor_zlib_pkg_redhat" != x"$tor_zlib_devpkg_redhat"; then
      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:    You will probably need to install $tor_zlib_devpkg_redhat too." >&5
$as_echo "$as_me: WARNING:    You will probably need to install $tor_zlib_devpkg_redhat too." >&2;}
    fi
  fi
fi

      as_fn_error $? "Missing libraries; unable to proceed." "$LINENO" 5
    else
      { $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
$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;}

h=""
if test xdevpkg = xdevpkg; then
  h=" headers for"
fi
if test -f /etc/debian_version && test x"$tor_zlib_devpkg_debian" != x; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: On Debian, you can install$h zlib using \"apt-get install $tor_zlib_devpkg_debian\"" >&5
$as_echo "$as_me: WARNING: On Debian, you can install$h zlib using \"apt-get install $tor_zlib_devpkg_debian\"" >&2;}
  if test x"$tor_zlib_devpkg_debian" != x"$tor_zlib_devpkg_debian"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:    You will probably need $tor_zlib_devpkg_debian too." >&5
$as_echo "$as_me: WARNING:    You will probably need $tor_zlib_devpkg_debian too." >&2;}
  fi
fi
if test -f /etc/fedora-release && test x"$tor_zlib_devpkg_redhat" != x; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: On Fedora, you can install$h zlib using \"dnf install $tor_zlib_devpkg_redhat\"" >&5
$as_echo "$as_me: WARNING: On Fedora, you can install$h zlib using \"dnf install $tor_zlib_devpkg_redhat\"" >&2;}
  if test x"$tor_zlib_devpkg_redhat" != x"$tor_zlib_devpkg_redhat"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:    You will probably need to install $tor_zlib_devpkg_redhat too." >&5
$as_echo "$as_me: WARNING:    You will probably need to install $tor_zlib_devpkg_redhat too." >&2;}
  fi
else
  if test -f /etc/redhat-release && test x"$tor_zlib_devpkg_redhat" != x; then
    { $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
$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;}
    if test x"$tor_zlib_devpkg_redhat" != x"$tor_zlib_devpkg_redhat"; then
      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:    You will probably need to install $tor_zlib_devpkg_redhat too." >&5
$as_echo "$as_me: WARNING:    You will probably need to install $tor_zlib_devpkg_redhat too." >&2;}
    fi
  fi
fi

      as_fn_error $? "Missing headers; unable to proceed." "$LINENO" 5
    fi
  fi

  LDFLAGS="$tor_saved_LDFLAGS"
  LIBS="$tor_saved_LIBS"
  CPPFLAGS="$tor_saved_CPPFLAGS"

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_library_zlib_dir" >&5
$as_echo "$tor_cv_library_zlib_dir" >&6; }
LIBS="$LIBS -lz"
if test "$tor_cv_library_zlib_dir" != "(system)"; then

  if test -d "$tor_cv_library_zlib_dir/lib"; then
    LDFLAGS="-L$tor_cv_library_zlib_dir/lib $LDFLAGS"
  else
    LDFLAGS="-L$tor_cv_library_zlib_dir $LDFLAGS"
  fi
  if test -d "$tor_cv_library_zlib_dir/include"; then
    CPPFLAGS="-I$tor_cv_library_zlib_dir/include $CPPFLAGS"
  else
    CPPFLAGS="-I$tor_cv_library_zlib_dir $CPPFLAGS"
  fi

fi


  if test x$tor_cv_library_zlib_dir = "x(system)"; then
    TOR_LDFLAGS_zlib=""
    TOR_CPPFLAGS_zlib=""
  else
   if test -d "$tor_cv_library_zlib_dir/lib"; then
     TOR_LDFLAGS_zlib="-L$tor_cv_library_zlib_dir/lib"
     TOR_LIBDIR_zlib="$tor_cv_library_zlib_dir/lib"
   else
     TOR_LDFLAGS_zlib="-L$tor_cv_library_zlib_dir"
     TOR_LIBDIR_zlib="$tor_cv_library_zlib_dir"
   fi
   if test -d "$tor_cv_library_zlib_dir/include"; then
     TOR_CPPFLAGS_zlib="-I$tor_cv_library_zlib_dir/include"
   else
     TOR_CPPFLAGS_zlib="-I$tor_cv_library_zlib_dir"
   fi
  fi




if test "$cross_compiling" != yes; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need extra options to link zlib" >&5
$as_echo_n "checking whether we need extra options to link zlib... " >&6; }
if ${tor_cv_library_zlib_linker_option+:} false; then :
  $as_echo_n "(cached) " >&6
else

   orig_LDFLAGS="$LDFLAGS"
   runs=no
   linked_with=nothing
   if test -d "$tor_cv_library_zlib_dir/lib"; then
     tor_trydir="$tor_cv_library_zlib_dir/lib"
   else
     tor_trydir="$tor_cv_library_zlib_dir"
   fi
   for tor_tryextra in "(none)" "-Wl,-R$tor_trydir" "-R$tor_trydir" \
                       "-Wl,-rpath,$tor_trydir" ; do
     if test "$tor_tryextra" = "(none)"; then
       LDFLAGS="$orig_LDFLAGS"
     else
       LDFLAGS="$tor_tryextra $orig_LDFLAGS"
     fi
     if test "$cross_compiling" = yes; then :
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  runnable=yes
else
  runnable=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
const char * zlibVersion(void);
int
main ()
{
zlibVersion();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  runnable=yes
else
  runnable=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

     if test "$runnable" = yes; then
        tor_cv_library_zlib_linker_option=$tor_tryextra
        break
     fi
   done

   if test "$runnable" = no; then
     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
   fi
   LDFLAGS="$orig_LDFLAGS"

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_library_zlib_linker_option" >&5
$as_echo "$tor_cv_library_zlib_linker_option" >&6; }
  if test "$tor_cv_library_zlib_linker_option" != "(none)" ; then
    TOR_LDFLAGS_zlib="$TOR_LDFLAGS_zlib $tor_cv_library_zlib_linker_option"
  fi
fi # cross-compile

LIBS="$tor_saved_LIBS"
LDFLAGS="$tor_saved_LDFLAGS"
CPPFLAGS="$tor_saved_CPPFLAGS"



if test "$enable_static_zlib" = "yes"; then
   if test "$tor_cv_library_zlib_dir" = "(system)"; then
     as_fn_error $? "\"You must specify an explicit --with-zlib-dir=x option when
 using --enable-static-zlib\"" "$LINENO" 5
   else
     TOR_ZLIB_LIBS="$TOR_LIBDIR_zlib/libz.a"
   fi
else
     TOR_ZLIB_LIBS="-lz"
fi



# Check whether --enable-lzma was given.
if test "${enable_lzma+set}" = set; then :
  enableval=$enable_lzma; case "${enableval}" in
        "yes") ;;
        "no")  ;;
        * ) as_fn_error $? "bad value for --enable-lzma" "$LINENO" 5 ;;
      esac
else
  enable_lzma=auto
fi


if test "x$enable_lzma" = "xno"; then
    have_lzma=no;
else

pkg_failed=no
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LZMA" >&5
$as_echo_n "checking for LZMA... " >&6; }

if test -n "$LZMA_CFLAGS"; then
    pkg_cv_LZMA_CFLAGS="$LZMA_CFLAGS"
 elif test -n "$PKG_CONFIG"; then
    if test -n "$PKG_CONFIG" && \
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"liblzma\""; } >&5
  ($PKG_CONFIG --exists --print-errors "liblzma") 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }; then
  pkg_cv_LZMA_CFLAGS=`$PKG_CONFIG --cflags "liblzma" 2>/dev/null`
		      test "x$?" != "x0" && pkg_failed=yes
else
  pkg_failed=yes
fi
 else
    pkg_failed=untried
fi
if test -n "$LZMA_LIBS"; then
    pkg_cv_LZMA_LIBS="$LZMA_LIBS"
 elif test -n "$PKG_CONFIG"; then
    if test -n "$PKG_CONFIG" && \
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"liblzma\""; } >&5
  ($PKG_CONFIG --exists --print-errors "liblzma") 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }; then
  pkg_cv_LZMA_LIBS=`$PKG_CONFIG --libs "liblzma" 2>/dev/null`
		      test "x$?" != "x0" && pkg_failed=yes
else
  pkg_failed=yes
fi
 else
    pkg_failed=untried
fi



if test $pkg_failed = yes; then
   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
        _pkg_short_errors_supported=yes
else
        _pkg_short_errors_supported=no
fi
        if test $_pkg_short_errors_supported = yes; then
	        LZMA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "liblzma" 2>&1`
        else
	        LZMA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "liblzma" 2>&1`
        fi
	# Put the nasty error message in config.log where it belongs
	echo "$LZMA_PKG_ERRORS" >&5

	have_lzma=no
elif test $pkg_failed = untried; then
     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
	have_lzma=no
else
	LZMA_CFLAGS=$pkg_cv_LZMA_CFLAGS
	LZMA_LIBS=$pkg_cv_LZMA_LIBS
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
	have_lzma=yes
fi

    if test "x$have_lzma" = "xno" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to find liblzma, $pkg_config_user_action, or set LZMA_CFLAGS and LZMA_LIBS." >&5
$as_echo "$as_me: WARNING: Unable to find liblzma, $pkg_config_user_action, or set LZMA_CFLAGS and LZMA_LIBS." >&2;}
    fi
fi

if test "x$have_lzma" = "xyes"; then

$as_echo "#define HAVE_LZMA 1" >>confdefs.h

    TOR_LZMA_CFLAGS="${LZMA_CFLAGS}"
    TOR_LZMA_LIBS="${LZMA_LIBS}"
fi




# Check whether --enable-zstd was given.
if test "${enable_zstd+set}" = set; then :
  enableval=$enable_zstd; case "${enableval}" in
        "yes") ;;
        "no")  ;;
        * ) as_fn_error $? "bad value for --enable-zstd" "$LINENO" 5 ;;
      esac
else
  enable_zstd=auto
fi


if test "x$enable_zstd" = "xno"; then
    have_zstd=no;
else

pkg_failed=no
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZSTD" >&5
$as_echo_n "checking for ZSTD... " >&6; }

if test -n "$ZSTD_CFLAGS"; then
    pkg_cv_ZSTD_CFLAGS="$ZSTD_CFLAGS"
 elif test -n "$PKG_CONFIG"; then
    if test -n "$PKG_CONFIG" && \
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libzstd >= 1.1\""; } >&5
  ($PKG_CONFIG --exists --print-errors "libzstd >= 1.1") 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }; then
  pkg_cv_ZSTD_CFLAGS=`$PKG_CONFIG --cflags "libzstd >= 1.1" 2>/dev/null`
		      test "x$?" != "x0" && pkg_failed=yes
else
  pkg_failed=yes
fi
 else
    pkg_failed=untried
fi
if test -n "$ZSTD_LIBS"; then
    pkg_cv_ZSTD_LIBS="$ZSTD_LIBS"
 elif test -n "$PKG_CONFIG"; then
    if test -n "$PKG_CONFIG" && \
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libzstd >= 1.1\""; } >&5
  ($PKG_CONFIG --exists --print-errors "libzstd >= 1.1") 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }; then
  pkg_cv_ZSTD_LIBS=`$PKG_CONFIG --libs "libzstd >= 1.1" 2>/dev/null`
		      test "x$?" != "x0" && pkg_failed=yes
else
  pkg_failed=yes
fi
 else
    pkg_failed=untried
fi



if test $pkg_failed = yes; then
   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
        _pkg_short_errors_supported=yes
else
        _pkg_short_errors_supported=no
fi
        if test $_pkg_short_errors_supported = yes; then
	        ZSTD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libzstd >= 1.1" 2>&1`
        else
	        ZSTD_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libzstd >= 1.1" 2>&1`
        fi
	# Put the nasty error message in config.log where it belongs
	echo "$ZSTD_PKG_ERRORS" >&5

	have_zstd=no
elif test $pkg_failed = untried; then
     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
	have_zstd=no
else
	ZSTD_CFLAGS=$pkg_cv_ZSTD_CFLAGS
	ZSTD_LIBS=$pkg_cv_ZSTD_LIBS
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
	have_zstd=yes
fi

    if test "x$have_zstd" = "xno" ; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to find libzstd, $pkg_config_user_action, or set ZSTD_CFLAGS and ZSTD_LIBS." >&5
$as_echo "$as_me: WARNING: Unable to find libzstd, $pkg_config_user_action, or set ZSTD_CFLAGS and ZSTD_LIBS." >&2;}
    fi
fi

if test "x$have_zstd" = "xyes"; then

$as_echo "#define HAVE_ZSTD 1" >>confdefs.h

    TOR_ZSTD_CFLAGS="${ZSTD_CFLAGS}"
    TOR_ZSTD_LIBS="${ZSTD_LIBS}"

        save_LIBS="$LIBS"
    save_CFLAGS="$CFLAGS"
    LIBS="$LIBS $ZSTD_LIBS"
    CFLAGS="$CFLAGS $ZSTD_CFLAGS"
    for ac_func in ZSTD_estimateCStreamSize \
                   ZSTD_estimateDCtxSize
do :
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF

fi
done

    LIBS="$save_LIBS"
    CFLAGS="$save_CFLAGS"
fi




tor_cap_pkg_debian="libcap2"
tor_cap_pkg_redhat="libcap"
tor_cap_devpkg_debian="libcap-dev"
tor_cap_devpkg_redhat="libcap-devel"

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for cap_init in -lcap" >&5
$as_echo_n "checking for cap_init in -lcap... " >&6; }
if ${ac_cv_lib_cap_cap_init+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lcap  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char cap_init ();
int
main ()
{
return cap_init ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_cap_cap_init=yes
else
  ac_cv_lib_cap_cap_init=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cap_cap_init" >&5
$as_echo "$ac_cv_lib_cap_cap_init" >&6; }
if test "x$ac_cv_lib_cap_cap_init" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_LIBCAP 1
_ACEOF

  LIBS="-lcap $LIBS"

else
  { $as_echo "$as_me:${as_lineno-$LINENO}: Libcap was not found. Capabilities will not be usable." >&5
$as_echo "$as_me: Libcap was not found. Capabilities will not be usable." >&6;}

fi

for ac_func in cap_set_proc
do :
  ac_fn_c_check_func "$LINENO" "cap_set_proc" "ac_cv_func_cap_set_proc"
if test "x$ac_cv_func_cap_set_proc" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_CAP_SET_PROC 1
_ACEOF

fi
done



all_ldflags_for_check="$TOR_LDFLAGS_zlib $TOR_LDFLAGS_openssl $TOR_LDFLAGS_libevent"
all_libs_for_check="$TOR_ZLIB_LIBS $TOR_LIB_MATH $TOR_LIBEVENT_LIBS $TOR_OPENSSL_LIBS $TOR_SYSTEMD_LIBS $TOR_LIB_WS32 $TOR_LIB_GDI $TOR_LIB_USERENV $TOR_CAP_LIBS"

CFLAGS_FTRAPV=
CFLAGS_FWRAPV=
CFLAGS_ASAN=
CFLAGS_UBSAN=


cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

#if !defined(__clang__)
#error
#endif
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  have_clang=yes
else
  have_clang=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

if test "x$enable_pic" = "xyes"; then



  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -fPIC" >&5
$as_echo_n "checking whether the compiler accepts -fPIC... " >&6; }
if ${tor_cv_cflags__fPIC+:} false; then :
  $as_echo_n "(cached) " >&6
else

    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -fPIC"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  tor_cv_cflags__fPIC=yes
else
  tor_cv_cflags__fPIC=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    if test x != x; then

      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  tor_can_link__fPIC=yes
else
  tor_can_link__fPIC=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__fPIC" >&5
$as_echo "$tor_cv_cflags__fPIC" >&6; }
  if test x$tor_cv_cflags__fPIC = xyes; then
     CFLAGS="$CFLAGS -fPIC"
  else
     true
  fi



fi

if test "x$enable_gcc_hardening" != "xno"; then
    CFLAGS="$CFLAGS -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2"
    if test "x$have_clang" = "xyes"; then



  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Qunused-arguments" >&5
$as_echo_n "checking whether the compiler accepts -Qunused-arguments... " >&6; }
if ${tor_cv_cflags__Qunused_arguments+:} false; then :
  $as_echo_n "(cached) " >&6
else

    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Qunused-arguments"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  tor_cv_cflags__Qunused_arguments=yes
else
  tor_cv_cflags__Qunused_arguments=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    if test x != x; then

      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  tor_can_link__Qunused_arguments=yes
else
  tor_can_link__Qunused_arguments=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Qunused_arguments" >&5
$as_echo "$tor_cv_cflags__Qunused_arguments" >&6; }
  if test x$tor_cv_cflags__Qunused_arguments = xyes; then
     CFLAGS="$CFLAGS -Qunused-arguments"
  else
     true
  fi



    fi



  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -fstack-protector-all" >&5
$as_echo_n "checking whether the compiler accepts -fstack-protector-all... " >&6; }
if ${tor_cv_cflags__fstack_protector_all+:} false; then :
  $as_echo_n "(cached) " >&6
else

    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -fstack-protector-all"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  tor_cv_cflags__fstack_protector_all=yes
else
  tor_cv_cflags__fstack_protector_all=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    if test xalso_link != x; then

      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  tor_can_link__fstack_protector_all=yes
else
  tor_can_link__fstack_protector_all=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__fstack_protector_all" >&5
$as_echo "$tor_cv_cflags__fstack_protector_all" >&6; }
  if test x$tor_cv_cflags__fstack_protector_all = xyes; then
     CFLAGS="$CFLAGS -fstack-protector-all"
  else
     true
  fi






    if test "x$tor_cv_cflags__fstack_protector_all" = xyes; then :
  if test "x$tor_can_link__fstack_protector_all" = xyes; then :

else
  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
fi

fi





  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wstack-protector" >&5
$as_echo_n "checking whether the compiler accepts -Wstack-protector... " >&6; }
if ${tor_cv_cflags__Wstack_protector+:} false; then :
  $as_echo_n "(cached) " >&6
else

    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Wstack-protector"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  tor_cv_cflags__Wstack_protector=yes
else
  tor_cv_cflags__Wstack_protector=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    if test x != x; then

      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  tor_can_link__Wstack_protector=yes
else
  tor_can_link__Wstack_protector=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wstack_protector" >&5
$as_echo "$tor_cv_cflags__Wstack_protector" >&6; }
  if test x$tor_cv_cflags__Wstack_protector = xyes; then
     CFLAGS="$CFLAGS -Wstack-protector"
  else
     true
  fi






  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts --param ssp-buffer-size=1" >&5
$as_echo_n "checking whether the compiler accepts --param ssp-buffer-size=1... " >&6; }
if ${tor_cv_cflags___param_ssp_buffer_size_1+:} false; then :
  $as_echo_n "(cached) " >&6
else

    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror --param ssp-buffer-size=1"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  tor_cv_cflags___param_ssp_buffer_size_1=yes
else
  tor_cv_cflags___param_ssp_buffer_size_1=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    if test x != x; then

      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  tor_can_link___param_ssp_buffer_size_1=yes
else
  tor_can_link___param_ssp_buffer_size_1=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags___param_ssp_buffer_size_1" >&5
$as_echo "$tor_cv_cflags___param_ssp_buffer_size_1" >&6; }
  if test x$tor_cv_cflags___param_ssp_buffer_size_1 = xyes; then
     CFLAGS="$CFLAGS --param ssp-buffer-size=1"
  else
     true
  fi



    if test "$bwin32" = "false" && test "$enable_libfuzzer" != "yes" && test "$enable_oss_fuzz" != "yes"; then
       if test "$enable_pic" != "yes"; then
           # If we have already enabled -fPIC, then we don't also need to
           # compile with -fPIE...



  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -fPIE" >&5
$as_echo_n "checking whether the compiler accepts -fPIE... " >&6; }
if ${tor_cv_cflags__fPIE+:} false; then :
  $as_echo_n "(cached) " >&6
else

    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -fPIE"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  tor_cv_cflags__fPIE=yes
else
  tor_cv_cflags__fPIE=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    if test x != x; then

      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  tor_can_link__fPIE=yes
else
  tor_can_link__fPIE=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__fPIE" >&5
$as_echo "$tor_cv_cflags__fPIE" >&6; }
  if test x$tor_cv_cflags__fPIE = xyes; then
     CFLAGS="$CFLAGS -fPIE"
  else
     true
  fi



       fi
       # ... but we want to link our executables with -pie in any case, since
       # they're executables, not a library.


  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -pie" >&5
$as_echo_n "checking whether the linker accepts -pie... " >&6; }
if ${tor_cv_ldflags__pie+:} false; then :
  $as_echo_n "(cached) " >&6
else

    tor_saved_CFLAGS="$CFLAGS"
    tor_saved_LDFLAGS="$LDFLAGS"
    tor_saved_LIBS="$LIBS"
    CFLAGS="$CFLAGS -pedantic -Werror"
    LDFLAGS="$LDFLAGS "$all_ldflags_for_check" -pie"
    LIBS="$LIBS "$all_libs_for_check""
    if test "$cross_compiling" = yes; then :
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  tor_cv_ldflags__pie=yes
else
  tor_cv_ldflags__pie=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <stdio.h>
int
main ()
{
fputs("", stdout)
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  tor_cv_ldflags__pie=yes
else
  tor_cv_ldflags__pie=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

    CFLAGS="$tor_saved_CFLAGS"
    LDFLAGS="$tor_saved_LDFLAGS"
    LIBS="$tor_saved_LIBS"

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_ldflags__pie" >&5
$as_echo "$tor_cv_ldflags__pie" >&6; }
  if test x$tor_cv_ldflags__pie = xyes; then
    LDFLAGS="$LDFLAGS -pie"
  fi


    fi


  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -fwrapv" >&5
$as_echo_n "checking whether the compiler accepts -fwrapv... " >&6; }
if ${tor_cv_cflags__fwrapv+:} false; then :
  $as_echo_n "(cached) " >&6
else

    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -fwrapv"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  tor_cv_cflags__fwrapv=yes
else
  tor_cv_cflags__fwrapv=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    if test xalso_link != x; then

      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  tor_can_link__fwrapv=yes
else
  tor_can_link__fwrapv=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__fwrapv" >&5
$as_echo "$tor_cv_cflags__fwrapv" >&6; }
  if test x$tor_cv_cflags__fwrapv = xyes; then
     CFLAGS_FWRAPV="-fwrapv"
  else
     true
  fi



   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can run hardened binaries" >&5
$as_echo_n "checking whether we can run hardened binaries... " >&6; }
   if test "$cross_compiling" = yes; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: cross" >&5
$as_echo "cross" >&6; }
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{
return 0;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
         as_fn_error $? " We can link with compiler hardening options, but we can't run with them.
 That's a bad sign! If you must, you can pass --disable-gcc-hardening to
 configure, but it would be better to figure out what the underlying problem
 is." "$LINENO" 5
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

fi

if test "$fragile_hardening" = "yes"; then


  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -ftrapv" >&5
$as_echo_n "checking whether the compiler accepts -ftrapv... " >&6; }
if ${tor_cv_cflags__ftrapv+:} false; then :
  $as_echo_n "(cached) " >&6
else

    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -ftrapv"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  tor_cv_cflags__ftrapv=yes
else
  tor_cv_cflags__ftrapv=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    if test xalso_link != x; then

      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  tor_can_link__ftrapv=yes
else
  tor_can_link__ftrapv=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__ftrapv" >&5
$as_echo "$tor_cv_cflags__ftrapv" >&6; }
  if test x$tor_cv_cflags__ftrapv = xyes; then
     CFLAGS_FTRAPV="-ftrapv"
  else
     true
  fi


   if test "$tor_cv_cflags__ftrapv" = "yes" && test "$tor_can_link__ftrapv" != "yes"; then
      { $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
$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;}
   fi

   if test "$tor_cv_cflags__ftrapv" != "yes"; then
     as_fn_error $? "You requested fragile hardening, but the compiler does not seem to support -ftrapv." "$LINENO" 5
   fi



  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -fsanitize=address" >&5
$as_echo_n "checking whether the compiler accepts -fsanitize=address... " >&6; }
if ${tor_cv_cflags__fsanitize_address+:} false; then :
  $as_echo_n "(cached) " >&6
else

    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -fsanitize=address"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  tor_cv_cflags__fsanitize_address=yes
else
  tor_cv_cflags__fsanitize_address=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    if test xalso_link != x; then

      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  tor_can_link__fsanitize_address=yes
else
  tor_can_link__fsanitize_address=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__fsanitize_address" >&5
$as_echo "$tor_cv_cflags__fsanitize_address" >&6; }
  if test x$tor_cv_cflags__fsanitize_address = xyes; then
     CFLAGS_ASAN="-fsanitize=address"
  else
     true
  fi


    if test "$tor_cv_cflags__fsanitize_address" = "yes" && test "$tor_can_link__fsanitize_address" != "yes"; then
      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
    fi



  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -fsanitize=undefined" >&5
$as_echo_n "checking whether the compiler accepts -fsanitize=undefined... " >&6; }
if ${tor_cv_cflags__fsanitize_undefined+:} false; then :
  $as_echo_n "(cached) " >&6
else

    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -fsanitize=undefined"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  tor_cv_cflags__fsanitize_undefined=yes
else
  tor_cv_cflags__fsanitize_undefined=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    if test xalso_link != x; then

      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  tor_can_link__fsanitize_undefined=yes
else
  tor_can_link__fsanitize_undefined=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__fsanitize_undefined" >&5
$as_echo "$tor_cv_cflags__fsanitize_undefined" >&6; }
  if test x$tor_cv_cflags__fsanitize_undefined = xyes; then
     CFLAGS_UBSAN="-fsanitize=undefined"
  else
     true
  fi


    if test "$tor_cv_cflags__fsanitize_address" = "yes" && test "$tor_can_link__fsanitize_address" != "yes"; then
      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
    fi



  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -fno-sanitize=float-divide-by-zero" >&5
$as_echo_n "checking whether the compiler accepts -fno-sanitize=float-divide-by-zero... " >&6; }
if ${tor_cv_cflags__fno_sanitize_float_divide_by_zero+:} false; then :
  $as_echo_n "(cached) " >&6
else

    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -fno-sanitize=float-divide-by-zero"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  tor_cv_cflags__fno_sanitize_float_divide_by_zero=yes
else
  tor_cv_cflags__fno_sanitize_float_divide_by_zero=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    if test xalso_link != x; then

      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  tor_can_link__fno_sanitize_float_divide_by_zero=yes
else
  tor_can_link__fno_sanitize_float_divide_by_zero=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__fno_sanitize_float_divide_by_zero" >&5
$as_echo "$tor_cv_cflags__fno_sanitize_float_divide_by_zero" >&6; }
  if test x$tor_cv_cflags__fno_sanitize_float_divide_by_zero = xyes; then
     CFLAGS_UBSAN="-fno-sanitize=float-divide-by-zero"
  else
     true
  fi


    if test "$tor_cv_cflags__fno_sanitize_float_divide_by_zero" = "yes" && test "$tor_can_link__fno_sanitize_float_divide_by_zero" != "yes"; then
      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
    fi




  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -fno-omit-frame-pointer" >&5
$as_echo_n "checking whether the compiler accepts -fno-omit-frame-pointer... " >&6; }
if ${tor_cv_cflags__fno_omit_frame_pointer+:} false; then :
  $as_echo_n "(cached) " >&6
else

    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -fno-omit-frame-pointer"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  tor_cv_cflags__fno_omit_frame_pointer=yes
else
  tor_cv_cflags__fno_omit_frame_pointer=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    if test x != x; then

      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  tor_can_link__fno_omit_frame_pointer=yes
else
  tor_can_link__fno_omit_frame_pointer=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__fno_omit_frame_pointer" >&5
$as_echo "$tor_cv_cflags__fno_omit_frame_pointer" >&6; }
  if test x$tor_cv_cflags__fno_omit_frame_pointer = xyes; then
     CFLAGS="$CFLAGS -fno-omit-frame-pointer"
  else
     true
  fi



fi

RUST_LINKER_OPTIONS=""
if test "x$have_clang" = "xyes"; then
	if test "x$CFLAGS_ASAN" != "x"; then
		RUST_LINKER_OPTIONS="$RUST_LINKER_OPTIONS -Clink-arg=$CFLAGS_ASAN -Cdefault-linker-libraries"
	fi
	if test "x$CFLAGS_UBSAN" != "x"; then
        	RUST_LINKER_OPTIONS="$RUST_LINKER_OPTIONS -Clink-arg=$CFLAGS_UBSAN -Cdefault-linker-libraries"
	fi
else
	if test "x$CFLAGS_ASAN" != "x"; then
		RUST_LINKER_OPTIONS="$RUST_LINKER_OPTIONS -Clink-arg=-fsanitize=address -Cdefault-linker-libraries"
	fi
	if test "x$CFLAGS_UBSAN" != "x"; then
        	RUST_LINKER_OPTIONS="$RUST_LINKER_OPTIONS -Clink-arg=-fsanitize=undefined -Cdefault-linker-libraries"
	fi
fi


CFLAGS_BUGTRAP="$CFLAGS_FTRAPV $CFLAGS_ASAN $CFLAGS_UBSAN"
CFLAGS_CONSTTIME="$CFLAGS_FWRAPV"

mulodi_fixes_ftrapv=no
if test "$have_clang" = "yes"; then
  saved_CFLAGS="$CFLAGS"
  CFLAGS="$CFLAGS $CFLAGS_FTRAPV"
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether clang -ftrapv can link a 64-bit int multiply" >&5
$as_echo_n "checking whether clang -ftrapv can link a 64-bit int multiply... " >&6; }
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */


          #include <stdint.h>
          #include <stdlib.h>
	  int main(int argc, char **argv)
	  {
            int64_t x = ((int64_t)atoi(argv[1])) * (int64_t)atoi(argv[2])
	                * (int64_t)atoi(argv[3]);
	    return x == 9;
	  }
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ftrapv_can_link=yes; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
else
  ftrapv_can_link=no; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
  if test "$ftrapv_can_link" = "no"; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether defining __mulodi4 fixes that" >&5
$as_echo_n "checking whether defining __mulodi4 fixes that... " >&6; }
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */


          #include <stdint.h>
          #include <stdlib.h>
	  int64_t __mulodi4(int64_t a, int64_t b, int *overflow) {
             *overflow=0;
	     return a;
          }
	  int main(int argc, char **argv)
	  {
            int64_t x = ((int64_t)atoi(argv[1])) * (int64_t)atoi(argv[2])
	                * (int64_t)atoi(argv[3]);
	    return x == 9;
	  }
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  mulodi_fixes_ftrapv=yes; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
else
  mulodi_fixes_ftrapv=no; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
  fi
  CFLAGS="$saved_CFLAGS"
fi

 if test "$mulodi_fixes_ftrapv" = "yes"; then
  ADD_MULODI4_TRUE=
  ADD_MULODI4_FALSE='#'
else
  ADD_MULODI4_TRUE='#'
  ADD_MULODI4_FALSE=
fi





if test "x$enable_linker_hardening" != "xno"; then


  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -z relro -z now" >&5
$as_echo_n "checking whether the linker accepts -z relro -z now... " >&6; }
if ${tor_cv_ldflags__z_relro__z_now+:} false; then :
  $as_echo_n "(cached) " >&6
else

    tor_saved_CFLAGS="$CFLAGS"
    tor_saved_LDFLAGS="$LDFLAGS"
    tor_saved_LIBS="$LIBS"
    CFLAGS="$CFLAGS -pedantic -Werror"
    LDFLAGS="$LDFLAGS "$all_ldflags_for_check" -z relro -z now"
    LIBS="$LIBS "$all_libs_for_check""
    if test "$cross_compiling" = yes; then :
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  tor_cv_ldflags__z_relro__z_now=yes
else
  tor_cv_ldflags__z_relro__z_now=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <stdio.h>
int
main ()
{
fputs("", stdout)
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  tor_cv_ldflags__z_relro__z_now=yes
else
  tor_cv_ldflags__z_relro__z_now=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

    CFLAGS="$tor_saved_CFLAGS"
    LDFLAGS="$tor_saved_LDFLAGS"
    LIBS="$tor_saved_LIBS"

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_ldflags__z_relro__z_now" >&5
$as_echo "$tor_cv_ldflags__z_relro__z_now" >&6; }
  if test x$tor_cv_ldflags__z_relro__z_now = xyes; then
    LDFLAGS="$LDFLAGS -z relro -z now"
  fi


fi

# For backtrace support


  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -rdynamic" >&5
$as_echo_n "checking whether the linker accepts -rdynamic... " >&6; }
if ${tor_cv_ldflags__rdynamic+:} false; then :
  $as_echo_n "(cached) " >&6
else

    tor_saved_CFLAGS="$CFLAGS"
    tor_saved_LDFLAGS="$LDFLAGS"
    tor_saved_LIBS="$LIBS"
    CFLAGS="$CFLAGS -pedantic -Werror"
    LDFLAGS="$LDFLAGS  -rdynamic"
    LIBS="$LIBS "
    if test "$cross_compiling" = yes; then :
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  tor_cv_ldflags__rdynamic=yes
else
  tor_cv_ldflags__rdynamic=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <stdio.h>
int
main ()
{
fputs("", stdout)
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  tor_cv_ldflags__rdynamic=yes
else
  tor_cv_ldflags__rdynamic=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

    CFLAGS="$tor_saved_CFLAGS"
    LDFLAGS="$tor_saved_LDFLAGS"
    LIBS="$tor_saved_LIBS"

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_ldflags__rdynamic" >&5
$as_echo "$tor_cv_ldflags__rdynamic" >&6; }
  if test x$tor_cv_ldflags__rdynamic = xyes; then
    LDFLAGS="$LDFLAGS -rdynamic"
  fi




saved_CFLAGS="$CFLAGS"



  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -fomit-frame-pointer" >&5
$as_echo_n "checking whether the compiler accepts -fomit-frame-pointer... " >&6; }
if ${tor_cv_cflags__fomit_frame_pointer+:} false; then :
  $as_echo_n "(cached) " >&6
else

    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -fomit-frame-pointer"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  tor_cv_cflags__fomit_frame_pointer=yes
else
  tor_cv_cflags__fomit_frame_pointer=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    if test x != x; then

      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  tor_can_link__fomit_frame_pointer=yes
else
  tor_can_link__fomit_frame_pointer=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__fomit_frame_pointer" >&5
$as_echo "$tor_cv_cflags__fomit_frame_pointer" >&6; }
  if test x$tor_cv_cflags__fomit_frame_pointer = xyes; then
     CFLAGS="$CFLAGS -fomit-frame-pointer"
  else
     true
  fi



F_OMIT_FRAME_POINTER=''
if test "$saved_CFLAGS" != "$CFLAGS"; then
  if test "$fragile_hardening" = "yes"; then
    F_OMIT_FRAME_POINTER='-fomit-frame-pointer'
  fi
fi
CFLAGS="$saved_CFLAGS"





  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -fasynchronous-unwind-tables" >&5
$as_echo_n "checking whether the compiler accepts -fasynchronous-unwind-tables... " >&6; }
if ${tor_cv_cflags__fasynchronous_unwind_tables+:} false; then :
  $as_echo_n "(cached) " >&6
else

    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -fasynchronous-unwind-tables"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  tor_cv_cflags__fasynchronous_unwind_tables=yes
else
  tor_cv_cflags__fasynchronous_unwind_tables=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    if test x != x; then

      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  tor_can_link__fasynchronous_unwind_tables=yes
else
  tor_can_link__fasynchronous_unwind_tables=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__fasynchronous_unwind_tables" >&5
$as_echo "$tor_cv_cflags__fasynchronous_unwind_tables" >&6; }
  if test x$tor_cv_cflags__fasynchronous_unwind_tables = xyes; then
     CFLAGS="$CFLAGS -fasynchronous-unwind-tables"
  else
     true
  fi





if test "x$enable_seccomp" != "xno"; then
  for ac_header in seccomp.h
do :
  ac_fn_c_check_header_mongrel "$LINENO" "seccomp.h" "ac_cv_header_seccomp_h" "$ac_includes_default"
if test "x$ac_cv_header_seccomp_h" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_SECCOMP_H 1
_ACEOF

fi

done

  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing seccomp_init" >&5
$as_echo_n "checking for library containing seccomp_init... " >&6; }
if ${ac_cv_search_seccomp_init+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_func_search_save_LIBS=$LIBS
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char seccomp_init ();
int
main ()
{
return seccomp_init ();
  ;
  return 0;
}
_ACEOF
for ac_lib in '' seccomp; do
  if test -z "$ac_lib"; then
    ac_res="none required"
  else
    ac_res=-l$ac_lib
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
  fi
  if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_search_seccomp_init=$ac_res
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext
  if ${ac_cv_search_seccomp_init+:} false; then :
  break
fi
done
if ${ac_cv_search_seccomp_init+:} false; then :

else
  ac_cv_search_seccomp_init=no
fi
rm conftest.$ac_ext
LIBS=$ac_func_search_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_seccomp_init" >&5
$as_echo "$ac_cv_search_seccomp_init" >&6; }
ac_res=$ac_cv_search_seccomp_init
if test "$ac_res" != no; then :
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"

fi

fi


if test "x$enable_libscrypt" != "xno"; then
  for ac_header in libscrypt.h
do :
  ac_fn_c_check_header_mongrel "$LINENO" "libscrypt.h" "ac_cv_header_libscrypt_h" "$ac_includes_default"
if test "x$ac_cv_header_libscrypt_h" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_LIBSCRYPT_H 1
_ACEOF

fi

done

  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing libscrypt_scrypt" >&5
$as_echo_n "checking for library containing libscrypt_scrypt... " >&6; }
if ${ac_cv_search_libscrypt_scrypt+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_func_search_save_LIBS=$LIBS
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char libscrypt_scrypt ();
int
main ()
{
return libscrypt_scrypt ();
  ;
  return 0;
}
_ACEOF
for ac_lib in '' scrypt; do
  if test -z "$ac_lib"; then
    ac_res="none required"
  else
    ac_res=-l$ac_lib
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
  fi
  if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_search_libscrypt_scrypt=$ac_res
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext
  if ${ac_cv_search_libscrypt_scrypt+:} false; then :
  break
fi
done
if ${ac_cv_search_libscrypt_scrypt+:} false; then :

else
  ac_cv_search_libscrypt_scrypt=no
fi
rm conftest.$ac_ext
LIBS=$ac_func_search_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_libscrypt_scrypt" >&5
$as_echo "$ac_cv_search_libscrypt_scrypt" >&6; }
ac_res=$ac_cv_search_libscrypt_scrypt
if test "$ac_res" != no; then :
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"

fi

  for ac_func in libscrypt_scrypt
do :
  ac_fn_c_check_func "$LINENO" "libscrypt_scrypt" "ac_cv_func_libscrypt_scrypt"
if test "x$ac_cv_func_libscrypt_scrypt" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_LIBSCRYPT_SCRYPT 1
_ACEOF

fi
done

fi


build_curve25519_donna=no
build_curve25519_donna_c64=no
use_curve25519_donna=no
use_curve25519_nacl=no
CURVE25519_LIBS=

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can use curve25519-donna-c64" >&5
$as_echo_n "checking whether we can use curve25519-donna-c64... " >&6; }
if ${tor_cv_can_use_curve25519_donna_c64+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test "$cross_compiling" = yes; then :
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
      #include <stdint.h>
      typedef unsigned uint128_t __attribute__((mode(TI)));
  int func(uint64_t a, uint64_t b) {
           uint128_t c = ((uint128_t)a) * b;
           int ok = ((uint64_t)(c>>96)) == 522859 &&
             (((uint64_t)(c>>64))&0xffffffffL) == 3604448702L &&
                 (((uint64_t)(c>>32))&0xffffffffL) == 2351960064L &&
                 (((uint64_t)(c))&0xffffffffL) == 0;
           return ok;
      }

int
main ()
{
    int ok = func( ((uint64_t)2000000000) * 1000000000,
    	         ((uint64_t)1234567890) << 24);
        return !ok;

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  tor_cv_can_use_curve25519_donna_c64=cross
else
  tor_cv_can_use_curve25519_donna_c64=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
      #include <stdint.h>
      typedef unsigned uint128_t __attribute__((mode(TI)));
  int func(uint64_t a, uint64_t b) {
           uint128_t c = ((uint128_t)a) * b;
           int ok = ((uint64_t)(c>>96)) == 522859 &&
             (((uint64_t)(c>>64))&0xffffffffL) == 3604448702L &&
                 (((uint64_t)(c>>32))&0xffffffffL) == 2351960064L &&
                 (((uint64_t)(c))&0xffffffffL) == 0;
           return ok;
      }

int
main ()
{
    int ok = func( ((uint64_t)2000000000) * 1000000000,
                   ((uint64_t)1234567890) << 24);
        return !ok;

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  tor_cv_can_use_curve25519_donna_c64=yes
else
  tor_cv_can_use_curve25519_donna_c64=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_can_use_curve25519_donna_c64" >&5
$as_echo "$tor_cv_can_use_curve25519_donna_c64" >&6; }

for ac_header in crypto_scalarmult_curve25519.h \
                  nacl/crypto_scalarmult_curve25519.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

fi

done


{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for nacl compiled with a fast curve25519 implementation" >&5
$as_echo_n "checking for nacl compiled with a fast curve25519 implementation... " >&6; }
if ${tor_cv_can_use_curve25519_nacl+:} false; then :
  $as_echo_n "(cached) " >&6
else
  tor_saved_LIBS="$LIBS"
   LIBS="$LIBS -lnacl"
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
       #ifdef HAVE_CRYPTO_SCALARMULT_CURVE25519_H
       #include <crypto_scalarmult_curve25519.h>
   #elif defined(HAVE_NACL_CRYPTO_SCALARMULT_CURVE25519_H)
   #include <nacl/crypto_scalarmult_curve25519.h>
   #endif
       #ifdef crypto_scalarmult_curve25519_ref_BYTES
   #error Hey, this is the reference implementation! That's not fast.
   #endif

int
main ()
{

   unsigned char *a, *b, *c; crypto_scalarmult_curve25519(a,b,c);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  tor_cv_can_use_curve25519_nacl=yes
else
  tor_cv_can_use_curve25519_nacl=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
   LIBS="$tor_saved_LIBS"
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_can_use_curve25519_nacl" >&5
$as_echo "$tor_cv_can_use_curve25519_nacl" >&6; }


 if test "x$tor_cv_can_use_curve25519_donna_c64" != "xno"; then
   build_curve25519_donna_c64=yes
   use_curve25519_donna=yes
 elif test "x$tor_cv_can_use_curve25519_nacl" = "xyes"; then
   use_curve25519_nacl=yes
   CURVE25519_LIBS=-lnacl
 else
   build_curve25519_donna=yes
   use_curve25519_donna=yes
 fi

if test "x$use_curve25519_donna" = "xyes"; then

$as_echo "#define USE_CURVE25519_DONNA 1" >>confdefs.h

fi
if test "x$use_curve25519_nacl" = "xyes"; then

$as_echo "#define USE_CURVE25519_NACL 1" >>confdefs.h

fi
 if test "x$build_curve25519_donna" = "xyes"; then
  BUILD_CURVE25519_DONNA_TRUE=
  BUILD_CURVE25519_DONNA_FALSE='#'
else
  BUILD_CURVE25519_DONNA_TRUE='#'
  BUILD_CURVE25519_DONNA_FALSE=
fi

 if test "x$build_curve25519_donna_c64" = "xyes"; then
  BUILD_CURVE25519_DONNA_C64_TRUE=
  BUILD_CURVE25519_DONNA_C64_FALSE='#'
else
  BUILD_CURVE25519_DONNA_C64_TRUE='#'
  BUILD_CURVE25519_DONNA_C64_FALSE=
fi



# Check whether --enable-largefile was given.
if test "${enable_largefile+set}" = set; then :
  enableval=$enable_largefile;
fi

if test "$enable_largefile" != no; then

  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
if ${ac_cv_sys_largefile_CC+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_cv_sys_largefile_CC=no
     if test "$GCC" != yes; then
       ac_save_CC=$CC
       while :; do
	 # IRIX 6.2 and later do not support large files by default,
	 # so use the C compiler's -n32 option if that helps.
	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <sys/types.h>
 /* Check that off_t can represent 2**63 - 1 correctly.
    We can't simply define LARGE_OFF_T to be 9223372036854775807,
    since some C++ compilers masquerading as C compilers
    incorrectly reject 9223372036854775807.  */
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
		       && LARGE_OFF_T % 2147483647 == 1)
		      ? 1 : -1];
int
main ()
{

  ;
  return 0;
}
_ACEOF
	 if ac_fn_c_try_compile "$LINENO"; then :
  break
fi
rm -f core conftest.err conftest.$ac_objext
	 CC="$CC -n32"
	 if ac_fn_c_try_compile "$LINENO"; then :
  ac_cv_sys_largefile_CC=' -n32'; break
fi
rm -f core conftest.err conftest.$ac_objext
	 break
       done
       CC=$ac_save_CC
       rm -f conftest.$ac_ext
    fi
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
$as_echo "$ac_cv_sys_largefile_CC" >&6; }
  if test "$ac_cv_sys_largefile_CC" != no; then
    CC=$CC$ac_cv_sys_largefile_CC
  fi

  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
if ${ac_cv_sys_file_offset_bits+:} false; then :
  $as_echo_n "(cached) " >&6
else
  while :; do
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <sys/types.h>
 /* Check that off_t can represent 2**63 - 1 correctly.
    We can't simply define LARGE_OFF_T to be 9223372036854775807,
    since some C++ compilers masquerading as C compilers
    incorrectly reject 9223372036854775807.  */
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
		       && LARGE_OFF_T % 2147483647 == 1)
		      ? 1 : -1];
int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ac_cv_sys_file_offset_bits=no; break
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#define _FILE_OFFSET_BITS 64
#include <sys/types.h>
 /* Check that off_t can represent 2**63 - 1 correctly.
    We can't simply define LARGE_OFF_T to be 9223372036854775807,
    since some C++ compilers masquerading as C compilers
    incorrectly reject 9223372036854775807.  */
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
		       && LARGE_OFF_T % 2147483647 == 1)
		      ? 1 : -1];
int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ac_cv_sys_file_offset_bits=64; break
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  ac_cv_sys_file_offset_bits=unknown
  break
done
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
case $ac_cv_sys_file_offset_bits in #(
  no | unknown) ;;
  *)
cat >>confdefs.h <<_ACEOF
#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
_ACEOF
;;
esac
rm -rf conftest*
  if test $ac_cv_sys_file_offset_bits = unknown; then
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
if ${ac_cv_sys_large_files+:} false; then :
  $as_echo_n "(cached) " >&6
else
  while :; do
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <sys/types.h>
 /* Check that off_t can represent 2**63 - 1 correctly.
    We can't simply define LARGE_OFF_T to be 9223372036854775807,
    since some C++ compilers masquerading as C compilers
    incorrectly reject 9223372036854775807.  */
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
		       && LARGE_OFF_T % 2147483647 == 1)
		      ? 1 : -1];
int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ac_cv_sys_large_files=no; break
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#define _LARGE_FILES 1
#include <sys/types.h>
 /* Check that off_t can represent 2**63 - 1 correctly.
    We can't simply define LARGE_OFF_T to be 9223372036854775807,
    since some C++ compilers masquerading as C compilers
    incorrectly reject 9223372036854775807.  */
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
		       && LARGE_OFF_T % 2147483647 == 1)
		      ? 1 : -1];
int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  ac_cv_sys_large_files=1; break
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  ac_cv_sys_large_files=unknown
  break
done
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
$as_echo "$ac_cv_sys_large_files" >&6; }
case $ac_cv_sys_large_files in #(
  no | unknown) ;;
  *)
cat >>confdefs.h <<_ACEOF
#define _LARGE_FILES $ac_cv_sys_large_files
_ACEOF
;;
esac
rm -rf conftest*
  fi


fi


for ac_header in errno.h \
		  fcntl.h \
		  signal.h \
		  string.h \
		  sys/capability.h \
		  sys/fcntl.h \
		  sys/stat.h \
		  sys/time.h \
		  sys/types.h \
		  time.h \
		  unistd.h \
		  arpa/inet.h \
		  crt_externs.h \
		  execinfo.h \
		  gnu/libc-version.h \
		  grp.h \
		  ifaddrs.h \
		  inttypes.h \
		  limits.h \
		  linux/types.h \
		  mach/vm_inherit.h \
		  machine/limits.h \
		  malloc.h \
		  malloc/malloc.h \
		  malloc_np.h \
		  netdb.h \
		  netinet/in.h \
		  netinet/in6.h \
		  pwd.h \
		  readpassphrase.h \
		  stdatomic.h \
		  sys/eventfd.h \
		  sys/file.h \
		  sys/ioctl.h \
		  sys/limits.h \
		  sys/mman.h \
		  sys/param.h \
		  sys/prctl.h \
		  sys/random.h \
		  sys/resource.h \
		  sys/select.h \
		  sys/socket.h \
		  sys/statvfs.h \
		  sys/syscall.h \
		  sys/sysctl.h \
		  sys/syslimits.h \
		  sys/time.h \
		  sys/types.h \
		  sys/un.h \
		  sys/utime.h \
		  sys/wait.h \
		  syslog.h \
		  utime.h
do :
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF

fi

done


for ac_header in sys/param.h
do :
  ac_fn_c_check_header_mongrel "$LINENO" "sys/param.h" "ac_cv_header_sys_param_h" "$ac_includes_default"
if test "x$ac_cv_header_sys_param_h" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_SYS_PARAM_H 1
_ACEOF

fi

done


for ac_header in net/if.h
do :
  ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_SOCKET_H
#include <sys/socket.h>
#endif
"
if test "x$ac_cv_header_net_if_h" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_NET_IF_H 1
_ACEOF
 net_if_found=1
else
  net_if_found=0
fi

done

for ac_header in net/pfvar.h
do :
  ac_fn_c_check_header_compile "$LINENO" "net/pfvar.h" "ac_cv_header_net_pfvar_h" "#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_SOCKET_H
#include <sys/socket.h>
#endif
#ifdef HAVE_NET_IF_H
#include <net/if.h>
#endif
#ifdef HAVE_NETINET_IN_H
#include <netinet/in.h>
#endif
"
if test "x$ac_cv_header_net_pfvar_h" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_NET_PFVAR_H 1
_ACEOF
 net_pfvar_found=1
else
  net_pfvar_found=0
fi

done


for ac_header in linux/if.h
do :
  ac_fn_c_check_header_compile "$LINENO" "linux/if.h" "ac_cv_header_linux_if_h" "
#ifdef HAVE_SYS_SOCKET_H
#include <sys/socket.h>
#endif

"
if test "x$ac_cv_header_linux_if_h" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_LINUX_IF_H 1
_ACEOF

fi

done


for ac_header in linux/netfilter_ipv4.h
do :
  ac_fn_c_check_header_compile "$LINENO" "linux/netfilter_ipv4.h" "ac_cv_header_linux_netfilter_ipv4_h" "#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_SOCKET_H
#include <sys/socket.h>
#endif
#ifdef HAVE_LIMITS_H
#include <limits.h>
#endif
#ifdef HAVE_LINUX_TYPES_H
#include <linux/types.h>
#endif
#ifdef HAVE_NETINET_IN6_H
#include <netinet/in6.h>
#endif
#ifdef HAVE_NETINET_IN_H
#include <netinet/in.h>
#endif
"
if test "x$ac_cv_header_linux_netfilter_ipv4_h" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_LINUX_NETFILTER_IPV4_H 1
_ACEOF
 linux_netfilter_ipv4=1
else
  linux_netfilter_ipv4=0
fi

done


for ac_header in linux/netfilter_ipv6/ip6_tables.h
do :
  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
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_SOCKET_H
#include <sys/socket.h>
#endif
#ifdef HAVE_LIMITS_H
#include <limits.h>
#endif
#ifdef HAVE_LINUX_TYPES_H
#include <linux/types.h>
#endif
#ifdef HAVE_NETINET_IN6_H
#include <netinet/in6.h>
#endif
#ifdef HAVE_NETINET_IN_H
#include <netinet/in.h>
#endif
#ifdef HAVE_LINUX_IF_H
#include <linux/if.h>
#endif
"
if test "x$ac_cv_header_linux_netfilter_ipv6_ip6_tables_h" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_LINUX_NETFILTER_IPV6_IP6_TABLES_H 1
_ACEOF
 linux_netfilter_ipv6_ip6_tables=1
else
  linux_netfilter_ipv6_ip6_tables=0
fi

done


transparent_ok=0
if test "x$net_if_found" = "x1" && test "x$net_pfvar_found" = "x1"; then
  transparent_ok=1
fi
if test "x$linux_netfilter_ipv4" = "x1"; then
  transparent_ok=1
fi
if test "x$linux_netfilter_ipv6_ip6_tables" = "x1"; then
  transparent_ok=1
fi
if test "x$transparent_ok" = "x1"; then

$as_echo "#define USE_TRANSPARENT 1" >>confdefs.h

else
  { $as_echo "$as_me:${as_lineno-$LINENO}: Transparent proxy support enabled, but missing headers." >&5
$as_echo "$as_me: Transparent proxy support enabled, but missing headers." >&6;}
fi

ac_fn_c_check_member "$LINENO" "struct timeval" "tv_sec" "ac_cv_member_struct_timeval_tv_sec" "#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TIME_H
#include <sys/time.h>
#endif
"
if test "x$ac_cv_member_struct_timeval_tv_sec" = xyes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_STRUCT_TIMEVAL_TV_SEC 1
_ACEOF


fi


# The cast to long int works around a bug in the HP C Compiler
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
# This bug is HP SR number 8606223364.
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
$as_echo_n "checking size of char... " >&6; }
if ${ac_cv_sizeof_char+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char"        "$ac_includes_default"; then :

else
  if test "$ac_cv_type_char" = yes; then
     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error 77 "cannot compute sizeof (char)
See \`config.log' for more details" "$LINENO" 5; }
   else
     ac_cv_sizeof_char=0
   fi
fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
$as_echo "$ac_cv_sizeof_char" >&6; }



cat >>confdefs.h <<_ACEOF
#define SIZEOF_CHAR $ac_cv_sizeof_char
_ACEOF


# The cast to long int works around a bug in the HP C Compiler
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
# This bug is HP SR number 8606223364.
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
$as_echo_n "checking size of short... " >&6; }
if ${ac_cv_sizeof_short+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short"        "$ac_includes_default"; then :

else
  if test "$ac_cv_type_short" = yes; then
     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error 77 "cannot compute sizeof (short)
See \`config.log' for more details" "$LINENO" 5; }
   else
     ac_cv_sizeof_short=0
   fi
fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
$as_echo "$ac_cv_sizeof_short" >&6; }



cat >>confdefs.h <<_ACEOF
#define SIZEOF_SHORT $ac_cv_sizeof_short
_ACEOF


# The cast to long int works around a bug in the HP C Compiler
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
# This bug is HP SR number 8606223364.
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
$as_echo_n "checking size of int... " >&6; }
if ${ac_cv_sizeof_int+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :

else
  if test "$ac_cv_type_int" = yes; then
     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error 77 "cannot compute sizeof (int)
See \`config.log' for more details" "$LINENO" 5; }
   else
     ac_cv_sizeof_int=0
   fi
fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
$as_echo "$ac_cv_sizeof_int" >&6; }



cat >>confdefs.h <<_ACEOF
#define SIZEOF_INT $ac_cv_sizeof_int
_ACEOF


# The cast to long int works around a bug in the HP C Compiler
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
# This bug is HP SR number 8606223364.
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5
$as_echo_n "checking size of unsigned int... " >&6; }
if ${ac_cv_sizeof_unsigned_int+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned int))" "ac_cv_sizeof_unsigned_int"        "$ac_includes_default"; then :

else
  if test "$ac_cv_type_unsigned_int" = yes; then
     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error 77 "cannot compute sizeof (unsigned int)
See \`config.log' for more details" "$LINENO" 5; }
   else
     ac_cv_sizeof_unsigned_int=0
   fi
fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5
$as_echo "$ac_cv_sizeof_unsigned_int" >&6; }



cat >>confdefs.h <<_ACEOF
#define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
_ACEOF


# The cast to long int works around a bug in the HP C Compiler
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
# This bug is HP SR number 8606223364.
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
$as_echo_n "checking size of long... " >&6; }
if ${ac_cv_sizeof_long+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :

else
  if test "$ac_cv_type_long" = yes; then
     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error 77 "cannot compute sizeof (long)
See \`config.log' for more details" "$LINENO" 5; }
   else
     ac_cv_sizeof_long=0
   fi
fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
$as_echo "$ac_cv_sizeof_long" >&6; }



cat >>confdefs.h <<_ACEOF
#define SIZEOF_LONG $ac_cv_sizeof_long
_ACEOF


# The cast to long int works around a bug in the HP C Compiler
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
# This bug is HP SR number 8606223364.
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
$as_echo_n "checking size of long long... " >&6; }
if ${ac_cv_sizeof_long_long+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long"        "$ac_includes_default"; then :

else
  if test "$ac_cv_type_long_long" = yes; then
     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error 77 "cannot compute sizeof (long long)
See \`config.log' for more details" "$LINENO" 5; }
   else
     ac_cv_sizeof_long_long=0
   fi
fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
$as_echo "$ac_cv_sizeof_long_long" >&6; }



cat >>confdefs.h <<_ACEOF
#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
_ACEOF


# The cast to long int works around a bug in the HP C Compiler
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
# This bug is HP SR number 8606223364.
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of __int64" >&5
$as_echo_n "checking size of __int64... " >&6; }
if ${ac_cv_sizeof___int64+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (__int64))" "ac_cv_sizeof___int64"        "$ac_includes_default"; then :

else
  if test "$ac_cv_type___int64" = yes; then
     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error 77 "cannot compute sizeof (__int64)
See \`config.log' for more details" "$LINENO" 5; }
   else
     ac_cv_sizeof___int64=0
   fi
fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof___int64" >&5
$as_echo "$ac_cv_sizeof___int64" >&6; }



cat >>confdefs.h <<_ACEOF
#define SIZEOF___INT64 $ac_cv_sizeof___int64
_ACEOF


# The cast to long int works around a bug in the HP C Compiler
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
# This bug is HP SR number 8606223364.
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
$as_echo_n "checking size of void *... " >&6; }
if ${ac_cv_sizeof_void_p+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p"        "$ac_includes_default"; then :

else
  if test "$ac_cv_type_void_p" = yes; then
     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error 77 "cannot compute sizeof (void *)
See \`config.log' for more details" "$LINENO" 5; }
   else
     ac_cv_sizeof_void_p=0
   fi
fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
$as_echo "$ac_cv_sizeof_void_p" >&6; }



cat >>confdefs.h <<_ACEOF
#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
_ACEOF


# The cast to long int works around a bug in the HP C Compiler
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
# This bug is HP SR number 8606223364.
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5
$as_echo_n "checking size of time_t... " >&6; }
if ${ac_cv_sizeof_time_t+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t"        "$ac_includes_default"; then :

else
  if test "$ac_cv_type_time_t" = yes; then
     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error 77 "cannot compute sizeof (time_t)
See \`config.log' for more details" "$LINENO" 5; }
   else
     ac_cv_sizeof_time_t=0
   fi
fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5
$as_echo "$ac_cv_sizeof_time_t" >&6; }



cat >>confdefs.h <<_ACEOF
#define SIZEOF_TIME_T $ac_cv_sizeof_time_t
_ACEOF


# The cast to long int works around a bug in the HP C Compiler
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
# This bug is HP SR number 8606223364.
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
$as_echo_n "checking size of size_t... " >&6; }
if ${ac_cv_sizeof_size_t+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t"        "$ac_includes_default"; then :

else
  if test "$ac_cv_type_size_t" = yes; then
     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error 77 "cannot compute sizeof (size_t)
See \`config.log' for more details" "$LINENO" 5; }
   else
     ac_cv_sizeof_size_t=0
   fi
fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
$as_echo "$ac_cv_sizeof_size_t" >&6; }



cat >>confdefs.h <<_ACEOF
#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
_ACEOF


# The cast to long int works around a bug in the HP C Compiler
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
# This bug is HP SR number 8606223364.
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of pid_t" >&5
$as_echo_n "checking size of pid_t... " >&6; }
if ${ac_cv_sizeof_pid_t+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (pid_t))" "ac_cv_sizeof_pid_t"        "$ac_includes_default"; then :

else
  if test "$ac_cv_type_pid_t" = yes; then
     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error 77 "cannot compute sizeof (pid_t)
See \`config.log' for more details" "$LINENO" 5; }
   else
     ac_cv_sizeof_pid_t=0
   fi
fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_pid_t" >&5
$as_echo "$ac_cv_sizeof_pid_t" >&6; }



cat >>confdefs.h <<_ACEOF
#define SIZEOF_PID_T $ac_cv_sizeof_pid_t
_ACEOF



ac_fn_c_check_type "$LINENO" "uint" "ac_cv_type_uint" "$ac_includes_default"
if test "x$ac_cv_type_uint" = xyes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_UINT 1
_ACEOF


fi
ac_fn_c_check_type "$LINENO" "u_char" "ac_cv_type_u_char" "$ac_includes_default"
if test "x$ac_cv_type_u_char" = xyes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_U_CHAR 1
_ACEOF


fi
ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
if test "x$ac_cv_type_ssize_t" = xyes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_SSIZE_T 1
_ACEOF


fi


for ac_header in ucontext.h
do :
  ac_fn_c_check_header_mongrel "$LINENO" "ucontext.h" "ac_cv_header_ucontext_h" "$ac_includes_default"
if test "x$ac_cv_header_ucontext_h" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_UCONTEXT_H 1
_ACEOF

fi

done

   # Redhat 7 has <sys/ucontext.h>, but it barfs if we #include it directly
   # (this was fixed in later redhats).  <ucontext.h> works fine, so use that.
   if grep "Red Hat Linux release 7" /etc/redhat-release >/dev/null 2>&1; then

$as_echo "#define HAVE_SYS_UCONTEXT_H 0" >>confdefs.h

     ac_cv_header_sys_ucontext_h=no
   else
     for ac_header in sys/ucontext.h
do :
  ac_fn_c_check_header_mongrel "$LINENO" "sys/ucontext.h" "ac_cv_header_sys_ucontext_h" "$ac_includes_default"
if test "x$ac_cv_header_sys_ucontext_h" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_SYS_UCONTEXT_H 1
_ACEOF

fi

done
       # ucontext on OS X 10.6 (at least)
   fi
   for ac_header in cygwin/signal.h
do :
  ac_fn_c_check_header_mongrel "$LINENO" "cygwin/signal.h" "ac_cv_header_cygwin_signal_h" "$ac_includes_default"
if test "x$ac_cv_header_cygwin_signal_h" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_CYGWIN_SIGNAL_H 1
_ACEOF

fi

done
        # ucontext on cywgin
   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to access the program counter from a struct ucontext" >&5
$as_echo_n "checking how to access the program counter from a struct ucontext... " >&6; }
   pc_fields="           uc_mcontext.gregs[REG_PC]"  # Solaris x86 (32 + 64 bit)
   pc_fields="$pc_fields uc_mcontext.gregs[REG_EIP]" # Linux (i386)
   pc_fields="$pc_fields uc_mcontext.gregs[REG_RIP]" # Linux (x86_64)
   pc_fields="$pc_fields uc_mcontext.sc_ip"            # Linux (ia64)
   pc_fields="$pc_fields uc_mcontext.uc_regs->gregs[PT_NIP]" # Linux (ppc)
   pc_fields="$pc_fields uc_mcontext.gregs[R15]"     # Linux (arm old [untested])
   pc_fields="$pc_fields uc_mcontext.arm_pc"           # Linux (arm arch 5)
   pc_fields="$pc_fields uc_mcontext.gp_regs[PT_NIP]"  # Suse SLES 11 (ppc64)
   pc_fields="$pc_fields uc_mcontext.mc_eip"           # FreeBSD (i386)
   pc_fields="$pc_fields uc_mcontext.mc_rip"           # FreeBSD (x86_64 [untested])
   pc_fields="$pc_fields uc_mcontext.__gregs[_REG_EIP]"  # NetBSD (i386)
   pc_fields="$pc_fields uc_mcontext.__gregs[_REG_RIP]"  # NetBSD (x86_64)
   pc_fields="$pc_fields uc_mcontext->ss.eip"          # OS X (i386, <=10.4)
   pc_fields="$pc_fields uc_mcontext->__ss.__eip"      # OS X (i386, >=10.5)
   pc_fields="$pc_fields uc_mcontext->ss.rip"          # OS X (x86_64)
   pc_fields="$pc_fields uc_mcontext->__ss.__rip"      # OS X (>=10.5 [untested])
   pc_fields="$pc_fields uc_mcontext->ss.srr0"         # OS X (ppc, ppc64 [untested])
   pc_fields="$pc_fields uc_mcontext->__ss.__srr0"     # OS X (>=10.5 [untested])
   pc_field_found=false
   for pc_field in $pc_fields; do
     if ! $pc_field_found; then
       # Prefer sys/ucontext.h to ucontext.h, for OS X's sake.
       if test "x$ac_cv_header_cygwin_signal_h" = xyes; then
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <cygwin/signal.h>
int
main ()
{
ucontext_t u; return u.$pc_field == 0;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :

cat >>confdefs.h <<_ACEOF
#define PC_FROM_UCONTEXT $pc_field
_ACEOF

                        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pc_field" >&5
$as_echo "$pc_field" >&6; }
                        pc_field_found=true
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
       elif test "x$ac_cv_header_sys_ucontext_h" = xyes; then
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <sys/ucontext.h>
int
main ()
{
ucontext_t u; return u.$pc_field == 0;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :

cat >>confdefs.h <<_ACEOF
#define PC_FROM_UCONTEXT $pc_field
_ACEOF

                        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pc_field" >&5
$as_echo "$pc_field" >&6; }
                        pc_field_found=true
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
       elif test "x$ac_cv_header_ucontext_h" = xyes; then
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <ucontext.h>
int
main ()
{
ucontext_t u; return u.$pc_field == 0;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :

cat >>confdefs.h <<_ACEOF
#define PC_FROM_UCONTEXT $pc_field
_ACEOF

                        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pc_field" >&5
$as_echo "$pc_field" >&6; }
                        pc_field_found=true
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
       else     # hope some standard header gives it to us
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{
ucontext_t u; return u.$pc_field == 0;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :

cat >>confdefs.h <<_ACEOF
#define PC_FROM_UCONTEXT $pc_field
_ACEOF

                        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pc_field" >&5
$as_echo "$pc_field" >&6; }
                        pc_field_found=true
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
       fi
     fi
   done
   if ! $pc_field_found; then
     pc_fields="           sc_eip"  # OpenBSD (i386)
     pc_fields="$pc_fields sc_rip"  # OpenBSD (x86_64)
     for pc_field in $pc_fields; do
       if ! $pc_field_found; then
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <signal.h>
int
main ()
{
ucontext_t u; return u.$pc_field == 0;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :

cat >>confdefs.h <<_ACEOF
#define PC_FROM_UCONTEXT $pc_field
_ACEOF

                        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pc_field" >&5
$as_echo "$pc_field" >&6; }
                        pc_field_found=true
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
       fi
     done
   fi
   if ! $pc_field_found; then
     :
   fi

ac_fn_c_check_type "$LINENO" "struct in6_addr" "ac_cv_type_struct_in6_addr" "#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_NETINET_IN_H
#include <netinet/in.h>
#endif
#ifdef HAVE_NETINET_IN6_H
#include <netinet/in6.h>
#endif
#ifdef HAVE_SYS_SOCKET_H
#include <sys/socket.h>
#endif
#ifdef _WIN32
#define _WIN32_WINNT 0x0501
#define WIN32_LEAN_AND_MEAN
#include <winsock2.h>
#include <ws2tcpip.h>
#endif

"
if test "x$ac_cv_type_struct_in6_addr" = xyes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_STRUCT_IN6_ADDR 1
_ACEOF


fi
ac_fn_c_check_type "$LINENO" "struct sockaddr_in6" "ac_cv_type_struct_sockaddr_in6" "#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_NETINET_IN_H
#include <netinet/in.h>
#endif
#ifdef HAVE_NETINET_IN6_H
#include <netinet/in6.h>
#endif
#ifdef HAVE_SYS_SOCKET_H
#include <sys/socket.h>
#endif
#ifdef _WIN32
#define _WIN32_WINNT 0x0501
#define WIN32_LEAN_AND_MEAN
#include <winsock2.h>
#include <ws2tcpip.h>
#endif

"
if test "x$ac_cv_type_struct_sockaddr_in6" = xyes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_STRUCT_SOCKADDR_IN6 1
_ACEOF


fi
ac_fn_c_check_type "$LINENO" "sa_family_t" "ac_cv_type_sa_family_t" "#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_NETINET_IN_H
#include <netinet/in.h>
#endif
#ifdef HAVE_NETINET_IN6_H
#include <netinet/in6.h>
#endif
#ifdef HAVE_SYS_SOCKET_H
#include <sys/socket.h>
#endif
#ifdef _WIN32
#define _WIN32_WINNT 0x0501
#define WIN32_LEAN_AND_MEAN
#include <winsock2.h>
#include <ws2tcpip.h>
#endif

"
if test "x$ac_cv_type_sa_family_t" = xyes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_SA_FAMILY_T 1
_ACEOF


fi

ac_fn_c_check_member "$LINENO" "struct in6_addr" "s6_addr32" "ac_cv_member_struct_in6_addr_s6_addr32" "#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_NETINET_IN_H
#include <netinet/in.h>
#endif
#ifdef HAVE_NETINET_IN6_H
#include <netinet/in6.h>
#endif
#ifdef HAVE_SYS_SOCKET_H
#include <sys/socket.h>
#endif
#ifdef _WIN32
#define _WIN32_WINNT 0x0501
#define WIN32_LEAN_AND_MEAN
#include <winsock2.h>
#include <ws2tcpip.h>
#endif

"
if test "x$ac_cv_member_struct_in6_addr_s6_addr32" = xyes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_STRUCT_IN6_ADDR_S6_ADDR32 1
_ACEOF


fi
ac_fn_c_check_member "$LINENO" "struct in6_addr" "s6_addr16" "ac_cv_member_struct_in6_addr_s6_addr16" "#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_NETINET_IN_H
#include <netinet/in.h>
#endif
#ifdef HAVE_NETINET_IN6_H
#include <netinet/in6.h>
#endif
#ifdef HAVE_SYS_SOCKET_H
#include <sys/socket.h>
#endif
#ifdef _WIN32
#define _WIN32_WINNT 0x0501
#define WIN32_LEAN_AND_MEAN
#include <winsock2.h>
#include <ws2tcpip.h>
#endif

"
if test "x$ac_cv_member_struct_in6_addr_s6_addr16" = xyes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_STRUCT_IN6_ADDR_S6_ADDR16 1
_ACEOF


fi
ac_fn_c_check_member "$LINENO" "struct sockaddr_in" "sin_len" "ac_cv_member_struct_sockaddr_in_sin_len" "#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_NETINET_IN_H
#include <netinet/in.h>
#endif
#ifdef HAVE_NETINET_IN6_H
#include <netinet/in6.h>
#endif
#ifdef HAVE_SYS_SOCKET_H
#include <sys/socket.h>
#endif
#ifdef _WIN32
#define _WIN32_WINNT 0x0501
#define WIN32_LEAN_AND_MEAN
#include <winsock2.h>
#include <ws2tcpip.h>
#endif

"
if test "x$ac_cv_member_struct_sockaddr_in_sin_len" = xyes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_STRUCT_SOCKADDR_IN_SIN_LEN 1
_ACEOF


fi
ac_fn_c_check_member "$LINENO" "struct sockaddr_in6" "sin6_len" "ac_cv_member_struct_sockaddr_in6_sin6_len" "#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_NETINET_IN_H
#include <netinet/in.h>
#endif
#ifdef HAVE_NETINET_IN6_H
#include <netinet/in6.h>
#endif
#ifdef HAVE_SYS_SOCKET_H
#include <sys/socket.h>
#endif
#ifdef _WIN32
#define _WIN32_WINNT 0x0501
#define WIN32_LEAN_AND_MEAN
#include <winsock2.h>
#include <ws2tcpip.h>
#endif

"
if test "x$ac_cv_member_struct_sockaddr_in6_sin6_len" = xyes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_STRUCT_SOCKADDR_IN6_SIN6_LEN 1
_ACEOF


fi


ac_fn_c_check_type "$LINENO" "rlim_t" "ac_cv_type_rlim_t" "#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TIME_H
#include <sys/time.h>
#endif
#ifdef HAVE_SYS_RESOURCE_H
#include <sys/resource.h>
#endif

"
if test "x$ac_cv_type_rlim_t" = xyes; then :

cat >>confdefs.h <<_ACEOF
#define HAVE_RLIM_T 1
_ACEOF


fi



 typename=`echo time_t | sed "s/[^a-zA-Z0-9_]/_/g"`
 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time_t is signed" >&5
$as_echo_n "checking whether time_t is signed... " >&6; }
if eval \${ax_cv_decl_${typename}_signed+:} false; then :
  $as_echo_n "(cached) " >&6
else

   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TIME_H
#include <sys/time.h>
#endif
#ifdef HAVE_TIME_H
#include <time.h>
#endif

int
main ()
{
 int foo [ 1 - 2 * !(((time_t) -1) < 0) ]
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
   eval "ax_cv_decl_${typename}_signed=\"yes\""
else
   eval "ax_cv_decl_${typename}_signed=\"no\""
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
eval ac_res=\$ax_cv_decl_${typename}_signed
	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
$as_echo "$ac_res" >&6; }
 symbolname=`echo time_t | sed "s/[^a-zA-Z0-9_]/_/g" | tr "a-z" "A-Z"`
 if eval "test \"\${ax_cv_decl_${typename}_signed}\" = \"yes\""; then
    :
 elif eval "test \"\${ax_cv_decl_${typename}_signed}\" = \"no\""; then
    :
 fi


if test "$ax_cv_decl_time_t_signed" = "no"; then
  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
fi


 typename=`echo size_t | sed "s/[^a-zA-Z0-9_]/_/g"`
 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether size_t is signed" >&5
$as_echo_n "checking whether size_t is signed... " >&6; }
if eval \${ax_cv_decl_${typename}_signed+:} false; then :
  $as_echo_n "(cached) " >&6
else

   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif

int
main ()
{
 int foo [ 1 - 2 * !(((size_t) -1) < 0) ]
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
   eval "ax_cv_decl_${typename}_signed=\"yes\""
else
   eval "ax_cv_decl_${typename}_signed=\"no\""
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
eval ac_res=\$ax_cv_decl_${typename}_signed
	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
$as_echo "$ac_res" >&6; }
 symbolname=`echo size_t | sed "s/[^a-zA-Z0-9_]/_/g" | tr "a-z" "A-Z"`
 if eval "test \"\${ax_cv_decl_${typename}_signed}\" = \"yes\""; then
    tor_cv_size_t_signed=yes
 elif eval "test \"\${ax_cv_decl_${typename}_signed}\" = \"no\""; then
    tor_cv_size_t_signed=no
 fi


if test "$ax_cv_decl_size_t_signed" = "yes"; then
  as_fn_error $? "You have a signed size_t; that's grossly nonconformant." "$LINENO" 5
fi


 typename=`echo enum always | sed "s/[^a-zA-Z0-9_]/_/g"`
 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether enum always is signed" >&5
$as_echo_n "checking whether enum always is signed... " >&6; }
if eval \${ax_cv_decl_${typename}_signed+:} false; then :
  $as_echo_n "(cached) " >&6
else

   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

 enum always { AAA, BBB, CCC };

int
main ()
{
 int foo [ 1 - 2 * !(((enum always) -1) < 0) ]
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
   eval "ax_cv_decl_${typename}_signed=\"yes\""
else
   eval "ax_cv_decl_${typename}_signed=\"no\""
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
eval ac_res=\$ax_cv_decl_${typename}_signed
	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
$as_echo "$ac_res" >&6; }
 symbolname=`echo enum always | sed "s/[^a-zA-Z0-9_]/_/g" | tr "a-z" "A-Z"`
 if eval "test \"\${ax_cv_decl_${typename}_signed}\" = \"yes\""; then

$as_echo "#define ENUM_VALS_ARE_SIGNED 1" >>confdefs.h

 elif eval "test \"\${ax_cv_decl_${typename}_signed}\" = \"no\""; then
    :
 fi


# The cast to long int works around a bug in the HP C Compiler
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
# This bug is HP SR number 8606223364.
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of socklen_t" >&5
$as_echo_n "checking size of socklen_t... " >&6; }
if ${ac_cv_sizeof_socklen_t+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (socklen_t))" "ac_cv_sizeof_socklen_t"        "$ac_includes_default
#ifdef HAVE_SYS_SOCKET_H
#include <sys/socket.h>
#endif

"; then :

else
  if test "$ac_cv_type_socklen_t" = yes; then
     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error 77 "cannot compute sizeof (socklen_t)
See \`config.log' for more details" "$LINENO" 5; }
   else
     ac_cv_sizeof_socklen_t=0
   fi
fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_socklen_t" >&5
$as_echo "$ac_cv_sizeof_socklen_t" >&6; }



cat >>confdefs.h <<_ACEOF
#define SIZEOF_SOCKLEN_T $ac_cv_sizeof_socklen_t
_ACEOF



# We want to make sure that we _don't_ have a cell_t defined, like IRIX does.

# The cast to long int works around a bug in the HP C Compiler
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
# This bug is HP SR number 8606223364.
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of cell_t" >&5
$as_echo_n "checking size of cell_t... " >&6; }
if ${ac_cv_sizeof_cell_t+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (cell_t))" "ac_cv_sizeof_cell_t"        "$ac_includes_default"; then :

else
  if test "$ac_cv_type_cell_t" = yes; then
     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error 77 "cannot compute sizeof (cell_t)
See \`config.log' for more details" "$LINENO" 5; }
   else
     ac_cv_sizeof_cell_t=0
   fi
fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_cell_t" >&5
$as_echo "$ac_cv_sizeof_cell_t" >&6; }



cat >>confdefs.h <<_ACEOF
#define SIZEOF_CELL_T $ac_cv_sizeof_cell_t
_ACEOF



# Let's see if stdatomic works. (There are some debian clangs that screw it
# up; see Tor bug #26779 and debian bug 903709.)
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C11 stdatomic.h actually works" >&5
$as_echo_n "checking whether C11 stdatomic.h actually works... " >&6; }
if ${tor_cv_stdatomic_works+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include <stdatomic.h>
struct x { atomic_size_t y; };
void try_atomic_init(struct x *xx)
{
  atomic_init(&xx->y, 99);
  atomic_fetch_add(&xx->y, 1);
}

_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  tor_cv_stdatomic_works=yes
else
  tor_cv_stdatomic_works=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_stdatomic_works" >&5
$as_echo "$tor_cv_stdatomic_works" >&6; }

if test "$tor_cv_stdatomic_works" = "yes"; then

$as_echo "#define STDATOMIC_WORKS 1" >>confdefs.h

elif test "$ac_cv_header_stdatomic_h" = "yes"; then
   { $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
$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;}
fi

# Now make sure that NULL can be represented as zero bytes.
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memset(0) sets pointers to NULL" >&5
$as_echo_n "checking whether memset(0) sets pointers to NULL... " >&6; }
if ${tor_cv_null_is_zero+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test "$cross_compiling" = yes; then :
  tor_cv_null_is_zero=cross
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
#ifdef HAVE_STDDEF_H
#include <stddef.h>
#endif
int main () { char *p1,*p2; p1=NULL; memset(&p2,0,sizeof(p2));
return memcmp(&p1,&p2,sizeof(char*))?1:0; }
_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  tor_cv_null_is_zero=yes
else
  tor_cv_null_is_zero=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_null_is_zero" >&5
$as_echo "$tor_cv_null_is_zero" >&6; }

if test "$tor_cv_null_is_zero" = "cross"; then
  # Cross-compiling; let's hope that the target isn't raving mad.
  { $as_echo "$as_me:${as_lineno-$LINENO}: Cross-compiling: we'll assume that NULL is represented as a sequence of 0-valued bytes." >&5
$as_echo "$as_me: Cross-compiling: we'll assume that NULL is represented as a sequence of 0-valued bytes." >&6;}
fi

if test "$tor_cv_null_is_zero" != "no"; then

$as_echo "#define NULL_REP_IS_ZERO_BYTES 1" >>confdefs.h

fi

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memset(0) sets doubles to 0.0" >&5
$as_echo_n "checking whether memset(0) sets doubles to 0.0... " >&6; }
if ${tor_cv_dbl0_is_zero+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test "$cross_compiling" = yes; then :
  tor_cv_dbl0_is_zero=cross
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
#ifdef HAVE_STDDEF_H
#include <stddef.h>
#endif
int main () { double d1,d2; d1=0; memset(&d2,0,sizeof(d2));
return memcmp(&d1,&d2,sizeof(d1))?1:0; }
_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  tor_cv_dbl0_is_zero=yes
else
  tor_cv_dbl0_is_zero=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_dbl0_is_zero" >&5
$as_echo "$tor_cv_dbl0_is_zero" >&6; }

if test "$tor_cv_dbl0_is_zero" = "cross"; then
  # Cross-compiling; let's hope that the target isn't raving mad.
  { $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
$as_echo "$as_me: Cross-compiling: we'll assume that 0.0 can be represented as a sequence of 0-valued bytes." >&6;}
fi

if test "$tor_cv_dbl0_is_zero" != "no"; then

$as_echo "#define DOUBLE_0_REP_IS_ZERO_BYTES 1" >>confdefs.h

fi

# And what happens when we malloc zero?
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can malloc(0) safely." >&5
$as_echo_n "checking whether we can malloc(0) safely.... " >&6; }
if ${tor_cv_malloc_zero_works+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test "$cross_compiling" = yes; then :
  tor_cv_malloc_zero_works=cross
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
#ifdef HAVE_STDDEF_H
#include <stddef.h>
#endif
int main () { return malloc(0)?0:1; }
_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  tor_cv_malloc_zero_works=yes
else
  tor_cv_malloc_zero_works=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_malloc_zero_works" >&5
$as_echo "$tor_cv_malloc_zero_works" >&6; }

if test "$tor_cv_malloc_zero_works" = "cross"; then
  # Cross-compiling; let's hope that the target isn't raving mad.
  { $as_echo "$as_me:${as_lineno-$LINENO}: Cross-compiling: we'll assume that we need to check malloc() arguments for 0." >&5
$as_echo "$as_me: Cross-compiling: we'll assume that we need to check malloc() arguments for 0." >&6;}
fi

if test "$tor_cv_malloc_zero_works" = "yes"; then

$as_echo "#define MALLOC_ZERO_WORKS 1" >>confdefs.h

fi

# whether we seem to be in a 2s-complement world.
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using 2s-complement arithmetic" >&5
$as_echo_n "checking whether we are using 2s-complement arithmetic... " >&6; }
if ${tor_cv_twos_complement+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test "$cross_compiling" = yes; then :
  tor_cv_twos_complement=cross
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
int main () { int problem = ((-99) != (~99)+1);
return problem ? 1 : 0; }
_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  tor_cv_twos_complement=yes
else
  tor_cv_twos_complement=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_twos_complement" >&5
$as_echo "$tor_cv_twos_complement" >&6; }

if test "$tor_cv_twos_complement" = "cross"; then
  # Cross-compiling; let's hope that the target isn't raving mad.
  { $as_echo "$as_me:${as_lineno-$LINENO}: Cross-compiling: we'll assume that negative integers are represented with two's complement." >&5
$as_echo "$as_me: Cross-compiling: we'll assume that negative integers are represented with two's complement." >&6;}
fi

if test "$tor_cv_twos_complement" != "no"; then

$as_echo "#define USING_TWOS_COMPLEMENT 1" >>confdefs.h

fi

# What does shifting a negative value do?
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether right-shift on negative values does sign-extension" >&5
$as_echo_n "checking whether right-shift on negative values does sign-extension... " >&6; }
if ${tor_cv_sign_extend+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test "$cross_compiling" = yes; then :
  tor_cv_sign_extend=cross
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
int main () { int okay = (-60 >> 8) == -1; return okay ? 0 : 1; }
_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  tor_cv_sign_extend=yes
else
  tor_cv_sign_extend=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_sign_extend" >&5
$as_echo "$tor_cv_sign_extend" >&6; }

if test "$tor_cv_sign_extend" = "cross"; then
  # Cross-compiling; let's hope that the target isn't raving mad.
  { $as_echo "$as_me:${as_lineno-$LINENO}: Cross-compiling: we'll assume that right-shifting negative integers causes sign-extension" >&5
$as_echo "$as_me: Cross-compiling: we'll assume that right-shifting negative integers causes sign-extension" >&6;}
fi

if test "$tor_cv_sign_extend" != "no"; then

$as_echo "#define RSHIFT_DOES_SIGN_EXTEND 1" >>confdefs.h

fi

# Is uint8_t the same type as unsigned char?
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether uint8_t is the same type as unsigned char" >&5
$as_echo_n "checking whether uint8_t is the same type as unsigned char... " >&6; }
if ${tor_cv_uint8_uchar+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include <stdint.h>
extern uint8_t c;
unsigned char c;
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  tor_cv_uint8_uchar=yes
else
  tor_cv_uint8_uchar=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_uint8_uchar" >&5
$as_echo "$tor_cv_uint8_uchar" >&6; }

if test "$tor_cv_uint8_uchar" = "cross"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: Cross-compiling: we'll assume that uint8_t is the same type as unsigned char" >&5
$as_echo "$as_me: Cross-compiling: we'll assume that uint8_t is the same type as unsigned char" >&6;}
fi

if test "$tor_cv_uint8_uchar" = "no"; then
  as_fn_error $? "We assume that uint8_t is the same type as unsigned char, but your compiler disagrees." "$LINENO" 5
fi


# Check whether --with-tcmalloc was given.
if test "${with_tcmalloc+set}" = set; then :
  withval=$with_tcmalloc;
fi


default_malloc=system

if test "x$enable_openbsd_malloc" = "xyes" ; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: The --enable-openbsd-malloc argument is deprecated; use --with-malloc=openbsd instead." >&5
$as_echo "$as_me: The --enable-openbsd-malloc argument is deprecated; use --with-malloc=openbsd instead." >&6;}
  default_malloc=openbsd
fi

if test "x$with_tcmalloc" = "xyes"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: The --with-tcmalloc argument is deprecated; use --with-malloc=tcmalloc instead." >&5
$as_echo "$as_me: The --with-tcmalloc argument is deprecated; use --with-malloc=tcmalloc instead." >&6;}
  default_malloc=tcmalloc
fi


# Check whether --with-malloc was given.
if test "${with_malloc+set}" = set; then :
  withval=$with_malloc;  malloc="$with_malloc"
else
   malloc="$default_malloc"
fi


case $malloc in #(
  tcmalloc) :


pkg_failed=no
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for TCMALLOC" >&5
$as_echo_n "checking for TCMALLOC... " >&6; }

if test -n "$TCMALLOC_CFLAGS"; then
    pkg_cv_TCMALLOC_CFLAGS="$TCMALLOC_CFLAGS"
 elif test -n "$PKG_CONFIG"; then
    if test -n "$PKG_CONFIG" && \
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libtcmalloc\""; } >&5
  ($PKG_CONFIG --exists --print-errors "libtcmalloc") 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }; then
  pkg_cv_TCMALLOC_CFLAGS=`$PKG_CONFIG --cflags "libtcmalloc" 2>/dev/null`
		      test "x$?" != "x0" && pkg_failed=yes
else
  pkg_failed=yes
fi
 else
    pkg_failed=untried
fi
if test -n "$TCMALLOC_LIBS"; then
    pkg_cv_TCMALLOC_LIBS="$TCMALLOC_LIBS"
 elif test -n "$PKG_CONFIG"; then
    if test -n "$PKG_CONFIG" && \
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libtcmalloc\""; } >&5
  ($PKG_CONFIG --exists --print-errors "libtcmalloc") 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }; then
  pkg_cv_TCMALLOC_LIBS=`$PKG_CONFIG --libs "libtcmalloc" 2>/dev/null`
		      test "x$?" != "x0" && pkg_failed=yes
else
  pkg_failed=yes
fi
 else
    pkg_failed=untried
fi



if test $pkg_failed = yes; then
   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
        _pkg_short_errors_supported=yes
else
        _pkg_short_errors_supported=no
fi
        if test $_pkg_short_errors_supported = yes; then
	        TCMALLOC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libtcmalloc" 2>&1`
        else
	        TCMALLOC_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libtcmalloc" 2>&1`
        fi
	# Put the nasty error message in config.log where it belongs
	echo "$TCMALLOC_PKG_ERRORS" >&5

	have_tcmalloc=no
elif test $pkg_failed = untried; then
     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
	have_tcmalloc=no
else
	TCMALLOC_CFLAGS=$pkg_cv_TCMALLOC_CFLAGS
	TCMALLOC_LIBS=$pkg_cv_TCMALLOC_LIBS
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
	have_tcmalloc=yes
fi

      if test "x$have_tcmalloc" = "xno" ; then
          as_fn_error $? "Unable to find tcmalloc requested by --with-malloc, $pkg_config_user_action, or set TCMALLOC_CFLAGS and TCMALLOC_LIBS." "$LINENO" 5
      fi

      CFLAGS="$CFLAGS $TCMALLOC_CFLAGS"
      LIBS="$TCMALLOC_LIBS $LIBS"
   ;; #(
  jemalloc) :


pkg_failed=no
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for JEMALLOC" >&5
$as_echo_n "checking for JEMALLOC... " >&6; }

if test -n "$JEMALLOC_CFLAGS"; then
    pkg_cv_JEMALLOC_CFLAGS="$JEMALLOC_CFLAGS"
 elif test -n "$PKG_CONFIG"; then
    if test -n "$PKG_CONFIG" && \
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"jemalloc\""; } >&5
  ($PKG_CONFIG --exists --print-errors "jemalloc") 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }; then
  pkg_cv_JEMALLOC_CFLAGS=`$PKG_CONFIG --cflags "jemalloc" 2>/dev/null`
		      test "x$?" != "x0" && pkg_failed=yes
else
  pkg_failed=yes
fi
 else
    pkg_failed=untried
fi
if test -n "$JEMALLOC_LIBS"; then
    pkg_cv_JEMALLOC_LIBS="$JEMALLOC_LIBS"
 elif test -n "$PKG_CONFIG"; then
    if test -n "$PKG_CONFIG" && \
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"jemalloc\""; } >&5
  ($PKG_CONFIG --exists --print-errors "jemalloc") 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }; then
  pkg_cv_JEMALLOC_LIBS=`$PKG_CONFIG --libs "jemalloc" 2>/dev/null`
		      test "x$?" != "x0" && pkg_failed=yes
else
  pkg_failed=yes
fi
 else
    pkg_failed=untried
fi



if test $pkg_failed = yes; then
   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
        _pkg_short_errors_supported=yes
else
        _pkg_short_errors_supported=no
fi
        if test $_pkg_short_errors_supported = yes; then
	        JEMALLOC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "jemalloc" 2>&1`
        else
	        JEMALLOC_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "jemalloc" 2>&1`
        fi
	# Put the nasty error message in config.log where it belongs
	echo "$JEMALLOC_PKG_ERRORS" >&5

	have_jemalloc=no
elif test $pkg_failed = untried; then
     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
	have_jemalloc=no
else
	JEMALLOC_CFLAGS=$pkg_cv_JEMALLOC_CFLAGS
	JEMALLOC_LIBS=$pkg_cv_JEMALLOC_LIBS
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
	have_jemalloc=yes
fi

      if test "x$have_jemalloc" = "xno" ; then
          as_fn_error $? "Unable to find jemalloc requested by --with-malloc, $pkg_config_user_action, or set JEMALLOC_CFLAGS and JEMALLOC_LIBS." "$LINENO" 5
      fi

      CFLAGS="$CFLAGS $JEMALLOC_CFLAGS"
      LIBS="$JEMALLOC_LIBS $LIBS"
      using_custom_malloc=yes
   ;; #(
  openbsd) :

    { $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
$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;}
    enable_openbsd_malloc=yes
   ;; #(
  system) :

     # handle this later, including the jemalloc fallback
    for ac_func in mallinfo
do :
  ac_fn_c_check_func "$LINENO" "mallinfo" "ac_cv_func_mallinfo"
if test "x$ac_cv_func_mallinfo" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_MALLINFO 1
_ACEOF

fi
done

   ;; #(
  *) :
    as_fn_error $? "--with-malloc=\`$with_malloc' not supported, see --help" "$LINENO" 5
 ;;
esac

 if test "x$enable_openbsd_malloc" = "xyes"; then
  USE_OPENBSD_MALLOC_TRUE=
  USE_OPENBSD_MALLOC_FALSE='#'
else
  USE_OPENBSD_MALLOC_TRUE='#'
  USE_OPENBSD_MALLOC_FALSE=
fi


if test "$malloc" != "system"; then
  # Tell the C compiler not to use the system allocator functions.



  { $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
$as_echo_n "checking whether the compiler accepts -fno-builtin-malloc -fno-builtin-realloc -fno-builtin-calloc -fno-builtin-free... " >&6; }
if ${tor_cv_cflags__fno_builtin_malloc__fno_builtin_realloc__fno_builtin_calloc__fno_builtin_free+:} false; then :
  $as_echo_n "(cached) " >&6
else

    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -fno-builtin-malloc -fno-builtin-realloc -fno-builtin-calloc -fno-builtin-free"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  tor_cv_cflags__fno_builtin_malloc__fno_builtin_realloc__fno_builtin_calloc__fno_builtin_free=yes
else
  tor_cv_cflags__fno_builtin_malloc__fno_builtin_realloc__fno_builtin_calloc__fno_builtin_free=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    if test x != x; then

      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  tor_can_link__fno_builtin_malloc__fno_builtin_realloc__fno_builtin_calloc__fno_builtin_free=yes
else
  tor_can_link__fno_builtin_malloc__fno_builtin_realloc__fno_builtin_calloc__fno_builtin_free=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__fno_builtin_malloc__fno_builtin_realloc__fno_builtin_calloc__fno_builtin_free" >&5
$as_echo "$tor_cv_cflags__fno_builtin_malloc__fno_builtin_realloc__fno_builtin_calloc__fno_builtin_free" >&6; }
  if test x$tor_cv_cflags__fno_builtin_malloc__fno_builtin_realloc__fno_builtin_calloc__fno_builtin_free = xyes; then
     CFLAGS="$CFLAGS -fno-builtin-malloc -fno-builtin-realloc -fno-builtin-calloc -fno-builtin-free"
  else
     true
  fi



fi
if test "$using_custom_malloc" = "yes"; then
  # Tell the C compiler not to use the system allocator functions.



  { $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
$as_echo_n "checking whether the compiler accepts -fno-builtin-malloc -fno-builtin-realloc -fno-builtin-calloc -fno-builtin-free... " >&6; }
if ${tor_cv_cflags__fno_builtin_malloc__fno_builtin_realloc__fno_builtin_calloc__fno_builtin_free+:} false; then :
  $as_echo_n "(cached) " >&6
else

    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -fno-builtin-malloc -fno-builtin-realloc -fno-builtin-calloc -fno-builtin-free"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  tor_cv_cflags__fno_builtin_malloc__fno_builtin_realloc__fno_builtin_calloc__fno_builtin_free=yes
else
  tor_cv_cflags__fno_builtin_malloc__fno_builtin_realloc__fno_builtin_calloc__fno_builtin_free=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    if test x != x; then

      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  tor_can_link__fno_builtin_malloc__fno_builtin_realloc__fno_builtin_calloc__fno_builtin_free=yes
else
  tor_can_link__fno_builtin_malloc__fno_builtin_realloc__fno_builtin_calloc__fno_builtin_free=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__fno_builtin_malloc__fno_builtin_realloc__fno_builtin_calloc__fno_builtin_free" >&5
$as_echo "$tor_cv_cflags__fno_builtin_malloc__fno_builtin_realloc__fno_builtin_calloc__fno_builtin_free" >&6; }
  if test x$tor_cv_cflags__fno_builtin_malloc__fno_builtin_realloc__fno_builtin_calloc__fno_builtin_free = xyes; then
     CFLAGS="$CFLAGS -fno-builtin-malloc -fno-builtin-realloc -fno-builtin-calloc -fno-builtin-free"
  else
     true
  fi



fi

# By default, we're going to assume we don't have mlockall()
# bionic and other platforms have various broken mlockall subsystems.
# Some systems don't have a working mlockall, some aren't linkable,
# and some have it but don't declare it.
for ac_func in mlockall
do :
  ac_fn_c_check_func "$LINENO" "mlockall" "ac_cv_func_mlockall"
if test "x$ac_cv_func_mlockall" = xyes; then :
  cat >>confdefs.h <<_ACEOF
#define HAVE_MLOCKALL 1
_ACEOF

fi
done

ac_fn_c_check_decl "$LINENO" "mlockall" "ac_cv_have_decl_mlockall" "
#ifdef HAVE_SYS_MMAN_H
#include <sys/mman.h>
#endif
"
if test "x$ac_cv_have_decl_mlockall" = xyes; then :
  ac_have_decl=1
else
  ac_have_decl=0
fi

cat >>confdefs.h <<_ACEOF
#define HAVE_DECL_MLOCKALL $ac_have_decl
_ACEOF


# Allow user to specify an alternate syslog facility

# Check whether --with-syslog-facility was given.
if test "${with_syslog_facility+set}" = set; then :
  withval=$with_syslog_facility; syslog_facility="$withval"
else
  syslog_facility="LOG_DAEMON"
fi


cat >>confdefs.h <<_ACEOF
#define LOGFACILITY $syslog_facility
_ACEOF



# Check if we have getresuid and getresgid
for ac_func in getresuid getresgid
do :
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF

fi
done


# Check for gethostbyname_r in all its glorious incompatible versions.
#   (This logic is based on that in Python's configure.in)


ac_fn_c_check_func "$LINENO" "gethostbyname_r" "ac_cv_func_gethostbyname_r"
if test "x$ac_cv_func_gethostbyname_r" = xyes; then :

  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how many arguments gethostbyname_r() wants" >&5
$as_echo_n "checking how many arguments gethostbyname_r() wants... " >&6; }
  OLD_CFLAGS=$CFLAGS
  CFLAGS="$CFLAGS $MY_CPPFLAGS $MY_THREAD_CPPFLAGS $MY_CFLAGS"
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include <netdb.h>

int
main ()
{

    char *cp1, *cp2;
    struct hostent *h1, *h2;
    int i1, i2;
    (void)gethostbyname_r(cp1,h1,cp2,i1,&h2,&i2);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :

    $as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h


$as_echo "#define HAVE_GETHOSTBYNAME_R_6_ARG 1" >>confdefs.h

    { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6" >&5
$as_echo "6" >&6; }

else

    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include <netdb.h>

int
main ()
{

      char *cp1, *cp2;
      struct hostent *h1;
      int i1, i2;
      (void)gethostbyname_r(cp1,h1,cp2,i1,&i2);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :

      $as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h


$as_echo "#define HAVE_GETHOSTBYNAME_R_5_ARG 1" >>confdefs.h

      { $as_echo "$as_me:${as_lineno-$LINENO}: result: 5" >&5
$as_echo "5" >&6; }

else

      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include <netdb.h>

int
main ()
{

       char *cp1;
       struct hostent *h1;
       struct hostent_data hd;
       (void) gethostbyname_r(cp1,h1,&hd);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :

       $as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h


$as_echo "#define HAVE_GETHOSTBYNAME_R_3_ARG 1" >>confdefs.h

       { $as_echo "$as_me:${as_lineno-$LINENO}: result: 3" >&5
$as_echo "3" >&6; }

else

       { $as_echo "$as_me:${as_lineno-$LINENO}: result: 0" >&5
$as_echo "0" >&6; }

fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 CFLAGS=$OLD_CFLAGS

fi


{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler supports __func__" >&5
$as_echo_n "checking whether the C compiler supports __func__... " >&6; }
if ${tor_cv_have_func_macro+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include <stdio.h>
int main(int c, char **v) { puts(__func__); }
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  tor_cv_have_func_macro=yes
else
  tor_cv_have_func_macro=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_have_func_macro" >&5
$as_echo "$tor_cv_have_func_macro" >&6; }

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler supports __FUNC__" >&5
$as_echo_n "checking whether the C compiler supports __FUNC__... " >&6; }
if ${tor_cv_have_FUNC_macro+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include <stdio.h>
int main(int c, char **v) { puts(__FUNC__); }
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  tor_cv_have_FUNC_macro=yes
else
  tor_cv_have_FUNC_macro=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_have_FUNC_macro" >&5
$as_echo "$tor_cv_have_FUNC_macro" >&6; }

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler supports __FUNCTION__" >&5
$as_echo_n "checking whether the C compiler supports __FUNCTION__... " >&6; }
if ${tor_cv_have_FUNCTION_macro+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include <stdio.h>
int main(int c, char **v) { puts(__FUNCTION__); }
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  tor_cv_have_FUNCTION_macro=yes
else
  tor_cv_have_FUNCTION_macro=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_have_FUNCTION_macro" >&5
$as_echo "$tor_cv_have_FUNCTION_macro" >&6; }

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have extern char **environ already declared" >&5
$as_echo_n "checking whether we have extern char **environ already declared... " >&6; }
if ${tor_cv_have_environ_declared+:} false; then :
  $as_echo_n "(cached) " >&6
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif
#include <stdlib.h>
int main(int c, char **v) { char **t = environ; }
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  tor_cv_have_environ_declared=yes
else
  tor_cv_have_environ_declared=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_have_environ_declared" >&5
$as_echo "$tor_cv_have_environ_declared" >&6; }

if test "$tor_cv_have_func_macro" = "yes"; then

$as_echo "#define HAVE_MACRO__func__ 1" >>confdefs.h

fi

if test "$tor_cv_have_FUNC_macro" = "yes"; then

$as_echo "#define HAVE_MACRO__FUNC__ 1" >>confdefs.h

fi

if test "$tor_cv_have_FUNCTION_macro" = "yes"; then

$as_echo "#define HAVE_MACRO__FUNCTION__ 1" >>confdefs.h

fi

if test "$tor_cv_have_environ_declared" = "yes"; then

$as_echo "#define HAVE_EXTERN_ENVIRON_DECLARED 1" >>confdefs.h

fi

# $prefix stores the value of the --prefix command line option, or
# NONE if the option wasn't set.  In the case that it wasn't set, make
# it be the default, so that we can use it to expand directories now.
if test "x$prefix" = "xNONE"; then
  prefix=$ac_default_prefix
fi

# and similarly for $exec_prefix
if test "x$exec_prefix" = "xNONE"; then
  exec_prefix=$prefix
fi

if test "x$BUILDDIR" = "x"; then
  BUILDDIR=`pwd`
fi


cat >>confdefs.h <<_ACEOF
#define BUILDDIR "$BUILDDIR"
_ACEOF


if test "x$SRCDIR" = "x"; then
  SRCDIR=$(cd "$srcdir"; pwd)
fi

cat >>confdefs.h <<_ACEOF
#define SRCDIR "$SRCDIR"
_ACEOF


if test "x$CONFDIR" = "x"; then
  CONFDIR=`eval echo $sysconfdir/tor`
fi


cat >>confdefs.h <<_ACEOF
#define CONFDIR "$CONFDIR"
_ACEOF


BINDIR=`eval echo $bindir`

LOCALSTATEDIR=`eval echo $localstatedir`


if test "$bwin32" = "true"; then
  # Test if the linker supports the --nxcompat and --dynamicbase options
  # for Windows
  save_LDFLAGS="$LDFLAGS"
  LDFLAGS="-Wl,--nxcompat -Wl,--dynamicbase"
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker supports DllCharacteristics" >&5
$as_echo_n "checking whether the linker supports DllCharacteristics... " >&6; }
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
    save_LDFLAGS="$save_LDFLAGS $LDFLAGS"
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
  LDFLAGS="$save_LDFLAGS"
fi

# Set CFLAGS _after_ all the above checks, since our warnings are stricter
# than autoconf's macros like.
if test "$GCC" = "yes"; then
  # Disable GCC's strict aliasing checks.  They are an hours-to-debug
  # accident waiting to happen.
  CFLAGS="$CFLAGS -Wall -fno-strict-aliasing"
else
  # Override optimization level for non-gcc compilers
  CFLAGS="$CFLAGS -O"
  enable_gcc_warnings=no
  enable_gcc_warnings_advisory=no
fi

# Warnings implies advisory-warnings and -Werror.
if test "$enable_gcc_warnings" = "yes"; then
  enable_gcc_warnings_advisory=yes
  enable_fatal_warnings=yes
fi

# OS X Lion started deprecating the system openssl. Let's just disable
# all deprecation warnings on OS X. Also, to potentially make the binary
# a little smaller, let's enable dead_strip.
case "$host_os" in

 darwin*)
    CFLAGS="$CFLAGS -Wno-deprecated-declarations"
    LDFLAGS="$LDFLAGS -dead_strip" ;;
esac

TOR_WARNING_FLAGS=""

# Add some more warnings which we use in development but not in the
# released versions.  (Some relevant gcc versions can't handle these.)
#
# Note that we have to do this near the end  of the autoconf process, or
# else we may run into problems when these warnings hit on the testing C
# programs that autoconf wants to build.
if test "x$enable_gcc_warnings_advisory" != "xno"; then

  case "$host" in
    *-*-openbsd* | *-*-bitrig*)
      # Some OpenBSD versions (like 4.8) have -Wsystem-headers by default.
      # That's fine, except that the headers don't pass -Wredundant-decls.
      # Therefore, let's disable -Wsystem-headers when we're building
      # with maximal warnings on OpenBSD.
      CFLAGS="$CFLAGS -Wno-system-headers" ;;
  esac

  CFLAGS_NOWARNINGS="$CFLAGS"

  # GCC4.3 users once report trouble with -Wstrict-overflow=5.  GCC5 users
  # have it work better.
  # CFLAGS="$CFLAGS -Wstrict-overflow=1"

  # This warning was added in gcc 4.3, but it appears to generate
  # spurious warnings in gcc 4.4.  I don't know if it works in 4.5.
  #CFLAGS="$CFLAGS -Wlogical-op"



  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Waddress" >&5
$as_echo_n "checking whether the compiler accepts -Waddress... " >&6; }
if ${tor_cv_cflags__Waddress+:} false; then :
  $as_echo_n "(cached) " >&6
else

    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Waddress"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  tor_cv_cflags__Waddress=yes
else
  tor_cv_cflags__Waddress=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    if test x != x; then

      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  tor_can_link__Waddress=yes
else
  tor_can_link__Waddress=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Waddress" >&5
$as_echo "$tor_cv_cflags__Waddress" >&6; }
  if test x$tor_cv_cflags__Waddress = xyes; then
     TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Waddress" CFLAGS="$CFLAGS -Waddress"
  else
     true
  fi




  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Waddress-of-array-temporary" >&5
$as_echo_n "checking whether the compiler accepts -Waddress-of-array-temporary... " >&6; }
if ${tor_cv_cflags__Waddress_of_array_temporary+:} false; then :
  $as_echo_n "(cached) " >&6
else

    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Waddress-of-array-temporary"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  tor_cv_cflags__Waddress_of_array_temporary=yes
else
  tor_cv_cflags__Waddress_of_array_temporary=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    if test x != x; then

      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  tor_can_link__Waddress_of_array_temporary=yes
else
  tor_can_link__Waddress_of_array_temporary=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Waddress_of_array_temporary" >&5
$as_echo "$tor_cv_cflags__Waddress_of_array_temporary" >&6; }
  if test x$tor_cv_cflags__Waddress_of_array_temporary = xyes; then
     TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Waddress-of-array-temporary" CFLAGS="$CFLAGS -Waddress-of-array-temporary"
  else
     true
  fi




  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Waddress-of-temporary" >&5
$as_echo_n "checking whether the compiler accepts -Waddress-of-temporary... " >&6; }
if ${tor_cv_cflags__Waddress_of_temporary+:} false; then :
  $as_echo_n "(cached) " >&6
else

    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Waddress-of-temporary"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  tor_cv_cflags__Waddress_of_temporary=yes
else
  tor_cv_cflags__Waddress_of_temporary=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    if test x != x; then

      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  tor_can_link__Waddress_of_temporary=yes
else
  tor_can_link__Waddress_of_temporary=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Waddress_of_temporary" >&5
$as_echo "$tor_cv_cflags__Waddress_of_temporary" >&6; }
  if test x$tor_cv_cflags__Waddress_of_temporary = xyes; then
     TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Waddress-of-temporary" CFLAGS="$CFLAGS -Waddress-of-temporary"
  else
     true
  fi




  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wambiguous-macro" >&5
$as_echo_n "checking whether the compiler accepts -Wambiguous-macro... " >&6; }
if ${tor_cv_cflags__Wambiguous_macro+:} false; then :
  $as_echo_n "(cached) " >&6
else

    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Wambiguous-macro"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  tor_cv_cflags__Wambiguous_macro=yes
else
  tor_cv_cflags__Wambiguous_macro=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    if test x != x; then

      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  tor_can_link__Wambiguous_macro=yes
else
  tor_can_link__Wambiguous_macro=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wambiguous_macro" >&5
$as_echo "$tor_cv_cflags__Wambiguous_macro" >&6; }
  if test x$tor_cv_cflags__Wambiguous_macro = xyes; then
     TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Wambiguous-macro" CFLAGS="$CFLAGS -Wambiguous-macro"
  else
     true
  fi




  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wanonymous-pack-parens" >&5
$as_echo_n "checking whether the compiler accepts -Wanonymous-pack-parens... " >&6; }
if ${tor_cv_cflags__Wanonymous_pack_parens+:} false; then :
  $as_echo_n "(cached) " >&6
else

    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Wanonymous-pack-parens"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  tor_cv_cflags__Wanonymous_pack_parens=yes
else
  tor_cv_cflags__Wanonymous_pack_parens=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    if test x != x; then

      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  tor_can_link__Wanonymous_pack_parens=yes
else
  tor_can_link__Wanonymous_pack_parens=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wanonymous_pack_parens" >&5
$as_echo "$tor_cv_cflags__Wanonymous_pack_parens" >&6; }
  if test x$tor_cv_cflags__Wanonymous_pack_parens = xyes; then
     TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Wanonymous-pack-parens" CFLAGS="$CFLAGS -Wanonymous-pack-parens"
  else
     true
  fi




  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Warc" >&5
$as_echo_n "checking whether the compiler accepts -Warc... " >&6; }
if ${tor_cv_cflags__Warc+:} false; then :
  $as_echo_n "(cached) " >&6
else

    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Warc"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  tor_cv_cflags__Warc=yes
else
  tor_cv_cflags__Warc=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    if test x != x; then

      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  tor_can_link__Warc=yes
else
  tor_can_link__Warc=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Warc" >&5
$as_echo "$tor_cv_cflags__Warc" >&6; }
  if test x$tor_cv_cflags__Warc = xyes; then
     TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Warc" CFLAGS="$CFLAGS -Warc"
  else
     true
  fi




  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Warc-abi" >&5
$as_echo_n "checking whether the compiler accepts -Warc-abi... " >&6; }
if ${tor_cv_cflags__Warc_abi+:} false; then :
  $as_echo_n "(cached) " >&6
else

    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Warc-abi"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  tor_cv_cflags__Warc_abi=yes
else
  tor_cv_cflags__Warc_abi=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    if test x != x; then

      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  tor_can_link__Warc_abi=yes
else
  tor_can_link__Warc_abi=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Warc_abi" >&5
$as_echo "$tor_cv_cflags__Warc_abi" >&6; }
  if test x$tor_cv_cflags__Warc_abi = xyes; then
     TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Warc-abi" CFLAGS="$CFLAGS -Warc-abi"
  else
     true
  fi




  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Warc-bridge-casts-disallowed-in-nonarc" >&5
$as_echo_n "checking whether the compiler accepts -Warc-bridge-casts-disallowed-in-nonarc... " >&6; }
if ${tor_cv_cflags__Warc_bridge_casts_disallowed_in_nonarc+:} false; then :
  $as_echo_n "(cached) " >&6
else

    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Warc-bridge-casts-disallowed-in-nonarc"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  tor_cv_cflags__Warc_bridge_casts_disallowed_in_nonarc=yes
else
  tor_cv_cflags__Warc_bridge_casts_disallowed_in_nonarc=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    if test x != x; then

      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  tor_can_link__Warc_bridge_casts_disallowed_in_nonarc=yes
else
  tor_can_link__Warc_bridge_casts_disallowed_in_nonarc=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Warc_bridge_casts_disallowed_in_nonarc" >&5
$as_echo "$tor_cv_cflags__Warc_bridge_casts_disallowed_in_nonarc" >&6; }
  if test x$tor_cv_cflags__Warc_bridge_casts_disallowed_in_nonarc = xyes; then
     TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Warc-bridge-casts-disallowed-in-nonarc" CFLAGS="$CFLAGS -Warc-bridge-casts-disallowed-in-nonarc"
  else
     true
  fi




  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Warc-maybe-repeated-use-of-weak" >&5
$as_echo_n "checking whether the compiler accepts -Warc-maybe-repeated-use-of-weak... " >&6; }
if ${tor_cv_cflags__Warc_maybe_repeated_use_of_weak+:} false; then :
  $as_echo_n "(cached) " >&6
else

    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Warc-maybe-repeated-use-of-weak"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  tor_cv_cflags__Warc_maybe_repeated_use_of_weak=yes
else
  tor_cv_cflags__Warc_maybe_repeated_use_of_weak=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    if test x != x; then

      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  tor_can_link__Warc_maybe_repeated_use_of_weak=yes
else
  tor_can_link__Warc_maybe_repeated_use_of_weak=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Warc_maybe_repeated_use_of_weak" >&5
$as_echo "$tor_cv_cflags__Warc_maybe_repeated_use_of_weak" >&6; }
  if test x$tor_cv_cflags__Warc_maybe_repeated_use_of_weak = xyes; then
     TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Warc-maybe-repeated-use-of-weak" CFLAGS="$CFLAGS -Warc-maybe-repeated-use-of-weak"
  else
     true
  fi




  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Warc-performSelector-leaks" >&5
$as_echo_n "checking whether the compiler accepts -Warc-performSelector-leaks... " >&6; }
if ${tor_cv_cflags__Warc_performSelector_leaks+:} false; then :
  $as_echo_n "(cached) " >&6
else

    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Warc-performSelector-leaks"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  tor_cv_cflags__Warc_performSelector_leaks=yes
else
  tor_cv_cflags__Warc_performSelector_leaks=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    if test x != x; then

      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  tor_can_link__Warc_performSelector_leaks=yes
else
  tor_can_link__Warc_performSelector_leaks=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Warc_performSelector_leaks" >&5
$as_echo "$tor_cv_cflags__Warc_performSelector_leaks" >&6; }
  if test x$tor_cv_cflags__Warc_performSelector_leaks = xyes; then
     TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Warc-performSelector-leaks" CFLAGS="$CFLAGS -Warc-performSelector-leaks"
  else
     true
  fi




  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Warc-repeated-use-of-weak" >&5
$as_echo_n "checking whether the compiler accepts -Warc-repeated-use-of-weak... " >&6; }
if ${tor_cv_cflags__Warc_repeated_use_of_weak+:} false; then :
  $as_echo_n "(cached) " >&6
else

    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Warc-repeated-use-of-weak"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  tor_cv_cflags__Warc_repeated_use_of_weak=yes
else
  tor_cv_cflags__Warc_repeated_use_of_weak=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    if test x != x; then

      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  tor_can_link__Warc_repeated_use_of_weak=yes
else
  tor_can_link__Warc_repeated_use_of_weak=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Warc_repeated_use_of_weak" >&5
$as_echo "$tor_cv_cflags__Warc_repeated_use_of_weak" >&6; }
  if test x$tor_cv_cflags__Warc_repeated_use_of_weak = xyes; then
     TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Warc-repeated-use-of-weak" CFLAGS="$CFLAGS -Warc-repeated-use-of-weak"
  else
     true
  fi




  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Warray-bounds" >&5
$as_echo_n "checking whether the compiler accepts -Warray-bounds... " >&6; }
if ${tor_cv_cflags__Warray_bounds+:} false; then :
  $as_echo_n "(cached) " >&6
else

    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Warray-bounds"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  tor_cv_cflags__Warray_bounds=yes
else
  tor_cv_cflags__Warray_bounds=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    if test x != x; then

      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  tor_can_link__Warray_bounds=yes
else
  tor_can_link__Warray_bounds=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Warray_bounds" >&5
$as_echo "$tor_cv_cflags__Warray_bounds" >&6; }
  if test x$tor_cv_cflags__Warray_bounds = xyes; then
     TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Warray-bounds" CFLAGS="$CFLAGS -Warray-bounds"
  else
     true
  fi




  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Warray-bounds-pointer-arithmetic" >&5
$as_echo_n "checking whether the compiler accepts -Warray-bounds-pointer-arithmetic... " >&6; }
if ${tor_cv_cflags__Warray_bounds_pointer_arithmetic+:} false; then :
  $as_echo_n "(cached) " >&6
else

    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Warray-bounds-pointer-arithmetic"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  tor_cv_cflags__Warray_bounds_pointer_arithmetic=yes
else
  tor_cv_cflags__Warray_bounds_pointer_arithmetic=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    if test x != x; then

      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  tor_can_link__Warray_bounds_pointer_arithmetic=yes
else
  tor_can_link__Warray_bounds_pointer_arithmetic=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Warray_bounds_pointer_arithmetic" >&5
$as_echo "$tor_cv_cflags__Warray_bounds_pointer_arithmetic" >&6; }
  if test x$tor_cv_cflags__Warray_bounds_pointer_arithmetic = xyes; then
     TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Warray-bounds-pointer-arithmetic" CFLAGS="$CFLAGS -Warray-bounds-pointer-arithmetic"
  else
     true
  fi




  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wasm" >&5
$as_echo_n "checking whether the compiler accepts -Wasm... " >&6; }
if ${tor_cv_cflags__Wasm+:} false; then :
  $as_echo_n "(cached) " >&6
else

    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Wasm"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  tor_cv_cflags__Wasm=yes
else
  tor_cv_cflags__Wasm=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    if test x != x; then

      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  tor_can_link__Wasm=yes
else
  tor_can_link__Wasm=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wasm" >&5
$as_echo "$tor_cv_cflags__Wasm" >&6; }
  if test x$tor_cv_cflags__Wasm = xyes; then
     TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Wasm" CFLAGS="$CFLAGS -Wasm"
  else
     true
  fi




  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wasm-operand-widths" >&5
$as_echo_n "checking whether the compiler accepts -Wasm-operand-widths... " >&6; }
if ${tor_cv_cflags__Wasm_operand_widths+:} false; then :
  $as_echo_n "(cached) " >&6
else

    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Wasm-operand-widths"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  tor_cv_cflags__Wasm_operand_widths=yes
else
  tor_cv_cflags__Wasm_operand_widths=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    if test x != x; then

      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  tor_can_link__Wasm_operand_widths=yes
else
  tor_can_link__Wasm_operand_widths=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wasm_operand_widths" >&5
$as_echo "$tor_cv_cflags__Wasm_operand_widths" >&6; }
  if test x$tor_cv_cflags__Wasm_operand_widths = xyes; then
     TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Wasm-operand-widths" CFLAGS="$CFLAGS -Wasm-operand-widths"
  else
     true
  fi




  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Watomic-properties" >&5
$as_echo_n "checking whether the compiler accepts -Watomic-properties... " >&6; }
if ${tor_cv_cflags__Watomic_properties+:} false; then :
  $as_echo_n "(cached) " >&6
else

    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Watomic-properties"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  tor_cv_cflags__Watomic_properties=yes
else
  tor_cv_cflags__Watomic_properties=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    if test x != x; then

      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  tor_can_link__Watomic_properties=yes
else
  tor_can_link__Watomic_properties=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Watomic_properties" >&5
$as_echo "$tor_cv_cflags__Watomic_properties" >&6; }
  if test x$tor_cv_cflags__Watomic_properties = xyes; then
     TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Watomic-properties" CFLAGS="$CFLAGS -Watomic-properties"
  else
     true
  fi




  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Watomic-property-with-user-defined-accessor" >&5
$as_echo_n "checking whether the compiler accepts -Watomic-property-with-user-defined-accessor... " >&6; }
if ${tor_cv_cflags__Watomic_property_with_user_defined_accessor+:} false; then :
  $as_echo_n "(cached) " >&6
else

    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Watomic-property-with-user-defined-accessor"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  tor_cv_cflags__Watomic_property_with_user_defined_accessor=yes
else
  tor_cv_cflags__Watomic_property_with_user_defined_accessor=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    if test x != x; then

      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  tor_can_link__Watomic_property_with_user_defined_accessor=yes
else
  tor_can_link__Watomic_property_with_user_defined_accessor=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Watomic_property_with_user_defined_accessor" >&5
$as_echo "$tor_cv_cflags__Watomic_property_with_user_defined_accessor" >&6; }
  if test x$tor_cv_cflags__Watomic_property_with_user_defined_accessor = xyes; then
     TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Watomic-property-with-user-defined-accessor" CFLAGS="$CFLAGS -Watomic-property-with-user-defined-accessor"
  else
     true
  fi




  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wauto-import" >&5
$as_echo_n "checking whether the compiler accepts -Wauto-import... " >&6; }
if ${tor_cv_cflags__Wauto_import+:} false; then :
  $as_echo_n "(cached) " >&6
else

    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Wauto-import"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  tor_cv_cflags__Wauto_import=yes
else
  tor_cv_cflags__Wauto_import=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    if test x != x; then

      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  tor_can_link__Wauto_import=yes
else
  tor_can_link__Wauto_import=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wauto_import" >&5
$as_echo "$tor_cv_cflags__Wauto_import" >&6; }
  if test x$tor_cv_cflags__Wauto_import = xyes; then
     TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Wauto-import" CFLAGS="$CFLAGS -Wauto-import"
  else
     true
  fi




  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wauto-storage-class" >&5
$as_echo_n "checking whether the compiler accepts -Wauto-storage-class... " >&6; }
if ${tor_cv_cflags__Wauto_storage_class+:} false; then :
  $as_echo_n "(cached) " >&6
else

    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Wauto-storage-class"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  tor_cv_cflags__Wauto_storage_class=yes
else
  tor_cv_cflags__Wauto_storage_class=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    if test x != x; then

      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  tor_can_link__Wauto_storage_class=yes
else
  tor_can_link__Wauto_storage_class=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wauto_storage_class" >&5
$as_echo "$tor_cv_cflags__Wauto_storage_class" >&6; }
  if test x$tor_cv_cflags__Wauto_storage_class = xyes; then
     TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Wauto-storage-class" CFLAGS="$CFLAGS -Wauto-storage-class"
  else
     true
  fi




  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wauto-var-id" >&5
$as_echo_n "checking whether the compiler accepts -Wauto-var-id... " >&6; }
if ${tor_cv_cflags__Wauto_var_id+:} false; then :
  $as_echo_n "(cached) " >&6
else

    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Wauto-var-id"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  tor_cv_cflags__Wauto_var_id=yes
else
  tor_cv_cflags__Wauto_var_id=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    if test x != x; then

      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  tor_can_link__Wauto_var_id=yes
else
  tor_can_link__Wauto_var_id=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wauto_var_id" >&5
$as_echo "$tor_cv_cflags__Wauto_var_id" >&6; }
  if test x$tor_cv_cflags__Wauto_var_id = xyes; then
     TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Wauto-var-id" CFLAGS="$CFLAGS -Wauto-var-id"
  else
     true
  fi




  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wavailability" >&5
$as_echo_n "checking whether the compiler accepts -Wavailability... " >&6; }
if ${tor_cv_cflags__Wavailability+:} false; then :
  $as_echo_n "(cached) " >&6
else

    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Wavailability"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  tor_cv_cflags__Wavailability=yes
else
  tor_cv_cflags__Wavailability=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    if test x != x; then

      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  tor_can_link__Wavailability=yes
else
  tor_can_link__Wavailability=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wavailability" >&5
$as_echo "$tor_cv_cflags__Wavailability" >&6; }
  if test x$tor_cv_cflags__Wavailability = xyes; then
     TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Wavailability" CFLAGS="$CFLAGS -Wavailability"
  else
     true
  fi




  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wbackslash-newline-escape" >&5
$as_echo_n "checking whether the compiler accepts -Wbackslash-newline-escape... " >&6; }
if ${tor_cv_cflags__Wbackslash_newline_escape+:} false; then :
  $as_echo_n "(cached) " >&6
else

    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Wbackslash-newline-escape"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  tor_cv_cflags__Wbackslash_newline_escape=yes
else
  tor_cv_cflags__Wbackslash_newline_escape=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    if test x != x; then

      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  tor_can_link__Wbackslash_newline_escape=yes
else
  tor_can_link__Wbackslash_newline_escape=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wbackslash_newline_escape" >&5
$as_echo "$tor_cv_cflags__Wbackslash_newline_escape" >&6; }
  if test x$tor_cv_cflags__Wbackslash_newline_escape = xyes; then
     TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Wbackslash-newline-escape" CFLAGS="$CFLAGS -Wbackslash-newline-escape"
  else
     true
  fi




  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wbad-array-new-length" >&5
$as_echo_n "checking whether the compiler accepts -Wbad-array-new-length... " >&6; }
if ${tor_cv_cflags__Wbad_array_new_length+:} false; then :
  $as_echo_n "(cached) " >&6
else

    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Wbad-array-new-length"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  tor_cv_cflags__Wbad_array_new_length=yes
else
  tor_cv_cflags__Wbad_array_new_length=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    if test x != x; then

      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  tor_can_link__Wbad_array_new_length=yes
else
  tor_can_link__Wbad_array_new_length=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wbad_array_new_length" >&5
$as_echo "$tor_cv_cflags__Wbad_array_new_length" >&6; }
  if test x$tor_cv_cflags__Wbad_array_new_length = xyes; then
     TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Wbad-array-new-length" CFLAGS="$CFLAGS -Wbad-array-new-length"
  else
     true
  fi




  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wbind-to-temporary-copy" >&5
$as_echo_n "checking whether the compiler accepts -Wbind-to-temporary-copy... " >&6; }
if ${tor_cv_cflags__Wbind_to_temporary_copy+:} false; then :
  $as_echo_n "(cached) " >&6
else

    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Wbind-to-temporary-copy"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  tor_cv_cflags__Wbind_to_temporary_copy=yes
else
  tor_cv_cflags__Wbind_to_temporary_copy=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    if test x != x; then

      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  tor_can_link__Wbind_to_temporary_copy=yes
else
  tor_can_link__Wbind_to_temporary_copy=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wbind_to_temporary_copy" >&5
$as_echo "$tor_cv_cflags__Wbind_to_temporary_copy" >&6; }
  if test x$tor_cv_cflags__Wbind_to_temporary_copy = xyes; then
     TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Wbind-to-temporary-copy" CFLAGS="$CFLAGS -Wbind-to-temporary-copy"
  else
     true
  fi




  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wbitfield-constant-conversion" >&5
$as_echo_n "checking whether the compiler accepts -Wbitfield-constant-conversion... " >&6; }
if ${tor_cv_cflags__Wbitfield_constant_conversion+:} false; then :
  $as_echo_n "(cached) " >&6
else

    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Wbitfield-constant-conversion"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  tor_cv_cflags__Wbitfield_constant_conversion=yes
else
  tor_cv_cflags__Wbitfield_constant_conversion=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    if test x != x; then

      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  tor_can_link__Wbitfield_constant_conversion=yes
else
  tor_can_link__Wbitfield_constant_conversion=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wbitfield_constant_conversion" >&5
$as_echo "$tor_cv_cflags__Wbitfield_constant_conversion" >&6; }
  if test x$tor_cv_cflags__Wbitfield_constant_conversion = xyes; then
     TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Wbitfield-constant-conversion" CFLAGS="$CFLAGS -Wbitfield-constant-conversion"
  else
     true
  fi




  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wbool-conversion" >&5
$as_echo_n "checking whether the compiler accepts -Wbool-conversion... " >&6; }
if ${tor_cv_cflags__Wbool_conversion+:} false; then :
  $as_echo_n "(cached) " >&6
else

    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Wbool-conversion"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  tor_cv_cflags__Wbool_conversion=yes
else
  tor_cv_cflags__Wbool_conversion=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    if test x != x; then

      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  tor_can_link__Wbool_conversion=yes
else
  tor_can_link__Wbool_conversion=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wbool_conversion" >&5
$as_echo "$tor_cv_cflags__Wbool_conversion" >&6; }
  if test x$tor_cv_cflags__Wbool_conversion = xyes; then
     TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Wbool-conversion" CFLAGS="$CFLAGS -Wbool-conversion"
  else
     true
  fi




  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wbool-conversions" >&5
$as_echo_n "checking whether the compiler accepts -Wbool-conversions... " >&6; }
if ${tor_cv_cflags__Wbool_conversions+:} false; then :
  $as_echo_n "(cached) " >&6
else

    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Wbool-conversions"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  tor_cv_cflags__Wbool_conversions=yes
else
  tor_cv_cflags__Wbool_conversions=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    if test x != x; then

      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  tor_can_link__Wbool_conversions=yes
else
  tor_can_link__Wbool_conversions=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wbool_conversions" >&5
$as_echo "$tor_cv_cflags__Wbool_conversions" >&6; }
  if test x$tor_cv_cflags__Wbool_conversions = xyes; then
     TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Wbool-conversions" CFLAGS="$CFLAGS -Wbool-conversions"
  else
     true
  fi




  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wbuiltin-requires-header" >&5
$as_echo_n "checking whether the compiler accepts -Wbuiltin-requires-header... " >&6; }
if ${tor_cv_cflags__Wbuiltin_requires_header+:} false; then :
  $as_echo_n "(cached) " >&6
else

    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Wbuiltin-requires-header"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  tor_cv_cflags__Wbuiltin_requires_header=yes
else
  tor_cv_cflags__Wbuiltin_requires_header=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    if test x != x; then

      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  tor_can_link__Wbuiltin_requires_header=yes
else
  tor_can_link__Wbuiltin_requires_header=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wbuiltin_requires_header" >&5
$as_echo "$tor_cv_cflags__Wbuiltin_requires_header" >&6; }
  if test x$tor_cv_cflags__Wbuiltin_requires_header = xyes; then
     TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Wbuiltin-requires-header" CFLAGS="$CFLAGS -Wbuiltin-requires-header"
  else
     true
  fi




  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wchar-align" >&5
$as_echo_n "checking whether the compiler accepts -Wchar-align... " >&6; }
if ${tor_cv_cflags__Wchar_align+:} false; then :
  $as_echo_n "(cached) " >&6
else

    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Wchar-align"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  tor_cv_cflags__Wchar_align=yes
else
  tor_cv_cflags__Wchar_align=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    if test x != x; then

      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  tor_can_link__Wchar_align=yes
else
  tor_can_link__Wchar_align=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wchar_align" >&5
$as_echo "$tor_cv_cflags__Wchar_align" >&6; }
  if test x$tor_cv_cflags__Wchar_align = xyes; then
     TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Wchar-align" CFLAGS="$CFLAGS -Wchar-align"
  else
     true
  fi




  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wcompare-distinct-pointer-types" >&5
$as_echo_n "checking whether the compiler accepts -Wcompare-distinct-pointer-types... " >&6; }
if ${tor_cv_cflags__Wcompare_distinct_pointer_types+:} false; then :
  $as_echo_n "(cached) " >&6
else

    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Wcompare-distinct-pointer-types"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  tor_cv_cflags__Wcompare_distinct_pointer_types=yes
else
  tor_cv_cflags__Wcompare_distinct_pointer_types=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    if test x != x; then

      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  tor_can_link__Wcompare_distinct_pointer_types=yes
else
  tor_can_link__Wcompare_distinct_pointer_types=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wcompare_distinct_pointer_types" >&5
$as_echo "$tor_cv_cflags__Wcompare_distinct_pointer_types" >&6; }
  if test x$tor_cv_cflags__Wcompare_distinct_pointer_types = xyes; then
     TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Wcompare-distinct-pointer-types" CFLAGS="$CFLAGS -Wcompare-distinct-pointer-types"
  else
     true
  fi




  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wcomplex-component-init" >&5
$as_echo_n "checking whether the compiler accepts -Wcomplex-component-init... " >&6; }
if ${tor_cv_cflags__Wcomplex_component_init+:} false; then :
  $as_echo_n "(cached) " >&6
else

    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Wcomplex-component-init"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  tor_cv_cflags__Wcomplex_component_init=yes
else
  tor_cv_cflags__Wcomplex_component_init=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    if test x != x; then

      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  tor_can_link__Wcomplex_component_init=yes
else
  tor_can_link__Wcomplex_component_init=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wcomplex_component_init" >&5
$as_echo "$tor_cv_cflags__Wcomplex_component_init" >&6; }
  if test x$tor_cv_cflags__Wcomplex_component_init = xyes; then
     TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Wcomplex-component-init" CFLAGS="$CFLAGS -Wcomplex-component-init"
  else
     true
  fi




  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wconditional-type-mismatch" >&5
$as_echo_n "checking whether the compiler accepts -Wconditional-type-mismatch... " >&6; }
if ${tor_cv_cflags__Wconditional_type_mismatch+:} false; then :
  $as_echo_n "(cached) " >&6
else

    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Wconditional-type-mismatch"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  tor_cv_cflags__Wconditional_type_mismatch=yes
else
  tor_cv_cflags__Wconditional_type_mismatch=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    if test x != x; then

      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  tor_can_link__Wconditional_type_mismatch=yes
else
  tor_can_link__Wconditional_type_mismatch=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wconditional_type_mismatch" >&5
$as_echo "$tor_cv_cflags__Wconditional_type_mismatch" >&6; }
  if test x$tor_cv_cflags__Wconditional_type_mismatch = xyes; then
     TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Wconditional-type-mismatch" CFLAGS="$CFLAGS -Wconditional-type-mismatch"
  else
     true
  fi




  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wconfig-macros" >&5
$as_echo_n "checking whether the compiler accepts -Wconfig-macros... " >&6; }
if ${tor_cv_cflags__Wconfig_macros+:} false; then :
  $as_echo_n "(cached) " >&6
else

    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Wconfig-macros"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  tor_cv_cflags__Wconfig_macros=yes
else
  tor_cv_cflags__Wconfig_macros=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    if test x != x; then

      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  tor_can_link__Wconfig_macros=yes
else
  tor_can_link__Wconfig_macros=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wconfig_macros" >&5
$as_echo "$tor_cv_cflags__Wconfig_macros" >&6; }
  if test x$tor_cv_cflags__Wconfig_macros = xyes; then
     TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Wconfig-macros" CFLAGS="$CFLAGS -Wconfig-macros"
  else
     true
  fi




  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wconstant-conversion" >&5
$as_echo_n "checking whether the compiler accepts -Wconstant-conversion... " >&6; }
if ${tor_cv_cflags__Wconstant_conversion+:} false; then :
  $as_echo_n "(cached) " >&6
else

    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Wconstant-conversion"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  tor_cv_cflags__Wconstant_conversion=yes
else
  tor_cv_cflags__Wconstant_conversion=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    if test x != x; then

      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  tor_can_link__Wconstant_conversion=yes
else
  tor_can_link__Wconstant_conversion=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wconstant_conversion" >&5
$as_echo "$tor_cv_cflags__Wconstant_conversion" >&6; }
  if test x$tor_cv_cflags__Wconstant_conversion = xyes; then
     TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Wconstant-conversion" CFLAGS="$CFLAGS -Wconstant-conversion"
  else
     true
  fi




  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wconstant-logical-operand" >&5
$as_echo_n "checking whether the compiler accepts -Wconstant-logical-operand... " >&6; }
if ${tor_cv_cflags__Wconstant_logical_operand+:} false; then :
  $as_echo_n "(cached) " >&6
else

    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Wconstant-logical-operand"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  tor_cv_cflags__Wconstant_logical_operand=yes
else
  tor_cv_cflags__Wconstant_logical_operand=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    if test x != x; then

      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  tor_can_link__Wconstant_logical_operand=yes
else
  tor_can_link__Wconstant_logical_operand=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wconstant_logical_operand" >&5
$as_echo "$tor_cv_cflags__Wconstant_logical_operand" >&6; }
  if test x$tor_cv_cflags__Wconstant_logical_operand = xyes; then
     TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Wconstant-logical-operand" CFLAGS="$CFLAGS -Wconstant-logical-operand"
  else
     true
  fi




  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wconstexpr-not-const" >&5
$as_echo_n "checking whether the compiler accepts -Wconstexpr-not-const... " >&6; }
if ${tor_cv_cflags__Wconstexpr_not_const+:} false; then :
  $as_echo_n "(cached) " >&6
else

    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Wconstexpr-not-const"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  tor_cv_cflags__Wconstexpr_not_const=yes
else
  tor_cv_cflags__Wconstexpr_not_const=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    if test x != x; then

      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  tor_can_link__Wconstexpr_not_const=yes
else
  tor_can_link__Wconstexpr_not_const=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wconstexpr_not_const" >&5
$as_echo "$tor_cv_cflags__Wconstexpr_not_const" >&6; }
  if test x$tor_cv_cflags__Wconstexpr_not_const = xyes; then
     TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Wconstexpr-not-const" CFLAGS="$CFLAGS -Wconstexpr-not-const"
  else
     true
  fi




  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wcustom-atomic-properties" >&5
$as_echo_n "checking whether the compiler accepts -Wcustom-atomic-properties... " >&6; }
if ${tor_cv_cflags__Wcustom_atomic_properties+:} false; then :
  $as_echo_n "(cached) " >&6
else

    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Wcustom-atomic-properties"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  tor_cv_cflags__Wcustom_atomic_properties=yes
else
  tor_cv_cflags__Wcustom_atomic_properties=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    if test x != x; then

      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  tor_can_link__Wcustom_atomic_properties=yes
else
  tor_can_link__Wcustom_atomic_properties=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wcustom_atomic_properties" >&5
$as_echo "$tor_cv_cflags__Wcustom_atomic_properties" >&6; }
  if test x$tor_cv_cflags__Wcustom_atomic_properties = xyes; then
     TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Wcustom-atomic-properties" CFLAGS="$CFLAGS -Wcustom-atomic-properties"
  else
     true
  fi




  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wdangling-field" >&5
$as_echo_n "checking whether the compiler accepts -Wdangling-field... " >&6; }
if ${tor_cv_cflags__Wdangling_field+:} false; then :
  $as_echo_n "(cached) " >&6
else

    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Wdangling-field"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  tor_cv_cflags__Wdangling_field=yes
else
  tor_cv_cflags__Wdangling_field=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    if test x != x; then

      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  tor_can_link__Wdangling_field=yes
else
  tor_can_link__Wdangling_field=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wdangling_field" >&5
$as_echo "$tor_cv_cflags__Wdangling_field" >&6; }
  if test x$tor_cv_cflags__Wdangling_field = xyes; then
     TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Wdangling-field" CFLAGS="$CFLAGS -Wdangling-field"
  else
     true
  fi




  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wdangling-initializer-list" >&5
$as_echo_n "checking whether the compiler accepts -Wdangling-initializer-list... " >&6; }
if ${tor_cv_cflags__Wdangling_initializer_list+:} false; then :
  $as_echo_n "(cached) " >&6
else

    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Wdangling-initializer-list"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  tor_cv_cflags__Wdangling_initializer_list=yes
else
  tor_cv_cflags__Wdangling_initializer_list=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    if test x != x; then

      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  tor_can_link__Wdangling_initializer_list=yes
else
  tor_can_link__Wdangling_initializer_list=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wdangling_initializer_list" >&5
$as_echo "$tor_cv_cflags__Wdangling_initializer_list" >&6; }
  if test x$tor_cv_cflags__Wdangling_initializer_list = xyes; then
     TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Wdangling-initializer-list" CFLAGS="$CFLAGS -Wdangling-initializer-list"
  else
     true
  fi




  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wdate-time" >&5
$as_echo_n "checking whether the compiler accepts -Wdate-time... " >&6; }
if ${tor_cv_cflags__Wdate_time+:} false; then :
  $as_echo_n "(cached) " >&6
else

    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Wdate-time"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  tor_cv_cflags__Wdate_time=yes
else
  tor_cv_cflags__Wdate_time=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    if test x != x; then

      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  tor_can_link__Wdate_time=yes
else
  tor_can_link__Wdate_time=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wdate_time" >&5
$as_echo "$tor_cv_cflags__Wdate_time" >&6; }
  if test x$tor_cv_cflags__Wdate_time = xyes; then
     TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Wdate-time" CFLAGS="$CFLAGS -Wdate-time"
  else
     true
  fi




  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wdelegating-ctor-cycles" >&5
$as_echo_n "checking whether the compiler accepts -Wdelegating-ctor-cycles... " >&6; }
if ${tor_cv_cflags__Wdelegating_ctor_cycles+:} false; then :
  $as_echo_n "(cached) " >&6
else

    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Wdelegating-ctor-cycles"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  tor_cv_cflags__Wdelegating_ctor_cycles=yes
else
  tor_cv_cflags__Wdelegating_ctor_cycles=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    if test x != x; then

      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  tor_can_link__Wdelegating_ctor_cycles=yes
else
  tor_can_link__Wdelegating_ctor_cycles=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wdelegating_ctor_cycles" >&5
$as_echo "$tor_cv_cflags__Wdelegating_ctor_cycles" >&6; }
  if test x$tor_cv_cflags__Wdelegating_ctor_cycles = xyes; then
     TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Wdelegating-ctor-cycles" CFLAGS="$CFLAGS -Wdelegating-ctor-cycles"
  else
     true
  fi




  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wdeprecated-implementations" >&5
$as_echo_n "checking whether the compiler accepts -Wdeprecated-implementations... " >&6; }
if ${tor_cv_cflags__Wdeprecated_implementations+:} false; then :
  $as_echo_n "(cached) " >&6
else

    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Wdeprecated-implementations"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  tor_cv_cflags__Wdeprecated_implementations=yes
else
  tor_cv_cflags__Wdeprecated_implementations=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    if test x != x; then

      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  tor_can_link__Wdeprecated_implementations=yes
else
  tor_can_link__Wdeprecated_implementations=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wdeprecated_implementations" >&5
$as_echo "$tor_cv_cflags__Wdeprecated_implementations" >&6; }
  if test x$tor_cv_cflags__Wdeprecated_implementations = xyes; then
     TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Wdeprecated-implementations" CFLAGS="$CFLAGS -Wdeprecated-implementations"
  else
     true
  fi




  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wdeprecated-register" >&5
$as_echo_n "checking whether the compiler accepts -Wdeprecated-register... " >&6; }
if ${tor_cv_cflags__Wdeprecated_register+:} false; then :
  $as_echo_n "(cached) " >&6
else

    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Wdeprecated-register"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  tor_cv_cflags__Wdeprecated_register=yes
else
  tor_cv_cflags__Wdeprecated_register=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    if test x != x; then

      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  tor_can_link__Wdeprecated_register=yes
else
  tor_can_link__Wdeprecated_register=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wdeprecated_register" >&5
$as_echo "$tor_cv_cflags__Wdeprecated_register" >&6; }
  if test x$tor_cv_cflags__Wdeprecated_register = xyes; then
     TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Wdeprecated-register" CFLAGS="$CFLAGS -Wdeprecated-register"
  else
     true
  fi




  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wdirect-ivar-access" >&5
$as_echo_n "checking whether the compiler accepts -Wdirect-ivar-access... " >&6; }
if ${tor_cv_cflags__Wdirect_ivar_access+:} false; then :
  $as_echo_n "(cached) " >&6
else

    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Wdirect-ivar-access"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  tor_cv_cflags__Wdirect_ivar_access=yes
else
  tor_cv_cflags__Wdirect_ivar_access=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    if test x != x; then

      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  tor_can_link__Wdirect_ivar_access=yes
else
  tor_can_link__Wdirect_ivar_access=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wdirect_ivar_access" >&5
$as_echo "$tor_cv_cflags__Wdirect_ivar_access" >&6; }
  if test x$tor_cv_cflags__Wdirect_ivar_access = xyes; then
     TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Wdirect-ivar-access" CFLAGS="$CFLAGS -Wdirect-ivar-access"
  else
     true
  fi




  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wdiscard-qual" >&5
$as_echo_n "checking whether the compiler accepts -Wdiscard-qual... " >&6; }
if ${tor_cv_cflags__Wdiscard_qual+:} false; then :
  $as_echo_n "(cached) " >&6
else

    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Wdiscard-qual"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  tor_cv_cflags__Wdiscard_qual=yes
else
  tor_cv_cflags__Wdiscard_qual=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    if test x != x; then

      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  tor_can_link__Wdiscard_qual=yes
else
  tor_can_link__Wdiscard_qual=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wdiscard_qual" >&5
$as_echo "$tor_cv_cflags__Wdiscard_qual" >&6; }
  if test x$tor_cv_cflags__Wdiscard_qual = xyes; then
     TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Wdiscard-qual" CFLAGS="$CFLAGS -Wdiscard-qual"
  else
     true
  fi




  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wdistributed-object-modifiers" >&5
$as_echo_n "checking whether the compiler accepts -Wdistributed-object-modifiers... " >&6; }
if ${tor_cv_cflags__Wdistributed_object_modifiers+:} false; then :
  $as_echo_n "(cached) " >&6
else

    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Wdistributed-object-modifiers"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  tor_cv_cflags__Wdistributed_object_modifiers=yes
else
  tor_cv_cflags__Wdistributed_object_modifiers=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    if test x != x; then

      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  tor_can_link__Wdistributed_object_modifiers=yes
else
  tor_can_link__Wdistributed_object_modifiers=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wdistributed_object_modifiers" >&5
$as_echo "$tor_cv_cflags__Wdistributed_object_modifiers" >&6; }
  if test x$tor_cv_cflags__Wdistributed_object_modifiers = xyes; then
     TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Wdistributed-object-modifiers" CFLAGS="$CFLAGS -Wdistributed-object-modifiers"
  else
     true
  fi




  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wdivision-by-zero" >&5
$as_echo_n "checking whether the compiler accepts -Wdivision-by-zero... " >&6; }
if ${tor_cv_cflags__Wdivision_by_zero+:} false; then :
  $as_echo_n "(cached) " >&6
else

    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Wdivision-by-zero"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  tor_cv_cflags__Wdivision_by_zero=yes
else
  tor_cv_cflags__Wdivision_by_zero=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    if test x != x; then

      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  tor_can_link__Wdivision_by_zero=yes
else
  tor_can_link__Wdivision_by_zero=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wdivision_by_zero" >&5
$as_echo "$tor_cv_cflags__Wdivision_by_zero" >&6; }
  if test x$tor_cv_cflags__Wdivision_by_zero = xyes; then
     TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Wdivision-by-zero" CFLAGS="$CFLAGS -Wdivision-by-zero"
  else
     true
  fi




  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wdollar-in-identifier-extension" >&5
$as_echo_n "checking whether the compiler accepts -Wdollar-in-identifier-extension... " >&6; }
if ${tor_cv_cflags__Wdollar_in_identifier_extension+:} false; then :
  $as_echo_n "(cached) " >&6
else

    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Wdollar-in-identifier-extension"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  tor_cv_cflags__Wdollar_in_identifier_extension=yes
else
  tor_cv_cflags__Wdollar_in_identifier_extension=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    if test x != x; then

      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  tor_can_link__Wdollar_in_identifier_extension=yes
else
  tor_can_link__Wdollar_in_identifier_extension=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wdollar_in_identifier_extension" >&5
$as_echo "$tor_cv_cflags__Wdollar_in_identifier_extension" >&6; }
  if test x$tor_cv_cflags__Wdollar_in_identifier_extension = xyes; then
     TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Wdollar-in-identifier-extension" CFLAGS="$CFLAGS -Wdollar-in-identifier-extension"
  else
     true
  fi




  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wdouble-promotion" >&5
$as_echo_n "checking whether the compiler accepts -Wdouble-promotion... " >&6; }
if ${tor_cv_cflags__Wdouble_promotion+:} false; then :
  $as_echo_n "(cached) " >&6
else

    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Wdouble-promotion"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  tor_cv_cflags__Wdouble_promotion=yes
else
  tor_cv_cflags__Wdouble_promotion=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    if test x != x; then

      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  tor_can_link__Wdouble_promotion=yes
else
  tor_can_link__Wdouble_promotion=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wdouble_promotion" >&5
$as_echo "$tor_cv_cflags__Wdouble_promotion" >&6; }
  if test x$tor_cv_cflags__Wdouble_promotion = xyes; then
     TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Wdouble-promotion" CFLAGS="$CFLAGS -Wdouble-promotion"
  else
     true
  fi




  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wduplicate-decl-specifier" >&5
$as_echo_n "checking whether the compiler accepts -Wduplicate-decl-specifier... " >&6; }
if ${tor_cv_cflags__Wduplicate_decl_specifier+:} false; then :
  $as_echo_n "(cached) " >&6
else

    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Wduplicate-decl-specifier"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  tor_cv_cflags__Wduplicate_decl_specifier=yes
else
  tor_cv_cflags__Wduplicate_decl_specifier=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    if test x != x; then

      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  tor_can_link__Wduplicate_decl_specifier=yes
else
  tor_can_link__Wduplicate_decl_specifier=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wduplicate_decl_specifier" >&5
$as_echo "$tor_cv_cflags__Wduplicate_decl_specifier" >&6; }
  if test x$tor_cv_cflags__Wduplicate_decl_specifier = xyes; then
     TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Wduplicate-decl-specifier" CFLAGS="$CFLAGS -Wduplicate-decl-specifier"
  else
     true
  fi




  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wduplicate-enum" >&5
$as_echo_n "checking whether the compiler accepts -Wduplicate-enum... " >&6; }
if ${tor_cv_cflags__Wduplicate_enum+:} false; then :
  $as_echo_n "(cached) " >&6
else

    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Wduplicate-enum"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  tor_cv_cflags__Wduplicate_enum=yes
else
  tor_cv_cflags__Wduplicate_enum=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    if test x != x; then

      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  tor_can_link__Wduplicate_enum=yes
else
  tor_can_link__Wduplicate_enum=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wduplicate_enum" >&5
$as_echo "$tor_cv_cflags__Wduplicate_enum" >&6; }
  if test x$tor_cv_cflags__Wduplicate_enum = xyes; then
     TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Wduplicate-enum" CFLAGS="$CFLAGS -Wduplicate-enum"
  else
     true
  fi




  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wduplicate-method-arg" >&5
$as_echo_n "checking whether the compiler accepts -Wduplicate-method-arg... " >&6; }
if ${tor_cv_cflags__Wduplicate_method_arg+:} false; then :
  $as_echo_n "(cached) " >&6
else

    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Wduplicate-method-arg"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  tor_cv_cflags__Wduplicate_method_arg=yes
else
  tor_cv_cflags__Wduplicate_method_arg=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    if test x != x; then

      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  tor_can_link__Wduplicate_method_arg=yes
else
  tor_can_link__Wduplicate_method_arg=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wduplicate_method_arg" >&5
$as_echo "$tor_cv_cflags__Wduplicate_method_arg" >&6; }
  if test x$tor_cv_cflags__Wduplicate_method_arg = xyes; then
     TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Wduplicate-method-arg" CFLAGS="$CFLAGS -Wduplicate-method-arg"
  else
     true
  fi




  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wduplicate-method-match" >&5
$as_echo_n "checking whether the compiler accepts -Wduplicate-method-match... " >&6; }
if ${tor_cv_cflags__Wduplicate_method_match+:} false; then :
  $as_echo_n "(cached) " >&6
else

    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Wduplicate-method-match"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  tor_cv_cflags__Wduplicate_method_match=yes
else
  tor_cv_cflags__Wduplicate_method_match=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    if test x != x; then

      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  tor_can_link__Wduplicate_method_match=yes
else
  tor_can_link__Wduplicate_method_match=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wduplicate_method_match" >&5
$as_echo "$tor_cv_cflags__Wduplicate_method_match" >&6; }
  if test x$tor_cv_cflags__Wduplicate_method_match = xyes; then
     TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Wduplicate-method-match" CFLAGS="$CFLAGS -Wduplicate-method-match"
  else
     true
  fi




  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wduplicated-cond" >&5
$as_echo_n "checking whether the compiler accepts -Wduplicated-cond... " >&6; }
if ${tor_cv_cflags__Wduplicated_cond+:} false; then :
  $as_echo_n "(cached) " >&6
else

    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Wduplicated-cond"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  tor_cv_cflags__Wduplicated_cond=yes
else
  tor_cv_cflags__Wduplicated_cond=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    if test x != x; then

      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  tor_can_link__Wduplicated_cond=yes
else
  tor_can_link__Wduplicated_cond=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wduplicated_cond" >&5
$as_echo "$tor_cv_cflags__Wduplicated_cond" >&6; }
  if test x$tor_cv_cflags__Wduplicated_cond = xyes; then
     TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Wduplicated-cond" CFLAGS="$CFLAGS -Wduplicated-cond"
  else
     true
  fi




  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wdynamic-class-memaccess" >&5
$as_echo_n "checking whether the compiler accepts -Wdynamic-class-memaccess... " >&6; }
if ${tor_cv_cflags__Wdynamic_class_memaccess+:} false; then :
  $as_echo_n "(cached) " >&6
else

    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Wdynamic-class-memaccess"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  tor_cv_cflags__Wdynamic_class_memaccess=yes
else
  tor_cv_cflags__Wdynamic_class_memaccess=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    if test x != x; then

      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  tor_can_link__Wdynamic_class_memaccess=yes
else
  tor_can_link__Wdynamic_class_memaccess=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wdynamic_class_memaccess" >&5
$as_echo "$tor_cv_cflags__Wdynamic_class_memaccess" >&6; }
  if test x$tor_cv_cflags__Wdynamic_class_memaccess = xyes; then
     TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Wdynamic-class-memaccess" CFLAGS="$CFLAGS -Wdynamic-class-memaccess"
  else
     true
  fi




  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wembedded-directive" >&5
$as_echo_n "checking whether the compiler accepts -Wembedded-directive... " >&6; }
if ${tor_cv_cflags__Wembedded_directive+:} false; then :
  $as_echo_n "(cached) " >&6
else

    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Wembedded-directive"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  tor_cv_cflags__Wembedded_directive=yes
else
  tor_cv_cflags__Wembedded_directive=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    if test x != x; then

      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  tor_can_link__Wembedded_directive=yes
else
  tor_can_link__Wembedded_directive=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wembedded_directive" >&5
$as_echo "$tor_cv_cflags__Wembedded_directive" >&6; }
  if test x$tor_cv_cflags__Wembedded_directive = xyes; then
     TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Wembedded-directive" CFLAGS="$CFLAGS -Wembedded-directive"
  else
     true
  fi




  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wempty-translation-unit" >&5
$as_echo_n "checking whether the compiler accepts -Wempty-translation-unit... " >&6; }
if ${tor_cv_cflags__Wempty_translation_unit+:} false; then :
  $as_echo_n "(cached) " >&6
else

    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Wempty-translation-unit"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  tor_cv_cflags__Wempty_translation_unit=yes
else
  tor_cv_cflags__Wempty_translation_unit=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    if test x != x; then

      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  tor_can_link__Wempty_translation_unit=yes
else
  tor_can_link__Wempty_translation_unit=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wempty_translation_unit" >&5
$as_echo "$tor_cv_cflags__Wempty_translation_unit" >&6; }
  if test x$tor_cv_cflags__Wempty_translation_unit = xyes; then
     TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Wempty-translation-unit" CFLAGS="$CFLAGS -Wempty-translation-unit"
  else
     true
  fi




  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wenum-conversion" >&5
$as_echo_n "checking whether the compiler accepts -Wenum-conversion... " >&6; }
if ${tor_cv_cflags__Wenum_conversion+:} false; then :
  $as_echo_n "(cached) " >&6
else

    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Wenum-conversion"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  tor_cv_cflags__Wenum_conversion=yes
else
  tor_cv_cflags__Wenum_conversion=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    if test x != x; then

      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  tor_can_link__Wenum_conversion=yes
else
  tor_can_link__Wenum_conversion=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wenum_conversion" >&5
$as_echo "$tor_cv_cflags__Wenum_conversion" >&6; }
  if test x$tor_cv_cflags__Wenum_conversion = xyes; then
     TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Wenum-conversion" CFLAGS="$CFLAGS -Wenum-conversion"
  else
     true
  fi




  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wexit-time-destructors" >&5
$as_echo_n "checking whether the compiler accepts -Wexit-time-destructors... " >&6; }
if ${tor_cv_cflags__Wexit_time_destructors+:} false; then :
  $as_echo_n "(cached) " >&6
else

    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Wexit-time-destructors"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  tor_cv_cflags__Wexit_time_destructors=yes
else
  tor_cv_cflags__Wexit_time_destructors=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    if test x != x; then

      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  tor_can_link__Wexit_time_destructors=yes
else
  tor_can_link__Wexit_time_destructors=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wexit_time_destructors" >&5
$as_echo "$tor_cv_cflags__Wexit_time_destructors" >&6; }
  if test x$tor_cv_cflags__Wexit_time_destructors = xyes; then
     TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Wexit-time-destructors" CFLAGS="$CFLAGS -Wexit-time-destructors"
  else
     true
  fi




  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wexplicit-ownership-type" >&5
$as_echo_n "checking whether the compiler accepts -Wexplicit-ownership-type... " >&6; }
if ${tor_cv_cflags__Wexplicit_ownership_type+:} false; then :
  $as_echo_n "(cached) " >&6
else

    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Wexplicit-ownership-type"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  tor_cv_cflags__Wexplicit_ownership_type=yes
else
  tor_cv_cflags__Wexplicit_ownership_type=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    if test x != x; then

      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  tor_can_link__Wexplicit_ownership_type=yes
else
  tor_can_link__Wexplicit_ownership_type=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wexplicit_ownership_type" >&5
$as_echo "$tor_cv_cflags__Wexplicit_ownership_type" >&6; }
  if test x$tor_cv_cflags__Wexplicit_ownership_type = xyes; then
     TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Wexplicit-ownership-type" CFLAGS="$CFLAGS -Wexplicit-ownership-type"
  else
     true
  fi




  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wextern-initializer" >&5
$as_echo_n "checking whether the compiler accepts -Wextern-initializer... " >&6; }
if ${tor_cv_cflags__Wextern_initializer+:} false; then :
  $as_echo_n "(cached) " >&6
else

    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Wextern-initializer"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  tor_cv_cflags__Wextern_initializer=yes
else
  tor_cv_cflags__Wextern_initializer=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    if test x != x; then

      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  tor_can_link__Wextern_initializer=yes
else
  tor_can_link__Wextern_initializer=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wextern_initializer" >&5
$as_echo "$tor_cv_cflags__Wextern_initializer" >&6; }
  if test x$tor_cv_cflags__Wextern_initializer = xyes; then
     TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Wextern-initializer" CFLAGS="$CFLAGS -Wextern-initializer"
  else
     true
  fi




  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wextra" >&5
$as_echo_n "checking whether the compiler accepts -Wextra... " >&6; }
if ${tor_cv_cflags__Wextra+:} false; then :
  $as_echo_n "(cached) " >&6
else

    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Wextra"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  tor_cv_cflags__Wextra=yes
else
  tor_cv_cflags__Wextra=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    if test x != x; then

      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  tor_can_link__Wextra=yes
else
  tor_can_link__Wextra=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wextra" >&5
$as_echo "$tor_cv_cflags__Wextra" >&6; }
  if test x$tor_cv_cflags__Wextra = xyes; then
     TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Wextra" CFLAGS="$CFLAGS -Wextra"
  else
     true
  fi




  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wextra-semi" >&5
$as_echo_n "checking whether the compiler accepts -Wextra-semi... " >&6; }
if ${tor_cv_cflags__Wextra_semi+:} false; then :
  $as_echo_n "(cached) " >&6
else

    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Wextra-semi"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  tor_cv_cflags__Wextra_semi=yes
else
  tor_cv_cflags__Wextra_semi=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    if test x != x; then

      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  tor_can_link__Wextra_semi=yes
else
  tor_can_link__Wextra_semi=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wextra_semi" >&5
$as_echo "$tor_cv_cflags__Wextra_semi" >&6; }
  if test x$tor_cv_cflags__Wextra_semi = xyes; then
     TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Wextra-semi" CFLAGS="$CFLAGS -Wextra-semi"
  else
     true
  fi




  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wextra-tokens" >&5
$as_echo_n "checking whether the compiler accepts -Wextra-tokens... " >&6; }
if ${tor_cv_cflags__Wextra_tokens+:} false; then :
  $as_echo_n "(cached) " >&6
else

    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Wextra-tokens"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  tor_cv_cflags__Wextra_tokens=yes
else
  tor_cv_cflags__Wextra_tokens=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    if test x != x; then

      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  tor_can_link__Wextra_tokens=yes
else
  tor_can_link__Wextra_tokens=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wextra_tokens" >&5
$as_echo "$tor_cv_cflags__Wextra_tokens" >&6; }
  if test x$tor_cv_cflags__Wextra_tokens = xyes; then
     TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Wextra-tokens" CFLAGS="$CFLAGS -Wextra-tokens"
  else
     true
  fi




  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wflexible-array-extensions" >&5
$as_echo_n "checking whether the compiler accepts -Wflexible-array-extensions... " >&6; }
if ${tor_cv_cflags__Wflexible_array_extensions+:} false; then :
  $as_echo_n "(cached) " >&6
else

    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Wflexible-array-extensions"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  tor_cv_cflags__Wflexible_array_extensions=yes
else
  tor_cv_cflags__Wflexible_array_extensions=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    if test x != x; then

      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  tor_can_link__Wflexible_array_extensions=yes
else
  tor_can_link__Wflexible_array_extensions=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wflexible_array_extensions" >&5
$as_echo "$tor_cv_cflags__Wflexible_array_extensions" >&6; }
  if test x$tor_cv_cflags__Wflexible_array_extensions = xyes; then
     TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Wflexible-array-extensions" CFLAGS="$CFLAGS -Wflexible-array-extensions"
  else
     true
  fi




  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wfloat-conversion" >&5
$as_echo_n "checking whether the compiler accepts -Wfloat-conversion... " >&6; }
if ${tor_cv_cflags__Wfloat_conversion+:} false; then :
  $as_echo_n "(cached) " >&6
else

    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Wfloat-conversion"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  tor_cv_cflags__Wfloat_conversion=yes
else
  tor_cv_cflags__Wfloat_conversion=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    if test x != x; then

      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  tor_can_link__Wfloat_conversion=yes
else
  tor_can_link__Wfloat_conversion=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wfloat_conversion" >&5
$as_echo "$tor_cv_cflags__Wfloat_conversion" >&6; }
  if test x$tor_cv_cflags__Wfloat_conversion = xyes; then
     TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Wfloat-conversion" CFLAGS="$CFLAGS -Wfloat-conversion"
  else
     true
  fi




  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wformat-non-iso" >&5
$as_echo_n "checking whether the compiler accepts -Wformat-non-iso... " >&6; }
if ${tor_cv_cflags__Wformat_non_iso+:} false; then :
  $as_echo_n "(cached) " >&6
else

    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Wformat-non-iso"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  tor_cv_cflags__Wformat_non_iso=yes
else
  tor_cv_cflags__Wformat_non_iso=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    if test x != x; then

      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  tor_can_link__Wformat_non_iso=yes
else
  tor_can_link__Wformat_non_iso=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wformat_non_iso" >&5
$as_echo "$tor_cv_cflags__Wformat_non_iso" >&6; }
  if test x$tor_cv_cflags__Wformat_non_iso = xyes; then
     TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Wformat-non-iso" CFLAGS="$CFLAGS -Wformat-non-iso"
  else
     true
  fi




  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wfour-char-constants" >&5
$as_echo_n "checking whether the compiler accepts -Wfour-char-constants... " >&6; }
if ${tor_cv_cflags__Wfour_char_constants+:} false; then :
  $as_echo_n "(cached) " >&6
else

    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Wfour-char-constants"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  tor_cv_cflags__Wfour_char_constants=yes
else
  tor_cv_cflags__Wfour_char_constants=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    if test x != x; then

      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  tor_can_link__Wfour_char_constants=yes
else
  tor_can_link__Wfour_char_constants=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wfour_char_constants" >&5
$as_echo "$tor_cv_cflags__Wfour_char_constants" >&6; }
  if test x$tor_cv_cflags__Wfour_char_constants = xyes; then
     TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Wfour-char-constants" CFLAGS="$CFLAGS -Wfour-char-constants"
  else
     true
  fi




  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wgcc-compat" >&5
$as_echo_n "checking whether the compiler accepts -Wgcc-compat... " >&6; }
if ${tor_cv_cflags__Wgcc_compat+:} false; then :
  $as_echo_n "(cached) " >&6
else

    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Wgcc-compat"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  tor_cv_cflags__Wgcc_compat=yes
else
  tor_cv_cflags__Wgcc_compat=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    if test x != x; then

      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  tor_can_link__Wgcc_compat=yes
else
  tor_can_link__Wgcc_compat=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wgcc_compat" >&5
$as_echo "$tor_cv_cflags__Wgcc_compat" >&6; }
  if test x$tor_cv_cflags__Wgcc_compat = xyes; then
     TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Wgcc-compat" CFLAGS="$CFLAGS -Wgcc-compat"
  else
     true
  fi




  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wglobal-constructors" >&5
$as_echo_n "checking whether the compiler accepts -Wglobal-constructors... " >&6; }
if ${tor_cv_cflags__Wglobal_constructors+:} false; then :
  $as_echo_n "(cached) " >&6
else

    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Wglobal-constructors"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  tor_cv_cflags__Wglobal_constructors=yes
else
  tor_cv_cflags__Wglobal_constructors=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    if test x != x; then

      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  tor_can_link__Wglobal_constructors=yes
else
  tor_can_link__Wglobal_constructors=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wglobal_constructors" >&5
$as_echo "$tor_cv_cflags__Wglobal_constructors" >&6; }
  if test x$tor_cv_cflags__Wglobal_constructors = xyes; then
     TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Wglobal-constructors" CFLAGS="$CFLAGS -Wglobal-constructors"
  else
     true
  fi




  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wgnu-array-member-paren-init" >&5
$as_echo_n "checking whether the compiler accepts -Wgnu-array-member-paren-init... " >&6; }
if ${tor_cv_cflags__Wgnu_array_member_paren_init+:} false; then :
  $as_echo_n "(cached) " >&6
else

    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Wgnu-array-member-paren-init"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  tor_cv_cflags__Wgnu_array_member_paren_init=yes
else
  tor_cv_cflags__Wgnu_array_member_paren_init=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    if test x != x; then

      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  tor_can_link__Wgnu_array_member_paren_init=yes
else
  tor_can_link__Wgnu_array_member_paren_init=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wgnu_array_member_paren_init" >&5
$as_echo "$tor_cv_cflags__Wgnu_array_member_paren_init" >&6; }
  if test x$tor_cv_cflags__Wgnu_array_member_paren_init = xyes; then
     TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Wgnu-array-member-paren-init" CFLAGS="$CFLAGS -Wgnu-array-member-paren-init"
  else
     true
  fi




  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wgnu-designator" >&5
$as_echo_n "checking whether the compiler accepts -Wgnu-designator... " >&6; }
if ${tor_cv_cflags__Wgnu_designator+:} false; then :
  $as_echo_n "(cached) " >&6
else

    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Wgnu-designator"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  tor_cv_cflags__Wgnu_designator=yes
else
  tor_cv_cflags__Wgnu_designator=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    if test x != x; then

      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  tor_can_link__Wgnu_designator=yes
else
  tor_can_link__Wgnu_designator=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wgnu_designator" >&5
$as_echo "$tor_cv_cflags__Wgnu_designator" >&6; }
  if test x$tor_cv_cflags__Wgnu_designator = xyes; then
     TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Wgnu-designator" CFLAGS="$CFLAGS -Wgnu-designator"
  else
     true
  fi




  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wgnu-static-float-init" >&5
$as_echo_n "checking whether the compiler accepts -Wgnu-static-float-init... " >&6; }
if ${tor_cv_cflags__Wgnu_static_float_init+:} false; then :
  $as_echo_n "(cached) " >&6
else

    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Wgnu-static-float-init"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  tor_cv_cflags__Wgnu_static_float_init=yes
else
  tor_cv_cflags__Wgnu_static_float_init=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    if test x != x; then

      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  tor_can_link__Wgnu_static_float_init=yes
else
  tor_can_link__Wgnu_static_float_init=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wgnu_static_float_init" >&5
$as_echo "$tor_cv_cflags__Wgnu_static_float_init" >&6; }
  if test x$tor_cv_cflags__Wgnu_static_float_init = xyes; then
     TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Wgnu-static-float-init" CFLAGS="$CFLAGS -Wgnu-static-float-init"
  else
     true
  fi




  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wheader-guard" >&5
$as_echo_n "checking whether the compiler accepts -Wheader-guard... " >&6; }
if ${tor_cv_cflags__Wheader_guard+:} false; then :
  $as_echo_n "(cached) " >&6
else

    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Wheader-guard"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  tor_cv_cflags__Wheader_guard=yes
else
  tor_cv_cflags__Wheader_guard=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    if test x != x; then

      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  tor_can_link__Wheader_guard=yes
else
  tor_can_link__Wheader_guard=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wheader_guard" >&5
$as_echo "$tor_cv_cflags__Wheader_guard" >&6; }
  if test x$tor_cv_cflags__Wheader_guard = xyes; then
     TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Wheader-guard" CFLAGS="$CFLAGS -Wheader-guard"
  else
     true
  fi




  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wheader-hygiene" >&5
$as_echo_n "checking whether the compiler accepts -Wheader-hygiene... " >&6; }
if ${tor_cv_cflags__Wheader_hygiene+:} false; then :
  $as_echo_n "(cached) " >&6
else

    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Wheader-hygiene"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  tor_cv_cflags__Wheader_hygiene=yes
else
  tor_cv_cflags__Wheader_hygiene=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    if test x != x; then

      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  tor_can_link__Wheader_hygiene=yes
else
  tor_can_link__Wheader_hygiene=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wheader_hygiene" >&5
$as_echo "$tor_cv_cflags__Wheader_hygiene" >&6; }
  if test x$tor_cv_cflags__Wheader_hygiene = xyes; then
     TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Wheader-hygiene" CFLAGS="$CFLAGS -Wheader-hygiene"
  else
     true
  fi




  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Widiomatic-parentheses" >&5
$as_echo_n "checking whether the compiler accepts -Widiomatic-parentheses... " >&6; }
if ${tor_cv_cflags__Widiomatic_parentheses+:} false; then :
  $as_echo_n "(cached) " >&6
else

    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Widiomatic-parentheses"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  tor_cv_cflags__Widiomatic_parentheses=yes
else
  tor_cv_cflags__Widiomatic_parentheses=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    if test x != x; then

      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  tor_can_link__Widiomatic_parentheses=yes
else
  tor_can_link__Widiomatic_parentheses=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Widiomatic_parentheses" >&5
$as_echo "$tor_cv_cflags__Widiomatic_parentheses" >&6; }
  if test x$tor_cv_cflags__Widiomatic_parentheses = xyes; then
     TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Widiomatic-parentheses" CFLAGS="$CFLAGS -Widiomatic-parentheses"
  else
     true
  fi




  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wignored-attributes" >&5
$as_echo_n "checking whether the compiler accepts -Wignored-attributes... " >&6; }
if ${tor_cv_cflags__Wignored_attributes+:} false; then :
  $as_echo_n "(cached) " >&6
else

    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Wignored-attributes"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  tor_cv_cflags__Wignored_attributes=yes
else
  tor_cv_cflags__Wignored_attributes=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    if test x != x; then

      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  tor_can_link__Wignored_attributes=yes
else
  tor_can_link__Wignored_attributes=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wignored_attributes" >&5
$as_echo "$tor_cv_cflags__Wignored_attributes" >&6; }
  if test x$tor_cv_cflags__Wignored_attributes = xyes; then
     TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Wignored-attributes" CFLAGS="$CFLAGS -Wignored-attributes"
  else
     true
  fi




  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wimplicit-atomic-properties" >&5
$as_echo_n "checking whether the compiler accepts -Wimplicit-atomic-properties... " >&6; }
if ${tor_cv_cflags__Wimplicit_atomic_properties+:} false; then :
  $as_echo_n "(cached) " >&6
else

    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Wimplicit-atomic-properties"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  tor_cv_cflags__Wimplicit_atomic_properties=yes
else
  tor_cv_cflags__Wimplicit_atomic_properties=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    if test x != x; then

      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  tor_can_link__Wimplicit_atomic_properties=yes
else
  tor_can_link__Wimplicit_atomic_properties=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wimplicit_atomic_properties" >&5
$as_echo "$tor_cv_cflags__Wimplicit_atomic_properties" >&6; }
  if test x$tor_cv_cflags__Wimplicit_atomic_properties = xyes; then
     TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Wimplicit-atomic-properties" CFLAGS="$CFLAGS -Wimplicit-atomic-properties"
  else
     true
  fi




  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wimplicit-conversion-floating-point-to-bool" >&5
$as_echo_n "checking whether the compiler accepts -Wimplicit-conversion-floating-point-to-bool... " >&6; }
if ${tor_cv_cflags__Wimplicit_conversion_floating_point_to_bool+:} false; then :
  $as_echo_n "(cached) " >&6
else

    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Wimplicit-conversion-floating-point-to-bool"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  tor_cv_cflags__Wimplicit_conversion_floating_point_to_bool=yes
else
  tor_cv_cflags__Wimplicit_conversion_floating_point_to_bool=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    if test x != x; then

      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  tor_can_link__Wimplicit_conversion_floating_point_to_bool=yes
else
  tor_can_link__Wimplicit_conversion_floating_point_to_bool=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wimplicit_conversion_floating_point_to_bool" >&5
$as_echo "$tor_cv_cflags__Wimplicit_conversion_floating_point_to_bool" >&6; }
  if test x$tor_cv_cflags__Wimplicit_conversion_floating_point_to_bool = xyes; then
     TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Wimplicit-conversion-floating-point-to-bool" CFLAGS="$CFLAGS -Wimplicit-conversion-floating-point-to-bool"
  else
     true
  fi




  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wimplicit-exception-spec-mismatch" >&5
$as_echo_n "checking whether the compiler accepts -Wimplicit-exception-spec-mismatch... " >&6; }
if ${tor_cv_cflags__Wimplicit_exception_spec_mismatch+:} false; then :
  $as_echo_n "(cached) " >&6
else

    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Wimplicit-exception-spec-mismatch"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  tor_cv_cflags__Wimplicit_exception_spec_mismatch=yes
else
  tor_cv_cflags__Wimplicit_exception_spec_mismatch=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    if test x != x; then

      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  tor_can_link__Wimplicit_exception_spec_mismatch=yes
else
  tor_can_link__Wimplicit_exception_spec_mismatch=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wimplicit_exception_spec_mismatch" >&5
$as_echo "$tor_cv_cflags__Wimplicit_exception_spec_mismatch" >&6; }
  if test x$tor_cv_cflags__Wimplicit_exception_spec_mismatch = xyes; then
     TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Wimplicit-exception-spec-mismatch" CFLAGS="$CFLAGS -Wimplicit-exception-spec-mismatch"
  else
     true
  fi




  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wimplicit-fallthrough" >&5
$as_echo_n "checking whether the compiler accepts -Wimplicit-fallthrough... " >&6; }
if ${tor_cv_cflags__Wimplicit_fallthrough+:} false; then :
  $as_echo_n "(cached) " >&6
else

    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Wimplicit-fallthrough"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  tor_cv_cflags__Wimplicit_fallthrough=yes
else
  tor_cv_cflags__Wimplicit_fallthrough=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    if test x != x; then

      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  tor_can_link__Wimplicit_fallthrough=yes
else
  tor_can_link__Wimplicit_fallthrough=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wimplicit_fallthrough" >&5
$as_echo "$tor_cv_cflags__Wimplicit_fallthrough" >&6; }
  if test x$tor_cv_cflags__Wimplicit_fallthrough = xyes; then
     TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Wimplicit-fallthrough" CFLAGS="$CFLAGS -Wimplicit-fallthrough"
  else
     true
  fi




  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wimplicit-fallthrough-per-function" >&5
$as_echo_n "checking whether the compiler accepts -Wimplicit-fallthrough-per-function... " >&6; }
if ${tor_cv_cflags__Wimplicit_fallthrough_per_function+:} false; then :
  $as_echo_n "(cached) " >&6
else

    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Wimplicit-fallthrough-per-function"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  tor_cv_cflags__Wimplicit_fallthrough_per_function=yes
else
  tor_cv_cflags__Wimplicit_fallthrough_per_function=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    if test x != x; then

      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  tor_can_link__Wimplicit_fallthrough_per_function=yes
else
  tor_can_link__Wimplicit_fallthrough_per_function=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wimplicit_fallthrough_per_function" >&5
$as_echo "$tor_cv_cflags__Wimplicit_fallthrough_per_function" >&6; }
  if test x$tor_cv_cflags__Wimplicit_fallthrough_per_function = xyes; then
     TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Wimplicit-fallthrough-per-function" CFLAGS="$CFLAGS -Wimplicit-fallthrough-per-function"
  else
     true
  fi




  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wimplicit-retain-self" >&5
$as_echo_n "checking whether the compiler accepts -Wimplicit-retain-self... " >&6; }
if ${tor_cv_cflags__Wimplicit_retain_self+:} false; then :
  $as_echo_n "(cached) " >&6
else

    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Wimplicit-retain-self"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  tor_cv_cflags__Wimplicit_retain_self=yes
else
  tor_cv_cflags__Wimplicit_retain_self=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    if test x != x; then

      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  tor_can_link__Wimplicit_retain_self=yes
else
  tor_can_link__Wimplicit_retain_self=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wimplicit_retain_self" >&5
$as_echo "$tor_cv_cflags__Wimplicit_retain_self" >&6; }
  if test x$tor_cv_cflags__Wimplicit_retain_self = xyes; then
     TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Wimplicit-retain-self" CFLAGS="$CFLAGS -Wimplicit-retain-self"
  else
     true
  fi




  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wimport-preprocessor-directive-pedantic" >&5
$as_echo_n "checking whether the compiler accepts -Wimport-preprocessor-directive-pedantic... " >&6; }
if ${tor_cv_cflags__Wimport_preprocessor_directive_pedantic+:} false; then :
  $as_echo_n "(cached) " >&6
else

    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Wimport-preprocessor-directive-pedantic"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  tor_cv_cflags__Wimport_preprocessor_directive_pedantic=yes
else
  tor_cv_cflags__Wimport_preprocessor_directive_pedantic=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    if test x != x; then

      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  tor_can_link__Wimport_preprocessor_directive_pedantic=yes
else
  tor_can_link__Wimport_preprocessor_directive_pedantic=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wimport_preprocessor_directive_pedantic" >&5
$as_echo "$tor_cv_cflags__Wimport_preprocessor_directive_pedantic" >&6; }
  if test x$tor_cv_cflags__Wimport_preprocessor_directive_pedantic = xyes; then
     TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Wimport-preprocessor-directive-pedantic" CFLAGS="$CFLAGS -Wimport-preprocessor-directive-pedantic"
  else
     true
  fi




  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wincompatible-library-redeclaration" >&5
$as_echo_n "checking whether the compiler accepts -Wincompatible-library-redeclaration... " >&6; }
if ${tor_cv_cflags__Wincompatible_library_redeclaration+:} false; then :
  $as_echo_n "(cached) " >&6
else

    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Wincompatible-library-redeclaration"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  tor_cv_cflags__Wincompatible_library_redeclaration=yes
else
  tor_cv_cflags__Wincompatible_library_redeclaration=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    if test x != x; then

      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  tor_can_link__Wincompatible_library_redeclaration=yes
else
  tor_can_link__Wincompatible_library_redeclaration=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wincompatible_library_redeclaration" >&5
$as_echo "$tor_cv_cflags__Wincompatible_library_redeclaration" >&6; }
  if test x$tor_cv_cflags__Wincompatible_library_redeclaration = xyes; then
     TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Wincompatible-library-redeclaration" CFLAGS="$CFLAGS -Wincompatible-library-redeclaration"
  else
     true
  fi




  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wincompatible-pointer-types-discards-qualifiers" >&5
$as_echo_n "checking whether the compiler accepts -Wincompatible-pointer-types-discards-qualifiers... " >&6; }
if ${tor_cv_cflags__Wincompatible_pointer_types_discards_qualifiers+:} false; then :
  $as_echo_n "(cached) " >&6
else

    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Wincompatible-pointer-types-discards-qualifiers"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  tor_cv_cflags__Wincompatible_pointer_types_discards_qualifiers=yes
else
  tor_cv_cflags__Wincompatible_pointer_types_discards_qualifiers=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    if test x != x; then

      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  tor_can_link__Wincompatible_pointer_types_discards_qualifiers=yes
else
  tor_can_link__Wincompatible_pointer_types_discards_qualifiers=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wincompatible_pointer_types_discards_qualifiers" >&5
$as_echo "$tor_cv_cflags__Wincompatible_pointer_types_discards_qualifiers" >&6; }
  if test x$tor_cv_cflags__Wincompatible_pointer_types_discards_qualifiers = xyes; then
     TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Wincompatible-pointer-types-discards-qualifiers" CFLAGS="$CFLAGS -Wincompatible-pointer-types-discards-qualifiers"
  else
     true
  fi




  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wincomplete-implementation" >&5
$as_echo_n "checking whether the compiler accepts -Wincomplete-implementation... " >&6; }
if ${tor_cv_cflags__Wincomplete_implementation+:} false; then :
  $as_echo_n "(cached) " >&6
else

    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Wincomplete-implementation"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  tor_cv_cflags__Wincomplete_implementation=yes
else
  tor_cv_cflags__Wincomplete_implementation=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    if test x != x; then

      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  tor_can_link__Wincomplete_implementation=yes
else
  tor_can_link__Wincomplete_implementation=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wincomplete_implementation" >&5
$as_echo "$tor_cv_cflags__Wincomplete_implementation" >&6; }
  if test x$tor_cv_cflags__Wincomplete_implementation = xyes; then
     TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Wincomplete-implementation" CFLAGS="$CFLAGS -Wincomplete-implementation"
  else
     true
  fi




  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wincomplete-module" >&5
$as_echo_n "checking whether the compiler accepts -Wincomplete-module... " >&6; }
if ${tor_cv_cflags__Wincomplete_module+:} false; then :
  $as_echo_n "(cached) " >&6
else

    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Wincomplete-module"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  tor_cv_cflags__Wincomplete_module=yes
else
  tor_cv_cflags__Wincomplete_module=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    if test x != x; then

      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  tor_can_link__Wincomplete_module=yes
else
  tor_can_link__Wincomplete_module=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wincomplete_module" >&5
$as_echo "$tor_cv_cflags__Wincomplete_module" >&6; }
  if test x$tor_cv_cflags__Wincomplete_module = xyes; then
     TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Wincomplete-module" CFLAGS="$CFLAGS -Wincomplete-module"
  else
     true
  fi




  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wincomplete-umbrella" >&5
$as_echo_n "checking whether the compiler accepts -Wincomplete-umbrella... " >&6; }
if ${tor_cv_cflags__Wincomplete_umbrella+:} false; then :
  $as_echo_n "(cached) " >&6
else

    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Wincomplete-umbrella"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  tor_cv_cflags__Wincomplete_umbrella=yes
else
  tor_cv_cflags__Wincomplete_umbrella=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    if test x != x; then

      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  tor_can_link__Wincomplete_umbrella=yes
else
  tor_can_link__Wincomplete_umbrella=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wincomplete_umbrella" >&5
$as_echo "$tor_cv_cflags__Wincomplete_umbrella" >&6; }
  if test x$tor_cv_cflags__Wincomplete_umbrella = xyes; then
     TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Wincomplete-umbrella" CFLAGS="$CFLAGS -Wincomplete-umbrella"
  else
     true
  fi




  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Winit-self" >&5
$as_echo_n "checking whether the compiler accepts -Winit-self... " >&6; }
if ${tor_cv_cflags__Winit_self+:} false; then :
  $as_echo_n "(cached) " >&6
else

    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Winit-self"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  tor_cv_cflags__Winit_self=yes
else
  tor_cv_cflags__Winit_self=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    if test x != x; then

      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  tor_can_link__Winit_self=yes
else
  tor_can_link__Winit_self=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Winit_self" >&5
$as_echo "$tor_cv_cflags__Winit_self" >&6; }
  if test x$tor_cv_cflags__Winit_self = xyes; then
     TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Winit-self" CFLAGS="$CFLAGS -Winit-self"
  else
     true
  fi




  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wint-conversions" >&5
$as_echo_n "checking whether the compiler accepts -Wint-conversions... " >&6; }
if ${tor_cv_cflags__Wint_conversions+:} false; then :
  $as_echo_n "(cached) " >&6
else

    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Wint-conversions"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  tor_cv_cflags__Wint_conversions=yes
else
  tor_cv_cflags__Wint_conversions=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    if test x != x; then

      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  tor_can_link__Wint_conversions=yes
else
  tor_can_link__Wint_conversions=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wint_conversions" >&5
$as_echo "$tor_cv_cflags__Wint_conversions" >&6; }
  if test x$tor_cv_cflags__Wint_conversions = xyes; then
     TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Wint-conversions" CFLAGS="$CFLAGS -Wint-conversions"
  else
     true
  fi




  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wint-to-void-pointer-cast" >&5
$as_echo_n "checking whether the compiler accepts -Wint-to-void-pointer-cast... " >&6; }
if ${tor_cv_cflags__Wint_to_void_pointer_cast+:} false; then :
  $as_echo_n "(cached) " >&6
else

    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Wint-to-void-pointer-cast"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  tor_cv_cflags__Wint_to_void_pointer_cast=yes
else
  tor_cv_cflags__Wint_to_void_pointer_cast=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    if test x != x; then

      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  tor_can_link__Wint_to_void_pointer_cast=yes
else
  tor_can_link__Wint_to_void_pointer_cast=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wint_to_void_pointer_cast" >&5
$as_echo "$tor_cv_cflags__Wint_to_void_pointer_cast" >&6; }
  if test x$tor_cv_cflags__Wint_to_void_pointer_cast = xyes; then
     TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Wint-to-void-pointer-cast" CFLAGS="$CFLAGS -Wint-to-void-pointer-cast"
  else
     true
  fi




  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Winteger-overflow" >&5
$as_echo_n "checking whether the compiler accepts -Winteger-overflow... " >&6; }
if ${tor_cv_cflags__Winteger_overflow+:} false; then :
  $as_echo_n "(cached) " >&6
else

    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Winteger-overflow"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  tor_cv_cflags__Winteger_overflow=yes
else
  tor_cv_cflags__Winteger_overflow=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    if test x != x; then

      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  tor_can_link__Winteger_overflow=yes
else
  tor_can_link__Winteger_overflow=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Winteger_overflow" >&5
$as_echo "$tor_cv_cflags__Winteger_overflow" >&6; }
  if test x$tor_cv_cflags__Winteger_overflow = xyes; then
     TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Winteger-overflow" CFLAGS="$CFLAGS -Winteger-overflow"
  else
     true
  fi




  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Winvalid-constexpr" >&5
$as_echo_n "checking whether the compiler accepts -Winvalid-constexpr... " >&6; }
if ${tor_cv_cflags__Winvalid_constexpr+:} false; then :
  $as_echo_n "(cached) " >&6
else

    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Winvalid-constexpr"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  tor_cv_cflags__Winvalid_constexpr=yes
else
  tor_cv_cflags__Winvalid_constexpr=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    if test x != x; then

      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  tor_can_link__Winvalid_constexpr=yes
else
  tor_can_link__Winvalid_constexpr=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Winvalid_constexpr" >&5
$as_echo "$tor_cv_cflags__Winvalid_constexpr" >&6; }
  if test x$tor_cv_cflags__Winvalid_constexpr = xyes; then
     TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Winvalid-constexpr" CFLAGS="$CFLAGS -Winvalid-constexpr"
  else
     true
  fi




  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Winvalid-iboutlet" >&5
$as_echo_n "checking whether the compiler accepts -Winvalid-iboutlet... " >&6; }
if ${tor_cv_cflags__Winvalid_iboutlet+:} false; then :
  $as_echo_n "(cached) " >&6
else

    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Winvalid-iboutlet"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  tor_cv_cflags__Winvalid_iboutlet=yes
else
  tor_cv_cflags__Winvalid_iboutlet=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    if test x != x; then

      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  tor_can_link__Winvalid_iboutlet=yes
else
  tor_can_link__Winvalid_iboutlet=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Winvalid_iboutlet" >&5
$as_echo "$tor_cv_cflags__Winvalid_iboutlet" >&6; }
  if test x$tor_cv_cflags__Winvalid_iboutlet = xyes; then
     TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Winvalid-iboutlet" CFLAGS="$CFLAGS -Winvalid-iboutlet"
  else
     true
  fi




  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Winvalid-noreturn" >&5
$as_echo_n "checking whether the compiler accepts -Winvalid-noreturn... " >&6; }
if ${tor_cv_cflags__Winvalid_noreturn+:} false; then :
  $as_echo_n "(cached) " >&6
else

    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Winvalid-noreturn"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  tor_cv_cflags__Winvalid_noreturn=yes
else
  tor_cv_cflags__Winvalid_noreturn=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    if test x != x; then

      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  tor_can_link__Winvalid_noreturn=yes
else
  tor_can_link__Winvalid_noreturn=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Winvalid_noreturn" >&5
$as_echo "$tor_cv_cflags__Winvalid_noreturn" >&6; }
  if test x$tor_cv_cflags__Winvalid_noreturn = xyes; then
     TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Winvalid-noreturn" CFLAGS="$CFLAGS -Winvalid-noreturn"
  else
     true
  fi




  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Winvalid-pp-token" >&5
$as_echo_n "checking whether the compiler accepts -Winvalid-pp-token... " >&6; }
if ${tor_cv_cflags__Winvalid_pp_token+:} false; then :
  $as_echo_n "(cached) " >&6
else

    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Winvalid-pp-token"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  tor_cv_cflags__Winvalid_pp_token=yes
else
  tor_cv_cflags__Winvalid_pp_token=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    if test x != x; then

      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  tor_can_link__Winvalid_pp_token=yes
else
  tor_can_link__Winvalid_pp_token=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Winvalid_pp_token" >&5
$as_echo "$tor_cv_cflags__Winvalid_pp_token" >&6; }
  if test x$tor_cv_cflags__Winvalid_pp_token = xyes; then
     TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Winvalid-pp-token" CFLAGS="$CFLAGS -Winvalid-pp-token"
  else
     true
  fi




  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Winvalid-source-encoding" >&5
$as_echo_n "checking whether the compiler accepts -Winvalid-source-encoding... " >&6; }
if ${tor_cv_cflags__Winvalid_source_encoding+:} false; then :
  $as_echo_n "(cached) " >&6
else

    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Winvalid-source-encoding"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  tor_cv_cflags__Winvalid_source_encoding=yes
else
  tor_cv_cflags__Winvalid_source_encoding=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    if test x != x; then

      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  tor_can_link__Winvalid_source_encoding=yes
else
  tor_can_link__Winvalid_source_encoding=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Winvalid_source_encoding" >&5
$as_echo "$tor_cv_cflags__Winvalid_source_encoding" >&6; }
  if test x$tor_cv_cflags__Winvalid_source_encoding = xyes; then
     TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Winvalid-source-encoding" CFLAGS="$CFLAGS -Winvalid-source-encoding"
  else
     true
  fi




  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Winvalid-token-paste" >&5
$as_echo_n "checking whether the compiler accepts -Winvalid-token-paste... " >&6; }
if ${tor_cv_cflags__Winvalid_token_paste+:} false; then :
  $as_echo_n "(cached) " >&6
else

    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Winvalid-token-paste"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  tor_cv_cflags__Winvalid_token_paste=yes
else
  tor_cv_cflags__Winvalid_token_paste=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    if test x != x; then

      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  tor_can_link__Winvalid_token_paste=yes
else
  tor_can_link__Winvalid_token_paste=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Winvalid_token_paste" >&5
$as_echo "$tor_cv_cflags__Winvalid_token_paste" >&6; }
  if test x$tor_cv_cflags__Winvalid_token_paste = xyes; then
     TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Winvalid-token-paste" CFLAGS="$CFLAGS -Winvalid-token-paste"
  else
     true
  fi




  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wknr-promoted-parameter" >&5
$as_echo_n "checking whether the compiler accepts -Wknr-promoted-parameter... " >&6; }
if ${tor_cv_cflags__Wknr_promoted_parameter+:} false; then :
  $as_echo_n "(cached) " >&6
else

    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Wknr-promoted-parameter"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  tor_cv_cflags__Wknr_promoted_parameter=yes
else
  tor_cv_cflags__Wknr_promoted_parameter=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    if test x != x; then

      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  tor_can_link__Wknr_promoted_parameter=yes
else
  tor_can_link__Wknr_promoted_parameter=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wknr_promoted_parameter" >&5
$as_echo "$tor_cv_cflags__Wknr_promoted_parameter" >&6; }
  if test x$tor_cv_cflags__Wknr_promoted_parameter = xyes; then
     TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Wknr-promoted-parameter" CFLAGS="$CFLAGS -Wknr-promoted-parameter"
  else
     true
  fi




  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wlarge-by-value-copy" >&5
$as_echo_n "checking whether the compiler accepts -Wlarge-by-value-copy... " >&6; }
if ${tor_cv_cflags__Wlarge_by_value_copy+:} false; then :
  $as_echo_n "(cached) " >&6
else

    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Wlarge-by-value-copy"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  tor_cv_cflags__Wlarge_by_value_copy=yes
else
  tor_cv_cflags__Wlarge_by_value_copy=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    if test x != x; then

      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  tor_can_link__Wlarge_by_value_copy=yes
else
  tor_can_link__Wlarge_by_value_copy=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wlarge_by_value_copy" >&5
$as_echo "$tor_cv_cflags__Wlarge_by_value_copy" >&6; }
  if test x$tor_cv_cflags__Wlarge_by_value_copy = xyes; then
     TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Wlarge-by-value-copy" CFLAGS="$CFLAGS -Wlarge-by-value-copy"
  else
     true
  fi




  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wliteral-conversion" >&5
$as_echo_n "checking whether the compiler accepts -Wliteral-conversion... " >&6; }
if ${tor_cv_cflags__Wliteral_conversion+:} false; then :
  $as_echo_n "(cached) " >&6
else

    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Wliteral-conversion"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  tor_cv_cflags__Wliteral_conversion=yes
else
  tor_cv_cflags__Wliteral_conversion=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    if test x != x; then

      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  tor_can_link__Wliteral_conversion=yes
else
  tor_can_link__Wliteral_conversion=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wliteral_conversion" >&5
$as_echo "$tor_cv_cflags__Wliteral_conversion" >&6; }
  if test x$tor_cv_cflags__Wliteral_conversion = xyes; then
     TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Wliteral-conversion" CFLAGS="$CFLAGS -Wliteral-conversion"
  else
     true
  fi




  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wliteral-range" >&5
$as_echo_n "checking whether the compiler accepts -Wliteral-range... " >&6; }
if ${tor_cv_cflags__Wliteral_range+:} false; then :
  $as_echo_n "(cached) " >&6
else

    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Wliteral-range"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  tor_cv_cflags__Wliteral_range=yes
else
  tor_cv_cflags__Wliteral_range=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    if test x != x; then

      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  tor_can_link__Wliteral_range=yes
else
  tor_can_link__Wliteral_range=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wliteral_range" >&5
$as_echo "$tor_cv_cflags__Wliteral_range" >&6; }
  if test x$tor_cv_cflags__Wliteral_range = xyes; then
     TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Wliteral-range" CFLAGS="$CFLAGS -Wliteral-range"
  else
     true
  fi




  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wlocal-type-template-args" >&5
$as_echo_n "checking whether the compiler accepts -Wlocal-type-template-args... " >&6; }
if ${tor_cv_cflags__Wlocal_type_template_args+:} false; then :
  $as_echo_n "(cached) " >&6
else

    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Wlocal-type-template-args"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  tor_cv_cflags__Wlocal_type_template_args=yes
else
  tor_cv_cflags__Wlocal_type_template_args=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    if test x != x; then

      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  tor_can_link__Wlocal_type_template_args=yes
else
  tor_can_link__Wlocal_type_template_args=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wlocal_type_template_args" >&5
$as_echo "$tor_cv_cflags__Wlocal_type_template_args" >&6; }
  if test x$tor_cv_cflags__Wlocal_type_template_args = xyes; then
     TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Wlocal-type-template-args" CFLAGS="$CFLAGS -Wlocal-type-template-args"
  else
     true
  fi




  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wlogical-op" >&5
$as_echo_n "checking whether the compiler accepts -Wlogical-op... " >&6; }
if ${tor_cv_cflags__Wlogical_op+:} false; then :
  $as_echo_n "(cached) " >&6
else

    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Wlogical-op"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  tor_cv_cflags__Wlogical_op=yes
else
  tor_cv_cflags__Wlogical_op=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    if test x != x; then

      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  tor_can_link__Wlogical_op=yes
else
  tor_can_link__Wlogical_op=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wlogical_op" >&5
$as_echo "$tor_cv_cflags__Wlogical_op" >&6; }
  if test x$tor_cv_cflags__Wlogical_op = xyes; then
     TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Wlogical-op" CFLAGS="$CFLAGS -Wlogical-op"
  else
     true
  fi




  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wloop-analysis" >&5
$as_echo_n "checking whether the compiler accepts -Wloop-analysis... " >&6; }
if ${tor_cv_cflags__Wloop_analysis+:} false; then :
  $as_echo_n "(cached) " >&6
else

    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Wloop-analysis"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  tor_cv_cflags__Wloop_analysis=yes
else
  tor_cv_cflags__Wloop_analysis=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    if test x != x; then

      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  tor_can_link__Wloop_analysis=yes
else
  tor_can_link__Wloop_analysis=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wloop_analysis" >&5
$as_echo "$tor_cv_cflags__Wloop_analysis" >&6; }
  if test x$tor_cv_cflags__Wloop_analysis = xyes; then
     TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Wloop-analysis" CFLAGS="$CFLAGS -Wloop-analysis"
  else
     true
  fi




  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wmain-return-type" >&5
$as_echo_n "checking whether the compiler accepts -Wmain-return-type... " >&6; }
if ${tor_cv_cflags__Wmain_return_type+:} false; then :
  $as_echo_n "(cached) " >&6
else

    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Wmain-return-type"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  tor_cv_cflags__Wmain_return_type=yes
else
  tor_cv_cflags__Wmain_return_type=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    if test x != x; then

      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  tor_can_link__Wmain_return_type=yes
else
  tor_can_link__Wmain_return_type=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wmain_return_type" >&5
$as_echo "$tor_cv_cflags__Wmain_return_type" >&6; }
  if test x$tor_cv_cflags__Wmain_return_type = xyes; then
     TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Wmain-return-type" CFLAGS="$CFLAGS -Wmain-return-type"
  else
     true
  fi




  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wmalformed-warning-check" >&5
$as_echo_n "checking whether the compiler accepts -Wmalformed-warning-check... " >&6; }
if ${tor_cv_cflags__Wmalformed_warning_check+:} false; then :
  $as_echo_n "(cached) " >&6
else

    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Wmalformed-warning-check"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  tor_cv_cflags__Wmalformed_warning_check=yes
else
  tor_cv_cflags__Wmalformed_warning_check=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    if test x != x; then

      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  tor_can_link__Wmalformed_warning_check=yes
else
  tor_can_link__Wmalformed_warning_check=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wmalformed_warning_check" >&5
$as_echo "$tor_cv_cflags__Wmalformed_warning_check" >&6; }
  if test x$tor_cv_cflags__Wmalformed_warning_check = xyes; then
     TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Wmalformed-warning-check" CFLAGS="$CFLAGS -Wmalformed-warning-check"
  else
     true
  fi




  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wmethod-signatures" >&5
$as_echo_n "checking whether the compiler accepts -Wmethod-signatures... " >&6; }
if ${tor_cv_cflags__Wmethod_signatures+:} false; then :
  $as_echo_n "(cached) " >&6
else

    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Wmethod-signatures"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  tor_cv_cflags__Wmethod_signatures=yes
else
  tor_cv_cflags__Wmethod_signatures=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    if test x != x; then

      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  tor_can_link__Wmethod_signatures=yes
else
  tor_can_link__Wmethod_signatures=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wmethod_signatures" >&5
$as_echo "$tor_cv_cflags__Wmethod_signatures" >&6; }
  if test x$tor_cv_cflags__Wmethod_signatures = xyes; then
     TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Wmethod-signatures" CFLAGS="$CFLAGS -Wmethod-signatures"
  else
     true
  fi




  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wmicrosoft" >&5
$as_echo_n "checking whether the compiler accepts -Wmicrosoft... " >&6; }
if ${tor_cv_cflags__Wmicrosoft+:} false; then :
  $as_echo_n "(cached) " >&6
else

    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Wmicrosoft"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  tor_cv_cflags__Wmicrosoft=yes
else
  tor_cv_cflags__Wmicrosoft=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    if test x != x; then

      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  tor_can_link__Wmicrosoft=yes
else
  tor_can_link__Wmicrosoft=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wmicrosoft" >&5
$as_echo "$tor_cv_cflags__Wmicrosoft" >&6; }
  if test x$tor_cv_cflags__Wmicrosoft = xyes; then
     TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Wmicrosoft" CFLAGS="$CFLAGS -Wmicrosoft"
  else
     true
  fi




  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wmicrosoft-exists" >&5
$as_echo_n "checking whether the compiler accepts -Wmicrosoft-exists... " >&6; }
if ${tor_cv_cflags__Wmicrosoft_exists+:} false; then :
  $as_echo_n "(cached) " >&6
else

    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Wmicrosoft-exists"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  tor_cv_cflags__Wmicrosoft_exists=yes
else
  tor_cv_cflags__Wmicrosoft_exists=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    if test x != x; then

      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  tor_can_link__Wmicrosoft_exists=yes
else
  tor_can_link__Wmicrosoft_exists=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wmicrosoft_exists" >&5
$as_echo "$tor_cv_cflags__Wmicrosoft_exists" >&6; }
  if test x$tor_cv_cflags__Wmicrosoft_exists = xyes; then
     TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Wmicrosoft-exists" CFLAGS="$CFLAGS -Wmicrosoft-exists"
  else
     true
  fi




  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wmismatched-parameter-types" >&5
$as_echo_n "checking whether the compiler accepts -Wmismatched-parameter-types... " >&6; }
if ${tor_cv_cflags__Wmismatched_parameter_types+:} false; then :
  $as_echo_n "(cached) " >&6
else

    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Wmismatched-parameter-types"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  tor_cv_cflags__Wmismatched_parameter_types=yes
else
  tor_cv_cflags__Wmismatched_parameter_types=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    if test x != x; then

      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  tor_can_link__Wmismatched_parameter_types=yes
else
  tor_can_link__Wmismatched_parameter_types=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wmismatched_parameter_types" >&5
$as_echo "$tor_cv_cflags__Wmismatched_parameter_types" >&6; }
  if test x$tor_cv_cflags__Wmismatched_parameter_types = xyes; then
     TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Wmismatched-parameter-types" CFLAGS="$CFLAGS -Wmismatched-parameter-types"
  else
     true
  fi




  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wmismatched-return-types" >&5
$as_echo_n "checking whether the compiler accepts -Wmismatched-return-types... " >&6; }
if ${tor_cv_cflags__Wmismatched_return_types+:} false; then :
  $as_echo_n "(cached) " >&6
else

    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Wmismatched-return-types"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  tor_cv_cflags__Wmismatched_return_types=yes
else
  tor_cv_cflags__Wmismatched_return_types=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    if test x != x; then

      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  tor_can_link__Wmismatched_return_types=yes
else
  tor_can_link__Wmismatched_return_types=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wmismatched_return_types" >&5
$as_echo "$tor_cv_cflags__Wmismatched_return_types" >&6; }
  if test x$tor_cv_cflags__Wmismatched_return_types = xyes; then
     TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Wmismatched-return-types" CFLAGS="$CFLAGS -Wmismatched-return-types"
  else
     true
  fi




  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wmissing-field-initializers" >&5
$as_echo_n "checking whether the compiler accepts -Wmissing-field-initializers... " >&6; }
if ${tor_cv_cflags__Wmissing_field_initializers+:} false; then :
  $as_echo_n "(cached) " >&6
else

    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Wmissing-field-initializers"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  tor_cv_cflags__Wmissing_field_initializers=yes
else
  tor_cv_cflags__Wmissing_field_initializers=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    if test x != x; then

      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  tor_can_link__Wmissing_field_initializers=yes
else
  tor_can_link__Wmissing_field_initializers=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wmissing_field_initializers" >&5
$as_echo "$tor_cv_cflags__Wmissing_field_initializers" >&6; }
  if test x$tor_cv_cflags__Wmissing_field_initializers = xyes; then
     TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Wmissing-field-initializers" CFLAGS="$CFLAGS -Wmissing-field-initializers"
  else
     true
  fi




  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wmissing-format-attribute" >&5
$as_echo_n "checking whether the compiler accepts -Wmissing-format-attribute... " >&6; }
if ${tor_cv_cflags__Wmissing_format_attribute+:} false; then :
  $as_echo_n "(cached) " >&6
else

    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Wmissing-format-attribute"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  tor_cv_cflags__Wmissing_format_attribute=yes
else
  tor_cv_cflags__Wmissing_format_attribute=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    if test x != x; then

      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  tor_can_link__Wmissing_format_attribute=yes
else
  tor_can_link__Wmissing_format_attribute=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wmissing_format_attribute" >&5
$as_echo "$tor_cv_cflags__Wmissing_format_attribute" >&6; }
  if test x$tor_cv_cflags__Wmissing_format_attribute = xyes; then
     TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Wmissing-format-attribute" CFLAGS="$CFLAGS -Wmissing-format-attribute"
  else
     true
  fi




  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wmissing-noreturn" >&5
$as_echo_n "checking whether the compiler accepts -Wmissing-noreturn... " >&6; }
if ${tor_cv_cflags__Wmissing_noreturn+:} false; then :
  $as_echo_n "(cached) " >&6
else

    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Wmissing-noreturn"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  tor_cv_cflags__Wmissing_noreturn=yes
else
  tor_cv_cflags__Wmissing_noreturn=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    if test x != x; then

      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  tor_can_link__Wmissing_noreturn=yes
else
  tor_can_link__Wmissing_noreturn=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wmissing_noreturn" >&5
$as_echo "$tor_cv_cflags__Wmissing_noreturn" >&6; }
  if test x$tor_cv_cflags__Wmissing_noreturn = xyes; then
     TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Wmissing-noreturn" CFLAGS="$CFLAGS -Wmissing-noreturn"
  else
     true
  fi




  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wmissing-selector-name" >&5
$as_echo_n "checking whether the compiler accepts -Wmissing-selector-name... " >&6; }
if ${tor_cv_cflags__Wmissing_selector_name+:} false; then :
  $as_echo_n "(cached) " >&6
else

    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Wmissing-selector-name"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  tor_cv_cflags__Wmissing_selector_name=yes
else
  tor_cv_cflags__Wmissing_selector_name=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    if test x != x; then

      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  tor_can_link__Wmissing_selector_name=yes
else
  tor_can_link__Wmissing_selector_name=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wmissing_selector_name" >&5
$as_echo "$tor_cv_cflags__Wmissing_selector_name" >&6; }
  if test x$tor_cv_cflags__Wmissing_selector_name = xyes; then
     TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Wmissing-selector-name" CFLAGS="$CFLAGS -Wmissing-selector-name"
  else
     true
  fi




  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wmissing-sysroot" >&5
$as_echo_n "checking whether the compiler accepts -Wmissing-sysroot... " >&6; }
if ${tor_cv_cflags__Wmissing_sysroot+:} false; then :
  $as_echo_n "(cached) " >&6
else

    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Wmissing-sysroot"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  tor_cv_cflags__Wmissing_sysroot=yes
else
  tor_cv_cflags__Wmissing_sysroot=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    if test x != x; then

      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  tor_can_link__Wmissing_sysroot=yes
else
  tor_can_link__Wmissing_sysroot=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wmissing_sysroot" >&5
$as_echo "$tor_cv_cflags__Wmissing_sysroot" >&6; }
  if test x$tor_cv_cflags__Wmissing_sysroot = xyes; then
     TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Wmissing-sysroot" CFLAGS="$CFLAGS -Wmissing-sysroot"
  else
     true
  fi




  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wmissing-variable-declarations" >&5
$as_echo_n "checking whether the compiler accepts -Wmissing-variable-declarations... " >&6; }
if ${tor_cv_cflags__Wmissing_variable_declarations+:} false; then :
  $as_echo_n "(cached) " >&6
else

    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Wmissing-variable-declarations"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  tor_cv_cflags__Wmissing_variable_declarations=yes
else
  tor_cv_cflags__Wmissing_variable_declarations=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    if test x != x; then

      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  tor_can_link__Wmissing_variable_declarations=yes
else
  tor_can_link__Wmissing_variable_declarations=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wmissing_variable_declarations" >&5
$as_echo "$tor_cv_cflags__Wmissing_variable_declarations" >&6; }
  if test x$tor_cv_cflags__Wmissing_variable_declarations = xyes; then
     TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Wmissing-variable-declarations" CFLAGS="$CFLAGS -Wmissing-variable-declarations"
  else
     true
  fi




  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wmodule-conflict" >&5
$as_echo_n "checking whether the compiler accepts -Wmodule-conflict... " >&6; }
if ${tor_cv_cflags__Wmodule_conflict+:} false; then :
  $as_echo_n "(cached) " >&6
else

    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Wmodule-conflict"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  tor_cv_cflags__Wmodule_conflict=yes
else
  tor_cv_cflags__Wmodule_conflict=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    if test x != x; then

      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  tor_can_link__Wmodule_conflict=yes
else
  tor_can_link__Wmodule_conflict=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wmodule_conflict" >&5
$as_echo "$tor_cv_cflags__Wmodule_conflict" >&6; }
  if test x$tor_cv_cflags__Wmodule_conflict = xyes; then
     TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Wmodule-conflict" CFLAGS="$CFLAGS -Wmodule-conflict"
  else
     true
  fi




  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wnested-anon-types" >&5
$as_echo_n "checking whether the compiler accepts -Wnested-anon-types... " >&6; }
if ${tor_cv_cflags__Wnested_anon_types+:} false; then :
  $as_echo_n "(cached) " >&6
else

    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Wnested-anon-types"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  tor_cv_cflags__Wnested_anon_types=yes
else
  tor_cv_cflags__Wnested_anon_types=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    if test x != x; then

      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  tor_can_link__Wnested_anon_types=yes
else
  tor_can_link__Wnested_anon_types=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wnested_anon_types" >&5
$as_echo "$tor_cv_cflags__Wnested_anon_types" >&6; }
  if test x$tor_cv_cflags__Wnested_anon_types = xyes; then
     TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Wnested-anon-types" CFLAGS="$CFLAGS -Wnested-anon-types"
  else
     true
  fi




  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wnewline-eof" >&5
$as_echo_n "checking whether the compiler accepts -Wnewline-eof... " >&6; }
if ${tor_cv_cflags__Wnewline_eof+:} false; then :
  $as_echo_n "(cached) " >&6
else

    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Wnewline-eof"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  tor_cv_cflags__Wnewline_eof=yes
else
  tor_cv_cflags__Wnewline_eof=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    if test x != x; then

      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  tor_can_link__Wnewline_eof=yes
else
  tor_can_link__Wnewline_eof=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wnewline_eof" >&5
$as_echo "$tor_cv_cflags__Wnewline_eof" >&6; }
  if test x$tor_cv_cflags__Wnewline_eof = xyes; then
     TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Wnewline-eof" CFLAGS="$CFLAGS -Wnewline-eof"
  else
     true
  fi




  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wnon-literal-null-conversion" >&5
$as_echo_n "checking whether the compiler accepts -Wnon-literal-null-conversion... " >&6; }
if ${tor_cv_cflags__Wnon_literal_null_conversion+:} false; then :
  $as_echo_n "(cached) " >&6
else

    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Wnon-literal-null-conversion"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  tor_cv_cflags__Wnon_literal_null_conversion=yes
else
  tor_cv_cflags__Wnon_literal_null_conversion=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    if test x != x; then

      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  tor_can_link__Wnon_literal_null_conversion=yes
else
  tor_can_link__Wnon_literal_null_conversion=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wnon_literal_null_conversion" >&5
$as_echo "$tor_cv_cflags__Wnon_literal_null_conversion" >&6; }
  if test x$tor_cv_cflags__Wnon_literal_null_conversion = xyes; then
     TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Wnon-literal-null-conversion" CFLAGS="$CFLAGS -Wnon-literal-null-conversion"
  else
     true
  fi




  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wnon-pod-varargs" >&5
$as_echo_n "checking whether the compiler accepts -Wnon-pod-varargs... " >&6; }
if ${tor_cv_cflags__Wnon_pod_varargs+:} false; then :
  $as_echo_n "(cached) " >&6
else

    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Wnon-pod-varargs"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  tor_cv_cflags__Wnon_pod_varargs=yes
else
  tor_cv_cflags__Wnon_pod_varargs=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    if test x != x; then

      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  tor_can_link__Wnon_pod_varargs=yes
else
  tor_can_link__Wnon_pod_varargs=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wnon_pod_varargs" >&5
$as_echo "$tor_cv_cflags__Wnon_pod_varargs" >&6; }
  if test x$tor_cv_cflags__Wnon_pod_varargs = xyes; then
     TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Wnon-pod-varargs" CFLAGS="$CFLAGS -Wnon-pod-varargs"
  else
     true
  fi




  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wnonportable-cfstrings" >&5
$as_echo_n "checking whether the compiler accepts -Wnonportable-cfstrings... " >&6; }
if ${tor_cv_cflags__Wnonportable_cfstrings+:} false; then :
  $as_echo_n "(cached) " >&6
else

    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Wnonportable-cfstrings"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  tor_cv_cflags__Wnonportable_cfstrings=yes
else
  tor_cv_cflags__Wnonportable_cfstrings=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    if test x != x; then

      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  tor_can_link__Wnonportable_cfstrings=yes
else
  tor_can_link__Wnonportable_cfstrings=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wnonportable_cfstrings" >&5
$as_echo "$tor_cv_cflags__Wnonportable_cfstrings" >&6; }
  if test x$tor_cv_cflags__Wnonportable_cfstrings = xyes; then
     TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Wnonportable-cfstrings" CFLAGS="$CFLAGS -Wnonportable-cfstrings"
  else
     true
  fi




  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wnormalized=nfkc" >&5
$as_echo_n "checking whether the compiler accepts -Wnormalized=nfkc... " >&6; }
if ${tor_cv_cflags__Wnormalized_nfkc+:} false; then :
  $as_echo_n "(cached) " >&6
else

    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Wnormalized=nfkc"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  tor_cv_cflags__Wnormalized_nfkc=yes
else
  tor_cv_cflags__Wnormalized_nfkc=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    if test x != x; then

      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  tor_can_link__Wnormalized_nfkc=yes
else
  tor_can_link__Wnormalized_nfkc=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wnormalized_nfkc" >&5
$as_echo "$tor_cv_cflags__Wnormalized_nfkc" >&6; }
  if test x$tor_cv_cflags__Wnormalized_nfkc = xyes; then
     TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Wnormalized=nfkc" CFLAGS="$CFLAGS -Wnormalized=nfkc"
  else
     true
  fi




  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wnull-arithmetic" >&5
$as_echo_n "checking whether the compiler accepts -Wnull-arithmetic... " >&6; }
if ${tor_cv_cflags__Wnull_arithmetic+:} false; then :
  $as_echo_n "(cached) " >&6
else

    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Wnull-arithmetic"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  tor_cv_cflags__Wnull_arithmetic=yes
else
  tor_cv_cflags__Wnull_arithmetic=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    if test x != x; then

      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  tor_can_link__Wnull_arithmetic=yes
else
  tor_can_link__Wnull_arithmetic=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wnull_arithmetic" >&5
$as_echo "$tor_cv_cflags__Wnull_arithmetic" >&6; }
  if test x$tor_cv_cflags__Wnull_arithmetic = xyes; then
     TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Wnull-arithmetic" CFLAGS="$CFLAGS -Wnull-arithmetic"
  else
     true
  fi




  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wnull-character" >&5
$as_echo_n "checking whether the compiler accepts -Wnull-character... " >&6; }
if ${tor_cv_cflags__Wnull_character+:} false; then :
  $as_echo_n "(cached) " >&6
else

    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Wnull-character"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  tor_cv_cflags__Wnull_character=yes
else
  tor_cv_cflags__Wnull_character=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    if test x != x; then

      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  tor_can_link__Wnull_character=yes
else
  tor_can_link__Wnull_character=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wnull_character" >&5
$as_echo "$tor_cv_cflags__Wnull_character" >&6; }
  if test x$tor_cv_cflags__Wnull_character = xyes; then
     TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Wnull-character" CFLAGS="$CFLAGS -Wnull-character"
  else
     true
  fi




  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wnull-conversion" >&5
$as_echo_n "checking whether the compiler accepts -Wnull-conversion... " >&6; }
if ${tor_cv_cflags__Wnull_conversion+:} false; then :
  $as_echo_n "(cached) " >&6
else

    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Wnull-conversion"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  tor_cv_cflags__Wnull_conversion=yes
else
  tor_cv_cflags__Wnull_conversion=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    if test x != x; then

      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  tor_can_link__Wnull_conversion=yes
else
  tor_can_link__Wnull_conversion=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wnull_conversion" >&5
$as_echo "$tor_cv_cflags__Wnull_conversion" >&6; }
  if test x$tor_cv_cflags__Wnull_conversion = xyes; then
     TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Wnull-conversion" CFLAGS="$CFLAGS -Wnull-conversion"
  else
     true
  fi




  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wnull-dereference" >&5
$as_echo_n "checking whether the compiler accepts -Wnull-dereference... " >&6; }
if ${tor_cv_cflags__Wnull_dereference+:} false; then :
  $as_echo_n "(cached) " >&6
else

    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Wnull-dereference"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  tor_cv_cflags__Wnull_dereference=yes
else
  tor_cv_cflags__Wnull_dereference=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    if test x != x; then

      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  tor_can_link__Wnull_dereference=yes
else
  tor_can_link__Wnull_dereference=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wnull_dereference" >&5
$as_echo "$tor_cv_cflags__Wnull_dereference" >&6; }
  if test x$tor_cv_cflags__Wnull_dereference = xyes; then
     TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Wnull-dereference" CFLAGS="$CFLAGS -Wnull-dereference"
  else
     true
  fi




  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wout-of-line-declaration" >&5
$as_echo_n "checking whether the compiler accepts -Wout-of-line-declaration... " >&6; }
if ${tor_cv_cflags__Wout_of_line_declaration+:} false; then :
  $as_echo_n "(cached) " >&6
else

    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Wout-of-line-declaration"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  tor_cv_cflags__Wout_of_line_declaration=yes
else
  tor_cv_cflags__Wout_of_line_declaration=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    if test x != x; then

      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  tor_can_link__Wout_of_line_declaration=yes
else
  tor_can_link__Wout_of_line_declaration=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wout_of_line_declaration" >&5
$as_echo "$tor_cv_cflags__Wout_of_line_declaration" >&6; }
  if test x$tor_cv_cflags__Wout_of_line_declaration = xyes; then
     TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Wout-of-line-declaration" CFLAGS="$CFLAGS -Wout-of-line-declaration"
  else
     true
  fi




  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wover-aligned" >&5
$as_echo_n "checking whether the compiler accepts -Wover-aligned... " >&6; }
if ${tor_cv_cflags__Wover_aligned+:} false; then :
  $as_echo_n "(cached) " >&6
else

    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Wover-aligned"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  tor_cv_cflags__Wover_aligned=yes
else
  tor_cv_cflags__Wover_aligned=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    if test x != x; then

      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  tor_can_link__Wover_aligned=yes
else
  tor_can_link__Wover_aligned=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wover_aligned" >&5
$as_echo "$tor_cv_cflags__Wover_aligned" >&6; }
  if test x$tor_cv_cflags__Wover_aligned = xyes; then
     TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Wover-aligned" CFLAGS="$CFLAGS -Wover-aligned"
  else
     true
  fi




  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Woverlength-strings" >&5
$as_echo_n "checking whether the compiler accepts -Woverlength-strings... " >&6; }
if ${tor_cv_cflags__Woverlength_strings+:} false; then :
  $as_echo_n "(cached) " >&6
else

    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Woverlength-strings"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  tor_cv_cflags__Woverlength_strings=yes
else
  tor_cv_cflags__Woverlength_strings=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    if test x != x; then

      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  tor_can_link__Woverlength_strings=yes
else
  tor_can_link__Woverlength_strings=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Woverlength_strings" >&5
$as_echo "$tor_cv_cflags__Woverlength_strings" >&6; }
  if test x$tor_cv_cflags__Woverlength_strings = xyes; then
     TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Woverlength-strings" CFLAGS="$CFLAGS -Woverlength-strings"
  else
     true
  fi




  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Woverride-init" >&5
$as_echo_n "checking whether the compiler accepts -Woverride-init... " >&6; }
if ${tor_cv_cflags__Woverride_init+:} false; then :
  $as_echo_n "(cached) " >&6
else

    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Woverride-init"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  tor_cv_cflags__Woverride_init=yes
else
  tor_cv_cflags__Woverride_init=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    if test x != x; then

      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  tor_can_link__Woverride_init=yes
else
  tor_can_link__Woverride_init=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Woverride_init" >&5
$as_echo "$tor_cv_cflags__Woverride_init" >&6; }
  if test x$tor_cv_cflags__Woverride_init = xyes; then
     TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Woverride-init" CFLAGS="$CFLAGS -Woverride-init"
  else
     true
  fi




  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Woverriding-method-mismatch" >&5
$as_echo_n "checking whether the compiler accepts -Woverriding-method-mismatch... " >&6; }
if ${tor_cv_cflags__Woverriding_method_mismatch+:} false; then :
  $as_echo_n "(cached) " >&6
else

    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Woverriding-method-mismatch"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  tor_cv_cflags__Woverriding_method_mismatch=yes
else
  tor_cv_cflags__Woverriding_method_mismatch=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    if test x != x; then

      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  tor_can_link__Woverriding_method_mismatch=yes
else
  tor_can_link__Woverriding_method_mismatch=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Woverriding_method_mismatch" >&5
$as_echo "$tor_cv_cflags__Woverriding_method_mismatch" >&6; }
  if test x$tor_cv_cflags__Woverriding_method_mismatch = xyes; then
     TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Woverriding-method-mismatch" CFLAGS="$CFLAGS -Woverriding-method-mismatch"
  else
     true
  fi




  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wpointer-type-mismatch" >&5
$as_echo_n "checking whether the compiler accepts -Wpointer-type-mismatch... " >&6; }
if ${tor_cv_cflags__Wpointer_type_mismatch+:} false; then :
  $as_echo_n "(cached) " >&6
else

    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Wpointer-type-mismatch"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  tor_cv_cflags__Wpointer_type_mismatch=yes
else
  tor_cv_cflags__Wpointer_type_mismatch=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    if test x != x; then

      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  tor_can_link__Wpointer_type_mismatch=yes
else
  tor_can_link__Wpointer_type_mismatch=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wpointer_type_mismatch" >&5
$as_echo "$tor_cv_cflags__Wpointer_type_mismatch" >&6; }
  if test x$tor_cv_cflags__Wpointer_type_mismatch = xyes; then
     TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Wpointer-type-mismatch" CFLAGS="$CFLAGS -Wpointer-type-mismatch"
  else
     true
  fi




  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wpredefined-identifier-outside-function" >&5
$as_echo_n "checking whether the compiler accepts -Wpredefined-identifier-outside-function... " >&6; }
if ${tor_cv_cflags__Wpredefined_identifier_outside_function+:} false; then :
  $as_echo_n "(cached) " >&6
else

    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Wpredefined-identifier-outside-function"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  tor_cv_cflags__Wpredefined_identifier_outside_function=yes
else
  tor_cv_cflags__Wpredefined_identifier_outside_function=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    if test x != x; then

      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  tor_can_link__Wpredefined_identifier_outside_function=yes
else
  tor_can_link__Wpredefined_identifier_outside_function=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wpredefined_identifier_outside_function" >&5
$as_echo "$tor_cv_cflags__Wpredefined_identifier_outside_function" >&6; }
  if test x$tor_cv_cflags__Wpredefined_identifier_outside_function = xyes; then
     TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Wpredefined-identifier-outside-function" CFLAGS="$CFLAGS -Wpredefined-identifier-outside-function"
  else
     true
  fi




  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wprotocol-property-synthesis-ambiguity" >&5
$as_echo_n "checking whether the compiler accepts -Wprotocol-property-synthesis-ambiguity... " >&6; }
if ${tor_cv_cflags__Wprotocol_property_synthesis_ambiguity+:} false; then :
  $as_echo_n "(cached) " >&6
else

    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Wprotocol-property-synthesis-ambiguity"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  tor_cv_cflags__Wprotocol_property_synthesis_ambiguity=yes
else
  tor_cv_cflags__Wprotocol_property_synthesis_ambiguity=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    if test x != x; then

      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  tor_can_link__Wprotocol_property_synthesis_ambiguity=yes
else
  tor_can_link__Wprotocol_property_synthesis_ambiguity=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wprotocol_property_synthesis_ambiguity" >&5
$as_echo "$tor_cv_cflags__Wprotocol_property_synthesis_ambiguity" >&6; }
  if test x$tor_cv_cflags__Wprotocol_property_synthesis_ambiguity = xyes; then
     TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Wprotocol-property-synthesis-ambiguity" CFLAGS="$CFLAGS -Wprotocol-property-synthesis-ambiguity"
  else
     true
  fi




  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wreadonly-iboutlet-property" >&5
$as_echo_n "checking whether the compiler accepts -Wreadonly-iboutlet-property... " >&6; }
if ${tor_cv_cflags__Wreadonly_iboutlet_property+:} false; then :
  $as_echo_n "(cached) " >&6
else

    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Wreadonly-iboutlet-property"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  tor_cv_cflags__Wreadonly_iboutlet_property=yes
else
  tor_cv_cflags__Wreadonly_iboutlet_property=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    if test x != x; then

      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  tor_can_link__Wreadonly_iboutlet_property=yes
else
  tor_can_link__Wreadonly_iboutlet_property=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wreadonly_iboutlet_property" >&5
$as_echo "$tor_cv_cflags__Wreadonly_iboutlet_property" >&6; }
  if test x$tor_cv_cflags__Wreadonly_iboutlet_property = xyes; then
     TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Wreadonly-iboutlet-property" CFLAGS="$CFLAGS -Wreadonly-iboutlet-property"
  else
     true
  fi




  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wreadonly-setter-attrs" >&5
$as_echo_n "checking whether the compiler accepts -Wreadonly-setter-attrs... " >&6; }
if ${tor_cv_cflags__Wreadonly_setter_attrs+:} false; then :
  $as_echo_n "(cached) " >&6
else

    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Wreadonly-setter-attrs"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  tor_cv_cflags__Wreadonly_setter_attrs=yes
else
  tor_cv_cflags__Wreadonly_setter_attrs=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    if test x != x; then

      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  tor_can_link__Wreadonly_setter_attrs=yes
else
  tor_can_link__Wreadonly_setter_attrs=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wreadonly_setter_attrs" >&5
$as_echo "$tor_cv_cflags__Wreadonly_setter_attrs" >&6; }
  if test x$tor_cv_cflags__Wreadonly_setter_attrs = xyes; then
     TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Wreadonly-setter-attrs" CFLAGS="$CFLAGS -Wreadonly-setter-attrs"
  else
     true
  fi




  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wreceiver-expr" >&5
$as_echo_n "checking whether the compiler accepts -Wreceiver-expr... " >&6; }
if ${tor_cv_cflags__Wreceiver_expr+:} false; then :
  $as_echo_n "(cached) " >&6
else

    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Wreceiver-expr"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  tor_cv_cflags__Wreceiver_expr=yes
else
  tor_cv_cflags__Wreceiver_expr=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    if test x != x; then

      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  tor_can_link__Wreceiver_expr=yes
else
  tor_can_link__Wreceiver_expr=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wreceiver_expr" >&5
$as_echo "$tor_cv_cflags__Wreceiver_expr" >&6; }
  if test x$tor_cv_cflags__Wreceiver_expr = xyes; then
     TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Wreceiver-expr" CFLAGS="$CFLAGS -Wreceiver-expr"
  else
     true
  fi




  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wreceiver-forward-class" >&5
$as_echo_n "checking whether the compiler accepts -Wreceiver-forward-class... " >&6; }
if ${tor_cv_cflags__Wreceiver_forward_class+:} false; then :
  $as_echo_n "(cached) " >&6
else

    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Wreceiver-forward-class"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  tor_cv_cflags__Wreceiver_forward_class=yes
else
  tor_cv_cflags__Wreceiver_forward_class=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    if test x != x; then

      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  tor_can_link__Wreceiver_forward_class=yes
else
  tor_can_link__Wreceiver_forward_class=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wreceiver_forward_class" >&5
$as_echo "$tor_cv_cflags__Wreceiver_forward_class" >&6; }
  if test x$tor_cv_cflags__Wreceiver_forward_class = xyes; then
     TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Wreceiver-forward-class" CFLAGS="$CFLAGS -Wreceiver-forward-class"
  else
     true
  fi




  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wreceiver-is-weak" >&5
$as_echo_n "checking whether the compiler accepts -Wreceiver-is-weak... " >&6; }
if ${tor_cv_cflags__Wreceiver_is_weak+:} false; then :
  $as_echo_n "(cached) " >&6
else

    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Wreceiver-is-weak"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  tor_cv_cflags__Wreceiver_is_weak=yes
else
  tor_cv_cflags__Wreceiver_is_weak=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    if test x != x; then

      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  tor_can_link__Wreceiver_is_weak=yes
else
  tor_can_link__Wreceiver_is_weak=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wreceiver_is_weak" >&5
$as_echo "$tor_cv_cflags__Wreceiver_is_weak" >&6; }
  if test x$tor_cv_cflags__Wreceiver_is_weak = xyes; then
     TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Wreceiver-is-weak" CFLAGS="$CFLAGS -Wreceiver-is-weak"
  else
     true
  fi




  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wreinterpret-base-class" >&5
$as_echo_n "checking whether the compiler accepts -Wreinterpret-base-class... " >&6; }
if ${tor_cv_cflags__Wreinterpret_base_class+:} false; then :
  $as_echo_n "(cached) " >&6
else

    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Wreinterpret-base-class"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  tor_cv_cflags__Wreinterpret_base_class=yes
else
  tor_cv_cflags__Wreinterpret_base_class=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    if test x != x; then

      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  tor_can_link__Wreinterpret_base_class=yes
else
  tor_can_link__Wreinterpret_base_class=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wreinterpret_base_class" >&5
$as_echo "$tor_cv_cflags__Wreinterpret_base_class" >&6; }
  if test x$tor_cv_cflags__Wreinterpret_base_class = xyes; then
     TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Wreinterpret-base-class" CFLAGS="$CFLAGS -Wreinterpret-base-class"
  else
     true
  fi




  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wrequires-super-attribute" >&5
$as_echo_n "checking whether the compiler accepts -Wrequires-super-attribute... " >&6; }
if ${tor_cv_cflags__Wrequires_super_attribute+:} false; then :
  $as_echo_n "(cached) " >&6
else

    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Wrequires-super-attribute"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  tor_cv_cflags__Wrequires_super_attribute=yes
else
  tor_cv_cflags__Wrequires_super_attribute=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    if test x != x; then

      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  tor_can_link__Wrequires_super_attribute=yes
else
  tor_can_link__Wrequires_super_attribute=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wrequires_super_attribute" >&5
$as_echo "$tor_cv_cflags__Wrequires_super_attribute" >&6; }
  if test x$tor_cv_cflags__Wrequires_super_attribute = xyes; then
     TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Wrequires-super-attribute" CFLAGS="$CFLAGS -Wrequires-super-attribute"
  else
     true
  fi




  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wreserved-user-defined-literal" >&5
$as_echo_n "checking whether the compiler accepts -Wreserved-user-defined-literal... " >&6; }
if ${tor_cv_cflags__Wreserved_user_defined_literal+:} false; then :
  $as_echo_n "(cached) " >&6
else

    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Wreserved-user-defined-literal"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  tor_cv_cflags__Wreserved_user_defined_literal=yes
else
  tor_cv_cflags__Wreserved_user_defined_literal=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    if test x != x; then

      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  tor_can_link__Wreserved_user_defined_literal=yes
else
  tor_can_link__Wreserved_user_defined_literal=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wreserved_user_defined_literal" >&5
$as_echo "$tor_cv_cflags__Wreserved_user_defined_literal" >&6; }
  if test x$tor_cv_cflags__Wreserved_user_defined_literal = xyes; then
     TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Wreserved-user-defined-literal" CFLAGS="$CFLAGS -Wreserved-user-defined-literal"
  else
     true
  fi




  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wreturn-stack-address" >&5
$as_echo_n "checking whether the compiler accepts -Wreturn-stack-address... " >&6; }
if ${tor_cv_cflags__Wreturn_stack_address+:} false; then :
  $as_echo_n "(cached) " >&6
else

    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Wreturn-stack-address"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  tor_cv_cflags__Wreturn_stack_address=yes
else
  tor_cv_cflags__Wreturn_stack_address=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    if test x != x; then

      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  tor_can_link__Wreturn_stack_address=yes
else
  tor_can_link__Wreturn_stack_address=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wreturn_stack_address" >&5
$as_echo "$tor_cv_cflags__Wreturn_stack_address" >&6; }
  if test x$tor_cv_cflags__Wreturn_stack_address = xyes; then
     TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Wreturn-stack-address" CFLAGS="$CFLAGS -Wreturn-stack-address"
  else
     true
  fi




  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wsection" >&5
$as_echo_n "checking whether the compiler accepts -Wsection... " >&6; }
if ${tor_cv_cflags__Wsection+:} false; then :
  $as_echo_n "(cached) " >&6
else

    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Wsection"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  tor_cv_cflags__Wsection=yes
else
  tor_cv_cflags__Wsection=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    if test x != x; then

      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  tor_can_link__Wsection=yes
else
  tor_can_link__Wsection=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wsection" >&5
$as_echo "$tor_cv_cflags__Wsection" >&6; }
  if test x$tor_cv_cflags__Wsection = xyes; then
     TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Wsection" CFLAGS="$CFLAGS -Wsection"
  else
     true
  fi




  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wselector-type-mismatch" >&5
$as_echo_n "checking whether the compiler accepts -Wselector-type-mismatch... " >&6; }
if ${tor_cv_cflags__Wselector_type_mismatch+:} false; then :
  $as_echo_n "(cached) " >&6
else

    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Wselector-type-mismatch"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  tor_cv_cflags__Wselector_type_mismatch=yes
else
  tor_cv_cflags__Wselector_type_mismatch=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    if test x != x; then

      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  tor_can_link__Wselector_type_mismatch=yes
else
  tor_can_link__Wselector_type_mismatch=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wselector_type_mismatch" >&5
$as_echo "$tor_cv_cflags__Wselector_type_mismatch" >&6; }
  if test x$tor_cv_cflags__Wselector_type_mismatch = xyes; then
     TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Wselector-type-mismatch" CFLAGS="$CFLAGS -Wselector-type-mismatch"
  else
     true
  fi




  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wsentinel" >&5
$as_echo_n "checking whether the compiler accepts -Wsentinel... " >&6; }
if ${tor_cv_cflags__Wsentinel+:} false; then :
  $as_echo_n "(cached) " >&6
else

    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Wsentinel"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  tor_cv_cflags__Wsentinel=yes
else
  tor_cv_cflags__Wsentinel=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    if test x != x; then

      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  tor_can_link__Wsentinel=yes
else
  tor_can_link__Wsentinel=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wsentinel" >&5
$as_echo "$tor_cv_cflags__Wsentinel" >&6; }
  if test x$tor_cv_cflags__Wsentinel = xyes; then
     TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Wsentinel" CFLAGS="$CFLAGS -Wsentinel"
  else
     true
  fi




  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wserialized-diagnostics" >&5
$as_echo_n "checking whether the compiler accepts -Wserialized-diagnostics... " >&6; }
if ${tor_cv_cflags__Wserialized_diagnostics+:} false; then :
  $as_echo_n "(cached) " >&6
else

    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Wserialized-diagnostics"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  tor_cv_cflags__Wserialized_diagnostics=yes
else
  tor_cv_cflags__Wserialized_diagnostics=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    if test x != x; then

      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  tor_can_link__Wserialized_diagnostics=yes
else
  tor_can_link__Wserialized_diagnostics=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wserialized_diagnostics" >&5
$as_echo "$tor_cv_cflags__Wserialized_diagnostics" >&6; }
  if test x$tor_cv_cflags__Wserialized_diagnostics = xyes; then
     TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Wserialized-diagnostics" CFLAGS="$CFLAGS -Wserialized-diagnostics"
  else
     true
  fi




  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wshadow" >&5
$as_echo_n "checking whether the compiler accepts -Wshadow... " >&6; }
if ${tor_cv_cflags__Wshadow+:} false; then :
  $as_echo_n "(cached) " >&6
else

    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Wshadow"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  tor_cv_cflags__Wshadow=yes
else
  tor_cv_cflags__Wshadow=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    if test x != x; then

      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  tor_can_link__Wshadow=yes
else
  tor_can_link__Wshadow=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wshadow" >&5
$as_echo "$tor_cv_cflags__Wshadow" >&6; }
  if test x$tor_cv_cflags__Wshadow = xyes; then
     TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Wshadow" CFLAGS="$CFLAGS -Wshadow"
  else
     true
  fi




  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wshift-count-negative" >&5
$as_echo_n "checking whether the compiler accepts -Wshift-count-negative... " >&6; }
if ${tor_cv_cflags__Wshift_count_negative+:} false; then :
  $as_echo_n "(cached) " >&6
else

    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Wshift-count-negative"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  tor_cv_cflags__Wshift_count_negative=yes
else
  tor_cv_cflags__Wshift_count_negative=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    if test x != x; then

      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  tor_can_link__Wshift_count_negative=yes
else
  tor_can_link__Wshift_count_negative=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wshift_count_negative" >&5
$as_echo "$tor_cv_cflags__Wshift_count_negative" >&6; }
  if test x$tor_cv_cflags__Wshift_count_negative = xyes; then
     TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Wshift-count-negative" CFLAGS="$CFLAGS -Wshift-count-negative"
  else
     true
  fi




  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wshift-count-overflow" >&5
$as_echo_n "checking whether the compiler accepts -Wshift-count-overflow... " >&6; }
if ${tor_cv_cflags__Wshift_count_overflow+:} false; then :
  $as_echo_n "(cached) " >&6
else

    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Wshift-count-overflow"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  tor_cv_cflags__Wshift_count_overflow=yes
else
  tor_cv_cflags__Wshift_count_overflow=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    if test x != x; then

      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  tor_can_link__Wshift_count_overflow=yes
else
  tor_can_link__Wshift_count_overflow=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wshift_count_overflow" >&5
$as_echo "$tor_cv_cflags__Wshift_count_overflow" >&6; }
  if test x$tor_cv_cflags__Wshift_count_overflow = xyes; then
     TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Wshift-count-overflow" CFLAGS="$CFLAGS -Wshift-count-overflow"
  else
     true
  fi




  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wshift-negative-value" >&5
$as_echo_n "checking whether the compiler accepts -Wshift-negative-value... " >&6; }
if ${tor_cv_cflags__Wshift_negative_value+:} false; then :
  $as_echo_n "(cached) " >&6
else

    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Wshift-negative-value"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  tor_cv_cflags__Wshift_negative_value=yes
else
  tor_cv_cflags__Wshift_negative_value=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    if test x != x; then

      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  tor_can_link__Wshift_negative_value=yes
else
  tor_can_link__Wshift_negative_value=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wshift_negative_value" >&5
$as_echo "$tor_cv_cflags__Wshift_negative_value" >&6; }
  if test x$tor_cv_cflags__Wshift_negative_value = xyes; then
     TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Wshift-negative-value" CFLAGS="$CFLAGS -Wshift-negative-value"
  else
     true
  fi




  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wshift-overflow=2" >&5
$as_echo_n "checking whether the compiler accepts -Wshift-overflow=2... " >&6; }
if ${tor_cv_cflags__Wshift_overflow_2+:} false; then :
  $as_echo_n "(cached) " >&6
else

    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Wshift-overflow=2"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  tor_cv_cflags__Wshift_overflow_2=yes
else
  tor_cv_cflags__Wshift_overflow_2=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    if test x != x; then

      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  tor_can_link__Wshift_overflow_2=yes
else
  tor_can_link__Wshift_overflow_2=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wshift_overflow_2" >&5
$as_echo "$tor_cv_cflags__Wshift_overflow_2" >&6; }
  if test x$tor_cv_cflags__Wshift_overflow_2 = xyes; then
     TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Wshift-overflow=2" CFLAGS="$CFLAGS -Wshift-overflow=2"
  else
     true
  fi




  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wshift-sign-overflow" >&5
$as_echo_n "checking whether the compiler accepts -Wshift-sign-overflow... " >&6; }
if ${tor_cv_cflags__Wshift_sign_overflow+:} false; then :
  $as_echo_n "(cached) " >&6
else

    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Wshift-sign-overflow"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  tor_cv_cflags__Wshift_sign_overflow=yes
else
  tor_cv_cflags__Wshift_sign_overflow=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    if test x != x; then

      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  tor_can_link__Wshift_sign_overflow=yes
else
  tor_can_link__Wshift_sign_overflow=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wshift_sign_overflow" >&5
$as_echo "$tor_cv_cflags__Wshift_sign_overflow" >&6; }
  if test x$tor_cv_cflags__Wshift_sign_overflow = xyes; then
     TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Wshift-sign-overflow" CFLAGS="$CFLAGS -Wshift-sign-overflow"
  else
     true
  fi




  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wshorten-64-to-32" >&5
$as_echo_n "checking whether the compiler accepts -Wshorten-64-to-32... " >&6; }
if ${tor_cv_cflags__Wshorten_64_to_32+:} false; then :
  $as_echo_n "(cached) " >&6
else

    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Wshorten-64-to-32"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  tor_cv_cflags__Wshorten_64_to_32=yes
else
  tor_cv_cflags__Wshorten_64_to_32=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    if test x != x; then

      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  tor_can_link__Wshorten_64_to_32=yes
else
  tor_can_link__Wshorten_64_to_32=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wshorten_64_to_32" >&5
$as_echo "$tor_cv_cflags__Wshorten_64_to_32" >&6; }
  if test x$tor_cv_cflags__Wshorten_64_to_32 = xyes; then
     TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Wshorten-64-to-32" CFLAGS="$CFLAGS -Wshorten-64-to-32"
  else
     true
  fi




  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wsizeof-array-argument" >&5
$as_echo_n "checking whether the compiler accepts -Wsizeof-array-argument... " >&6; }
if ${tor_cv_cflags__Wsizeof_array_argument+:} false; then :
  $as_echo_n "(cached) " >&6
else

    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Wsizeof-array-argument"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  tor_cv_cflags__Wsizeof_array_argument=yes
else
  tor_cv_cflags__Wsizeof_array_argument=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    if test x != x; then

      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  tor_can_link__Wsizeof_array_argument=yes
else
  tor_can_link__Wsizeof_array_argument=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wsizeof_array_argument" >&5
$as_echo "$tor_cv_cflags__Wsizeof_array_argument" >&6; }
  if test x$tor_cv_cflags__Wsizeof_array_argument = xyes; then
     TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Wsizeof-array-argument" CFLAGS="$CFLAGS -Wsizeof-array-argument"
  else
     true
  fi




  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wsource-uses-openmp" >&5
$as_echo_n "checking whether the compiler accepts -Wsource-uses-openmp... " >&6; }
if ${tor_cv_cflags__Wsource_uses_openmp+:} false; then :
  $as_echo_n "(cached) " >&6
else

    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Wsource-uses-openmp"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  tor_cv_cflags__Wsource_uses_openmp=yes
else
  tor_cv_cflags__Wsource_uses_openmp=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    if test x != x; then

      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  tor_can_link__Wsource_uses_openmp=yes
else
  tor_can_link__Wsource_uses_openmp=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wsource_uses_openmp" >&5
$as_echo "$tor_cv_cflags__Wsource_uses_openmp" >&6; }
  if test x$tor_cv_cflags__Wsource_uses_openmp = xyes; then
     TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Wsource-uses-openmp" CFLAGS="$CFLAGS -Wsource-uses-openmp"
  else
     true
  fi




  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wstatic-float-init" >&5
$as_echo_n "checking whether the compiler accepts -Wstatic-float-init... " >&6; }
if ${tor_cv_cflags__Wstatic_float_init+:} false; then :
  $as_echo_n "(cached) " >&6
else

    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Wstatic-float-init"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  tor_cv_cflags__Wstatic_float_init=yes
else
  tor_cv_cflags__Wstatic_float_init=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    if test x != x; then

      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  tor_can_link__Wstatic_float_init=yes
else
  tor_can_link__Wstatic_float_init=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wstatic_float_init" >&5
$as_echo "$tor_cv_cflags__Wstatic_float_init" >&6; }
  if test x$tor_cv_cflags__Wstatic_float_init = xyes; then
     TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Wstatic-float-init" CFLAGS="$CFLAGS -Wstatic-float-init"
  else
     true
  fi




  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wstatic-in-inline" >&5
$as_echo_n "checking whether the compiler accepts -Wstatic-in-inline... " >&6; }
if ${tor_cv_cflags__Wstatic_in_inline+:} false; then :
  $as_echo_n "(cached) " >&6
else

    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Wstatic-in-inline"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  tor_cv_cflags__Wstatic_in_inline=yes
else
  tor_cv_cflags__Wstatic_in_inline=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    if test x != x; then

      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  tor_can_link__Wstatic_in_inline=yes
else
  tor_can_link__Wstatic_in_inline=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wstatic_in_inline" >&5
$as_echo "$tor_cv_cflags__Wstatic_in_inline" >&6; }
  if test x$tor_cv_cflags__Wstatic_in_inline = xyes; then
     TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Wstatic-in-inline" CFLAGS="$CFLAGS -Wstatic-in-inline"
  else
     true
  fi




  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wstatic-local-in-inline" >&5
$as_echo_n "checking whether the compiler accepts -Wstatic-local-in-inline... " >&6; }
if ${tor_cv_cflags__Wstatic_local_in_inline+:} false; then :
  $as_echo_n "(cached) " >&6
else

    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Wstatic-local-in-inline"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  tor_cv_cflags__Wstatic_local_in_inline=yes
else
  tor_cv_cflags__Wstatic_local_in_inline=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    if test x != x; then

      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  tor_can_link__Wstatic_local_in_inline=yes
else
  tor_can_link__Wstatic_local_in_inline=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wstatic_local_in_inline" >&5
$as_echo "$tor_cv_cflags__Wstatic_local_in_inline" >&6; }
  if test x$tor_cv_cflags__Wstatic_local_in_inline = xyes; then
     TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Wstatic-local-in-inline" CFLAGS="$CFLAGS -Wstatic-local-in-inline"
  else
     true
  fi




  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wstrict-overflow=1" >&5
$as_echo_n "checking whether the compiler accepts -Wstrict-overflow=1... " >&6; }
if ${tor_cv_cflags__Wstrict_overflow_1+:} false; then :
  $as_echo_n "(cached) " >&6
else

    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Wstrict-overflow=1"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  tor_cv_cflags__Wstrict_overflow_1=yes
else
  tor_cv_cflags__Wstrict_overflow_1=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    if test x != x; then

      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  tor_can_link__Wstrict_overflow_1=yes
else
  tor_can_link__Wstrict_overflow_1=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wstrict_overflow_1" >&5
$as_echo "$tor_cv_cflags__Wstrict_overflow_1" >&6; }
  if test x$tor_cv_cflags__Wstrict_overflow_1 = xyes; then
     TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Wstrict-overflow=1" CFLAGS="$CFLAGS -Wstrict-overflow=1"
  else
     true
  fi




  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wstring-compare" >&5
$as_echo_n "checking whether the compiler accepts -Wstring-compare... " >&6; }
if ${tor_cv_cflags__Wstring_compare+:} false; then :
  $as_echo_n "(cached) " >&6
else

    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Wstring-compare"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  tor_cv_cflags__Wstring_compare=yes
else
  tor_cv_cflags__Wstring_compare=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    if test x != x; then

      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  tor_can_link__Wstring_compare=yes
else
  tor_can_link__Wstring_compare=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wstring_compare" >&5
$as_echo "$tor_cv_cflags__Wstring_compare" >&6; }
  if test x$tor_cv_cflags__Wstring_compare = xyes; then
     TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Wstring-compare" CFLAGS="$CFLAGS -Wstring-compare"
  else
     true
  fi




  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wstring-conversion" >&5
$as_echo_n "checking whether the compiler accepts -Wstring-conversion... " >&6; }
if ${tor_cv_cflags__Wstring_conversion+:} false; then :
  $as_echo_n "(cached) " >&6
else

    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Wstring-conversion"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  tor_cv_cflags__Wstring_conversion=yes
else
  tor_cv_cflags__Wstring_conversion=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    if test x != x; then

      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  tor_can_link__Wstring_conversion=yes
else
  tor_can_link__Wstring_conversion=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wstring_conversion" >&5
$as_echo "$tor_cv_cflags__Wstring_conversion" >&6; }
  if test x$tor_cv_cflags__Wstring_conversion = xyes; then
     TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Wstring-conversion" CFLAGS="$CFLAGS -Wstring-conversion"
  else
     true
  fi




  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wstrlcpy-strlcat-size" >&5
$as_echo_n "checking whether the compiler accepts -Wstrlcpy-strlcat-size... " >&6; }
if ${tor_cv_cflags__Wstrlcpy_strlcat_size+:} false; then :
  $as_echo_n "(cached) " >&6
else

    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Wstrlcpy-strlcat-size"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  tor_cv_cflags__Wstrlcpy_strlcat_size=yes
else
  tor_cv_cflags__Wstrlcpy_strlcat_size=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    if test x != x; then

      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  tor_can_link__Wstrlcpy_strlcat_size=yes
else
  tor_can_link__Wstrlcpy_strlcat_size=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wstrlcpy_strlcat_size" >&5
$as_echo "$tor_cv_cflags__Wstrlcpy_strlcat_size" >&6; }
  if test x$tor_cv_cflags__Wstrlcpy_strlcat_size = xyes; then
     TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Wstrlcpy-strlcat-size" CFLAGS="$CFLAGS -Wstrlcpy-strlcat-size"
  else
     true
  fi




  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wstrncat-size" >&5
$as_echo_n "checking whether the compiler accepts -Wstrncat-size... " >&6; }
if ${tor_cv_cflags__Wstrncat_size+:} false; then :
  $as_echo_n "(cached) " >&6
else

    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Wstrncat-size"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  tor_cv_cflags__Wstrncat_size=yes
else
  tor_cv_cflags__Wstrncat_size=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    if test x != x; then

      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  tor_can_link__Wstrncat_size=yes
else
  tor_can_link__Wstrncat_size=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wstrncat_size" >&5
$as_echo "$tor_cv_cflags__Wstrncat_size" >&6; }
  if test x$tor_cv_cflags__Wstrncat_size = xyes; then
     TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Wstrncat-size" CFLAGS="$CFLAGS -Wstrncat-size"
  else
     true
  fi




  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wsuggest-attribute=format" >&5
$as_echo_n "checking whether the compiler accepts -Wsuggest-attribute=format... " >&6; }
if ${tor_cv_cflags__Wsuggest_attribute_format+:} false; then :
  $as_echo_n "(cached) " >&6
else

    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Wsuggest-attribute=format"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  tor_cv_cflags__Wsuggest_attribute_format=yes
else
  tor_cv_cflags__Wsuggest_attribute_format=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    if test x != x; then

      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  tor_can_link__Wsuggest_attribute_format=yes
else
  tor_can_link__Wsuggest_attribute_format=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wsuggest_attribute_format" >&5
$as_echo "$tor_cv_cflags__Wsuggest_attribute_format" >&6; }
  if test x$tor_cv_cflags__Wsuggest_attribute_format = xyes; then
     TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Wsuggest-attribute=format" CFLAGS="$CFLAGS -Wsuggest-attribute=format"
  else
     true
  fi




  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wsuggest-attribute=noreturn" >&5
$as_echo_n "checking whether the compiler accepts -Wsuggest-attribute=noreturn... " >&6; }
if ${tor_cv_cflags__Wsuggest_attribute_noreturn+:} false; then :
  $as_echo_n "(cached) " >&6
else

    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Wsuggest-attribute=noreturn"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  tor_cv_cflags__Wsuggest_attribute_noreturn=yes
else
  tor_cv_cflags__Wsuggest_attribute_noreturn=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    if test x != x; then

      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  tor_can_link__Wsuggest_attribute_noreturn=yes
else
  tor_can_link__Wsuggest_attribute_noreturn=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wsuggest_attribute_noreturn" >&5
$as_echo "$tor_cv_cflags__Wsuggest_attribute_noreturn" >&6; }
  if test x$tor_cv_cflags__Wsuggest_attribute_noreturn = xyes; then
     TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Wsuggest-attribute=noreturn" CFLAGS="$CFLAGS -Wsuggest-attribute=noreturn"
  else
     true
  fi




  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wsuper-class-method-mismatch" >&5
$as_echo_n "checking whether the compiler accepts -Wsuper-class-method-mismatch... " >&6; }
if ${tor_cv_cflags__Wsuper_class_method_mismatch+:} false; then :
  $as_echo_n "(cached) " >&6
else

    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Wsuper-class-method-mismatch"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  tor_cv_cflags__Wsuper_class_method_mismatch=yes
else
  tor_cv_cflags__Wsuper_class_method_mismatch=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    if test x != x; then

      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  tor_can_link__Wsuper_class_method_mismatch=yes
else
  tor_can_link__Wsuper_class_method_mismatch=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wsuper_class_method_mismatch" >&5
$as_echo "$tor_cv_cflags__Wsuper_class_method_mismatch" >&6; }
  if test x$tor_cv_cflags__Wsuper_class_method_mismatch = xyes; then
     TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Wsuper-class-method-mismatch" CFLAGS="$CFLAGS -Wsuper-class-method-mismatch"
  else
     true
  fi




  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wswitch-bool" >&5
$as_echo_n "checking whether the compiler accepts -Wswitch-bool... " >&6; }
if ${tor_cv_cflags__Wswitch_bool+:} false; then :
  $as_echo_n "(cached) " >&6
else

    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Wswitch-bool"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  tor_cv_cflags__Wswitch_bool=yes
else
  tor_cv_cflags__Wswitch_bool=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    if test x != x; then

      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  tor_can_link__Wswitch_bool=yes
else
  tor_can_link__Wswitch_bool=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wswitch_bool" >&5
$as_echo "$tor_cv_cflags__Wswitch_bool" >&6; }
  if test x$tor_cv_cflags__Wswitch_bool = xyes; then
     TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Wswitch-bool" CFLAGS="$CFLAGS -Wswitch-bool"
  else
     true
  fi




  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wsync-nand" >&5
$as_echo_n "checking whether the compiler accepts -Wsync-nand... " >&6; }
if ${tor_cv_cflags__Wsync_nand+:} false; then :
  $as_echo_n "(cached) " >&6
else

    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Wsync-nand"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  tor_cv_cflags__Wsync_nand=yes
else
  tor_cv_cflags__Wsync_nand=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    if test x != x; then

      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  tor_can_link__Wsync_nand=yes
else
  tor_can_link__Wsync_nand=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wsync_nand" >&5
$as_echo "$tor_cv_cflags__Wsync_nand" >&6; }
  if test x$tor_cv_cflags__Wsync_nand = xyes; then
     TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Wsync-nand" CFLAGS="$CFLAGS -Wsync-nand"
  else
     true
  fi




  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wtautological-constant-out-of-range-compare" >&5
$as_echo_n "checking whether the compiler accepts -Wtautological-constant-out-of-range-compare... " >&6; }
if ${tor_cv_cflags__Wtautological_constant_out_of_range_compare+:} false; then :
  $as_echo_n "(cached) " >&6
else

    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Wtautological-constant-out-of-range-compare"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  tor_cv_cflags__Wtautological_constant_out_of_range_compare=yes
else
  tor_cv_cflags__Wtautological_constant_out_of_range_compare=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    if test x != x; then

      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  tor_can_link__Wtautological_constant_out_of_range_compare=yes
else
  tor_can_link__Wtautological_constant_out_of_range_compare=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wtautological_constant_out_of_range_compare" >&5
$as_echo "$tor_cv_cflags__Wtautological_constant_out_of_range_compare" >&6; }
  if test x$tor_cv_cflags__Wtautological_constant_out_of_range_compare = xyes; then
     TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Wtautological-constant-out-of-range-compare" CFLAGS="$CFLAGS -Wtautological-constant-out-of-range-compare"
  else
     true
  fi




  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wtentative-definition-incomplete-type" >&5
$as_echo_n "checking whether the compiler accepts -Wtentative-definition-incomplete-type... " >&6; }
if ${tor_cv_cflags__Wtentative_definition_incomplete_type+:} false; then :
  $as_echo_n "(cached) " >&6
else

    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Wtentative-definition-incomplete-type"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  tor_cv_cflags__Wtentative_definition_incomplete_type=yes
else
  tor_cv_cflags__Wtentative_definition_incomplete_type=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    if test x != x; then

      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  tor_can_link__Wtentative_definition_incomplete_type=yes
else
  tor_can_link__Wtentative_definition_incomplete_type=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wtentative_definition_incomplete_type" >&5
$as_echo "$tor_cv_cflags__Wtentative_definition_incomplete_type" >&6; }
  if test x$tor_cv_cflags__Wtentative_definition_incomplete_type = xyes; then
     TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Wtentative-definition-incomplete-type" CFLAGS="$CFLAGS -Wtentative-definition-incomplete-type"
  else
     true
  fi




  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wtrampolines" >&5
$as_echo_n "checking whether the compiler accepts -Wtrampolines... " >&6; }
if ${tor_cv_cflags__Wtrampolines+:} false; then :
  $as_echo_n "(cached) " >&6
else

    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Wtrampolines"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  tor_cv_cflags__Wtrampolines=yes
else
  tor_cv_cflags__Wtrampolines=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    if test x != x; then

      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  tor_can_link__Wtrampolines=yes
else
  tor_can_link__Wtrampolines=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wtrampolines" >&5
$as_echo "$tor_cv_cflags__Wtrampolines" >&6; }
  if test x$tor_cv_cflags__Wtrampolines = xyes; then
     TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Wtrampolines" CFLAGS="$CFLAGS -Wtrampolines"
  else
     true
  fi




  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wtype-safety" >&5
$as_echo_n "checking whether the compiler accepts -Wtype-safety... " >&6; }
if ${tor_cv_cflags__Wtype_safety+:} false; then :
  $as_echo_n "(cached) " >&6
else

    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Wtype-safety"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  tor_cv_cflags__Wtype_safety=yes
else
  tor_cv_cflags__Wtype_safety=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    if test x != x; then

      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  tor_can_link__Wtype_safety=yes
else
  tor_can_link__Wtype_safety=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wtype_safety" >&5
$as_echo "$tor_cv_cflags__Wtype_safety" >&6; }
  if test x$tor_cv_cflags__Wtype_safety = xyes; then
     TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Wtype-safety" CFLAGS="$CFLAGS -Wtype-safety"
  else
     true
  fi




  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wtypedef-redefinition" >&5
$as_echo_n "checking whether the compiler accepts -Wtypedef-redefinition... " >&6; }
if ${tor_cv_cflags__Wtypedef_redefinition+:} false; then :
  $as_echo_n "(cached) " >&6
else

    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Wtypedef-redefinition"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  tor_cv_cflags__Wtypedef_redefinition=yes
else
  tor_cv_cflags__Wtypedef_redefinition=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    if test x != x; then

      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  tor_can_link__Wtypedef_redefinition=yes
else
  tor_can_link__Wtypedef_redefinition=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wtypedef_redefinition" >&5
$as_echo "$tor_cv_cflags__Wtypedef_redefinition" >&6; }
  if test x$tor_cv_cflags__Wtypedef_redefinition = xyes; then
     TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Wtypedef-redefinition" CFLAGS="$CFLAGS -Wtypedef-redefinition"
  else
     true
  fi




  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wtypename-missing" >&5
$as_echo_n "checking whether the compiler accepts -Wtypename-missing... " >&6; }
if ${tor_cv_cflags__Wtypename_missing+:} false; then :
  $as_echo_n "(cached) " >&6
else

    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Wtypename-missing"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  tor_cv_cflags__Wtypename_missing=yes
else
  tor_cv_cflags__Wtypename_missing=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    if test x != x; then

      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  tor_can_link__Wtypename_missing=yes
else
  tor_can_link__Wtypename_missing=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wtypename_missing" >&5
$as_echo "$tor_cv_cflags__Wtypename_missing" >&6; }
  if test x$tor_cv_cflags__Wtypename_missing = xyes; then
     TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Wtypename-missing" CFLAGS="$CFLAGS -Wtypename-missing"
  else
     true
  fi




  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wundefined-inline" >&5
$as_echo_n "checking whether the compiler accepts -Wundefined-inline... " >&6; }
if ${tor_cv_cflags__Wundefined_inline+:} false; then :
  $as_echo_n "(cached) " >&6
else

    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Wundefined-inline"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  tor_cv_cflags__Wundefined_inline=yes
else
  tor_cv_cflags__Wundefined_inline=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    if test x != x; then

      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  tor_can_link__Wundefined_inline=yes
else
  tor_can_link__Wundefined_inline=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wundefined_inline" >&5
$as_echo "$tor_cv_cflags__Wundefined_inline" >&6; }
  if test x$tor_cv_cflags__Wundefined_inline = xyes; then
     TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Wundefined-inline" CFLAGS="$CFLAGS -Wundefined-inline"
  else
     true
  fi




  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wundefined-internal" >&5
$as_echo_n "checking whether the compiler accepts -Wundefined-internal... " >&6; }
if ${tor_cv_cflags__Wundefined_internal+:} false; then :
  $as_echo_n "(cached) " >&6
else

    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Wundefined-internal"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  tor_cv_cflags__Wundefined_internal=yes
else
  tor_cv_cflags__Wundefined_internal=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    if test x != x; then

      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  tor_can_link__Wundefined_internal=yes
else
  tor_can_link__Wundefined_internal=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wundefined_internal" >&5
$as_echo "$tor_cv_cflags__Wundefined_internal" >&6; }
  if test x$tor_cv_cflags__Wundefined_internal = xyes; then
     TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Wundefined-internal" CFLAGS="$CFLAGS -Wundefined-internal"
  else
     true
  fi




  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wundefined-reinterpret-cast" >&5
$as_echo_n "checking whether the compiler accepts -Wundefined-reinterpret-cast... " >&6; }
if ${tor_cv_cflags__Wundefined_reinterpret_cast+:} false; then :
  $as_echo_n "(cached) " >&6
else

    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Wundefined-reinterpret-cast"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  tor_cv_cflags__Wundefined_reinterpret_cast=yes
else
  tor_cv_cflags__Wundefined_reinterpret_cast=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    if test x != x; then

      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  tor_can_link__Wundefined_reinterpret_cast=yes
else
  tor_can_link__Wundefined_reinterpret_cast=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wundefined_reinterpret_cast" >&5
$as_echo "$tor_cv_cflags__Wundefined_reinterpret_cast" >&6; }
  if test x$tor_cv_cflags__Wundefined_reinterpret_cast = xyes; then
     TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Wundefined-reinterpret-cast" CFLAGS="$CFLAGS -Wundefined-reinterpret-cast"
  else
     true
  fi




  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wunicode" >&5
$as_echo_n "checking whether the compiler accepts -Wunicode... " >&6; }
if ${tor_cv_cflags__Wunicode+:} false; then :
  $as_echo_n "(cached) " >&6
else

    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Wunicode"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  tor_cv_cflags__Wunicode=yes
else
  tor_cv_cflags__Wunicode=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    if test x != x; then

      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  tor_can_link__Wunicode=yes
else
  tor_can_link__Wunicode=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wunicode" >&5
$as_echo "$tor_cv_cflags__Wunicode" >&6; }
  if test x$tor_cv_cflags__Wunicode = xyes; then
     TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Wunicode" CFLAGS="$CFLAGS -Wunicode"
  else
     true
  fi




  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wunicode-whitespace" >&5
$as_echo_n "checking whether the compiler accepts -Wunicode-whitespace... " >&6; }
if ${tor_cv_cflags__Wunicode_whitespace+:} false; then :
  $as_echo_n "(cached) " >&6
else

    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Wunicode-whitespace"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  tor_cv_cflags__Wunicode_whitespace=yes
else
  tor_cv_cflags__Wunicode_whitespace=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    if test x != x; then

      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  tor_can_link__Wunicode_whitespace=yes
else
  tor_can_link__Wunicode_whitespace=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wunicode_whitespace" >&5
$as_echo "$tor_cv_cflags__Wunicode_whitespace" >&6; }
  if test x$tor_cv_cflags__Wunicode_whitespace = xyes; then
     TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Wunicode-whitespace" CFLAGS="$CFLAGS -Wunicode-whitespace"
  else
     true
  fi




  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wunknown-warning-option" >&5
$as_echo_n "checking whether the compiler accepts -Wunknown-warning-option... " >&6; }
if ${tor_cv_cflags__Wunknown_warning_option+:} false; then :
  $as_echo_n "(cached) " >&6
else

    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Wunknown-warning-option"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  tor_cv_cflags__Wunknown_warning_option=yes
else
  tor_cv_cflags__Wunknown_warning_option=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    if test x != x; then

      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  tor_can_link__Wunknown_warning_option=yes
else
  tor_can_link__Wunknown_warning_option=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wunknown_warning_option" >&5
$as_echo "$tor_cv_cflags__Wunknown_warning_option" >&6; }
  if test x$tor_cv_cflags__Wunknown_warning_option = xyes; then
     TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Wunknown-warning-option" CFLAGS="$CFLAGS -Wunknown-warning-option"
  else
     true
  fi




  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wunnamed-type-template-args" >&5
$as_echo_n "checking whether the compiler accepts -Wunnamed-type-template-args... " >&6; }
if ${tor_cv_cflags__Wunnamed_type_template_args+:} false; then :
  $as_echo_n "(cached) " >&6
else

    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Wunnamed-type-template-args"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  tor_cv_cflags__Wunnamed_type_template_args=yes
else
  tor_cv_cflags__Wunnamed_type_template_args=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    if test x != x; then

      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  tor_can_link__Wunnamed_type_template_args=yes
else
  tor_can_link__Wunnamed_type_template_args=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wunnamed_type_template_args" >&5
$as_echo "$tor_cv_cflags__Wunnamed_type_template_args" >&6; }
  if test x$tor_cv_cflags__Wunnamed_type_template_args = xyes; then
     TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Wunnamed-type-template-args" CFLAGS="$CFLAGS -Wunnamed-type-template-args"
  else
     true
  fi




  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wunneeded-member-function" >&5
$as_echo_n "checking whether the compiler accepts -Wunneeded-member-function... " >&6; }
if ${tor_cv_cflags__Wunneeded_member_function+:} false; then :
  $as_echo_n "(cached) " >&6
else

    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Wunneeded-member-function"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  tor_cv_cflags__Wunneeded_member_function=yes
else
  tor_cv_cflags__Wunneeded_member_function=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    if test x != x; then

      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  tor_can_link__Wunneeded_member_function=yes
else
  tor_can_link__Wunneeded_member_function=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wunneeded_member_function" >&5
$as_echo "$tor_cv_cflags__Wunneeded_member_function" >&6; }
  if test x$tor_cv_cflags__Wunneeded_member_function = xyes; then
     TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Wunneeded-member-function" CFLAGS="$CFLAGS -Wunneeded-member-function"
  else
     true
  fi




  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wunsequenced" >&5
$as_echo_n "checking whether the compiler accepts -Wunsequenced... " >&6; }
if ${tor_cv_cflags__Wunsequenced+:} false; then :
  $as_echo_n "(cached) " >&6
else

    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Wunsequenced"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  tor_cv_cflags__Wunsequenced=yes
else
  tor_cv_cflags__Wunsequenced=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    if test x != x; then

      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  tor_can_link__Wunsequenced=yes
else
  tor_can_link__Wunsequenced=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wunsequenced" >&5
$as_echo "$tor_cv_cflags__Wunsequenced" >&6; }
  if test x$tor_cv_cflags__Wunsequenced = xyes; then
     TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Wunsequenced" CFLAGS="$CFLAGS -Wunsequenced"
  else
     true
  fi




  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wunsupported-visibility" >&5
$as_echo_n "checking whether the compiler accepts -Wunsupported-visibility... " >&6; }
if ${tor_cv_cflags__Wunsupported_visibility+:} false; then :
  $as_echo_n "(cached) " >&6
else

    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Wunsupported-visibility"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  tor_cv_cflags__Wunsupported_visibility=yes
else
  tor_cv_cflags__Wunsupported_visibility=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    if test x != x; then

      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  tor_can_link__Wunsupported_visibility=yes
else
  tor_can_link__Wunsupported_visibility=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wunsupported_visibility" >&5
$as_echo "$tor_cv_cflags__Wunsupported_visibility" >&6; }
  if test x$tor_cv_cflags__Wunsupported_visibility = xyes; then
     TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Wunsupported-visibility" CFLAGS="$CFLAGS -Wunsupported-visibility"
  else
     true
  fi




  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wunused-but-set-parameter" >&5
$as_echo_n "checking whether the compiler accepts -Wunused-but-set-parameter... " >&6; }
if ${tor_cv_cflags__Wunused_but_set_parameter+:} false; then :
  $as_echo_n "(cached) " >&6
else

    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Wunused-but-set-parameter"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  tor_cv_cflags__Wunused_but_set_parameter=yes
else
  tor_cv_cflags__Wunused_but_set_parameter=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    if test x != x; then

      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  tor_can_link__Wunused_but_set_parameter=yes
else
  tor_can_link__Wunused_but_set_parameter=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wunused_but_set_parameter" >&5
$as_echo "$tor_cv_cflags__Wunused_but_set_parameter" >&6; }
  if test x$tor_cv_cflags__Wunused_but_set_parameter = xyes; then
     TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Wunused-but-set-parameter" CFLAGS="$CFLAGS -Wunused-but-set-parameter"
  else
     true
  fi




  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wunused-but-set-variable" >&5
$as_echo_n "checking whether the compiler accepts -Wunused-but-set-variable... " >&6; }
if ${tor_cv_cflags__Wunused_but_set_variable+:} false; then :
  $as_echo_n "(cached) " >&6
else

    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Wunused-but-set-variable"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  tor_cv_cflags__Wunused_but_set_variable=yes
else
  tor_cv_cflags__Wunused_but_set_variable=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    if test x != x; then

      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  tor_can_link__Wunused_but_set_variable=yes
else
  tor_can_link__Wunused_but_set_variable=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wunused_but_set_variable" >&5
$as_echo "$tor_cv_cflags__Wunused_but_set_variable" >&6; }
  if test x$tor_cv_cflags__Wunused_but_set_variable = xyes; then
     TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Wunused-but-set-variable" CFLAGS="$CFLAGS -Wunused-but-set-variable"
  else
     true
  fi




  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wunused-command-line-argument" >&5
$as_echo_n "checking whether the compiler accepts -Wunused-command-line-argument... " >&6; }
if ${tor_cv_cflags__Wunused_command_line_argument+:} false; then :
  $as_echo_n "(cached) " >&6
else

    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Wunused-command-line-argument"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  tor_cv_cflags__Wunused_command_line_argument=yes
else
  tor_cv_cflags__Wunused_command_line_argument=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    if test x != x; then

      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  tor_can_link__Wunused_command_line_argument=yes
else
  tor_can_link__Wunused_command_line_argument=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wunused_command_line_argument" >&5
$as_echo "$tor_cv_cflags__Wunused_command_line_argument" >&6; }
  if test x$tor_cv_cflags__Wunused_command_line_argument = xyes; then
     TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Wunused-command-line-argument" CFLAGS="$CFLAGS -Wunused-command-line-argument"
  else
     true
  fi




  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wunused-const-variable=2" >&5
$as_echo_n "checking whether the compiler accepts -Wunused-const-variable=2... " >&6; }
if ${tor_cv_cflags__Wunused_const_variable_2+:} false; then :
  $as_echo_n "(cached) " >&6
else

    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Wunused-const-variable=2"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  tor_cv_cflags__Wunused_const_variable_2=yes
else
  tor_cv_cflags__Wunused_const_variable_2=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    if test x != x; then

      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  tor_can_link__Wunused_const_variable_2=yes
else
  tor_can_link__Wunused_const_variable_2=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wunused_const_variable_2" >&5
$as_echo "$tor_cv_cflags__Wunused_const_variable_2" >&6; }
  if test x$tor_cv_cflags__Wunused_const_variable_2 = xyes; then
     TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Wunused-const-variable=2" CFLAGS="$CFLAGS -Wunused-const-variable=2"
  else
     true
  fi




  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wunused-exception-parameter" >&5
$as_echo_n "checking whether the compiler accepts -Wunused-exception-parameter... " >&6; }
if ${tor_cv_cflags__Wunused_exception_parameter+:} false; then :
  $as_echo_n "(cached) " >&6
else

    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Wunused-exception-parameter"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  tor_cv_cflags__Wunused_exception_parameter=yes
else
  tor_cv_cflags__Wunused_exception_parameter=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    if test x != x; then

      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  tor_can_link__Wunused_exception_parameter=yes
else
  tor_can_link__Wunused_exception_parameter=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wunused_exception_parameter" >&5
$as_echo "$tor_cv_cflags__Wunused_exception_parameter" >&6; }
  if test x$tor_cv_cflags__Wunused_exception_parameter = xyes; then
     TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Wunused-exception-parameter" CFLAGS="$CFLAGS -Wunused-exception-parameter"
  else
     true
  fi




  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wunused-local-typedefs" >&5
$as_echo_n "checking whether the compiler accepts -Wunused-local-typedefs... " >&6; }
if ${tor_cv_cflags__Wunused_local_typedefs+:} false; then :
  $as_echo_n "(cached) " >&6
else

    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Wunused-local-typedefs"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  tor_cv_cflags__Wunused_local_typedefs=yes
else
  tor_cv_cflags__Wunused_local_typedefs=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    if test x != x; then

      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  tor_can_link__Wunused_local_typedefs=yes
else
  tor_can_link__Wunused_local_typedefs=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wunused_local_typedefs" >&5
$as_echo "$tor_cv_cflags__Wunused_local_typedefs" >&6; }
  if test x$tor_cv_cflags__Wunused_local_typedefs = xyes; then
     TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Wunused-local-typedefs" CFLAGS="$CFLAGS -Wunused-local-typedefs"
  else
     true
  fi




  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wunused-member-function" >&5
$as_echo_n "checking whether the compiler accepts -Wunused-member-function... " >&6; }
if ${tor_cv_cflags__Wunused_member_function+:} false; then :
  $as_echo_n "(cached) " >&6
else

    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Wunused-member-function"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  tor_cv_cflags__Wunused_member_function=yes
else
  tor_cv_cflags__Wunused_member_function=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    if test x != x; then

      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  tor_can_link__Wunused_member_function=yes
else
  tor_can_link__Wunused_member_function=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wunused_member_function" >&5
$as_echo "$tor_cv_cflags__Wunused_member_function" >&6; }
  if test x$tor_cv_cflags__Wunused_member_function = xyes; then
     TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Wunused-member-function" CFLAGS="$CFLAGS -Wunused-member-function"
  else
     true
  fi




  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wunused-sanitize-argument" >&5
$as_echo_n "checking whether the compiler accepts -Wunused-sanitize-argument... " >&6; }
if ${tor_cv_cflags__Wunused_sanitize_argument+:} false; then :
  $as_echo_n "(cached) " >&6
else

    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Wunused-sanitize-argument"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  tor_cv_cflags__Wunused_sanitize_argument=yes
else
  tor_cv_cflags__Wunused_sanitize_argument=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    if test x != x; then

      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  tor_can_link__Wunused_sanitize_argument=yes
else
  tor_can_link__Wunused_sanitize_argument=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wunused_sanitize_argument" >&5
$as_echo "$tor_cv_cflags__Wunused_sanitize_argument" >&6; }
  if test x$tor_cv_cflags__Wunused_sanitize_argument = xyes; then
     TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Wunused-sanitize-argument" CFLAGS="$CFLAGS -Wunused-sanitize-argument"
  else
     true
  fi




  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wunused-volatile-lvalue" >&5
$as_echo_n "checking whether the compiler accepts -Wunused-volatile-lvalue... " >&6; }
if ${tor_cv_cflags__Wunused_volatile_lvalue+:} false; then :
  $as_echo_n "(cached) " >&6
else

    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Wunused-volatile-lvalue"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  tor_cv_cflags__Wunused_volatile_lvalue=yes
else
  tor_cv_cflags__Wunused_volatile_lvalue=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    if test x != x; then

      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  tor_can_link__Wunused_volatile_lvalue=yes
else
  tor_can_link__Wunused_volatile_lvalue=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wunused_volatile_lvalue" >&5
$as_echo "$tor_cv_cflags__Wunused_volatile_lvalue" >&6; }
  if test x$tor_cv_cflags__Wunused_volatile_lvalue = xyes; then
     TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Wunused-volatile-lvalue" CFLAGS="$CFLAGS -Wunused-volatile-lvalue"
  else
     true
  fi




  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wuser-defined-literals" >&5
$as_echo_n "checking whether the compiler accepts -Wuser-defined-literals... " >&6; }
if ${tor_cv_cflags__Wuser_defined_literals+:} false; then :
  $as_echo_n "(cached) " >&6
else

    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Wuser-defined-literals"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  tor_cv_cflags__Wuser_defined_literals=yes
else
  tor_cv_cflags__Wuser_defined_literals=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    if test x != x; then

      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  tor_can_link__Wuser_defined_literals=yes
else
  tor_can_link__Wuser_defined_literals=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wuser_defined_literals" >&5
$as_echo "$tor_cv_cflags__Wuser_defined_literals" >&6; }
  if test x$tor_cv_cflags__Wuser_defined_literals = xyes; then
     TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Wuser-defined-literals" CFLAGS="$CFLAGS -Wuser-defined-literals"
  else
     true
  fi




  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wvariadic-macros" >&5
$as_echo_n "checking whether the compiler accepts -Wvariadic-macros... " >&6; }
if ${tor_cv_cflags__Wvariadic_macros+:} false; then :
  $as_echo_n "(cached) " >&6
else

    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Wvariadic-macros"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  tor_cv_cflags__Wvariadic_macros=yes
else
  tor_cv_cflags__Wvariadic_macros=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    if test x != x; then

      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  tor_can_link__Wvariadic_macros=yes
else
  tor_can_link__Wvariadic_macros=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wvariadic_macros" >&5
$as_echo "$tor_cv_cflags__Wvariadic_macros" >&6; }
  if test x$tor_cv_cflags__Wvariadic_macros = xyes; then
     TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Wvariadic-macros" CFLAGS="$CFLAGS -Wvariadic-macros"
  else
     true
  fi




  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wvector-conversion" >&5
$as_echo_n "checking whether the compiler accepts -Wvector-conversion... " >&6; }
if ${tor_cv_cflags__Wvector_conversion+:} false; then :
  $as_echo_n "(cached) " >&6
else

    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Wvector-conversion"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  tor_cv_cflags__Wvector_conversion=yes
else
  tor_cv_cflags__Wvector_conversion=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    if test x != x; then

      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  tor_can_link__Wvector_conversion=yes
else
  tor_can_link__Wvector_conversion=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wvector_conversion" >&5
$as_echo "$tor_cv_cflags__Wvector_conversion" >&6; }
  if test x$tor_cv_cflags__Wvector_conversion = xyes; then
     TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Wvector-conversion" CFLAGS="$CFLAGS -Wvector-conversion"
  else
     true
  fi




  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wvector-conversions" >&5
$as_echo_n "checking whether the compiler accepts -Wvector-conversions... " >&6; }
if ${tor_cv_cflags__Wvector_conversions+:} false; then :
  $as_echo_n "(cached) " >&6
else

    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Wvector-conversions"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  tor_cv_cflags__Wvector_conversions=yes
else
  tor_cv_cflags__Wvector_conversions=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    if test x != x; then

      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  tor_can_link__Wvector_conversions=yes
else
  tor_can_link__Wvector_conversions=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wvector_conversions" >&5
$as_echo "$tor_cv_cflags__Wvector_conversions" >&6; }
  if test x$tor_cv_cflags__Wvector_conversions = xyes; then
     TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Wvector-conversions" CFLAGS="$CFLAGS -Wvector-conversions"
  else
     true
  fi




  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wvexing-parse" >&5
$as_echo_n "checking whether the compiler accepts -Wvexing-parse... " >&6; }
if ${tor_cv_cflags__Wvexing_parse+:} false; then :
  $as_echo_n "(cached) " >&6
else

    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Wvexing-parse"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  tor_cv_cflags__Wvexing_parse=yes
else
  tor_cv_cflags__Wvexing_parse=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    if test x != x; then

      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  tor_can_link__Wvexing_parse=yes
else
  tor_can_link__Wvexing_parse=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wvexing_parse" >&5
$as_echo "$tor_cv_cflags__Wvexing_parse" >&6; }
  if test x$tor_cv_cflags__Wvexing_parse = xyes; then
     TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Wvexing-parse" CFLAGS="$CFLAGS -Wvexing-parse"
  else
     true
  fi




  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wvisibility" >&5
$as_echo_n "checking whether the compiler accepts -Wvisibility... " >&6; }
if ${tor_cv_cflags__Wvisibility+:} false; then :
  $as_echo_n "(cached) " >&6
else

    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Wvisibility"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  tor_cv_cflags__Wvisibility=yes
else
  tor_cv_cflags__Wvisibility=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    if test x != x; then

      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  tor_can_link__Wvisibility=yes
else
  tor_can_link__Wvisibility=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wvisibility" >&5
$as_echo "$tor_cv_cflags__Wvisibility" >&6; }
  if test x$tor_cv_cflags__Wvisibility = xyes; then
     TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Wvisibility" CFLAGS="$CFLAGS -Wvisibility"
  else
     true
  fi




  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wvla-extension" >&5
$as_echo_n "checking whether the compiler accepts -Wvla-extension... " >&6; }
if ${tor_cv_cflags__Wvla_extension+:} false; then :
  $as_echo_n "(cached) " >&6
else

    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Wvla-extension"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  tor_cv_cflags__Wvla_extension=yes
else
  tor_cv_cflags__Wvla_extension=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    if test x != x; then

      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  tor_can_link__Wvla_extension=yes
else
  tor_can_link__Wvla_extension=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wvla_extension" >&5
$as_echo "$tor_cv_cflags__Wvla_extension" >&6; }
  if test x$tor_cv_cflags__Wvla_extension = xyes; then
     TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Wvla-extension" CFLAGS="$CFLAGS -Wvla-extension"
  else
     true
  fi




  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wzero-length-array" >&5
$as_echo_n "checking whether the compiler accepts -Wzero-length-array... " >&6; }
if ${tor_cv_cflags__Wzero_length_array+:} false; then :
  $as_echo_n "(cached) " >&6
else

    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Wzero-length-array"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  tor_cv_cflags__Wzero_length_array=yes
else
  tor_cv_cflags__Wzero_length_array=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    if test x != x; then

      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  tor_can_link__Wzero_length_array=yes
else
  tor_can_link__Wzero_length_array=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wzero_length_array" >&5
$as_echo "$tor_cv_cflags__Wzero_length_array" >&6; }
  if test x$tor_cv_cflags__Wzero_length_array = xyes; then
     TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS -Wzero-length-array" CFLAGS="$CFLAGS -Wzero-length-array"
  else
     true
  fi






  W_FLAGS="$W_FLAGS -W -Wfloat-equal -Wundef -Wpointer-arith"
  W_FLAGS="$W_FLAGS -Wstrict-prototypes -Wmissing-prototypes -Wwrite-strings"
  W_FLAGS="$W_FLAGS -Wredundant-decls -Wchar-subscripts -Wcomment -Wformat=2"
  W_FLAGS="$W_FLAGS -Wwrite-strings"
  W_FLAGS="$W_FLAGS -Wnested-externs -Wbad-function-cast -Wswitch-enum"
  W_FLAGS="$W_FLAGS -Waggregate-return -Wpacked -Wunused"
  W_FLAGS="$W_FLAGS -Wunused-parameter "
  # These interfere with building main() { return 0; }, which autoconf
  # likes to use as its default program.
  W_FLAGS="$W_FLAGS -Wold-style-definition -Wmissing-declarations"

  TOR_WARNING_FLAGS="$TOR_WARNING_FLAGS $W_FLAGS"
  CFLAGS="$CFLAGS $W_FLAGS"

  if test "$tor_cv_cflags__Wnull_dereference" = "yes"; then

$as_echo "#define HAVE_CFLAG_WNULL_DEREFERENCE 1" >>confdefs.h

  fi
  if test "$tor_cv_cflags__Woverlength_strings" = "yes"; then

$as_echo "#define HAVE_CFLAG_WOVERLENGTH_STRINGS 1" >>confdefs.h

  fi
  if test "$tor_cv_cflags__warn_unused_const_variable_2" = "yes"; then

$as_echo "#define HAVE_CFLAG_WUNUSED_CONST_VARIABLE 1" >>confdefs.h

  fi

  CFLAGS="$CFLAGS_NOWARNINGS"

  if test "x$enable_fatal_warnings" = "xyes"; then
    # I'd like to use TOR_CHECK_CFLAGS here, but I can't, since the
    # default autoconf programs are full of errors.
    CFLAGS="$CFLAGS -Werror"
  fi

fi



echo "$TOR_WARNING_FLAGS">warning_flags



  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts @warning_flags" >&5
$as_echo_n "checking whether the compiler accepts @warning_flags... " >&6; }
if ${tor_cv_cflags__warning_flags+:} false; then :
  $as_echo_n "(cached) " >&6
else

    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror @warning_flags"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
  tor_cv_cflags__warning_flags=yes
else
  tor_cv_cflags__warning_flags=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    if test x != x; then

      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  tor_can_link__warning_flags=yes
else
  tor_can_link__warning_flags=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"

fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__warning_flags" >&5
$as_echo "$tor_cv_cflags__warning_flags" >&6; }
  if test x$tor_cv_cflags__warning_flags = xyes; then
     CFLAGS="$CFLAGS @warning_flags"
  else
     CFLAGS="$CFLAGS $TOR_WARNING_FLAGS"
  fi



if test "$enable_coverage" = "yes" && test "$have_clang" = "no"; then
   case "$host_os" in
    darwin*)
      { $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
$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;}
   esac
fi

CPPFLAGS="$CPPFLAGS $TOR_CPPFLAGS_libevent $TOR_CPPFLAGS_openssl $TOR_CPPFLAGS_zlib"

ac_config_files="$ac_config_files Doxyfile Makefile config.rust contrib/operator-tools/tor.logrotate contrib/dist/tor.service src/config/torrc.sample src/config/torrc.minimal src/rust/.cargo/config scripts/maint/checkOptionDocs.pl warning_flags"


if test "x$asciidoc" = "xtrue" && test "$ASCIIDOC" = "none"; then
  regular_mans="doc/tor doc/tor-gencert doc/tor-resolve doc/torify"
  for file in $regular_mans ; do
    if ! [ -f "$srcdir/$file.1.in" ] || ! [ -f "$srcdir/$file.html.in" ] ; then
      echo "==================================";
      echo;
      echo "Building Tor has failed since manpages cannot be built.";
      echo;
      echo "You need asciidoc installed to be able to build the manpages.";
      echo "To build without manpages, use the --disable-asciidoc argument";
      echo "when calling configure.";
      echo;
      echo "==================================";
      exit 1;
    fi
  done
fi

if test "$fragile_hardening" = "yes"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:

============
Warning!  Building Tor with --enable-fragile-hardening (also known as
--enable-expensive-hardening) makes some kinds of attacks harder, but makes
other kinds of attacks easier. A Tor instance build with this option will be
somewhat less vulnerable to remote code execution, arithmetic overflow, or
out-of-bounds read/writes... but at the cost of becoming more vulnerable to
denial of service attacks. For more information, see
https://trac.torproject.org/projects/tor/wiki/doc/TorFragileHardening
============
  " >&5
$as_echo "$as_me: WARNING:

============
Warning!  Building Tor with --enable-fragile-hardening (also known as
--enable-expensive-hardening) makes some kinds of attacks harder, but makes
other kinds of attacks easier. A Tor instance build with this option will be
somewhat less vulnerable to remote code execution, arithmetic overflow, or
out-of-bounds read/writes... but at the cost of becoming more vulnerable to
denial of service attacks. For more information, see
https://trac.torproject.org/projects/tor/wiki/doc/TorFragileHardening
============
  " >&2;}
fi

cat >confcache <<\_ACEOF
# This file is a shell script that caches the results of configure
# tests run on this system so they can be shared between configure
# scripts and configure runs, see configure's option --config-cache.
# It is not useful on other systems.  If it contains results you don't
# want to keep, you may remove or edit it.
#
# config.status only pays attention to the cache file if you give it
# the --recheck option to rerun configure.
#
# `ac_cv_env_foo' variables (set or unset) will be overridden when
# loading this file, other *unset* `ac_cv_foo' will be assigned the
# following values.

_ACEOF

# The following way of writing the cache mishandles newlines in values,
# but we know of no workaround that is simple, portable, and efficient.
# So, we kill variables containing newlines.
# Ultrix sh set writes to stderr and can't be redirected directly,
# and sets the high bit in the cache file unless we assign to the vars.
(
  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
    eval ac_val=\$$ac_var
    case $ac_val in #(
    *${as_nl}*)
      case $ac_var in #(
      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
      esac
      case $ac_var in #(
      _ | IFS | as_nl) ;; #(
      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
      *) { eval $ac_var=; unset $ac_var;} ;;
      esac ;;
    esac
  done

  (set) 2>&1 |
    case $as_nl`(ac_space=' '; set) 2>&1` in #(
    *${as_nl}ac_space=\ *)
      # `set' does not quote correctly, so add quotes: double-quote
      # substitution turns \\\\ into \\, and sed turns \\ into \.
      sed -n \
	"s/'/'\\\\''/g;
	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
      ;; #(
    *)
      # `set' quotes correctly as required by POSIX, so do not add quotes.
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
      ;;
    esac |
    sort
) |
  sed '
     /^ac_cv_env_/b end
     t clear
     :clear
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
     t end
     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
     :end' >>confcache
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  if test -w "$cache_file"; then
    if test "x$cache_file" != "x/dev/null"; then
      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
$as_echo "$as_me: updating cache $cache_file" >&6;}
      if test ! -f "$cache_file" || test -h "$cache_file"; then
	cat confcache >"$cache_file"
      else
        case $cache_file in #(
        */* | ?:*)
	  mv -f confcache "$cache_file"$$ &&
	  mv -f "$cache_file"$$ "$cache_file" ;; #(
        *)
	  mv -f confcache "$cache_file" ;;
	esac
      fi
    fi
  else
    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  fi
fi
rm -f confcache

test "x$prefix" = xNONE && prefix=$ac_default_prefix
# Let make expand exec_prefix.
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'

DEFS=-DHAVE_CONFIG_H

ac_libobjs=
ac_ltlibobjs=
U=
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  # 1. Remove the extension, and $U if already installed.
  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
  #    will be set to the directory where LIBOBJS objects are built.
  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
done
LIBOBJS=$ac_libobjs

LTLIBOBJS=$ac_ltlibobjs


{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
$as_echo_n "checking that generated files are newer than configure... " >&6; }
   if test -n "$am_sleep_pid"; then
     # Hide warnings about reused PIDs.
     wait $am_sleep_pid 2>/dev/null
   fi
   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
$as_echo "done" >&6; }
 if test -n "$EXEEXT"; then
  am__EXEEXT_TRUE=
  am__EXEEXT_FALSE='#'
else
  am__EXEEXT_TRUE='#'
  am__EXEEXT_FALSE=
fi

if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  as_fn_error $? "conditional \"AMDEP\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${UNITTESTS_ENABLED_TRUE}" && test -z "${UNITTESTS_ENABLED_FALSE}"; then
  as_fn_error $? "conditional \"UNITTESTS_ENABLED\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${COVERAGE_ENABLED_TRUE}" && test -z "${COVERAGE_ENABLED_FALSE}"; then
  as_fn_error $? "conditional \"COVERAGE_ENABLED\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${DISABLE_ASSERTS_IN_UNIT_TESTS_TRUE}" && test -z "${DISABLE_ASSERTS_IN_UNIT_TESTS_FALSE}"; then
  as_fn_error $? "conditional \"DISABLE_ASSERTS_IN_UNIT_TESTS\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${LIBFUZZER_ENABLED_TRUE}" && test -z "${LIBFUZZER_ENABLED_FALSE}"; then
  as_fn_error $? "conditional \"LIBFUZZER_ENABLED\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${OSS_FUZZ_ENABLED_TRUE}" && test -z "${OSS_FUZZ_ENABLED_FALSE}"; then
  as_fn_error $? "conditional \"OSS_FUZZ_ENABLED\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${USE_RUST_TRUE}" && test -z "${USE_RUST_FALSE}"; then
  as_fn_error $? "conditional \"USE_RUST\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${USE_NSS_TRUE}" && test -z "${USE_NSS_FALSE}"; then
  as_fn_error $? "conditional \"USE_NSS\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${USE_OPENSSL_TRUE}" && test -z "${USE_OPENSSL_FALSE}"; then
  as_fn_error $? "conditional \"USE_OPENSSL\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${USE_EVENT_TRACING_DEBUG_TRUE}" && test -z "${USE_EVENT_TRACING_DEBUG_FALSE}"; then
  as_fn_error $? "conditional \"USE_EVENT_TRACING_DEBUG\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${USE_ANDROID_TRUE}" && test -z "${USE_ANDROID_FALSE}"; then
  as_fn_error $? "conditional \"USE_ANDROID\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_MODULE_RELAY_TRUE}" && test -z "${BUILD_MODULE_RELAY_FALSE}"; then
  as_fn_error $? "conditional \"BUILD_MODULE_RELAY\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_MODULE_DIRCACHE_TRUE}" && test -z "${BUILD_MODULE_DIRCACHE_FALSE}"; then
  as_fn_error $? "conditional \"BUILD_MODULE_DIRCACHE\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_MODULE_DIRAUTH_TRUE}" && test -z "${BUILD_MODULE_DIRAUTH_FALSE}"; then
  as_fn_error $? "conditional \"BUILD_MODULE_DIRAUTH\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${USE_PERL_TRUE}" && test -z "${USE_PERL_FALSE}"; then
  as_fn_error $? "conditional \"USE_PERL\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${USE_ASCIIDOC_TRUE}" && test -z "${USE_ASCIIDOC_FALSE}"; then
  as_fn_error $? "conditional \"USE_ASCIIDOC\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_MANPAGE_TRUE}" && test -z "${BUILD_MANPAGE_FALSE}"; then
  as_fn_error $? "conditional \"BUILD_MANPAGE\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_HTML_DOCS_TRUE}" && test -z "${BUILD_HTML_DOCS_FALSE}"; then
  as_fn_error $? "conditional \"BUILD_HTML_DOCS\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${USEPYTHON_TRUE}" && test -z "${USEPYTHON_FALSE}"; then
  as_fn_error $? "conditional \"USEPYTHON\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${WIN32_TRUE}" && test -z "${WIN32_FALSE}"; then
  as_fn_error $? "conditional \"WIN32\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_NT_SERVICES_TRUE}" && test -z "${BUILD_NT_SERVICES_FALSE}"; then
  as_fn_error $? "conditional \"BUILD_NT_SERVICES\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_LIBTORRUNNER_TRUE}" && test -z "${BUILD_LIBTORRUNNER_FALSE}"; then
  as_fn_error $? "conditional \"BUILD_LIBTORRUNNER\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi

if test -z "${THREADS_WIN32_TRUE}" && test -z "${THREADS_WIN32_FALSE}"; then
  as_fn_error $? "conditional \"THREADS_WIN32\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${THREADS_PTHREADS_TRUE}" && test -z "${THREADS_PTHREADS_FALSE}"; then
  as_fn_error $? "conditional \"THREADS_PTHREADS\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_READPASSPHRASE_C_TRUE}" && test -z "${BUILD_READPASSPHRASE_C_FALSE}"; then
  as_fn_error $? "conditional \"BUILD_READPASSPHRASE_C\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_KECCAK_TINY_TRUE}" && test -z "${BUILD_KECCAK_TINY_FALSE}"; then
  as_fn_error $? "conditional \"BUILD_KECCAK_TINY\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${ADD_MULODI4_TRUE}" && test -z "${ADD_MULODI4_FALSE}"; then
  as_fn_error $? "conditional \"ADD_MULODI4\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_CURVE25519_DONNA_TRUE}" && test -z "${BUILD_CURVE25519_DONNA_FALSE}"; then
  as_fn_error $? "conditional \"BUILD_CURVE25519_DONNA\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${BUILD_CURVE25519_DONNA_C64_TRUE}" && test -z "${BUILD_CURVE25519_DONNA_C64_FALSE}"; then
  as_fn_error $? "conditional \"BUILD_CURVE25519_DONNA_C64\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${USE_OPENBSD_MALLOC_TRUE}" && test -z "${USE_OPENBSD_MALLOC_FALSE}"; then
  as_fn_error $? "conditional \"USE_OPENBSD_MALLOC\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi

: "${CONFIG_STATUS=./config.status}"
ac_write_fail=0
ac_clean_files_save=$ac_clean_files
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
as_write_fail=0
cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
#! $SHELL
# Generated by $as_me.
# Run this file to recreate the current configuration.
# Compiler output produced by configure, useful for debugging
# configure, is in config.log if it exists.

debug=false
ac_cs_recheck=false
ac_cs_silent=false

SHELL=\${CONFIG_SHELL-$SHELL}
export SHELL
_ASEOF
cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
## -------------------- ##
## M4sh Initialization. ##
## -------------------- ##

# Be more Bourne compatible
DUALCASE=1; export DUALCASE # for MKS sh
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  emulate sh
  NULLCMD=:
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  # is contrary to our usage.  Disable this feature.
  alias -g '${1+"$@"}'='"$@"'
  setopt NO_GLOB_SUBST
else
  case `(set -o) 2>/dev/null` in #(
  *posix*) :
    set -o posix ;; #(
  *) :
     ;;
esac
fi


as_nl='
'
export as_nl
# Printing a long string crashes Solaris 7 /usr/bin/printf.
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
# Prefer a ksh shell builtin over an external printf program on Solaris,
# but without wasting forks for bash or zsh.
if test -z "$BASH_VERSION$ZSH_VERSION" \
    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  as_echo='print -r --'
  as_echo_n='print -rn --'
elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  as_echo='printf %s\n'
  as_echo_n='printf %s'
else
  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
    as_echo_n='/usr/ucb/echo -n'
  else
    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
    as_echo_n_body='eval
      arg=$1;
      case $arg in #(
      *"$as_nl"*)
	expr "X$arg" : "X\\(.*\\)$as_nl";
	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
      esac;
      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
    '
    export as_echo_n_body
    as_echo_n='sh -c $as_echo_n_body as_echo'
  fi
  export as_echo_body
  as_echo='sh -c $as_echo_body as_echo'
fi

# The user is always right.
if test "${PATH_SEPARATOR+set}" != set; then
  PATH_SEPARATOR=:
  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
      PATH_SEPARATOR=';'
  }
fi


# IFS
# We need space, tab and new line, in precisely that order.  Quoting is
# there to prevent editors from complaining about space-tab.
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
# splitting by setting IFS to empty value.)
IFS=" ""	$as_nl"

# Find who we are.  Look in the path if we contain no directory separator.
as_myself=
case $0 in #((
  *[\\/]* ) as_myself=$0 ;;
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  done
IFS=$as_save_IFS

     ;;
esac
# We did not find ourselves, most probably we were run as `sh COMMAND'
# in which case we are not to be found in the path.
if test "x$as_myself" = x; then
  as_myself=$0
fi
if test ! -f "$as_myself"; then
  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  exit 1
fi

# Unset variables that we do not need and which cause bugs (e.g. in
# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
# suppresses any "Segmentation fault" message there.  '((' could
# trigger a bug in pdksh 5.2.14.
for as_var in BASH_ENV ENV MAIL MAILPATH
do eval test x\${$as_var+set} = xset \
  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
done
PS1='$ '
PS2='> '
PS4='+ '

# NLS nuisances.
LC_ALL=C
export LC_ALL
LANGUAGE=C
export LANGUAGE

# CDPATH.
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH


# as_fn_error STATUS ERROR [LINENO LOG_FD]
# ----------------------------------------
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
# script with STATUS, using 1 if that was 0.
as_fn_error ()
{
  as_status=$1; test $as_status -eq 0 && as_status=1
  if test "$4"; then
    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  fi
  $as_echo "$as_me: error: $2" >&2
  as_fn_exit $as_status
} # as_fn_error


# as_fn_set_status STATUS
# -----------------------
# Set $? to STATUS, without forking.
as_fn_set_status ()
{
  return $1
} # as_fn_set_status

# as_fn_exit STATUS
# -----------------
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
as_fn_exit ()
{
  set +e
  as_fn_set_status $1
  exit $1
} # as_fn_exit

# as_fn_unset VAR
# ---------------
# Portably unset VAR.
as_fn_unset ()
{
  { eval $1=; unset $1;}
}
as_unset=as_fn_unset
# as_fn_append VAR VALUE
# ----------------------
# Append the text in VALUE to the end of the definition contained in VAR. Take
# advantage of any shell optimizations that allow amortized linear growth over
# repeated appends, instead of the typical quadratic growth present in naive
# implementations.
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  eval 'as_fn_append ()
  {
    eval $1+=\$2
  }'
else
  as_fn_append ()
  {
    eval $1=\$$1\$2
  }
fi # as_fn_append

# as_fn_arith ARG...
# ------------------
# Perform arithmetic evaluation on the ARGs, and store the result in the
# global $as_val. Take advantage of shells that can avoid forks. The arguments
# must be portable across $(()) and expr.
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  eval 'as_fn_arith ()
  {
    as_val=$(( $* ))
  }'
else
  as_fn_arith ()
  {
    as_val=`expr "$@" || test $? -eq 1`
  }
fi # as_fn_arith


if expr a : '\(a\)' >/dev/null 2>&1 &&
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
  as_expr=expr
else
  as_expr=false
fi

if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  as_basename=basename
else
  as_basename=false
fi

if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  as_dirname=dirname
else
  as_dirname=false
fi

as_me=`$as_basename -- "$0" ||
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
	 X"$0" : 'X\(//\)$' \| \
	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
$as_echo X/"$0" |
    sed '/^.*\/\([^/][^/]*\)\/*$/{
	    s//\1/
	    q
	  }
	  /^X\/\(\/\/\)$/{
	    s//\1/
	    q
	  }
	  /^X\/\(\/\).*/{
	    s//\1/
	    q
	  }
	  s/.*/./; q'`

# Avoid depending upon Character Ranges.
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
as_cr_digits='0123456789'
as_cr_alnum=$as_cr_Letters$as_cr_digits

ECHO_C= ECHO_N= ECHO_T=
case `echo -n x` in #(((((
-n*)
  case `echo 'xy\c'` in
  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
  xy)  ECHO_C='\c';;
  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
       ECHO_T='	';;
  esac;;
*)
  ECHO_N='-n';;
esac

rm -f conf$$ conf$$.exe conf$$.file
if test -d conf$$.dir; then
  rm -f conf$$.dir/conf$$.file
else
  rm -f conf$$.dir
  mkdir conf$$.dir 2>/dev/null
fi
if (echo >conf$$.file) 2>/dev/null; then
  if ln -s conf$$.file conf$$ 2>/dev/null; then
    as_ln_s='ln -s'
    # ... but there are two gotchas:
    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
    # In both cases, we have to default to `cp -pR'.
    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
      as_ln_s='cp -pR'
  elif ln conf$$.file conf$$ 2>/dev/null; then
    as_ln_s=ln
  else
    as_ln_s='cp -pR'
  fi
else
  as_ln_s='cp -pR'
fi
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
rmdir conf$$.dir 2>/dev/null


# as_fn_mkdir_p
# -------------
# Create "$as_dir" as a directory, including parents if necessary.
as_fn_mkdir_p ()
{

  case $as_dir in #(
  -*) as_dir=./$as_dir;;
  esac
  test -d "$as_dir" || eval $as_mkdir_p || {
    as_dirs=
    while :; do
      case $as_dir in #(
      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
      *) as_qdir=$as_dir;;
      esac
      as_dirs="'$as_qdir' $as_dirs"
      as_dir=`$as_dirname -- "$as_dir" ||
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
	 X"$as_dir" : 'X\(//\)[^/]' \| \
	 X"$as_dir" : 'X\(//\)$' \| \
	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
$as_echo X"$as_dir" |
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
	    s//\1/
	    q
	  }
	  /^X\(\/\/\)[^/].*/{
	    s//\1/
	    q
	  }
	  /^X\(\/\/\)$/{
	    s//\1/
	    q
	  }
	  /^X\(\/\).*/{
	    s//\1/
	    q
	  }
	  s/.*/./; q'`
      test -d "$as_dir" && break
    done
    test -z "$as_dirs" || eval "mkdir $as_dirs"
  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"


} # as_fn_mkdir_p
if mkdir -p . 2>/dev/null; then
  as_mkdir_p='mkdir -p "$as_dir"'
else
  test -d ./-p && rmdir ./-p
  as_mkdir_p=false
fi


# as_fn_executable_p FILE
# -----------------------
# Test if FILE is an executable regular file.
as_fn_executable_p ()
{
  test -f "$1" && test -x "$1"
} # as_fn_executable_p
as_test_x='test -x'
as_executable_p=as_fn_executable_p

# Sed expression to map a string onto a valid CPP name.
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"

# Sed expression to map a string onto a valid variable name.
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"


exec 6>&1
## ----------------------------------- ##
## Main body of $CONFIG_STATUS script. ##
## ----------------------------------- ##
_ASEOF
test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1

cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
# Save the log message, to keep $0 and so on meaningful, and to
# report actual input values of CONFIG_FILES etc. instead of their
# values after options handling.
ac_log="
This file was extended by tor $as_me 0.4.3.1-alpha, which was
generated by GNU Autoconf 2.69.  Invocation command line was

  CONFIG_FILES    = $CONFIG_FILES
  CONFIG_HEADERS  = $CONFIG_HEADERS
  CONFIG_LINKS    = $CONFIG_LINKS
  CONFIG_COMMANDS = $CONFIG_COMMANDS
  $ $0 $@

on `(hostname || uname -n) 2>/dev/null | sed 1q`
"

_ACEOF

case $ac_config_files in *"
"*) set x $ac_config_files; shift; ac_config_files=$*;;
esac

case $ac_config_headers in *"
"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
esac


cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
# Files that config.status was made for.
config_files="$ac_config_files"
config_headers="$ac_config_headers"
config_commands="$ac_config_commands"

_ACEOF

cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
ac_cs_usage="\
\`$as_me' instantiates files and other configuration actions
from templates according to the current configuration.  Unless the files
and actions are specified as TAGs, all are instantiated by default.

Usage: $0 [OPTION]... [TAG]...

  -h, --help       print this help, then exit
  -V, --version    print version number and configuration settings, then exit
      --config     print configuration, then exit
  -q, --quiet, --silent
                   do not print progress messages
  -d, --debug      don't remove temporary files
      --recheck    update $as_me by reconfiguring in the same conditions
      --file=FILE[:TEMPLATE]
                   instantiate the configuration file FILE
      --header=FILE[:TEMPLATE]
                   instantiate the configuration header FILE

Configuration files:
$config_files

Configuration headers:
$config_headers

Configuration commands:
$config_commands

Report bugs to the package provider."

_ACEOF
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
ac_cs_version="\\
tor config.status 0.4.3.1-alpha
configured by $0, generated by GNU Autoconf 2.69,
  with options \\"\$ac_cs_config\\"

Copyright (C) 2012 Free Software Foundation, Inc.
This config.status script is free software; the Free Software Foundation
gives unlimited permission to copy, distribute and modify it."

ac_pwd='$ac_pwd'
srcdir='$srcdir'
INSTALL='$INSTALL'
MKDIR_P='$MKDIR_P'
AWK='$AWK'
test -n "\$AWK" || AWK=awk
_ACEOF

cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
# The default lists apply if the user does not specify any file.
ac_need_defaults=:
while test $# != 0
do
  case $1 in
  --*=?*)
    ac_option=`expr "X$1" : 'X\([^=]*\)='`
    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
    ac_shift=:
    ;;
  --*=)
    ac_option=`expr "X$1" : 'X\([^=]*\)='`
    ac_optarg=
    ac_shift=:
    ;;
  *)
    ac_option=$1
    ac_optarg=$2
    ac_shift=shift
    ;;
  esac

  case $ac_option in
  # Handling of the options.
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
    ac_cs_recheck=: ;;
  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
    $as_echo "$ac_cs_version"; exit ;;
  --config | --confi | --conf | --con | --co | --c )
    $as_echo "$ac_cs_config"; exit ;;
  --debug | --debu | --deb | --de | --d | -d )
    debug=: ;;
  --file | --fil | --fi | --f )
    $ac_shift
    case $ac_optarg in
    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
    '') as_fn_error $? "missing file argument" ;;
    esac
    as_fn_append CONFIG_FILES " '$ac_optarg'"
    ac_need_defaults=false;;
  --header | --heade | --head | --hea )
    $ac_shift
    case $ac_optarg in
    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
    esac
    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
    ac_need_defaults=false;;
  --he | --h)
    # Conflict between --help and --header
    as_fn_error $? "ambiguous option: \`$1'
Try \`$0 --help' for more information.";;
  --help | --hel | -h )
    $as_echo "$ac_cs_usage"; exit ;;
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  | -silent | --silent | --silen | --sile | --sil | --si | --s)
    ac_cs_silent=: ;;

  # This is an error.
  -*) as_fn_error $? "unrecognized option: \`$1'
Try \`$0 --help' for more information." ;;

  *) as_fn_append ac_config_targets " $1"
     ac_need_defaults=false ;;

  esac
  shift
done

ac_configure_extra_args=

if $ac_cs_silent; then
  exec 6>/dev/null
  ac_configure_extra_args="$ac_configure_extra_args --silent"
fi

_ACEOF
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
if \$ac_cs_recheck; then
  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  shift
  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  CONFIG_SHELL='$SHELL'
  export CONFIG_SHELL
  exec "\$@"
fi

_ACEOF
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
exec 5>>config.log
{
  echo
  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
## Running $as_me. ##
_ASBOX
  $as_echo "$ac_log"
} >&5

_ACEOF
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
#
# INIT-COMMANDS
#
AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"

_ACEOF

cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1

# Handling of arguments.
for ac_config_target in $ac_config_targets
do
  case $ac_config_target in
    "orconfig.h") CONFIG_HEADERS="$CONFIG_HEADERS orconfig.h" ;;
    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
    "Doxyfile") CONFIG_FILES="$CONFIG_FILES Doxyfile" ;;
    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
    "config.rust") CONFIG_FILES="$CONFIG_FILES config.rust" ;;
    "contrib/operator-tools/tor.logrotate") CONFIG_FILES="$CONFIG_FILES contrib/operator-tools/tor.logrotate" ;;
    "contrib/dist/tor.service") CONFIG_FILES="$CONFIG_FILES contrib/dist/tor.service" ;;
    "src/config/torrc.sample") CONFIG_FILES="$CONFIG_FILES src/config/torrc.sample" ;;
    "src/config/torrc.minimal") CONFIG_FILES="$CONFIG_FILES src/config/torrc.minimal" ;;
    "src/rust/.cargo/config") CONFIG_FILES="$CONFIG_FILES src/rust/.cargo/config" ;;
    "scripts/maint/checkOptionDocs.pl") CONFIG_FILES="$CONFIG_FILES scripts/maint/checkOptionDocs.pl" ;;
    "warning_flags") CONFIG_FILES="$CONFIG_FILES warning_flags" ;;

  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  esac
done


# If the user did not use the arguments to specify the items to instantiate,
# then the envvar interface is used.  Set only those that are not.
# We use the long form for the default assignment because of an extremely
# bizarre bug on SunOS 4.1.3.
if $ac_need_defaults; then
  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
fi

# Have a temporary directory for convenience.  Make it in the build tree
# simply because there is no reason against having it here, and in addition,
# creating and moving files from /tmp can sometimes cause problems.
# Hook for its removal unless debugging.
# Note that there is a small window in which the directory will not be cleaned:
# after its creation but before its name has been assigned to `$tmp'.
$debug ||
{
  tmp= ac_tmp=
  trap 'exit_status=$?
  : "${ac_tmp:=$tmp}"
  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
' 0
  trap 'as_fn_exit 1' 1 2 13 15
}
# Create a (secure) tmp directory for tmp files.

{
  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  test -d "$tmp"
}  ||
{
  tmp=./conf$$-$RANDOM
  (umask 077 && mkdir "$tmp")
} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
ac_tmp=$tmp

# Set up the scripts for CONFIG_FILES section.
# No need to generate them if there are no CONFIG_FILES.
# This happens for instance with `./config.status config.h'.
if test -n "$CONFIG_FILES"; then


ac_cr=`echo X | tr X '\015'`
# On cygwin, bash can eat \r inside `` if the user requested igncr.
# But we know of no other shell where ac_cr would be empty at this
# point, so we can use a bashism as a fallback.
if test "x$ac_cr" = x; then
  eval ac_cr=\$\'\\r\'
fi
ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  ac_cs_awk_cr='\\r'
else
  ac_cs_awk_cr=$ac_cr
fi

echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
_ACEOF


{
  echo "cat >conf$$subs.awk <<_ACEOF" &&
  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  echo "_ACEOF"
} >conf$$subs.sh ||
  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
ac_delim='%!_!# '
for ac_last_try in false false false false false :; do
  . ./conf$$subs.sh ||
    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5

  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  if test $ac_delim_n = $ac_delim_num; then
    break
  elif $ac_last_try; then
    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  else
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  fi
done
rm -f conf$$subs.sh

cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
_ACEOF
sed -n '
h
s/^/S["/; s/!.*/"]=/
p
g
s/^[^!]*!//
:repl
t repl
s/'"$ac_delim"'$//
t delim
:nl
h
s/\(.\{148\}\)..*/\1/
t more1
s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
p
n
b repl
:more1
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
p
g
s/.\{148\}//
t nl
:delim
h
s/\(.\{148\}\)..*/\1/
t more2
s/["\\]/\\&/g; s/^/"/; s/$/"/
p
b
:more2
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
p
g
s/.\{148\}//
t delim
' <conf$$subs.awk | sed '
/^[^""]/{
  N
  s/\n//
}
' >>$CONFIG_STATUS || ac_write_fail=1
rm -f conf$$subs.awk
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
_ACAWK
cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  for (key in S) S_is_set[key] = 1
  FS = ""

}
{
  line = $ 0
  nfields = split(line, field, "@")
  substed = 0
  len = length(field[1])
  for (i = 2; i < nfields; i++) {
    key = field[i]
    keylen = length(key)
    if (S_is_set[key]) {
      value = S[key]
      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
      len += length(value) + length(field[++i])
      substed = 1
    } else
      len += 1 + keylen
  }

  print line
}

_ACAWK
_ACEOF
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
else
  cat
fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
_ACEOF

# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
# trailing colons and then remove the whole line if VPATH becomes empty
# (actually we leave an empty line to preserve line numbers).
if test "x$srcdir" = x.; then
  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
h
s///
s/^/:/
s/[	 ]*$/:/
s/:\$(srcdir):/:/g
s/:\${srcdir}:/:/g
s/:@srcdir@:/:/g
s/^:*//
s/:*$//
x
s/\(=[	 ]*\).*/\1/
G
s/\n//
s/^[^=]*=[	 ]*$//
}'
fi

cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
fi # test -n "$CONFIG_FILES"

# Set up the scripts for CONFIG_HEADERS section.
# No need to generate them if there are no CONFIG_HEADERS.
# This happens for instance with `./config.status Makefile'.
if test -n "$CONFIG_HEADERS"; then
cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
BEGIN {
_ACEOF

# Transform confdefs.h into an awk script `defines.awk', embedded as
# here-document in config.status, that substitutes the proper values into
# config.h.in to produce config.h.

# Create a delimiter string that does not exist in confdefs.h, to ease
# handling of long lines.
ac_delim='%!_!# '
for ac_last_try in false false :; do
  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  if test -z "$ac_tt"; then
    break
  elif $ac_last_try; then
    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  else
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  fi
done

# For the awk script, D is an array of macro values keyed by name,
# likewise P contains macro parameters if any.  Preserve backslash
# newline sequences.

ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
sed -n '
s/.\{148\}/&'"$ac_delim"'/g
t rset
:rset
s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
t def
d
:def
s/\\$//
t bsnl
s/["\\]/\\&/g
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
D["\1"]=" \3"/p
s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
d
:bsnl
s/["\\]/\\&/g
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
D["\1"]=" \3\\\\\\n"\\/p
t cont
s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
t cont
d
:cont
n
s/.\{148\}/&'"$ac_delim"'/g
t clear
:clear
s/\\$//
t bsnlc
s/["\\]/\\&/g; s/^/"/; s/$/"/p
d
:bsnlc
s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
b cont
' <confdefs.h | sed '
s/'"$ac_delim"'/"\\\
"/g' >>$CONFIG_STATUS || ac_write_fail=1

cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  for (key in D) D_is_set[key] = 1
  FS = ""
}
/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  line = \$ 0
  split(line, arg, " ")
  if (arg[1] == "#") {
    defundef = arg[2]
    mac1 = arg[3]
  } else {
    defundef = substr(arg[1], 2)
    mac1 = arg[2]
  }
  split(mac1, mac2, "(") #)
  macro = mac2[1]
  prefix = substr(line, 1, index(line, defundef) - 1)
  if (D_is_set[macro]) {
    # Preserve the white space surrounding the "#".
    print prefix "define", macro P[macro] D[macro]
    next
  } else {
    # Replace #undef with comments.  This is necessary, for example,
    # in the case of _POSIX_SOURCE, which is predefined and required
    # on some systems where configure will not decide to define it.
    if (defundef == "undef") {
      print "/*", prefix defundef, macro, "*/"
      next
    }
  }
}
{ print }
_ACAWK
_ACEOF
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
fi # test -n "$CONFIG_HEADERS"


eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
shift
for ac_tag
do
  case $ac_tag in
  :[FHLC]) ac_mode=$ac_tag; continue;;
  esac
  case $ac_mode$ac_tag in
  :[FHL]*:*);;
  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  :[FH]-) ac_tag=-:-;;
  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  esac
  ac_save_IFS=$IFS
  IFS=:
  set x $ac_tag
  IFS=$ac_save_IFS
  shift
  ac_file=$1
  shift

  case $ac_mode in
  :L) ac_source=$1;;
  :[FH])
    ac_file_inputs=
    for ac_f
    do
      case $ac_f in
      -) ac_f="$ac_tmp/stdin";;
      *) # Look for the file first in the build tree, then in the source tree
	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
	 # because $ac_f cannot contain `:'.
	 test -f "$ac_f" ||
	   case $ac_f in
	   [\\/$]*) false;;
	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
	   esac ||
	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
      esac
      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
      as_fn_append ac_file_inputs " '$ac_f'"
    done

    # Let's still pretend it is `configure' which instantiates (i.e., don't
    # use $as_me), people would be surprised to read:
    #    /* config.h.  Generated by config.status.  */
    configure_input='Generated from '`
	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
	`' by configure.'
    if test x"$ac_file" != x-; then
      configure_input="$ac_file.  $configure_input"
      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
$as_echo "$as_me: creating $ac_file" >&6;}
    fi
    # Neutralize special characters interpreted by sed in replacement strings.
    case $configure_input in #(
    *\&* | *\|* | *\\* )
       ac_sed_conf_input=`$as_echo "$configure_input" |
       sed 's/[\\\\&|]/\\\\&/g'`;; #(
    *) ac_sed_conf_input=$configure_input;;
    esac

    case $ac_tag in
    *:-:* | *:-) cat >"$ac_tmp/stdin" \
      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
    esac
    ;;
  esac

  ac_dir=`$as_dirname -- "$ac_file" ||
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
	 X"$ac_file" : 'X\(//\)[^/]' \| \
	 X"$ac_file" : 'X\(//\)$' \| \
	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
$as_echo X"$ac_file" |
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
	    s//\1/
	    q
	  }
	  /^X\(\/\/\)[^/].*/{
	    s//\1/
	    q
	  }
	  /^X\(\/\/\)$/{
	    s//\1/
	    q
	  }
	  /^X\(\/\).*/{
	    s//\1/
	    q
	  }
	  s/.*/./; q'`
  as_dir="$ac_dir"; as_fn_mkdir_p
  ac_builddir=.

case "$ac_dir" in
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
*)
  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  # A ".." for each directory in $ac_dir_suffix.
  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  case $ac_top_builddir_sub in
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  esac ;;
esac
ac_abs_top_builddir=$ac_pwd
ac_abs_builddir=$ac_pwd$ac_dir_suffix
# for backward compatibility:
ac_top_builddir=$ac_top_build_prefix

case $srcdir in
  .)  # We are building in place.
    ac_srcdir=.
    ac_top_srcdir=$ac_top_builddir_sub
    ac_abs_top_srcdir=$ac_pwd ;;
  [\\/]* | ?:[\\/]* )  # Absolute name.
    ac_srcdir=$srcdir$ac_dir_suffix;
    ac_top_srcdir=$srcdir
    ac_abs_top_srcdir=$srcdir ;;
  *) # Relative name.
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
    ac_top_srcdir=$ac_top_build_prefix$srcdir
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
esac
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix


  case $ac_mode in
  :F)
  #
  # CONFIG_FILE
  #

  case $INSTALL in
  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  esac
  ac_MKDIR_P=$MKDIR_P
  case $MKDIR_P in
  [\\/$]* | ?:[\\/]* ) ;;
  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  esac
_ACEOF

cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
# If the template does not know about datarootdir, expand it.
# FIXME: This hack should be removed a few years after 2.60.
ac_datarootdir_hack=; ac_datarootdir_seen=
ac_sed_dataroot='
/datarootdir/ {
  p
  q
}
/@datadir@/p
/@docdir@/p
/@infodir@/p
/@localedir@/p
/@mandir@/p'
case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
*datarootdir*) ac_datarootdir_seen=yes;;
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
_ACEOF
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  ac_datarootdir_hack='
  s&@datadir@&$datadir&g
  s&@docdir@&$docdir&g
  s&@infodir@&$infodir&g
  s&@localedir@&$localedir&g
  s&@mandir@&$mandir&g
  s&\\\${datarootdir}&$datarootdir&g' ;;
esac
_ACEOF

# Neutralize VPATH when `$srcdir' = `.'.
# Shell code in configure.ac might set extrasub.
# FIXME: do we really want to maintain this feature?
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
ac_sed_extra="$ac_vpsub
$extrasub
_ACEOF
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
:t
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
s|@configure_input@|$ac_sed_conf_input|;t t
s&@top_builddir@&$ac_top_builddir_sub&;t t
s&@top_build_prefix@&$ac_top_build_prefix&;t t
s&@srcdir@&$ac_srcdir&;t t
s&@abs_srcdir@&$ac_abs_srcdir&;t t
s&@top_srcdir@&$ac_top_srcdir&;t t
s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
s&@builddir@&$ac_builddir&;t t
s&@abs_builddir@&$ac_abs_builddir&;t t
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
s&@INSTALL@&$ac_INSTALL&;t t
s&@MKDIR_P@&$ac_MKDIR_P&;t t
$ac_datarootdir_hack
"
eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5

test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
      "$ac_tmp/out"`; test -z "$ac_out"; } &&
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
which seems to be undefined.  Please make sure it is defined" >&5
$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
which seems to be undefined.  Please make sure it is defined" >&2;}

  rm -f "$ac_tmp/stdin"
  case $ac_file in
  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  esac \
  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
 ;;
  :H)
  #
  # CONFIG_HEADER
  #
  if test x"$ac_file" != x-; then
    {
      $as_echo "/* $configure_input  */" \
      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
    } >"$ac_tmp/config.h" \
      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
$as_echo "$as_me: $ac_file is unchanged" >&6;}
    else
      rm -f "$ac_file"
      mv "$ac_tmp/config.h" "$ac_file" \
	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
    fi
  else
    $as_echo "/* $configure_input  */" \
      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
      || as_fn_error $? "could not create -" "$LINENO" 5
  fi
# Compute "$ac_file"'s index in $config_headers.
_am_arg="$ac_file"
_am_stamp_count=1
for _am_header in $config_headers :; do
  case $_am_header in
    $_am_arg | $_am_arg:* )
      break ;;
    * )
      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  esac
done
echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
	 X"$_am_arg" : 'X\(//\)[^/]' \| \
	 X"$_am_arg" : 'X\(//\)$' \| \
	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
$as_echo X"$_am_arg" |
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
	    s//\1/
	    q
	  }
	  /^X\(\/\/\)[^/].*/{
	    s//\1/
	    q
	  }
	  /^X\(\/\/\)$/{
	    s//\1/
	    q
	  }
	  /^X\(\/\).*/{
	    s//\1/
	    q
	  }
	  s/.*/./; q'`/stamp-h$_am_stamp_count
 ;;

  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
$as_echo "$as_me: executing $ac_file commands" >&6;}
 ;;
  esac


  case $ac_file$ac_mode in
    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
  # Older Autoconf quotes --file arguments for eval, but not when files
  # are listed without --file.  Let's play safe and only enable the eval
  # if we detect the quoting.
  # TODO: see whether this extra hack can be removed once we start
  # requiring Autoconf 2.70 or later.
  case $CONFIG_FILES in #(
  *\'*) :
    eval set x "$CONFIG_FILES" ;; #(
  *) :
    set x $CONFIG_FILES ;; #(
  *) :
     ;;
esac
  shift
  # Used to flag and report bootstrapping failures.
  am_rc=0
  for am_mf
  do
    # Strip MF so we end up with the name of the file.
    am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'`
    # Check whether this is an Automake generated Makefile which includes
    # dependency-tracking related rules and includes.
    # Grep'ing the whole file directly is not great: AIX grep has a line
    # limit of 2048, but all sed's we know have understand at least 4000.
    sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
      || continue
    am_dirpart=`$as_dirname -- "$am_mf" ||
$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
	 X"$am_mf" : 'X\(//\)[^/]' \| \
	 X"$am_mf" : 'X\(//\)$' \| \
	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
$as_echo X"$am_mf" |
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
	    s//\1/
	    q
	  }
	  /^X\(\/\/\)[^/].*/{
	    s//\1/
	    q
	  }
	  /^X\(\/\/\)$/{
	    s//\1/
	    q
	  }
	  /^X\(\/\).*/{
	    s//\1/
	    q
	  }
	  s/.*/./; q'`
    am_filepart=`$as_basename -- "$am_mf" ||
$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
	 X"$am_mf" : 'X\(//\)$' \| \
	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
$as_echo X/"$am_mf" |
    sed '/^.*\/\([^/][^/]*\)\/*$/{
	    s//\1/
	    q
	  }
	  /^X\/\(\/\/\)$/{
	    s//\1/
	    q
	  }
	  /^X\/\(\/\).*/{
	    s//\1/
	    q
	  }
	  s/.*/./; q'`
    { echo "$as_me:$LINENO: cd "$am_dirpart" \
      && sed -e '/# am--include-marker/d' "$am_filepart" \
        | $MAKE -f - am--depfiles" >&5
   (cd "$am_dirpart" \
      && sed -e '/# am--include-marker/d' "$am_filepart" \
        | $MAKE -f - am--depfiles) >&5 2>&5
   ac_status=$?
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   (exit $ac_status); } || am_rc=$?
  done
  if test $am_rc -ne 0; then
    { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error $? "Something went wrong bootstrapping makefile fragments
    for automatic dependency tracking.  Try re-running configure with the
    '--disable-dependency-tracking' option to at least be able to build
    the package (albeit without support for automatic dependency tracking).
See \`config.log' for more details" "$LINENO" 5; }
  fi
  { am_dirpart=; unset am_dirpart;}
  { am_filepart=; unset am_filepart;}
  { am_mf=; unset am_mf;}
  { am_rc=; unset am_rc;}
  rm -f conftest-deps.mk
}
 ;;

  esac
done # for ac_tag


as_fn_exit 0
_ACEOF
ac_clean_files=$ac_clean_files_save

test $ac_write_fail = 0 ||
  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5


# configure is writing to config.log, and then calls config.status.
# config.status does its own redirection, appending to config.log.
# Unfortunately, on DOS this fails, as config.log is still kept open
# by configure, so config.status won't be able to write to it; its
# output is simply discarded.  So we exec the FD to /dev/null,
# effectively closing config.log, so it can be properly (re)opened and
# appended to by config.status.  When coming back to configure, we
# need to make the FD available again.
if test "$no_create" != yes; then
  ac_cs_success=:
  ac_config_status_args=
  test "$silent" = yes &&
    ac_config_status_args="$ac_config_status_args --quiet"
  exec 5>/dev/null
  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  exec 5>>config.log
  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  # would make configure fail if this is the last instruction.
  $ac_cs_success || as_fn_exit 1
fi
if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
fi


#
# Mini-report on what will be built.
#




  PPRINT_YES_MSG=yes
  PPRINT_NO_MSG=no

  # find tput, which tells us if colors are supported and gives us color codes
  # Extract the first word of "tput", so it can be a program name with args.
set dummy tput; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_path_pprint_tput+:} false; then :
  $as_echo_n "(cached) " >&6
else
  case $pprint_tput in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_pprint_tput="$pprint_tput" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_exec_ext in '' $ac_executable_extensions; do
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    ac_cv_path_pprint_tput="$as_dir/$ac_word$ac_exec_ext"
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

  ;;
esac
fi
pprint_tput=$ac_cv_path_pprint_tput
if test -n "$pprint_tput"; then
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pprint_tput" >&5
$as_echo "$pprint_tput" >&6; }
else
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi



  if test -n "$pprint_tput"; then :

    if test -n "$PS1" && test `"$pprint_tput" colors` -ge 8 && test -t 1; then :

      # interactive shell and colors supported and standard output
      # file descriptor is opened on a terminal
      PPRINT_COLOR_TXTBLK="`"$pprint_tput" setaf 0`"
      PPRINT_COLOR_TXTBLU="`"$pprint_tput" setaf 4`"
      PPRINT_COLOR_TXTGRN="`"$pprint_tput" setaf 2`"
      PPRINT_COLOR_TXTCYN="`"$pprint_tput" setaf 6`"
      PPRINT_COLOR_TXTRED="`"$pprint_tput" setaf 1`"
      PPRINT_COLOR_TXTPUR="`"$pprint_tput" setaf 5`"
      PPRINT_COLOR_TXTYLW="`"$pprint_tput" setaf 3`"
      PPRINT_COLOR_TXTWHT="`"$pprint_tput" setaf 7`"
      PPRINT_COLOR_BLD=`"$pprint_tput" bold`
      PPRINT_COLOR_BLDBLK="$PPRINT_COLOR_BLD$PPRINT_COLOR_TXTBLK"
      PPRINT_COLOR_BLDBLU="$PPRINT_COLOR_BLD$PPRINT_COLOR_TXTBLU"
      PPRINT_COLOR_BLDGRN="$PPRINT_COLOR_BLD$PPRINT_COLOR_TXTGRN"
      PPRINT_COLOR_BLDCYN="$PPRINT_COLOR_BLD$PPRINT_COLOR_TXTCYN"
      PPRINT_COLOR_BLDRED="$PPRINT_COLOR_BLD$PPRINT_COLOR_TXTRED"
      PPRINT_COLOR_BLDPUR="$PPRINT_COLOR_BLD$PPRINT_COLOR_TXTPUR"
      PPRINT_COLOR_BLDYLW="$PPRINT_COLOR_BLD$PPRINT_COLOR_TXTYLW"
      PPRINT_COLOR_BLDWHT="$PPRINT_COLOR_BLD$PPRINT_COLOR_TXTWHT"
      PPRINT_COLOR_RST="`"$pprint_tput" sgr0`"

      # colored yes and no
      PPRINT_YES_MSG="$PPRINT_COLOR_BLDGRN$PPRINT_YES_MSG$PPRINT_COLOR_RST"
      PPRINT_NO_MSG="$PPRINT_COLOR_BLDRED$PPRINT_NO_MSG$PPRINT_COLOR_RST"

      # subtitle color
      PPRINT_COLOR_SUBTITLE="$PPRINT_COLOR_BLDCYN"

fi

fi








$as_echo
$as_echo "Tor Version: ${PPRINT_COLOR_BLDBLU}Tor $PACKAGE_VERSION $PPRINT_COLOR_RST"
$as_echo


  $as_echo "${PPRINT_COLOR_SUBTITLE}Build Features$PPRINT_COLOR_RST"






























































































































      $as_echo_n " "

      $as_echo_n " "




  $as_echo_n """Compiler$PPRINT_COLOR_RST:                                                      "
  $as_echo "${PPRINT_COLOR_BLD}$CC$PPRINT_COLOR_RST"






































































































































      $as_echo_n " "

      $as_echo_n " "




  $as_echo_n """Host OS$PPRINT_COLOR_RST:                                                       "
  $as_echo "${PPRINT_COLOR_BLD}$host_os$PPRINT_COLOR_RST"








$as_echo

test "x$enable_gcc_warnings" = "xyes" && value=1 || value=0




  test $value -eq 0 && pprint_msg="$PPRINT_NO_MSG" || pprint_msg="$PPRINT_YES_MSG"






























































      $as_echo_n " "

      $as_echo_n " "




  $as_echo_n """Verbose Warnings (--enable-gcc-warnings)$PPRINT_COLOR_RST:                      "
  $as_echo "${PPRINT_COLOR_BLD}$pprint_msg$PPRINT_COLOR_RST"














test "x$enable_fatal_warnings" = "xyes" && value=1 || value=0




  test $value -eq 0 && pprint_msg="$PPRINT_NO_MSG" || pprint_msg="$PPRINT_YES_MSG"






















































      $as_echo_n " "

      $as_echo_n " "




  $as_echo_n """Warnings are fatal (--enable-fatal-warnings)$PPRINT_COLOR_RST:                  "
  $as_echo "${PPRINT_COLOR_BLD}$pprint_msg$PPRINT_COLOR_RST"














test "x$enable_rust" = "xyes" && value=1 || value=0




  test $value -eq 0 && pprint_msg="$PPRINT_NO_MSG" || pprint_msg="$PPRINT_YES_MSG"






















































































      $as_echo_n " "

      $as_echo_n " "




  $as_echo_n """Rust support (--enable-rust)$PPRINT_COLOR_RST:                                  "
  $as_echo "${PPRINT_COLOR_BLD}$pprint_msg$PPRINT_COLOR_RST"














test "x$enable_android" = "xyes" && value=1 || value=0




  test $value -eq 0 && pprint_msg="$PPRINT_NO_MSG" || pprint_msg="$PPRINT_YES_MSG"










































































      $as_echo_n " "

      $as_echo_n " "




  $as_echo_n """Android support (--enable-android)$PPRINT_COLOR_RST:                            "
  $as_echo "${PPRINT_COLOR_BLD}$pprint_msg$PPRINT_COLOR_RST"














test "x$enable_systemd" = "xyes" && value=1 || value=0




  test $value -eq 0 && pprint_msg="$PPRINT_NO_MSG" || pprint_msg="$PPRINT_YES_MSG"










































































      $as_echo_n " "

      $as_echo_n " "




  $as_echo_n """Systemd support (--enable-systemd)$PPRINT_COLOR_RST:                            "
  $as_echo "${PPRINT_COLOR_BLD}$pprint_msg$PPRINT_COLOR_RST"














$as_echo

  $as_echo "${PPRINT_COLOR_SUBTITLE}Static Build$PPRINT_COLOR_RST"


test "x$enable_static_tor" = "xyes" && value=1 || value=0




  test $value -eq 0 && pprint_msg="$PPRINT_NO_MSG" || pprint_msg="$PPRINT_YES_MSG"




























































































      $as_echo_n " "

      $as_echo_n " "




  $as_echo_n """tor (--enable-static-tor)$PPRINT_COLOR_RST:                                     "
  $as_echo "${PPRINT_COLOR_BLD}$pprint_msg$PPRINT_COLOR_RST"














if test "x$enable_static_libevent" = "xyes"; then




























































































































      $as_echo_n " "

      $as_echo_n " "




  $as_echo_n """libevent$PPRINT_COLOR_RST:                                                      "
  $as_echo "${PPRINT_COLOR_BLD}$TOR_LIBDIR_libevent$PPRINT_COLOR_RST"








else




  test $value -eq 0 && pprint_msg="$PPRINT_NO_MSG" || pprint_msg="$PPRINT_YES_MSG"








































































      $as_echo_n " "

      $as_echo_n " "




  $as_echo_n """libevent (--enable-static-libevent)$PPRINT_COLOR_RST:                           "
  $as_echo "${PPRINT_COLOR_BLD}$pprint_msg$PPRINT_COLOR_RST"













fi

if test "x$enable_static_openssl" = "xyes"; then
































































































































      $as_echo_n " "

      $as_echo_n " "




  $as_echo_n """libssl$PPRINT_COLOR_RST:                                                        "
  $as_echo "${PPRINT_COLOR_BLD}$TOR_LIBDIR_openssl$PPRINT_COLOR_RST"








else




  test $value -eq 0 && pprint_msg="$PPRINT_NO_MSG" || pprint_msg="$PPRINT_YES_MSG"














































































      $as_echo_n " "

      $as_echo_n " "




  $as_echo_n """libssl (--enable-static-openssl)$PPRINT_COLOR_RST:                              "
  $as_echo "${PPRINT_COLOR_BLD}$pprint_msg$PPRINT_COLOR_RST"













fi

if test "x$enable_static_zlib" = "xyes"; then
































































































































      $as_echo_n " "

      $as_echo_n " "




  $as_echo_n """zlib1g$PPRINT_COLOR_RST:                                                        "
  $as_echo "${PPRINT_COLOR_BLD}$TOR_LIBDIR_zlib$PPRINT_COLOR_RST"








else




  test $value -eq 0 && pprint_msg="$PPRINT_NO_MSG" || pprint_msg="$PPRINT_YES_MSG"




















































































      $as_echo_n " "

      $as_echo_n " "




  $as_echo_n """zlib1g (--enable-static-zlib)$PPRINT_COLOR_RST:                                 "
  $as_echo "${PPRINT_COLOR_BLD}$pprint_msg$PPRINT_COLOR_RST"













fi

$as_echo

  $as_echo "${PPRINT_COLOR_SUBTITLE}Optional Libraries$PPRINT_COLOR_RST"


test "x$enable_nss" = "xyes" && value=1 || value=0




  test $value -eq 0 && pprint_msg="$PPRINT_NO_MSG" || pprint_msg="$PPRINT_YES_MSG"




































































































      $as_echo_n " "

      $as_echo_n " "




  $as_echo_n """libnss (--enable-nss)$PPRINT_COLOR_RST:                                         "
  $as_echo "${PPRINT_COLOR_BLD}$pprint_msg$PPRINT_COLOR_RST"














test "x$enable_seccomp" != "xno" && value=1 || value=0




  test $value -eq 0 && pprint_msg="$PPRINT_NO_MSG" || pprint_msg="$PPRINT_YES_MSG"


















































































      $as_echo_n " "

      $as_echo_n " "




  $as_echo_n """libseccomp (--disable-seccomp)$PPRINT_COLOR_RST:                                "
  $as_echo "${PPRINT_COLOR_BLD}$pprint_msg$PPRINT_COLOR_RST"














test "x$enable_libscrypt" != "xno" && value=1 || value=0




  test $value -eq 0 && pprint_msg="$PPRINT_NO_MSG" || pprint_msg="$PPRINT_YES_MSG"
















































































      $as_echo_n " "

      $as_echo_n " "




  $as_echo_n """libscrypt (--disable-libscrypt)$PPRINT_COLOR_RST:                               "
  $as_echo "${PPRINT_COLOR_BLD}$pprint_msg$PPRINT_COLOR_RST"














$as_echo

  $as_echo "${PPRINT_COLOR_SUBTITLE}Hardening$PPRINT_COLOR_RST"


test "x$enable_gcc_hardening" != "xno" && value=1 || value=0




  test $value -eq 0 && pprint_msg="$PPRINT_NO_MSG" || pprint_msg="$PPRINT_YES_MSG"






















































      $as_echo_n " "

      $as_echo_n " "




  $as_echo_n """Compiler Hardening (--disable-gcc-hardening)$PPRINT_COLOR_RST:                  "
  $as_echo "${PPRINT_COLOR_BLD}$pprint_msg$PPRINT_COLOR_RST"














test "x$enable_linker_hardening" != "xno" && value=1 || value=0




  test $value -eq 0 && pprint_msg="$PPRINT_NO_MSG" || pprint_msg="$PPRINT_YES_MSG"




















































      $as_echo_n " "

      $as_echo_n " "




  $as_echo_n """Linker Hardening (--disable-linker-hardening)$PPRINT_COLOR_RST:                 "
  $as_echo "${PPRINT_COLOR_BLD}$pprint_msg$PPRINT_COLOR_RST"














test "x$enable_fragile_hardening" = "xyes" && value=1 || value=0




  test $value -eq 0 && pprint_msg="$PPRINT_NO_MSG" || pprint_msg="$PPRINT_YES_MSG"






























      $as_echo_n " "

      $as_echo_n " "




  $as_echo_n """Fragile Hardening (--enable-fragile-hardening, dev only)$PPRINT_COLOR_RST:      "
  $as_echo "${PPRINT_COLOR_BLD}$pprint_msg$PPRINT_COLOR_RST"














$as_echo

  $as_echo "${PPRINT_COLOR_SUBTITLE}Modules$PPRINT_COLOR_RST"


test "x$enable_module_dirauth" != "xno" && value=1 || value=0




  test $value -eq 0 && pprint_msg="$PPRINT_NO_MSG" || pprint_msg="$PPRINT_YES_MSG"


















































      $as_echo_n " "

      $as_echo_n " "




  $as_echo_n """Directory Authority (--disable-module-dirauth)$PPRINT_COLOR_RST:                "
  $as_echo "${PPRINT_COLOR_BLD}$pprint_msg$PPRINT_COLOR_RST"














test "x$enable_module_relay" != "xno" && value=1 || value=0




  test $value -eq 0 && pprint_msg="$PPRINT_NO_MSG" || pprint_msg="$PPRINT_YES_MSG"


















































































      $as_echo_n " "

      $as_echo_n " "




  $as_echo_n """Relay (--disable-module-relay)$PPRINT_COLOR_RST:                                "
  $as_echo "${PPRINT_COLOR_BLD}$pprint_msg$PPRINT_COLOR_RST"














$as_echo

  $as_echo "${PPRINT_COLOR_SUBTITLE}Documentation$PPRINT_COLOR_RST"


test "x$enable_manpage" != "xno" && value=1 || value=0




  test $value -eq 0 && pprint_msg="$PPRINT_NO_MSG" || pprint_msg="$PPRINT_YES_MSG"




















































































      $as_echo_n " "

      $as_echo_n " "




  $as_echo_n """Man Pages (--disable-manpage)$PPRINT_COLOR_RST:                                 "
  $as_echo "${PPRINT_COLOR_BLD}$pprint_msg$PPRINT_COLOR_RST"














test "x$enable_html_manual" != "xno" && value=1 || value=0




  test $value -eq 0 && pprint_msg="$PPRINT_NO_MSG" || pprint_msg="$PPRINT_YES_MSG"








































































      $as_echo_n " "

      $as_echo_n " "




  $as_echo_n """HTML Manual (--disable-html-manual)$PPRINT_COLOR_RST:                           "
  $as_echo "${PPRINT_COLOR_BLD}$pprint_msg$PPRINT_COLOR_RST"














$as_echo

  $as_echo "${PPRINT_COLOR_SUBTITLE}Tests$PPRINT_COLOR_RST"


test "x$enable_unittests" != "xno" && value=1 || value=0




  test $value -eq 0 && pprint_msg="$PPRINT_NO_MSG" || pprint_msg="$PPRINT_YES_MSG"














































































      $as_echo_n " "

      $as_echo_n " "




  $as_echo_n """Unit tests (--disable-unittests)$PPRINT_COLOR_RST:                              "
  $as_echo "${PPRINT_COLOR_BLD}$pprint_msg$PPRINT_COLOR_RST"














test "x$enable_asserts_in_tests" = "xno" && value=1 || value=0




  test $value -eq 0 && pprint_msg="$PPRINT_NO_MSG" || pprint_msg="$PPRINT_YES_MSG"




























      $as_echo_n " "

      $as_echo_n " "




  $as_echo_n """assert()s disabled (--disable-asserts-in-tests, dev only)$PPRINT_COLOR_RST:     "
  $as_echo "${PPRINT_COLOR_BLD}$pprint_msg$PPRINT_COLOR_RST"














test "x$enable_coverage" = "xyes" && value=1 || value=0




  test $value -eq 0 && pprint_msg="$PPRINT_NO_MSG" || pprint_msg="$PPRINT_YES_MSG"












































































      $as_echo_n " "

      $as_echo_n " "




  $as_echo_n """Code Coverage (--enable-coverage)$PPRINT_COLOR_RST:                             "
  $as_echo "${PPRINT_COLOR_BLD}$pprint_msg$PPRINT_COLOR_RST"














test "x$enable_libfuzzer" = "xyes" && value=1 || value=0




  test $value -eq 0 && pprint_msg="$PPRINT_NO_MSG" || pprint_msg="$PPRINT_YES_MSG"


































































      $as_echo_n " "

      $as_echo_n " "




  $as_echo_n """libFuzzer support (--enable-libfuzzer)$PPRINT_COLOR_RST:                        "
  $as_echo "${PPRINT_COLOR_BLD}$pprint_msg$PPRINT_COLOR_RST"














test "x$enable_oss_fuzz" = "xyes" && value=1 || value=0




  test $value -eq 0 && pprint_msg="$PPRINT_NO_MSG" || pprint_msg="$PPRINT_YES_MSG"






































































      $as_echo_n " "

      $as_echo_n " "




  $as_echo_n """OSS-Fuzz support (--enable-oss-fuzz)$PPRINT_COLOR_RST:                          "
  $as_echo "${PPRINT_COLOR_BLD}$pprint_msg$PPRINT_COLOR_RST"














$as_echo

  $as_echo "${PPRINT_COLOR_SUBTITLE}Install Directories$PPRINT_COLOR_RST"


report_mandir="`eval eval echo $mandir`"




























































































































      $as_echo_n " "

      $as_echo_n " "




  $as_echo_n """Binaries$PPRINT_COLOR_RST:                                                      "
  $as_echo "${PPRINT_COLOR_BLD}$BINDIR$PPRINT_COLOR_RST"


























































































































      $as_echo_n " "

      $as_echo_n " "




  $as_echo_n """Configuration$PPRINT_COLOR_RST:                                                 "
  $as_echo "${PPRINT_COLOR_BLD}$CONFDIR$PPRINT_COLOR_RST"


































































































































      $as_echo_n " "

      $as_echo_n " "




  $as_echo_n """Man Pages$PPRINT_COLOR_RST:                                                     "
  $as_echo "${PPRINT_COLOR_BLD}$report_mandir$PPRINT_COLOR_RST"









$as_echo
$as_echo "Configure Line: ./configure $configure_flags"
