#! /bin/sh
# Guess values for system-dependent variables and create Makefiles.
# Generated by GNU Autoconf 2.72 for tor 0.4.9.3-alpha-dev.
#
#
# Copyright (C) 1992-1996, 1998-2017, 2020-2023 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 ${ZSH_VERSION+y} && (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 e in #(
  e) case `(set -o) 2>/dev/null` in #(
  *posix*) :
    set -o posix ;; #(
  *) :
     ;;
esac ;;
esac
fi



# Reset variables that may have inherited troublesome values from
# the environment.

# IFS needs to be set, to space, tab, and newline, in precisely that order.
# (If _AS_PATH_WALK were called with IFS unset, it would have the
# side effect of setting IFS to empty, thus disabling word splitting.)
# Quoting is to prevent editors from complaining about space-tab.
as_nl='
'
export as_nl
IFS=" ""	$as_nl"

PS1='$ '
PS2='> '
PS4='+ '

# Ensure predictable behavior from utilities with locale-dependent output.
LC_ALL=C
export LC_ALL
LANGUAGE=C
export LANGUAGE

# We cannot yet rely on "unset" to work, but we need these variables
# to be unset--not just set to an empty or harmless value--now, to
# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh).  This construct
# also avoids known problems related to "unset" and subshell syntax
# in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
do eval test \${$as_var+y} \
  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
done

# Ensure that fds 0, 1, and 2 are open.
if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
if (exec 3>&2)            ; then :; else exec 2>/dev/null; fi

# The user is always right.
if ${PATH_SEPARATOR+false} :; 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


# 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
  case $as_dir in #(((
    '') as_dir=./ ;;
    */) ;;
    *) as_dir=$as_dir/ ;;
  esac
    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
  printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  exit 1
fi


# 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'.
printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
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 \${ZSH_VERSION+y} && (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 e in #(
  e) case \`(set -o) 2>/dev/null\` in #(
  *posix*) :
    set -o posix ;; #(
  *) :
     ;;
esac ;;
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 case e in #(
  e) exitcode=1; echo positional parameters were not saved. ;;
esac
fi
test x\$exitcode = x0 || exit 1
blah=\$(echo \$(echo blah))
test x\"\$blah\" = xblah || 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 case e in #(
  e) as_have_required=no ;;
esac
fi
  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
then :

else case e in #(
  e) 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
  case $as_dir in #(((
    '') as_dir=./ ;;
    */) ;;
    *) as_dir=$as_dir/ ;;
  esac
  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_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
then :
  CONFIG_SHELL=$as_shell as_have_required=yes
		   if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
then :
  break 2
fi
fi
	   done;;
       esac
  as_found=false
done
IFS=$as_save_IFS
if $as_found
then :

else case e in #(
  e) if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
	      as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
then :
  CONFIG_SHELL=$SHELL as_have_required=yes
fi ;;
esac
fi


      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'.
printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
exit 255
fi

    if test x$as_have_required = xno
then :
  printf "%s\n" "$0: This script requires a shell more modern than all"
  printf "%s\n" "$0: the shells that I found on your system."
  if test ${ZSH_VERSION+y} ; then
    printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
    printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
  else
    printf "%s\n" "$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 ;;
esac
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=`printf "%s\n" "$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 ||
printf "%s\n" 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 case e in #(
  e) as_fn_append ()
  {
    eval $1=\$$1\$2
  } ;;
esac
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 case e in #(
  e) as_fn_arith ()
  {
    as_val=`expr "$@" || test $? -eq 1`
  } ;;
esac
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
    printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  fi
  printf "%s\n" "$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 ||
printf "%s\n" 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 '
      t clear
      :clear
      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" ||
    { printf "%s\n" "$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
}


# Determine whether it's possible to make 'echo' print without a newline.
# These variables are no longer used directly by Autoconf, but are AC_SUBSTed
# for compatibility with existing Makefiles.
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

# For backward compatibility with old third-party macros, we provide
# the shell variables $as_echo and $as_echo_n.  New code should use
# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
as_echo='printf %s\n'
as_echo_n='printf %s'

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_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated

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


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.9.3-alpha-dev'
PACKAGE_STRING='tor 0.4.9.3-alpha-dev'
PACKAGE_BUGREPORT=''
PACKAGE_URL=''

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

ac_header_c_list=
enable_year2038=no
ac_subst_vars='pprint_tput
am__EXEEXT_FALSE
am__EXEEXT_TRUE
LTLIBOBJS
LIBOBJS
HASHX_SIZE
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
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_SHLWAPI
TOR_LIB_CRYPT32
TOR_LIB_BCRYPT
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
BUILD_LIBTORRUNNER_FALSE
BUILD_LIBTORRUNNER_TRUE
BUILD_NT_SERVICES_FALSE
BUILD_NT_SERVICES_TRUE
WIN32_FALSE
WIN32_TRUE
TORGROUP
TORUSER
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
CPP
ac_ct_AR
AR
TOR_MODULES_ALL_ENABLED
BUILD_MODULE_POW_FALSE
BUILD_MODULE_POW_TRUE
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
TOR_TRACE_LIBS
USE_TRACING_FALSE
USE_TRACING_TRUE
USE_TRACING_INSTRUMENTATION_LOG_DEBUG_FALSE
USE_TRACING_INSTRUMENTATION_LOG_DEBUG_TRUE
USE_TRACING_INSTRUMENTATION_USDT_FALSE
USE_TRACING_INSTRUMENTATION_USDT_TRUE
USE_TRACING_INSTRUMENTATION_LTTNG_FALSE
USE_TRACING_INSTRUMENTATION_LTTNG_TRUE
TOR_SYSTEMD_LIBS
TOR_SYSTEMD_CFLAGS
LIBSYSTEMD209_LIBS
LIBSYSTEMD209_CFLAGS
SYSTEMD_LIBS
SYSTEMD_CFLAGS
TOR_STATIC_LDFLAGS
USE_OPENSSL_FALSE
USE_OPENSSL_TRUE
USE_NSS_FALSE
USE_NSS_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
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__xargs_n
am__rm_f_notfound
AM_BACKSLASH
AM_DEFAULT_VERBOSITY
AM_DEFAULT_V
AM_V
CSCOPE
ETAGS
CTAGS
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
runstatedir
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_gpl
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_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_all_bugs_are_fatal
enable_linker_hardening
enable_local_appdata
enable_tool_name_check
enable_seccomp
enable_libscrypt
enable_tracing_instrumentation_lttng
enable_tracing_instrumentation_usdt
enable_tracing_instrumentation_log_debug
enable_android
enable_module_relay
enable_module_dirauth
enable_module_pow
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
enable_year2038
'
      ac_precious_vars='build_alias
host_alias
target_alias
CC
CFLAGS
LDFLAGS
LIBS
CPPFLAGS
PKG_CONFIG
PKG_CONFIG_PATH
PKG_CONFIG_LIBDIR
SYSTEMD_CFLAGS
SYSTEMD_LIBS
LIBSYSTEMD209_CFLAGS
LIBSYSTEMD209_LIBS
CPP
PERL
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'
runstatedir='${localstatedir}/run'
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

  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=`printf "%s\n" "$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=`printf "%s\n" "$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 ;;

  -runstatedir | --runstatedir | --runstatedi | --runstated \
  | --runstate | --runstat | --runsta | --runst | --runs \
  | --run | --ru | --r)
    ac_prev=runstatedir ;;
  -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
  | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
  | --run=* | --ru=* | --r=*)
    runstatedir=$ac_optarg ;;

  -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=`printf "%s\n" "$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=`printf "%s\n" "$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.
    printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
      printf "%s\n" "$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" ;;
    *)     printf "%s\n" "$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 runstatedir
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 ||
printf "%s\n" 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.9.3-alpha-dev 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]
  --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
  --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.9.3-alpha-dev:";;
   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-gpl            allow the inclusion of GPL-licensed code, building a
                          version of tor and libtor covered by the GPL rather
                          than its usual 3-clause BSD license
  --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-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
  --enable-all-bugs-are-fatal
                          force all soft asserts in Tor codebase
                          (tor_assert_nonfatal(), BUG(), etc.) to act as hard
                          asserts (tor_assert() and equivalents); makes Tor
                          fragile; only recommended for dev builds
  --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-tracing-instrumentation-lttng
                          build with LTTng-UST instrumentation
  --enable-tracing-instrumentation-usdt
                          build with tracing USDT instrumentation
  --enable-tracing-instrumentation-log-debug
                          build with tracing event 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
  --disable-module-pow    Build tor without proof-of-work denial of service
                          mitigation, normally available when building with
                          --enable-gpl
  --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
  --enable-year2038       support timestamps after 2038

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>
  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
  CPP         C preprocessor
  PERL        path to Perl binary
  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=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
  # A ".." for each directory in $ac_dir_suffix.
  ac_top_builddir_sub=`printf "%s\n" "$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 configure.gnu first; this name is used for a wrapper for
    # Metaconfig's "Configure" on case-insensitive file systems.
    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
      printf "%s\n" "$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.9.3-alpha-dev
generated by GNU Autoconf 2.72

Copyright (C) 2023 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 conftest.beam
  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\""
printf "%s\n" "$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
  printf "%s\n" "$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 case e in #(
  e) printf "%s\n" "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_retval=1 ;;
esac
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_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
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
printf %s "checking for $2... " >&6; }
if eval test \${$3+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e) 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 case e in #(
  e) eval "$3=no" ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
esac
fi
eval ac_res=\$$3
	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
printf "%s\n" "$ac_res" >&6; }
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno

} # ac_fn_c_check_header_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\""
printf "%s\n" "$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
  printf "%s\n" "$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 case e in #(
  e) printf "%s\n" "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

    ac_retval=1 ;;
esac
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_try_run LINENO
# ----------------------
# Try to run 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\""
printf "%s\n" "$ac_try_echo"; } >&5
  (eval "$ac_link") 2>&5
  ac_status=$?
  printf "%s\n" "$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\""
printf "%s\n" "$ac_try_echo"; } >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }; }
then :
  ac_retval=0
else case e in #(
  e) printf "%s\n" "$as_me: program exited with status $ac_status" >&5
       printf "%s\n" "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

       ac_retval=$ac_status ;;
esac
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_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 (void)
{
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 (void)
{
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 case e in #(
  e) 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 ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  done
else case e in #(
  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
$4
int
main (void)
{
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 (void)
{
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 case e in #(
  e) 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 ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  done
else case e in #(
  e) ac_lo= ac_hi= ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam 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 (void)
{
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 case e in #(
  e) as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam 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 (void) { return $2; }
static unsigned long int ulongval (void) { return $2; }
#include <stdio.h>
#include <stdlib.h>
int
main (void)
{

  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 case e in #(
  e) ac_retval=1 ;;
esac
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_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.beam 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\""
printf "%s\n" "$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
  printf "%s\n" "$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 case e in #(
  e) printf "%s\n" "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

	ac_retval=1 ;;
esac
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
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
printf %s "checking for $2... " >&6; }
if eval test \${$3+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e) 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 (void); below.  */

#include <limits.h>
#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 (void);
/* 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 (void)
{
return $2 ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  eval "$3=yes"
else case e in #(
  e) eval "$3=no" ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext ;;
esac
fi
eval ac_res=\$$3
	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
printf "%s\n" "$ac_res" >&6; }
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno

} # ac_fn_c_check_func

# ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
# ------------------------------------------------------------------
# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
# accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
ac_fn_check_decl ()
{
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  as_decl_name=`echo $2|sed 's/ *(.*//'`
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
printf %s "checking whether $as_decl_name is declared... " >&6; }
if eval test \${$3+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e) as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
  eval ac_save_FLAGS=\$$6
  as_fn_append $6 " $5"
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
$4
int
main (void)
{
#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 case e in #(
  e) eval "$3=no" ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  eval $6=\$ac_save_FLAGS
 ;;
esac
fi
eval ac_res=\$$3
	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
printf "%s\n" "$ac_res" >&6; }
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno

} # ac_fn_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
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
printf %s "checking for $2.$3... " >&6; }
if eval test \${$4+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
$5
int
main (void)
{
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 case e in #(
  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
$5
int
main (void)
{
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 case e in #(
  e) eval "$4=no" ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
esac
fi
eval ac_res=\$$4
	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
printf "%s\n" "$ac_res" >&6; }
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno

} # ac_fn_c_check_member

# 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
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
printf %s "checking for $2... " >&6; }
if eval test \${$3+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e) eval "$3=no"
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
$4
int
main (void)
{
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 (void)
{
if (sizeof (($2)))
	    return 0;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :

else case e in #(
  e) eval "$3=yes" ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
esac
fi
eval ac_res=\$$3
	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
printf "%s\n" "$ac_res" >&6; }
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno

} # ac_fn_c_check_type
ac_configure_args_raw=
for ac_arg
do
  case $ac_arg in
  *\'*)
    ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  esac
  as_fn_append ac_configure_args_raw " '$ac_arg'"
done

case $ac_configure_args_raw in
  *$as_nl*)
    ac_safe_unquote= ;;
  *)
    ac_unsafe_z='|&;<>()$`\\"*?[ ''	' # This string ends in space, tab.
    ac_unsafe_a="$ac_unsafe_z#~"
    ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
    ac_configure_args_raw=`      printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
esac

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.9.3-alpha-dev, which was
generated by GNU Autoconf 2.72.  Invocation command line was

  $ $0$ac_configure_args_raw

_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
  case $as_dir in #(((
    '') as_dir=./ ;;
    */) ;;
    *) as_dir=$as_dir/ ;;
  esac
    printf "%s\n" "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=`printf "%s\n" "$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=$?
  # Sanitize IFS.
  IFS=" ""	$as_nl"
  # Save into config.log some information that might help in debugging.
  {
    echo

    printf "%s\n" "## ---------------- ##
## 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_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
printf "%s\n" "$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

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

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

    if test -s confdefs.h; then
      printf "%s\n" "## ----------- ##
## confdefs.h. ##
## ----------- ##"
      echo
      cat confdefs.h
      echo
    fi
    test "$ac_signal" != 0 &&
      printf "%s\n" "$as_me: caught signal $ac_signal"
    printf "%s\n" "$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

printf "%s\n" "/* confdefs.h */" > confdefs.h

# Predefined preprocessor variables.

printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h

printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h

printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h

printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h

printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h

printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h


# Let the site file select an alternate cache file if it wants to.
# Prefer an explicitly selected file to automatically selected ones.
if test -n "$CONFIG_SITE"; then
  ac_site_files="$CONFIG_SITE"
elif test "x$prefix" != xNONE; then
  ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
else
  ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
fi

for ac_site_file in $ac_site_files
do
  case $ac_site_file in #(
  */*) :
     ;; #(
  *) :
    ac_site_file=./$ac_site_file ;;
esac
  if test -f "$ac_site_file" && test -r "$ac_site_file"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
    sed 's/^/| /' "$ac_site_file" >&5
    . "$ac_site_file" \
      || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
printf "%s\n" "$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
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
    case $cache_file in
      [\\/]* | ?:[\\/]* ) . "$cache_file";;
      *)                      . "./$cache_file";;
    esac
  fi
else
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
  >$cache_file
fi

as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
# Test code for whether the C compiler supports C89 (global declarations)
ac_c_conftest_c89_globals='
/* Does the compiler advertise C89 conformance?
   Do not test the value of __STDC__, because some compilers set it to 0
   while being otherwise adequately conformant. */
#if !defined __STDC__
# error "Compiler does not advertise C89 conformance"
#endif

#include <stddef.h>
#include <stdarg.h>
struct stat;
/* Most of the following tests are stolen from RCS 5.7 src/conf.sh.  */
struct buf { int x; };
struct buf * (*rcsopen) (struct buf *, struct stat *, int);
static char *e (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;
}

/* C89 style stringification. */
#define noexpand_stringify(a) #a
const char *stringified = noexpand_stringify(arbitrary+token=sequence);

/* C89 style token pasting.  Exercises some of the corner cases that
   e.g. old MSVC gets wrong, but not very hard. */
#define noexpand_concat(a,b) a##b
#define expand_concat(a,b) noexpand_concat(a,b)
extern int vA;
extern int vbee;
#define aye A
#define bee B
int *pvA = &expand_concat(v,aye);
int *pvbee = &noexpand_concat(v,bee);

/* 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 do not provoke an error unfortunately, instead are silently treated
   as an "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 is necessary to write \x00 == 0 to get something
   that is 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 **, int *(*)(struct buf *, struct stat *, int),
               int, int);'

# Test code for whether the C compiler supports C89 (body of main).
ac_c_conftest_c89_main='
ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
'

# Test code for whether the C compiler supports C99 (global declarations)
ac_c_conftest_c99_globals='
/* Does the compiler advertise C99 conformance? */
#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
# error "Compiler does not advertise C99 conformance"
#endif

// See if C++-style comments work.

#include <stdbool.h>
extern int puts (const char *);
extern int printf (const char *, ...);
extern int dprintf (int, const char *, ...);
extern void *malloc (size_t);
extern void free (void *);

// Check varargs macros.  These examples are taken from C99 6.10.3.5.
// dprintf is used instead of fprintf to avoid needing to declare
// FILE and stderr.
#define debug(...) dprintf (2, __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
  #error "your preprocessor is broken"
#endif
#if BIG_OK
#else
  #error "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)
{
  // 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 bool
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 = 0;
  float fnumber = 0;

  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);

  return *str && number && fnumber;
}
'

# Test code for whether the C compiler supports C99 (body of main).
ac_c_conftest_c99_main='
  // Check bool.
  _Bool success = false;
  success |= (argc != 0);

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

  // Check varargs.
  success &= 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;
  // Work around memory leak warnings.
  free (ia);

  // 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[0] = argv[0][0];
  dynamic_array[ni.number - 1] = 543;

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

# Test code for whether the C compiler supports C11 (global declarations)
ac_c_conftest_c11_globals='
/* Does the compiler advertise C11 conformance? */
#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
# error "Compiler does not advertise C11 conformance"
#endif

// Check _Alignas.
char _Alignas (double) aligned_as_double;
char _Alignas (0) no_special_alignment;
extern char aligned_as_int;
char _Alignas (0) _Alignas (int) aligned_as_int;

// Check _Alignof.
enum
{
  int_alignment = _Alignof (int),
  int_array_alignment = _Alignof (int[100]),
  char_alignment = _Alignof (char)
};
_Static_assert (0 < -_Alignof (int), "_Alignof is signed");

// Check _Noreturn.
int _Noreturn does_not_return (void) { for (;;) continue; }

// Check _Static_assert.
struct test_static_assert
{
  int x;
  _Static_assert (sizeof (int) <= sizeof (long int),
                  "_Static_assert does not work in struct");
  long int y;
};

// Check UTF-8 literals.
#define u8 syntax error!
char const utf8_literal[] = u8"happens to be ASCII" "another string";

// Check duplicate typedefs.
typedef long *long_ptr;
typedef long int *long_ptr;
typedef long_ptr long_ptr;

// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
struct anonymous
{
  union {
    struct { int i; int j; };
    struct { int k; long int l; } w;
  };
  int m;
} v1;
'

# Test code for whether the C compiler supports C11 (body of main).
ac_c_conftest_c11_main='
  _Static_assert ((offsetof (struct anonymous, i)
		   == offsetof (struct anonymous, w.k)),
		  "Anonymous union alignment botch");
  v1.i = 2;
  v1.w.k = 5;
  ok |= v1.i != 5;
'

# Test code for whether the C compiler supports C11 (complete).
ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
${ac_c_conftest_c99_globals}
${ac_c_conftest_c11_globals}

int
main (int argc, char **argv)
{
  int ok = 0;
  ${ac_c_conftest_c89_main}
  ${ac_c_conftest_c99_main}
  ${ac_c_conftest_c11_main}
  return ok;
}
"

# Test code for whether the C compiler supports C99 (complete).
ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
${ac_c_conftest_c99_globals}

int
main (int argc, char **argv)
{
  int ok = 0;
  ${ac_c_conftest_c89_main}
  ${ac_c_conftest_c99_main}
  return ok;
}
"

# Test code for whether the C compiler supports C89 (complete).
ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}

int
main (int argc, char **argv)
{
  int ok = 0;
  ${ac_c_conftest_c89_main}
  return ok;
}
"

as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H"
as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H"

# Auxiliary files required by this configure script.
ac_aux_files="ar-lib config.guess config.sub compile missing install-sh"

# Locations in which to look for auxiliary files.
ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."

# Search for a directory containing all of the required auxiliary files,
# $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
# If we don't find one directory that contains all the files we need,
# we report the set of missing files from the *first* directory in
# $ac_aux_dir_candidates and give up.
ac_missing_aux_files=""
ac_first_candidate=:
printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
as_found=false
for as_dir in $ac_aux_dir_candidates
do
  IFS=$as_save_IFS
  case $as_dir in #(((
    '') as_dir=./ ;;
    */) ;;
    *) as_dir=$as_dir/ ;;
  esac
  as_found=:

  printf "%s\n" "$as_me:${as_lineno-$LINENO}:  trying $as_dir" >&5
  ac_aux_dir_found=yes
  ac_install_sh=
  for ac_aux in $ac_aux_files
  do
    # As a special case, if "install-sh" is required, that requirement
    # can be satisfied by any of "install-sh", "install.sh", or "shtool",
    # and $ac_install_sh is set appropriately for whichever one is found.
    if test x"$ac_aux" = x"install-sh"
    then
      if test -f "${as_dir}install-sh"; then
        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install-sh found" >&5
        ac_install_sh="${as_dir}install-sh -c"
      elif test -f "${as_dir}install.sh"; then
        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install.sh found" >&5
        ac_install_sh="${as_dir}install.sh -c"
      elif test -f "${as_dir}shtool"; then
        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}shtool found" >&5
        ac_install_sh="${as_dir}shtool install -c"
      else
        ac_aux_dir_found=no
        if $ac_first_candidate; then
          ac_missing_aux_files="${ac_missing_aux_files} install-sh"
        else
          break
        fi
      fi
    else
      if test -f "${as_dir}${ac_aux}"; then
        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}${ac_aux} found" >&5
      else
        ac_aux_dir_found=no
        if $ac_first_candidate; then
          ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
        else
          break
        fi
      fi
    fi
  done
  if test "$ac_aux_dir_found" = yes; then
    ac_aux_dir="$as_dir"
    break
  fi
  ac_first_candidate=false

  as_found=false
done
IFS=$as_save_IFS
if $as_found
then :

else case e in #(
  e) as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 ;;
esac
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.
if test -f "${ac_aux_dir}config.guess"; then
  ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
fi
if test -f "${ac_aux_dir}config.sub"; then
  ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
fi
if test -f "$ac_aux_dir/configure"; then
  ac_configure="$SHELL ${ac_aux_dir}configure"
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,)
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&5
printf "%s\n" "$as_me: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&2;}
      ac_cache_corrupted=: ;;
    ,set)
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was not set in the previous run" >&5
printf "%s\n" "$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
	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' has changed since the previous run:" >&5
printf "%s\n" "$as_me: error: '$ac_var' has changed since the previous run:" >&2;}
	  ac_cache_corrupted=:
	else
	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&5
printf "%s\n" "$as_me: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&2;}
	  eval $ac_var=\$ac_old_val
	fi
	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}:   former value:  '$ac_old_val'" >&5
printf "%s\n" "$as_me:   former value:  '$ac_old_val'" >&2;}
	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}:   current value: '$ac_new_val'" >&5
printf "%s\n" "$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=`printf "%s\n" "$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
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
  as_fn_error $? "run '${MAKE-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="$*"

printf "%s\n" "#define CONFIG_FLAGS \"$configure_flags\"" >>confdefs.h



# 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.

printf "%s\n" "#define APPROX_RELEASE_DATE \"2025-09-16\"" >>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.17'



  # 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.
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
printf %s "checking for a BSD-compatible install... " >&6; }
if test -z "$INSTALL"; then
if test ${ac_cv_path_install+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  case $as_dir in #(((
    '') as_dir=./ ;;
    */) ;;
    *) as_dir=$as_dir/ ;;
  esac
    # Account for fact that we put trailing slashes in our PATH walk.
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
 ;;
esac
fi
  if test ${ac_cv_path_install+y}; 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
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
printf "%s\n" "$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'

{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether sleep supports fractional seconds" >&5
printf %s "checking whether sleep supports fractional seconds... " >&6; }
if test ${am_cv_sleep_fractional_seconds+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e) if sleep 0.001 2>/dev/null
then :
  am_cv_sleep_fractional_seconds=yes
else case e in #(
  e) am_cv_sleep_fractional_seconds=no ;;
esac
fi
 ;;
esac
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_sleep_fractional_seconds" >&5
printf "%s\n" "$am_cv_sleep_fractional_seconds" >&6; }

{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking filesystem timestamp resolution" >&5
printf %s "checking filesystem timestamp resolution... " >&6; }
if test ${am_cv_filesystem_timestamp_resolution+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e) # Default to the worst case.
am_cv_filesystem_timestamp_resolution=2

# Only try to go finer than 1 sec if sleep can do it.
# Don't try 1 sec, because if 0.01 sec and 0.1 sec don't work,
# - 1 sec is not much of a win compared to 2 sec, and
# - it takes 2 seconds to perform the test whether 1 sec works.
#
# Instead, just use the default 2s on platforms that have 1s resolution,
# accept the extra 1s delay when using $sleep in the Automake tests, in
# exchange for not incurring the 2s delay for running the test for all
# packages.
#
am_try_resolutions=
if test "$am_cv_sleep_fractional_seconds" = yes; then
  # Even a millisecond often causes a bunch of false positives,
  # so just try a hundredth of a second. The time saved between .001 and
  # .01 is not terribly consequential.
  am_try_resolutions="0.01 0.1 $am_try_resolutions"
fi

# In order to catch current-generation FAT out, we must *modify* files
# that already exist; the *creation* timestamp is finer.  Use names
# that make ls -t sort them differently when they have equal
# timestamps than when they have distinct timestamps, keeping
# in mind that ls -t prints the *newest* file first.
rm -f conftest.ts?
: > conftest.ts1
: > conftest.ts2
: > conftest.ts3

# Make sure ls -t actually works.  Do 'set' in a subshell so we don't
# clobber the current shell's arguments. (Outer-level square brackets
# are removed by m4; they're present so that m4 does not expand
# <dollar><star>; be careful, easy to get confused.)
if (
     set X `ls -t conftest.ts[12]` &&
     {
       test "$*" != "X conftest.ts1 conftest.ts2" ||
       test "$*" != "X conftest.ts2 conftest.ts1";
     }
); then :; else
  # 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".
  printf "%s\n" ""Bad output from ls -t: \"`ls -t conftest.ts[12]`\""" >&5
  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
as_fn_error $? "ls -t produces unexpected output.
Make sure there is not a broken ls alias in your environment.
See 'config.log' for more details" "$LINENO" 5; }
fi

for am_try_res in $am_try_resolutions; do
  # Any one fine-grained sleep might happen to cross the boundary
  # between two values of a coarser actual resolution, but if we do
  # two fine-grained sleeps in a row, at least one of them will fall
  # entirely within a coarse interval.
  echo alpha > conftest.ts1
  sleep $am_try_res
  echo beta > conftest.ts2
  sleep $am_try_res
  echo gamma > conftest.ts3

  # We assume that 'ls -t' will make use of high-resolution
  # timestamps if the operating system supports them at all.
  if (set X `ls -t conftest.ts?` &&
      test "$2" = conftest.ts3 &&
      test "$3" = conftest.ts2 &&
      test "$4" = conftest.ts1); then
    #
    # Ok, ls -t worked. If we're at a resolution of 1 second, we're done,
    # because we don't need to test make.
    make_ok=true
    if test $am_try_res != 1; then
      # But if we've succeeded so far with a subsecond resolution, we
      # have one more thing to check: make. It can happen that
      # everything else supports the subsecond mtimes, but make doesn't;
      # notably on macOS, which ships make 3.81 from 2006 (the last one
      # released under GPLv2). https://bugs.gnu.org/68808
      #
      # We test $MAKE if it is defined in the environment, else "make".
      # It might get overridden later, but our hope is that in practice
      # it does not matter: it is the system "make" which is (by far)
      # the most likely to be broken, whereas if the user overrides it,
      # probably they did so with a better, or at least not worse, make.
      # https://lists.gnu.org/archive/html/automake/2024-06/msg00051.html
      #
      # Create a Makefile (real tab character here):
      rm -f conftest.mk
      echo 'conftest.ts1: conftest.ts2' >conftest.mk
      echo '	touch conftest.ts2' >>conftest.mk
      #
      # Now, running
      #   touch conftest.ts1; touch conftest.ts2; make
      # should touch ts1 because ts2 is newer. This could happen by luck,
      # but most often, it will fail if make's support is insufficient. So
      # test for several consecutive successes.
      #
      # (We reuse conftest.ts[12] because we still want to modify existing
      # files, not create new ones, per above.)
      n=0
      make=${MAKE-make}
      until test $n -eq 3; do
        echo one > conftest.ts1
        sleep $am_try_res
        echo two > conftest.ts2 # ts2 should now be newer than ts1
        if $make -f conftest.mk | grep 'up to date' >/dev/null; then
          make_ok=false
          break # out of $n loop
        fi
        n=`expr $n + 1`
      done
    fi
    #
    if $make_ok; then
      # Everything we know to check worked out, so call this resolution good.
      am_cv_filesystem_timestamp_resolution=$am_try_res
      break # out of $am_try_res loop
    fi
    # Otherwise, we'll go on to check the next resolution.
  fi
done
rm -f conftest.ts?
# (end _am_filesystem_timestamp_resolution)
 ;;
esac
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_filesystem_timestamp_resolution" >&5
printf "%s\n" "$am_cv_filesystem_timestamp_resolution" >&6; }

# This check should not be cached, as it may vary across builds of
# different projects.
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
printf %s "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).
am_build_env_is_sane=no
am_has_slept=no
rm -f conftest.file
for am_try in 1 2; do
  echo "timestamp, slept: $am_has_slept" > conftest.file
  if (
    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
    test "$2" = conftest.file
  ); then
    am_build_env_is_sane=yes
    break
  fi
  # Just in case.
  sleep "$am_cv_filesystem_timestamp_resolution"
  am_has_slept=yes
done

{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_build_env_is_sane" >&5
printf "%s\n" "$am_build_env_is_sane" >&6; }
if test "$am_build_env_is_sane" = no; then
  as_fn_error $? "newly created file is older than distributed files!
Check your system clock" "$LINENO" 5
fi

# 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 test -e conftest.file || grep 'slept: no' conftest.file >/dev/null 2>&1
then :

else case e in #(
  e)   ( sleep "$am_cv_filesystem_timestamp_resolution" ) &
  am_sleep_pid=$!
 ;;
esac
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=`printf "%s\n" "$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
  MISSING="\${SHELL} '$am_aux_dir/missing'"
fi
# Use eval to expand $SHELL
if eval "$MISSING --is-lightweight"; then
  am_missing_run="$MISSING "
else
  am_missing_run=
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
printf "%s\n" "$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
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
printf %s "checking for $ac_word... " >&6; }
if test ${ac_cv_prog_STRIP+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e) 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
  case $as_dir in #(((
    '') as_dir=./ ;;
    */) ;;
    *) as_dir=$as_dir/ ;;
  esac
    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"
    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi ;;
esac
fi
STRIP=$ac_cv_prog_STRIP
if test -n "$STRIP"; then
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
printf "%s\n" "$STRIP" >&6; }
else
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "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
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
printf %s "checking for $ac_word... " >&6; }
if test ${ac_cv_prog_ac_ct_STRIP+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e) 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
  case $as_dir in #(((
    '') as_dir=./ ;;
    */) ;;
    *) as_dir=$as_dir/ ;;
  esac
    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"
    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

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

  if test "x$ac_ct_STRIP" = x; then
    STRIP=":"
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
printf "%s\n" "$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"


  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
printf %s "checking for a race-free mkdir -p... " >&6; }
if test -z "$MKDIR_P"; then
  if test ${ac_cv_path_mkdir+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
do
  IFS=$as_save_IFS
  case $as_dir in #(((
    '') as_dir=./ ;;
    */) ;;
    *) as_dir=$as_dir/ ;;
  esac
    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 ('*'coreutils) '* | \
	     *'BusyBox '* | \
	     '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
 ;;
esac
fi

  test -d ./--version && rmdir ./--version
  if test ${ac_cv_path_mkdir+y}; then
    MKDIR_P="$ac_cv_path_mkdir -p"
  else
    # As a last resort, use plain mkdir -p,
    # in the hope it doesn't have the bugs of ancient mkdir.
    MKDIR_P='mkdir -p'
  fi
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
printf "%s\n" "$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
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
printf %s "checking for $ac_word... " >&6; }
if test ${ac_cv_prog_AWK+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e) 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
  case $as_dir in #(((
    '') as_dir=./ ;;
    */) ;;
    *) as_dir=$as_dir/ ;;
  esac
    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"
    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

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


  test -n "$AWK" && break
done

{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
set x ${MAKE-make}
ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
if eval test \${ac_cv_prog_make_${ac_make}_set+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e) 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 ;;
esac
fi
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }
  SET_MAKE=
else
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "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

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

am_make=${MAKE-make}
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
printf %s "checking whether $am_make supports nested variables... " >&6; }
if test ${am_cv_make_support_nested_variables+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e) if printf "%s\n" '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 ;;
esac
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
AM_BACKSLASH='\'

am__rm_f_notfound=
if (rm -f && rm -fr && rm -rf) 2>/dev/null
then :

else case e in #(
  e) am__rm_f_notfound='""' ;;
esac
fi


{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking xargs -n works" >&5
printf %s "checking xargs -n works... " >&6; }
if test ${am_cv_xargs_n_works+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e) if test "`echo 1 2 3 | xargs -n2 echo`" = "1 2
3"
then :
  am_cv_xargs_n_works=yes
else case e in #(
  e) am_cv_xargs_n_works=no ;;
esac
fi ;;
esac
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_xargs_n_works" >&5
printf "%s\n" "$am_cv_xargs_n_works" >&6; }
if test "$am_cv_xargs_n_works" = yes
then :
  am__xargs_n='xargs -n'
else case e in #(
  e)   am__xargs_n='am__xargs_n () { shift; sed "s/ /\\n/g" | while read am__xargs_n_arg; do "" "$am__xargs_n_arg"; done; }'
 ;;
esac
fi

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.9.3-alpha-dev'


printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h


printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h

# 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 -'





# Variables for tags utilities; see am/tags.am
if test -z "$CTAGS"; then
  CTAGS=ctags
fi

if test -z "$ETAGS"; then
  ETAGS=etags
fi

if test -z "$CSCOPE"; then
  CSCOPE=cscope
fi








tor_ac_n_warnings=0
tor_incr_n_warnings() {
  tor_ac_n_warnings=`expr $tor_ac_n_warnings + 1`
}


AM_DEFAULT_VERBOSITY=0
ac_config_headers="$ac_config_headers orconfig.h"











DEPDIR="${am__leading_dot}deps"

ac_config_commands="$ac_config_commands depfiles"

{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
printf %s "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.*
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
printf "%s\n" "${_am_result}" >&6; }

# Check whether --enable-dependency-tracking was given.
if test ${enable_dependency_tracking+y}
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
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
printf %s "checking for $ac_word... " >&6; }
if test ${ac_cv_prog_CC+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e) 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
  case $as_dir in #(((
    '') as_dir=./ ;;
    */) ;;
    *) as_dir=$as_dir/ ;;
  esac
    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"
    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi ;;
esac
fi
CC=$ac_cv_prog_CC
if test -n "$CC"; then
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
printf "%s\n" "$CC" >&6; }
else
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "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
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
printf %s "checking for $ac_word... " >&6; }
if test ${ac_cv_prog_ac_ct_CC+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e) 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
  case $as_dir in #(((
    '') as_dir=./ ;;
    */) ;;
    *) as_dir=$as_dir/ ;;
  esac
    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"
    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

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

  if test "x$ac_ct_CC" = x; then
    CC=""
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
printf "%s\n" "$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
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
printf %s "checking for $ac_word... " >&6; }
if test ${ac_cv_prog_CC+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e) 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
  case $as_dir in #(((
    '') as_dir=./ ;;
    */) ;;
    *) as_dir=$as_dir/ ;;
  esac
    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"
    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi ;;
esac
fi
CC=$ac_cv_prog_CC
if test -n "$CC"; then
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
printf "%s\n" "$CC" >&6; }
else
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "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
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
printf %s "checking for $ac_word... " >&6; }
if test ${ac_cv_prog_CC+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e) 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
  case $as_dir in #(((
    '') as_dir=./ ;;
    */) ;;
    *) as_dir=$as_dir/ ;;
  esac
    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"
    printf "%s\n" "$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 ;;
esac
fi
CC=$ac_cv_prog_CC
if test -n "$CC"; then
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
printf "%s\n" "$CC" >&6; }
else
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "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
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
printf %s "checking for $ac_word... " >&6; }
if test ${ac_cv_prog_CC+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e) 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
  case $as_dir in #(((
    '') as_dir=./ ;;
    */) ;;
    *) as_dir=$as_dir/ ;;
  esac
    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"
    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi ;;
esac
fi
CC=$ac_cv_prog_CC
if test -n "$CC"; then
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
printf "%s\n" "$CC" >&6; }
else
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "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
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
printf %s "checking for $ac_word... " >&6; }
if test ${ac_cv_prog_ac_ct_CC+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e) 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
  case $as_dir in #(((
    '') as_dir=./ ;;
    */) ;;
    *) as_dir=$as_dir/ ;;
  esac
    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"
    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi ;;
esac
fi
ac_ct_CC=$ac_cv_prog_ac_ct_CC
if test -n "$ac_ct_CC"; then
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
printf "%s\n" "$ac_ct_CC" >&6; }
else
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "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:)
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
ac_tool_warned=yes ;;
esac
    CC=$ac_ct_CC
  fi
fi

fi
if test -z "$CC"; then
  if test -n "$ac_tool_prefix"; then
  # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
set dummy ${ac_tool_prefix}clang; ac_word=$2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
printf %s "checking for $ac_word... " >&6; }
if test ${ac_cv_prog_CC+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e) 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
  case $as_dir in #(((
    '') as_dir=./ ;;
    */) ;;
    *) as_dir=$as_dir/ ;;
  esac
    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}clang"
    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

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


fi
if test -z "$ac_cv_prog_CC"; then
  ac_ct_CC=$CC
  # Extract the first word of "clang", so it can be a program name with args.
set dummy clang; ac_word=$2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
printf %s "checking for $ac_word... " >&6; }
if test ${ac_cv_prog_ac_ct_CC+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e) 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
  case $as_dir in #(((
    '') as_dir=./ ;;
    */) ;;
    *) as_dir=$as_dir/ ;;
  esac
    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="clang"
    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

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

  if test "x$ac_ct_CC" = x; then
    CC=""
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
printf "%s\n" "$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

fi


test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
printf "%s\n" "$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.
printf "%s\n" "$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 -version; 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\""
printf "%s\n" "$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
  printf "%s\n" "$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 (void)
{

  ;
  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.
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
printf %s "checking whether the C compiler works... " >&6; }
ac_link_default=`printf "%s\n" "$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\""
printf "%s\n" "$ac_try_echo"; } >&5
  (eval "$ac_link_default") 2>&5
  ac_status=$?
  printf "%s\n" "$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+y} && 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 case e in #(
  e) ac_file='' ;;
esac
fi
if test -z "$ac_file"
then :
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
printf "%s\n" "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
printf "%s\n" "$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 case e in #(
  e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; } ;;
esac
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
printf %s "checking for C compiler default output file name... " >&6; }
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
printf "%s\n" "$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
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
printf %s "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\""
printf "%s\n" "$ac_try_echo"; } >&5
  (eval "$ac_link") 2>&5
  ac_status=$?
  printf "%s\n" "$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 case e in #(
  e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
printf "%s\n" "$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; } ;;
esac
fi
rm -f conftest conftest$ac_cv_exeext
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
printf "%s\n" "$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 (void)
{
FILE *f = fopen ("conftest.out", "w");
 if (!f)
  return 1;
 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.
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
printf %s "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\""
printf "%s\n" "$ac_try_echo"; } >&5
  (eval "$ac_link") 2>&5
  ac_status=$?
  printf "%s\n" "$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\""
printf "%s\n" "$ac_try_echo"; } >&5
  (eval "$ac_try") 2>&5
  ac_status=$?
  printf "%s\n" "$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
	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
as_fn_error 77 "cannot run C compiled programs.
If you meant to cross compile, use '--host'.
See 'config.log' for more details" "$LINENO" 5; }
    fi
  fi
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
printf "%s\n" "$cross_compiling" >&6; }

rm -f conftest.$ac_ext conftest$ac_cv_exeext \
  conftest.o conftest.obj conftest.out
ac_clean_files=$ac_clean_files_save
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
printf %s "checking for suffix of object files... " >&6; }
if test ${ac_cv_objext+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main (void)
{

  ;
  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\""
printf "%s\n" "$ac_try_echo"; } >&5
  (eval "$ac_compile") 2>&5
  ac_status=$?
  printf "%s\n" "$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 case e in #(
  e) printf "%s\n" "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
printf "%s\n" "$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; } ;;
esac
fi
rm -f conftest.$ac_cv_objext conftest.$ac_ext ;;
esac
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
printf "%s\n" "$ac_cv_objext" >&6; }
OBJEXT=$ac_cv_objext
ac_objext=$OBJEXT
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
printf %s "checking whether the compiler supports GNU C... " >&6; }
if test ${ac_cv_c_compiler_gnu+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

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

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  ac_compiler_gnu=yes
else case e in #(
  e) ac_compiler_gnu=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
ac_cv_c_compiler_gnu=$ac_compiler_gnu
 ;;
esac
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
ac_compiler_gnu=$ac_cv_c_compiler_gnu

if test $ac_compiler_gnu = yes; then
  GCC=yes
else
  GCC=
fi
ac_test_CFLAGS=${CFLAGS+y}
ac_save_CFLAGS=$CFLAGS
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
printf %s "checking whether $CC accepts -g... " >&6; }
if test ${ac_cv_prog_cc_g+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e) 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 (void)
{

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

int
main (void)
{

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

else case e in #(
  e) ac_c_werror_flag=$ac_save_c_werror_flag
	 CFLAGS="-g"
	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main (void)
{

  ;
  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.beam conftest.$ac_ext ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   ac_c_werror_flag=$ac_save_c_werror_flag ;;
esac
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
if test $ac_test_CFLAGS; 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
ac_prog_cc_stdc=no
if test x$ac_prog_cc_stdc = xno
then :
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
printf %s "checking for $CC option to enable C11 features... " >&6; }
if test ${ac_cv_prog_cc_c11+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e) ac_cv_prog_cc_c11=no
ac_save_CC=$CC
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
$ac_c_conftest_c11_program
_ACEOF
for ac_arg in '' -std=gnu11
do
  CC="$ac_save_CC $ac_arg"
  if ac_fn_c_try_compile "$LINENO"
then :
  ac_cv_prog_cc_c11=$ac_arg
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam
  test "x$ac_cv_prog_cc_c11" != "xno" && break
done
rm -f conftest.$ac_ext
CC=$ac_save_CC ;;
esac
fi

if test "x$ac_cv_prog_cc_c11" = xno
then :
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
printf "%s\n" "unsupported" >&6; }
else case e in #(
  e) if test "x$ac_cv_prog_cc_c11" = x
then :
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
printf "%s\n" "none needed" >&6; }
else case e in #(
  e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
     CC="$CC $ac_cv_prog_cc_c11" ;;
esac
fi
  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
  ac_prog_cc_stdc=c11 ;;
esac
fi
fi
if test x$ac_prog_cc_stdc = xno
then :
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
printf %s "checking for $CC option to enable C99 features... " >&6; }
if test ${ac_cv_prog_cc_c99+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e) ac_cv_prog_cc_c99=no
ac_save_CC=$CC
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
$ac_c_conftest_c99_program
_ACEOF
for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
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 conftest.beam
  test "x$ac_cv_prog_cc_c99" != "xno" && break
done
rm -f conftest.$ac_ext
CC=$ac_save_CC ;;
esac
fi

if test "x$ac_cv_prog_cc_c99" = xno
then :
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
printf "%s\n" "unsupported" >&6; }
else case e in #(
  e) if test "x$ac_cv_prog_cc_c99" = x
then :
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
printf "%s\n" "none needed" >&6; }
else case e in #(
  e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
     CC="$CC $ac_cv_prog_cc_c99" ;;
esac
fi
  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
  ac_prog_cc_stdc=c99 ;;
esac
fi
fi
if test x$ac_prog_cc_stdc = xno
then :
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
printf %s "checking for $CC option to enable C89 features... " >&6; }
if test ${ac_cv_prog_cc_c89+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e) ac_cv_prog_cc_c89=no
ac_save_CC=$CC
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
$ac_c_conftest_c89_program
_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 conftest.beam
  test "x$ac_cv_prog_cc_c89" != "xno" && break
done
rm -f conftest.$ac_ext
CC=$ac_save_CC ;;
esac
fi

if test "x$ac_cv_prog_cc_c89" = xno
then :
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
printf "%s\n" "unsupported" >&6; }
else case e in #(
  e) if test "x$ac_cv_prog_cc_c89" = x
then :
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
printf "%s\n" "none needed" >&6; }
else case e in #(
  e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
     CC="$CC $ac_cv_prog_cc_c89" ;;
esac
fi
  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
  ac_prog_cc_stdc=c89 ;;
esac
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


  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
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
printf %s "checking whether $CC understands -c and -o together... " >&6; }
if test ${am_cv_prog_cc_c_o+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main (void)
{

  ;
  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 ;;
esac
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
printf "%s\n" "$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=

{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
printf %s "checking dependency style of $depcc... " >&6; }
if test ${am_cv_CC_dependencies_compiler_type+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e) 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 thus:
      #   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
 ;;
esac
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
printf "%s\n" "$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_header= ac_cache=
for ac_item in $ac_header_c_list
do
  if test $ac_cache; then
    ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
    if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
      printf "%s\n" "#define $ac_item 1" >> confdefs.h
    fi
    ac_header= ac_cache=
  elif test $ac_header; then
    ac_cache=$ac_item
  else
    ac_header=$ac_item
  fi
done








if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
then :

printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h

fi






  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; }
if test ${ac_cv_safe_to_define___extensions__+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#         define __EXTENSIONS__ 1
          $ac_includes_default
int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  ac_cv_safe_to_define___extensions__=yes
else case e in #(
  e) ac_cv_safe_to_define___extensions__=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
esac
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; }

  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; }
if test ${ac_cv_should_define__xopen_source+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e) ac_cv_should_define__xopen_source=no
    if test $ac_cv_header_wchar_h = yes
then :
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

          #include <wchar.h>
          mbstate_t x;
int
main (void)
{

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

else case e in #(
  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

            #define _XOPEN_SOURCE 500
            #include <wchar.h>
            mbstate_t x;
int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  ac_cv_should_define__xopen_source=yes
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
fi ;;
esac
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; }

  printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h

  printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h

  printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h

  printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h

  printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h

  printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h

  printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h

  printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h

  printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h

  printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h

  printf "%s\n" "#define __STDC_WANT_IEC_60559_EXT__ 1" >>confdefs.h

  printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h

  printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h

  printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h

  printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h

  printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h

  if test $ac_cv_header_minix_config_h = yes
then :
  MINIX=yes
    printf "%s\n" "#define _MINIX 1" >>confdefs.h

    printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h

    printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h

else case e in #(
  e) MINIX= ;;
esac
fi
  if test $ac_cv_safe_to_define___extensions__ = yes
then :
  printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h

fi
  if test $ac_cv_should_define__xopen_source = yes
then :
  printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h

fi



  # 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

{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
printf %s "checking build system type... " >&6; }
if test ${ac_cv_build+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e) 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
 ;;
esac
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
printf "%s\n" "$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


{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
printf %s "checking host system type... " >&6; }
if test ${ac_cv_host+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e) 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
 ;;
esac
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
printf "%s\n" "$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
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
printf %s "checking for $ac_word... " >&6; }
if test ${ac_cv_path_PKG_CONFIG+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e) 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
  case $as_dir in #(((
    '') as_dir=./ ;;
    */) ;;
    *) as_dir=$as_dir/ ;;
  esac
    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"
    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

  ;;
esac ;;
esac
fi
PKG_CONFIG=$ac_cv_path_PKG_CONFIG
if test -n "$PKG_CONFIG"; then
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
printf "%s\n" "$PKG_CONFIG" >&6; }
else
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "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
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
printf %s "checking for $ac_word... " >&6; }
if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e) 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
  case $as_dir in #(((
    '') as_dir=./ ;;
    */) ;;
    *) as_dir=$as_dir/ ;;
  esac
    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"
    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

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

  if test "x$ac_pt_PKG_CONFIG" = x; then
    PKG_CONFIG=""
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
printf "%s\n" "$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
	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }
	else
		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "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"
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Some libraries need pkg-config, including systemd, nss, lzma, zstd, and custom mallocs." >&5
printf "%s\n" "$as_me: Some libraries need pkg-config, including systemd, nss, lzma, zstd, and custom mallocs." >&6;}
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: To use those libraries, $pkg_config_user_action." >&5
printf "%s\n" "$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
   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: set PKG_CONFIG_PATH=$PKG_CONFIG_PATH to support cross-compiling" >&5
printf "%s\n" "$as_me: set PKG_CONFIG_PATH=$PKG_CONFIG_PATH to support cross-compiling" >&6;}
fi

# License options

# Check whether --enable-gpl was given.
if test ${enable_gpl+y}
then :
  enableval=$enable_gpl;
fi

license_option=BSD
if test "x$enable_gpl" = xyes
then :


printf "%s\n" "#define ENABLE_GPL 1" >>confdefs.h

    license_option=GPL

fi

# Optional features

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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


# Check whether --enable-missing-doc-warnings was given.
if test ${enable_missing_doc_warnings+y}
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_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_coverage" = "xyes"; then

printf "%s\n" "#define ENABLE_COVERAGE 1" >>confdefs.h

fi

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

printf "%s\n" "#define ENABLE_NSS 1" >>confdefs.h

else

printf "%s\n" "#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";
  TOR_STATIC_LDFLAGS="-static"
fi


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

printf "%s\n" "#define DISABLE_SYSTEM_TORRC 1" >>confdefs.h

fi

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

printf "%s\n" "#define DISABLE_MEMORY_SENTINELS 1" >>confdefs.h

fi

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


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


# Check whether --enable-asciidoc was given.
if test ${enable_asciidoc+y}
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 case e in #(
  e) asciidoc=true ;;
esac
fi


# systemd notify support
# Check whether --enable-systemd was given.
if test ${enable_systemd+y}
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 case e in #(
  e) systemd=auto ;;
esac
fi


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

printf "%s\n" "#define ENABLE_RESTART_DEBUGGING 1" >>confdefs.h

fi

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

printf "%s\n" "#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
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for SYSTEMD" >&5
printf %s "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" && \
    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd-daemon\""; } >&5
  ($PKG_CONFIG --exists --print-errors "libsystemd-daemon") 2>&5
  ac_status=$?
  printf "%s\n" "$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" && \
    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd-daemon\""; } >&5
  ($PKG_CONFIG --exists --print-errors "libsystemd-daemon") 2>&5
  ac_status=$?
  printf "%s\n" "$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
   	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "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
     	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
	have_systemd=no
else
	SYSTEMD_CFLAGS=$pkg_cv_SYSTEMD_CFLAGS
	SYSTEMD_LIBS=$pkg_cv_SYSTEMD_LIBS
        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }
	have_systemd=yes
fi
    if test "x$have_systemd" = "xno"; then
        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Okay, checking for systemd a different way..." >&5
printf "%s\n" "$as_me: Okay, checking for systemd a different way..." >&6;}

pkg_failed=no
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for SYSTEMD" >&5
printf %s "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" && \
    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd\""; } >&5
  ($PKG_CONFIG --exists --print-errors "libsystemd") 2>&5
  ac_status=$?
  printf "%s\n" "$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" && \
    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd\""; } >&5
  ($PKG_CONFIG --exists --print-errors "libsystemd") 2>&5
  ac_status=$?
  printf "%s\n" "$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
   	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "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
     	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
	have_systemd=no
else
	SYSTEMD_CFLAGS=$pkg_cv_SYSTEMD_CFLAGS
	SYSTEMD_LIBS=$pkg_cv_SYSTEMD_LIBS
        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }
	have_systemd=yes
fi
    fi
fi

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

printf "%s\n" "#define HAVE_SYSTEMD 1" >>confdefs.h

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

pkg_failed=no
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for LIBSYSTEMD209" >&5
printf %s "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" && \
    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd >= 209\""; } >&5
  ($PKG_CONFIG --exists --print-errors "libsystemd >= 209") 2>&5
  ac_status=$?
  printf "%s\n" "$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" && \
    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd >= 209\""; } >&5
  ($PKG_CONFIG --exists --print-errors "libsystemd >= 209") 2>&5
  ac_status=$?
  printf "%s\n" "$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
   	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "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
     	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
printf "%s\n" "$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 <https://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
        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

printf "%s\n" "#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* )

printf "%s\n" "#define _REENTRANT 1" >>confdefs.h

     ;;
esac

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

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

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


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


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

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

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

printf "%s\n" "#define ENABLE_FRAGILE_HARDENING 1" >>confdefs.h


printf "%s\n" "#define DEBUG_SMARTLIST 1" >>confdefs.h

fi

# Check whether --enable-all-bugs-are-fatal was given.
if test ${enable_all_bugs_are_fatal+y}
then :
  enableval=$enable_all_bugs_are_fatal;
fi


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

printf "%s\n" "#define ALL_BUGS_ARE_FATAL 1" >>confdefs.h

fi

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


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

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

printf "%s\n" "#define ENABLE_LOCAL_APPDATA 1" >>confdefs.h

fi

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


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


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



TOR_TRACE_LIBS=

# Check whether --enable-tracing-instrumentation-lttng was given.
if test ${enable_tracing_instrumentation_lttng+y}
then :
  enableval=$enable_tracing_instrumentation_lttng;
fi

 if test "x$enable_tracing_instrumentation_lttng" = "xyes"; then
  USE_TRACING_INSTRUMENTATION_LTTNG_TRUE=
  USE_TRACING_INSTRUMENTATION_LTTNG_FALSE='#'
else
  USE_TRACING_INSTRUMENTATION_LTTNG_TRUE='#'
  USE_TRACING_INSTRUMENTATION_LTTNG_FALSE=
fi


if test "x$enable_tracing_instrumentation_lttng" = "xyes"; then
         for ac_header in lttng/tracepoint.h
do :
  ac_fn_c_check_header_compile "$LINENO" "lttng/tracepoint.h" "ac_cv_header_lttng_tracepoint_h" "$ac_includes_default"
if test "x$ac_cv_header_lttng_tracepoint_h" = xyes
then :
  printf "%s\n" "#define HAVE_LTTNG_TRACEPOINT_H 1" >>confdefs.h

else case e in #(
  e) as_fn_error $? "LTTng instrumentation headers not found.
                                  On Debian, apt install liblttng-ust-dev\"" "$LINENO" 5 ;;
esac
fi

done

printf "%s\n" "#define USE_TRACING_INSTRUMENTATION_LTTNG 1" >>confdefs.h

  TOR_TRACE_LIBS="-llttng-ust -ldl"
  have_tracing=1
fi

# Check whether --enable-tracing-instrumentation-usdt was given.
if test ${enable_tracing_instrumentation_usdt+y}
then :
  enableval=$enable_tracing_instrumentation_usdt;
fi

 if test "x$enable_tracing_instrumentation_usdt" = "xyes"; then
  USE_TRACING_INSTRUMENTATION_USDT_TRUE=
  USE_TRACING_INSTRUMENTATION_USDT_FALSE='#'
else
  USE_TRACING_INSTRUMENTATION_USDT_TRUE='#'
  USE_TRACING_INSTRUMENTATION_USDT_FALSE=
fi


if test "x$enable_tracing_instrumentation_usdt" = "xyes"; then
         for ac_header in sys/sdt.h
do :
  ac_fn_c_check_header_compile "$LINENO" "sys/sdt.h" "ac_cv_header_sys_sdt_h" "$ac_includes_default"
if test "x$ac_cv_header_sys_sdt_h" = xyes
then :
  printf "%s\n" "#define HAVE_SYS_SDT_H 1" >>confdefs.h

else case e in #(
  e) as_fn_error $? "USDT instrumentation requires sys/sdt.h header.
                                  On Debian, apt install systemtap-sdt-dev" "$LINENO" 5 ;;
esac
fi

done
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking STAP_PROBEV()" >&5
printf %s "checking STAP_PROBEV()... " >&6; }
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

    #define SDT_USE_VARIADIC
    #include <sys/sdt.h>
    void test(void)
    {
      STAP_PROBEV(p, n, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12);
    }

_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :

    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }

printf "%s\n" "#define USE_TRACING_INSTRUMENTATION_USDT 1" >>confdefs.h

    have_tracing=1

else case e in #(
  e)
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
    as_fn_error $? "USDT tracing support requires STAP_PROBEV()" "$LINENO" 5
   ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

# Check whether --enable-tracing-instrumentation-log-debug was given.
if test ${enable_tracing_instrumentation_log_debug+y}
then :
  enableval=$enable_tracing_instrumentation_log_debug;
printf "%s\n" "#define USE_TRACING_INSTRUMENTATION_LOG_DEBUG 1" >>confdefs.h

fi

 if test "x$enable_tracing_instrumentation_log_debug" = "xyes"; then
  USE_TRACING_INSTRUMENTATION_LOG_DEBUG_TRUE=
  USE_TRACING_INSTRUMENTATION_LOG_DEBUG_FALSE='#'
else
  USE_TRACING_INSTRUMENTATION_LOG_DEBUG_TRUE='#'
  USE_TRACING_INSTRUMENTATION_LOG_DEBUG_FALSE=
fi

if test "x$enable_tracing_instrumentation_log_debug" = "xyes"; then
  have_tracing=1
fi

if test -z "$USE_TRACING_INSTRUMENTATION_LOG_DEBUG_TRUE"; then :

printf "%s\n" "#define HAVE_TRACING 1" >>confdefs.h

fi
if test -z "$USE_TRACING_INSTRUMENTATION_USDT_TRUE"; then :

printf "%s\n" "#define HAVE_TRACING 1" >>confdefs.h

fi
if test -z "$USE_TRACING_INSTRUMENTATION_LTTNG_TRUE"; then :

printf "%s\n" "#define HAVE_TRACING 1" >>confdefs.h

fi
 if test "x$have_tracing" = x1 ; then
  USE_TRACING_TRUE=
  USE_TRACING_FALSE='#'
else
  USE_TRACING_TRUE='#'
  USE_TRACING_FALSE=
fi





# Check whether --enable-android was given.
if test ${enable_android+y}
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

printf "%s\n" "#define USE_ANDROID 1" >>confdefs.h


fi




# Some modules are only disabled through another option. For those, we don't
# want to print the help in the summary at the end of the configure. Any entry
# in the following set will not print the "--disable-module-NAME" command in
# the summary.



# Check whether --enable-module-relay was given.
if test ${enable_module_relay+y}
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 :

printf "%s\n" "#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 :

printf "%s\n" "#define HAVE_MODULE_DIRCACHE 1" >>confdefs.h

fi


# Check whether --enable-module-dirauth was given.
if test ${enable_module_dirauth+y}
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 :

printf "%s\n" "#define HAVE_MODULE_DIRAUTH 1" >>confdefs.h

fi


# Check whether --enable-module-pow was given.
if test ${enable_module_pow+y}
then :
  enableval=$enable_module_pow;
fi

 if test "x$license_option" = "xGPL" && test "x$enable_module_pow" != "xno"; then
  BUILD_MODULE_POW_TRUE=
  BUILD_MODULE_POW_FALSE='#'
else
  BUILD_MODULE_POW_TRUE='#'
  BUILD_MODULE_POW_FALSE=
fi

if test -z "$BUILD_MODULE_POW_TRUE"; then :

printf "%s\n" "#define HAVE_MODULE_POW 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"

    MODULE=POW
    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
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
printf %s "checking for $ac_word... " >&6; }
if test ${ac_cv_prog_AR+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e) 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
  case $as_dir in #(((
    '') as_dir=./ ;;
    */) ;;
    *) as_dir=$as_dir/ ;;
  esac
    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"
    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi ;;
esac
fi
AR=$ac_cv_prog_AR
if test -n "$AR"; then
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
printf "%s\n" "$AR" >&6; }
else
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "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
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
printf %s "checking for $ac_word... " >&6; }
if test ${ac_cv_prog_ac_ct_AR+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e) 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
  case $as_dir in #(((
    '') as_dir=./ ;;
    */) ;;
    *) as_dir=$as_dir/ ;;
  esac
    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"
    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi ;;
esac
fi
ac_ct_AR=$ac_cv_prog_ac_ct_AR
if test -n "$ac_ct_AR"; then
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
printf "%s\n" "$ac_ct_AR" >&6; }
else
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "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:)
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
printf "%s\n" "$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}
: ${ARFLAGS=cr}

{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
printf %s "checking the archiver ($AR) interface... " >&6; }
if test ${am_cv_ar_interface+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e) 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 $ARFLAGS 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=$?
  printf "%s\n" "$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=$?
  printf "%s\n" "$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.beam 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
 ;;
esac
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
printf "%s\n" "$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
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
printf %s "checking for $ac_word... " >&6; }
if test ${ac_cv_prog_CC+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e) 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
  case $as_dir in #(((
    '') as_dir=./ ;;
    */) ;;
    *) as_dir=$as_dir/ ;;
  esac
    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"
    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi ;;
esac
fi
CC=$ac_cv_prog_CC
if test -n "$CC"; then
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
printf "%s\n" "$CC" >&6; }
else
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "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
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
printf %s "checking for $ac_word... " >&6; }
if test ${ac_cv_prog_ac_ct_CC+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e) 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
  case $as_dir in #(((
    '') as_dir=./ ;;
    */) ;;
    *) as_dir=$as_dir/ ;;
  esac
    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"
    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

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

  if test "x$ac_ct_CC" = x; then
    CC=""
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
printf "%s\n" "$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
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
printf %s "checking for $ac_word... " >&6; }
if test ${ac_cv_prog_CC+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e) 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
  case $as_dir in #(((
    '') as_dir=./ ;;
    */) ;;
    *) as_dir=$as_dir/ ;;
  esac
    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"
    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi ;;
esac
fi
CC=$ac_cv_prog_CC
if test -n "$CC"; then
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
printf "%s\n" "$CC" >&6; }
else
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "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
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
printf %s "checking for $ac_word... " >&6; }
if test ${ac_cv_prog_CC+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e) 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
  case $as_dir in #(((
    '') as_dir=./ ;;
    */) ;;
    *) as_dir=$as_dir/ ;;
  esac
    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"
    printf "%s\n" "$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 ;;
esac
fi
CC=$ac_cv_prog_CC
if test -n "$CC"; then
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
printf "%s\n" "$CC" >&6; }
else
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "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
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
printf %s "checking for $ac_word... " >&6; }
if test ${ac_cv_prog_CC+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e) 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
  case $as_dir in #(((
    '') as_dir=./ ;;
    */) ;;
    *) as_dir=$as_dir/ ;;
  esac
    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"
    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi ;;
esac
fi
CC=$ac_cv_prog_CC
if test -n "$CC"; then
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
printf "%s\n" "$CC" >&6; }
else
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "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
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
printf %s "checking for $ac_word... " >&6; }
if test ${ac_cv_prog_ac_ct_CC+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e) 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
  case $as_dir in #(((
    '') as_dir=./ ;;
    */) ;;
    *) as_dir=$as_dir/ ;;
  esac
    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"
    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi ;;
esac
fi
ac_ct_CC=$ac_cv_prog_ac_ct_CC
if test -n "$ac_ct_CC"; then
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
printf "%s\n" "$ac_ct_CC" >&6; }
else
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "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:)
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
ac_tool_warned=yes ;;
esac
    CC=$ac_ct_CC
  fi
fi

fi
if test -z "$CC"; then
  if test -n "$ac_tool_prefix"; then
  # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
set dummy ${ac_tool_prefix}clang; ac_word=$2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
printf %s "checking for $ac_word... " >&6; }
if test ${ac_cv_prog_CC+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e) 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
  case $as_dir in #(((
    '') as_dir=./ ;;
    */) ;;
    *) as_dir=$as_dir/ ;;
  esac
    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}clang"
    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

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


fi
if test -z "$ac_cv_prog_CC"; then
  ac_ct_CC=$CC
  # Extract the first word of "clang", so it can be a program name with args.
set dummy clang; ac_word=$2
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
printf %s "checking for $ac_word... " >&6; }
if test ${ac_cv_prog_ac_ct_CC+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e) 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
  case $as_dir in #(((
    '') as_dir=./ ;;
    */) ;;
    *) as_dir=$as_dir/ ;;
  esac
    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="clang"
    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

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

  if test "x$ac_ct_CC" = x; then
    CC=""
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
printf "%s\n" "$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

fi


test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
printf "%s\n" "$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.
printf "%s\n" "$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 -version; 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\""
printf "%s\n" "$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
  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }
done

{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
printf %s "checking whether the compiler supports GNU C... " >&6; }
if test ${ac_cv_c_compiler_gnu+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

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

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  ac_compiler_gnu=yes
else case e in #(
  e) ac_compiler_gnu=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
ac_cv_c_compiler_gnu=$ac_compiler_gnu
 ;;
esac
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
ac_compiler_gnu=$ac_cv_c_compiler_gnu

if test $ac_compiler_gnu = yes; then
  GCC=yes
else
  GCC=
fi
ac_test_CFLAGS=${CFLAGS+y}
ac_save_CFLAGS=$CFLAGS
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
printf %s "checking whether $CC accepts -g... " >&6; }
if test ${ac_cv_prog_cc_g+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e) 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 (void)
{

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

int
main (void)
{

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

else case e in #(
  e) ac_c_werror_flag=$ac_save_c_werror_flag
	 CFLAGS="-g"
	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main (void)
{

  ;
  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.beam conftest.$ac_ext ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   ac_c_werror_flag=$ac_save_c_werror_flag ;;
esac
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
if test $ac_test_CFLAGS; 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
ac_prog_cc_stdc=no
if test x$ac_prog_cc_stdc = xno
then :
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
printf %s "checking for $CC option to enable C11 features... " >&6; }
if test ${ac_cv_prog_cc_c11+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e) ac_cv_prog_cc_c11=no
ac_save_CC=$CC
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
$ac_c_conftest_c11_program
_ACEOF
for ac_arg in '' -std=gnu11
do
  CC="$ac_save_CC $ac_arg"
  if ac_fn_c_try_compile "$LINENO"
then :
  ac_cv_prog_cc_c11=$ac_arg
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam
  test "x$ac_cv_prog_cc_c11" != "xno" && break
done
rm -f conftest.$ac_ext
CC=$ac_save_CC ;;
esac
fi

if test "x$ac_cv_prog_cc_c11" = xno
then :
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
printf "%s\n" "unsupported" >&6; }
else case e in #(
  e) if test "x$ac_cv_prog_cc_c11" = x
then :
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
printf "%s\n" "none needed" >&6; }
else case e in #(
  e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
     CC="$CC $ac_cv_prog_cc_c11" ;;
esac
fi
  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
  ac_prog_cc_stdc=c11 ;;
esac
fi
fi
if test x$ac_prog_cc_stdc = xno
then :
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
printf %s "checking for $CC option to enable C99 features... " >&6; }
if test ${ac_cv_prog_cc_c99+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e) ac_cv_prog_cc_c99=no
ac_save_CC=$CC
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
$ac_c_conftest_c99_program
_ACEOF
for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
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 conftest.beam
  test "x$ac_cv_prog_cc_c99" != "xno" && break
done
rm -f conftest.$ac_ext
CC=$ac_save_CC ;;
esac
fi

if test "x$ac_cv_prog_cc_c99" = xno
then :
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
printf "%s\n" "unsupported" >&6; }
else case e in #(
  e) if test "x$ac_cv_prog_cc_c99" = x
then :
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
printf "%s\n" "none needed" >&6; }
else case e in #(
  e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
     CC="$CC $ac_cv_prog_cc_c99" ;;
esac
fi
  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
  ac_prog_cc_stdc=c99 ;;
esac
fi
fi
if test x$ac_prog_cc_stdc = xno
then :
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
printf %s "checking for $CC option to enable C89 features... " >&6; }
if test ${ac_cv_prog_cc_c89+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e) ac_cv_prog_cc_c89=no
ac_save_CC=$CC
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
$ac_c_conftest_c89_program
_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 conftest.beam
  test "x$ac_cv_prog_cc_c89" != "xno" && break
done
rm -f conftest.$ac_ext
CC=$ac_save_CC ;;
esac
fi

if test "x$ac_cv_prog_cc_c89" = xno
then :
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
printf "%s\n" "unsupported" >&6; }
else case e in #(
  e) if test "x$ac_cv_prog_cc_c89" = x
then :
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
printf "%s\n" "none needed" >&6; }
else case e in #(
  e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
     CC="$CC $ac_cv_prog_cc_c89" ;;
esac
fi
  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
  ac_prog_cc_stdc=c89 ;;
esac
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


  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
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
printf %s "checking whether $CC understands -c and -o together... " >&6; }
if test ${am_cv_prog_cc_c_o+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main (void)
{

  ;
  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 ;;
esac
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
printf "%s\n" "$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=

{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
printf %s "checking dependency style of $depcc... " >&6; }
if test ${am_cv_CC_dependencies_compiler_type+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e) 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 thus:
      #   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
 ;;
esac
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
printf "%s\n" "$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
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
printf %s "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 test ${ac_cv_prog_CPP+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)     # Double quotes because $CC needs to be expanded
    for CPP in "$CC -E" "$CC -E -traditional-cpp" 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.
  # 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.  */
#include <limits.h>
		     Syntax error
_ACEOF
if ac_fn_c_try_cpp "$LINENO"
then :

else case e in #(
  e) # Broken: fails on valid input.
continue ;;
esac
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 case e in #(
  e) # Passes both tests.
ac_preproc_ok=:
break ;;
esac
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
   ;;
esac
fi
  CPP=$ac_cv_prog_CPP
else
  ac_cv_prog_CPP=$CPP
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
printf "%s\n" "$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.
  # 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.  */
#include <limits.h>
		     Syntax error
_ACEOF
if ac_fn_c_try_cpp "$LINENO"
then :

else case e in #(
  e) # Broken: fails on valid input.
continue ;;
esac
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 case e in #(
  e) # Passes both tests.
ac_preproc_ok=:
break ;;
esac
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 case e in #(
  e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
See 'config.log' for more details" "$LINENO" 5; } ;;
esac
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

{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
set x ${MAKE-make}
ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
if eval test \${ac_cv_prog_make_${ac_make}_set+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e) 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 ;;
esac
fi
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }
  SET_MAKE=
else
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "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
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
printf %s "checking for $ac_word... " >&6; }
if test ${ac_cv_prog_RANLIB+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e) 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
  case $as_dir in #(((
    '') as_dir=./ ;;
    */) ;;
    *) as_dir=$as_dir/ ;;
  esac
    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"
    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi ;;
esac
fi
RANLIB=$ac_cv_prog_RANLIB
if test -n "$RANLIB"; then
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
printf "%s\n" "$RANLIB" >&6; }
else
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "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
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
printf %s "checking for $ac_word... " >&6; }
if test ${ac_cv_prog_ac_ct_RANLIB+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e) 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
  case $as_dir in #(((
    '') as_dir=./ ;;
    */) ;;
    *) as_dir=$as_dir/ ;;
  esac
    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"
    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

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

  if test "x$ac_ct_RANLIB" = x; then
    RANLIB=":"
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
printf "%s\n" "$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

{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
printf %s "checking for a sed that does not truncate output... " >&6; }
if test ${ac_cv_path_SED+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)           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
  case $as_dir in #(((
    '') as_dir=./ ;;
    */) ;;
    *) as_dir=$as_dir/ ;;
  esac
    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
  printf %s 0123456789 >"conftest.in"
  while :
  do
    cat "conftest.in" "conftest.in" >"conftest.tmp"
    mv "conftest.tmp" "conftest.in"
    cp "conftest.in" "conftest.nl"
    printf "%s\n" '' >> "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
 ;;
esac
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
printf "%s\n" "$ac_cv_path_SED" >&6; }
 SED="$ac_cv_path_SED"
  rm -f conftest.sed


{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler vendor" >&5
printf %s "checking for C compiler vendor... " >&6; }
if test ${ax_cv_c_compiler_vendor+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)   # note: don't check for gcc first since some other compilers define __GNUC__
  vendors="intel:     __ICC,__ECC,__INTEL_COMPILER
           ibm:       __xlc__,__xlC__,__IBMC__,__IBMCPP__
           pathscale: __PATHCC__,__PATHSCALE__
           clang:     __clang__
           cray:      _CRAYC
           fujitsu:   __FUJITSU
           sdcc:      SDCC, __SDCC
           gnu:       __GNUC__
           sun:       __SUNPRO_C,__SUNPRO_CC
           hp:        __HP_cc,__HP_aCC
           dec:       __DECC,__DECCXX,__DECC_VER,__DECCXX_VER
           borland:   __BORLANDC__,__CODEGEARC__,__TURBOC__
           comeau:    __COMO__
           kai:       __KCC
           lcc:       __LCC__
           sgi:       __sgi,sgi
           microsoft: _MSC_VER
           metrowerks: __MWERKS__
           watcom:    __WATCOMC__
           portland:  __PGI
	   tcc:       __TINYC__
           unknown:   UNKNOWN"
  for ventest in $vendors; do
    case $ventest in
      *:) vendor=$ventest; continue ;;
      *)  vencpp="defined("`echo $ventest | sed 's/,/) || defined(/g'`")" ;;
    esac
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main (void)
{

      #if !($vencpp)
        thisisanerror;
      #endif

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  break
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  done
  ax_cv_c_compiler_vendor=`echo $vendor | cut -d: -f1`
  ;;
esac
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_vendor" >&5
printf "%s\n" "$ax_cv_c_compiler_vendor" >&6; }



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
printf %s "checking for C compiler version... " >&6; }
if test ${ax_cv_c_compiler_version+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)        case $ax_cv_c_compiler_vendor in #(
  intel) :
       if ac_fn_c_compute_int "$LINENO" "__INTEL_COMPILER/100" "_ax_c_compiler_version_major"        ""
then :

else case e in #(
  e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
as_fn_error $? "_AX_COMPILER_VERSION_INTEL unknown intel compiler version
See 'config.log' for more details" "$LINENO" 5; } ;;
esac
fi

  if ac_fn_c_compute_int "$LINENO" "(__INTEL_COMPILER%100)/10" "_ax_c_compiler_version_minor"        ""
then :

else case e in #(
  e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
as_fn_error $? "_AX_COMPILER_VERSION_INTEL unknown intel compiler version
See 'config.log' for more details" "$LINENO" 5; } ;;
esac
fi

  if ac_fn_c_compute_int "$LINENO" "(__INTEL_COMPILER%10)" "_ax_c_compiler_version_patch"        ""
then :

else case e in #(
  e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
as_fn_error $? "_AX_COMPILER_VERSION_INTEL unknown intel compiler version
See 'config.log' for more details" "$LINENO" 5; } ;;
esac
fi

  ax_cv_c_compiler_version="$_ax_c_compiler_version_major.$_ax_c_compiler_version_minor.$_ax_c_compiler_version_patch"
   ;; #(
  ibm) :
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */


int
main (void)
{

        #if defined(__COMPILER_VER__)
        choke me;
        #endif

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

      if ac_fn_c_compute_int "$LINENO" "__xlC__/100" "_ax_c_compiler_version_major"        ""
then :

else case e in #(
  e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
as_fn_error $? "_AX_COMPILER_VERSION_IBM unknown IBM compiler major version
See 'config.log' for more details" "$LINENO" 5; } ;;
esac
fi

      if ac_fn_c_compute_int "$LINENO" "__xlC__%100" "_ax_c_compiler_version_minor"        ""
then :

else case e in #(
  e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
as_fn_error $? "_AX_COMPILER_VERSION_IBM unknown IBM compiler minor version
See 'config.log' for more details" "$LINENO" 5; } ;;
esac
fi

      if ac_fn_c_compute_int "$LINENO" "__xlC_ver__/0x100" "_ax_c_compiler_version_patch"        ""
then :

else case e in #(
  e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
as_fn_error $? "_AX_COMPILER_VERSION_IBM unknown IBM compiler patch version
See 'config.log' for more details" "$LINENO" 5; } ;;
esac
fi

      if ac_fn_c_compute_int "$LINENO" "__xlC_ver__%0x100" "_ax_c_compiler_version_build"        ""
then :

else case e in #(
  e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
as_fn_error $? "_AX_COMPILER_VERSION_IBM unknown IBM compiler build version
See 'config.log' for more details" "$LINENO" 5; } ;;
esac
fi

      ax_cv_c_compiler_version="$_ax_c_compiler_version_major.$_ax_c_compiler_version_minor.$_ax_c_compiler_version_patch.$_ax_c_compiler_version_build"

else case e in #(
  e)
      if ac_fn_c_compute_int "$LINENO" "__xlC__%1000" "_ax_c_compiler_version_patch"        ""
then :

else case e in #(
  e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
as_fn_error $? "_AX_COMPILER_VERSION_IBM unknown IBM compiler patch version
See 'config.log' for more details" "$LINENO" 5; } ;;
esac
fi

      if ac_fn_c_compute_int "$LINENO" "(__xlC__/10000)%10" "_ax_c_compiler_version_minor"        ""
then :

else case e in #(
  e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
as_fn_error $? "_AX_COMPILER_VERSION_IBM unknown IBM compiler minor version
See 'config.log' for more details" "$LINENO" 5; } ;;
esac
fi

      if ac_fn_c_compute_int "$LINENO" "(__xlC__/100000)%10" "_ax_c_compiler_version_major"        ""
then :

else case e in #(
  e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
as_fn_error $? "_AX_COMPILER_VERSION_IBM unknown IBM compiler major version
See 'config.log' for more details" "$LINENO" 5; } ;;
esac
fi

      ax_cv_c_compiler_version="$_ax_c_compiler_version_major.$_ax_c_compiler_version_minor.$_ax_c_compiler_version_patch"
     ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
 ;; #(
  pathscale) :

  if ac_fn_c_compute_int "$LINENO" "__PATHCC__" "_ax_c_compiler_version_major"        ""
then :

else case e in #(
  e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
as_fn_error $? "_AX_COMPILER_VERSION_PATHSCALE unknown pathscale major
See 'config.log' for more details" "$LINENO" 5; } ;;
esac
fi

  if ac_fn_c_compute_int "$LINENO" "__PATHCC_MINOR__" "_ax_c_compiler_version_minor"        ""
then :

else case e in #(
  e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
as_fn_error $? "_AX_COMPILER_VERSION_PATHSCALE unknown pathscale minor
See 'config.log' for more details" "$LINENO" 5; } ;;
esac
fi

  if ac_fn_c_compute_int "$LINENO" "__PATHCC_PATCHLEVEL__" "_ax_c_compiler_version_patch"        ""
then :

else case e in #(
  e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
as_fn_error $? "_AX_COMPILER_VERSION_PATHSCALE unknown pathscale patch level
See 'config.log' for more details" "$LINENO" 5; } ;;
esac
fi

  ax_cv_c_compiler_version="$_ax_c_compiler_version_major.$_ax_c_compiler_version_minor.$_ax_c_compiler_version_patch"
   ;; #(
  clang) :

  if ac_fn_c_compute_int "$LINENO" "__clang_major__" "_ax_c_compiler_version_major"        ""
then :

else case e in #(
  e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
as_fn_error $? "_AX_COMPILER_VERSION_CLANG unknown clang major
See 'config.log' for more details" "$LINENO" 5; } ;;
esac
fi

  if ac_fn_c_compute_int "$LINENO" "__clang_minor__" "_ax_c_compiler_version_minor"        ""
then :

else case e in #(
  e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
as_fn_error $? "_AX_COMPILER_VERSION_CLANG unknown clang minor
See 'config.log' for more details" "$LINENO" 5; } ;;
esac
fi

  if ac_fn_c_compute_int "$LINENO" "__clang_patchlevel__" "_ax_c_compiler_version_patch"        ""
then :

else case e in #(
  e) 0 ;;
esac
fi

  ax_cv_c_compiler_version="$_ax_c_compiler_version_major.$_ax_c_compiler_version_minor.$_ax_c_compiler_version_patch"
   ;; #(
  cray) :

  if ac_fn_c_compute_int "$LINENO" "_RELEASE" "_ax_c_compiler_version_major"        ""
then :

else case e in #(
  e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
as_fn_error $? "_AX_COMPILER_VERSION_CRAY unknown crayc release
See 'config.log' for more details" "$LINENO" 5; } ;;
esac
fi

  if ac_fn_c_compute_int "$LINENO" "_RELEASE_MINOR" "_ax_c_compiler_version_minor"        ""
then :

else case e in #(
  e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
as_fn_error $? "_AX_COMPILER_VERSION_CRAY unknown crayc minor
See 'config.log' for more details" "$LINENO" 5; } ;;
esac
fi

  ax_cv_c_compiler_version="$_ax_c_compiler_version_major.$_ax_c_compiler_version_minor"
   ;; #(
  fujitsu) :

  if ac_fn_c_compute_int "$LINENO" "__FCC_VERSION" "ax_cv_c_compiler_version"        ""
then :

else case e in #(
  e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
as_fn_error $? "_AX_COMPILER_VERSION_FUJITSUunknown fujitsu release
See 'config.log' for more details" "$LINENO" 5; } ;;
esac
fi

   ;; #(
  gnu) :

  if ac_fn_c_compute_int "$LINENO" "__GNUC__" "_ax_c_compiler_version_major"        ""
then :

else case e in #(
  e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
as_fn_error $? "_AX_COMPILER_VERSION_GNU unknown gcc major
See 'config.log' for more details" "$LINENO" 5; } ;;
esac
fi

  if ac_fn_c_compute_int "$LINENO" "__GNUC_MINOR__" "_ax_c_compiler_version_minor"        ""
then :

else case e in #(
  e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
as_fn_error $? "_AX_COMPILER_VERSION_GNU unknown gcc minor
See 'config.log' for more details" "$LINENO" 5; } ;;
esac
fi

  if ac_fn_c_compute_int "$LINENO" "__GNUC_PATCHLEVEL__" "_ax_c_compiler_version_patch"        ""
then :

else case e in #(
  e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
as_fn_error $? "_AX_COMPILER_VERSION_GNU unknown gcc patch level
See 'config.log' for more details" "$LINENO" 5; } ;;
esac
fi

  ax_cv_c_compiler_version="$_ax_c_compiler_version_major.$_ax_c_compiler_version_minor.$_ax_c_compiler_version_patch"
   ;; #(
  sun) :


  if ac_fn_c_compute_int "$LINENO" "!!(
	     #if defined(__SUNPRO_CC)
	     __SUNPRO_CC
	     #else
	     __SUNPRO_C
	     #endif
	     < 0x1000)" "_ax_c_compiler_version_until59"        ""
then :

else case e in #(
  e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
as_fn_error $? "_AX_COMPILER_VERSION_SUN unknown sun release version
See 'config.log' for more details" "$LINENO" 5; } ;;
esac
fi

  if test "X$_ax_c_compiler_version_until59" = X1
then :
        if ac_fn_c_compute_int "$LINENO" "
	     #if defined(__SUNPRO_CC)
	     __SUNPRO_CC
	     #else
	     __SUNPRO_C
	     #endif
	     % 0x10" "_ax_c_compiler_version_patch"        ""
then :

else case e in #(
  e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
as_fn_error $? "_AX_COMPILER_VERSION_SUN unknown sun patch version
See 'config.log' for more details" "$LINENO" 5; } ;;
esac
fi

      if ac_fn_c_compute_int "$LINENO" "(
	     #if defined(__SUNPRO_CC)
	     __SUNPRO_CC
	     #else
	     __SUNPRO_C
	     #endif
	     / 0x10) % 0x10" "_ax_c_compiler_version_minor"        ""
then :

else case e in #(
  e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
as_fn_error $? "_AX_COMPILER_VERSION_SUN unknown sun minor version
See 'config.log' for more details" "$LINENO" 5; } ;;
esac
fi

      if ac_fn_c_compute_int "$LINENO" "(
	     #if defined(__SUNPRO_CC)
	     __SUNPRO_CC
	     #else
	     __SUNPRO_C
	     #endif
	     / 0x100)" "_ax_c_compiler_version_major"        ""
then :

else case e in #(
  e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
as_fn_error $? "_AX_COMPILER_VERSION_SUN unknown sun major version
See 'config.log' for more details" "$LINENO" 5; } ;;
esac
fi


else case e in #(
  e)       if ac_fn_c_compute_int "$LINENO" "
	     #if defined(__SUNPRO_CC)
	     __SUNPRO_CC
	     #else
	     __SUNPRO_C
	     #endif
	     % 0x10" "_ax_c_compiler_version_patch"        ""
then :

else case e in #(
  e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
as_fn_error $? "_AX_COMPILER_VERSION_SUN unknown sun patch version
See 'config.log' for more details" "$LINENO" 5; } ;;
esac
fi

      if ac_fn_c_compute_int "$LINENO" "(
	     #if defined(__SUNPRO_CC)
	     __SUNPRO_CC
	     #else
	     __SUNPRO_C
	     #endif
	     / 0x100) % 0x100" "_ax_c_compiler_version_minor"        ""
then :

else case e in #(
  e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
as_fn_error $? "_AX_COMPILER_VERSION_SUN unknown sun minor version
See 'config.log' for more details" "$LINENO" 5; } ;;
esac
fi

      if ac_fn_c_compute_int "$LINENO" "(
	     #if defined(__SUNPRO_CC)
	     __SUNPRO_CC
	     #else
	     __SUNPRO_C
	     #endif
	     / 0x1000)" "_ax_c_compiler_version_major"        ""
then :

else case e in #(
  e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
as_fn_error $? "_AX_COMPILER_VERSION_SUN unknown sun major version
See 'config.log' for more details" "$LINENO" 5; } ;;
esac
fi

     ;;
esac
fi
  ax_cv_c_compiler_version="$_ax_c_compiler_version_major.$_ax_c_compiler_version_minor.$_ax_c_compiler_version_patch"
 ;; #(
  hp) :


  if ac_fn_c_compute_int "$LINENO" "!!(
	     #if defined(__HP_cc)
	     __HP_cc
	     #else
	     __HP_aCC
	     #endif
	     <= 1)" "_ax_c_compiler_version_untilA0121"        ""
then :

else case e in #(
  e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
as_fn_error $? "_AX_COMPILER_VERSION_HP unknown hp release version
See 'config.log' for more details" "$LINENO" 5; } ;;
esac
fi

  if test "X$_ax_c_compiler_version_untilA0121" = X1
then :
             ax_cv_c_compiler_version="01.21.00"

else case e in #(
  e)       if ac_fn_c_compute_int "$LINENO" "(
	     #if defined(__HP_cc)
	     __HP_cc
	     #else
	     __HP_aCC
	     #endif
	     % 100)" "_ax_c_compiler_version_patch"        ""
then :

else case e in #(
  e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
as_fn_error $? "_AX_COMPILER_VERSION_HP unknown hp release version
See 'config.log' for more details" "$LINENO" 5; } ;;
esac
fi

      if ac_fn_c_compute_int "$LINENO" "((
	     #if defined(__HP_cc)
	     __HP_cc
	     #else
	     __HP_aCC
	     #endif
	     / 100)%100)" "_ax_c_compiler_version_minor"        ""
then :

else case e in #(
  e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
as_fn_error $? "_AX_COMPILER_VERSION_HP unknown hp minor version
See 'config.log' for more details" "$LINENO" 5; } ;;
esac
fi

      if ac_fn_c_compute_int "$LINENO" "((
	     #if defined(__HP_cc)
	     __HP_cc
	     #else
	     __HP_aCC
	     #endif
	     / 10000)%100)" "_ax_c_compiler_version_major"        ""
then :

else case e in #(
  e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
as_fn_error $? "_AX_COMPILER_VERSION_HP unknown hp major version
See 'config.log' for more details" "$LINENO" 5; } ;;
esac
fi

      ax_cv_c_compiler_version="$_ax_c_compiler_version_major.$_ax_c_compiler_version_minor.$_ax_c_compiler_version_patch"
     ;;
esac
fi
 ;; #(
  dec) :

  if ac_fn_c_compute_int "$LINENO" "(
	     #if defined(__DECC_VER)
	     __DECC_VER
	     #else
	     __DECCXX_VER
	     #endif
	     % 10000)" "_ax_c_compiler_version_patch"        ""
then :

else case e in #(
  e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
as_fn_error $? "_AX_COMPILER_VERSION_DEC unknown dec release version
See 'config.log' for more details" "$LINENO" 5; } ;;
esac
fi

  if ac_fn_c_compute_int "$LINENO" "((
	     #if defined(__DECC_VER)
	     __DECC_VER
	     #else
	     __DECCXX_VER
	     #endif
	     / 100000UL)%100)" "_ax_c_compiler_version_minor"        ""
then :

else case e in #(
  e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
as_fn_error $? "_AX_COMPILER_VERSION_DEC unknown dec minor version
See 'config.log' for more details" "$LINENO" 5; } ;;
esac
fi

  if ac_fn_c_compute_int "$LINENO" "((
	     #if defined(__DECC_VER)
	     __DECC_VER
	     #else
	     __DECCXX_VER
	     #endif
	     / 10000000UL)%100)" "_ax_c_compiler_version_major"        ""
then :

else case e in #(
  e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
as_fn_error $? "_AX_COMPILER_VERSION_DEC unknown dec major version
See 'config.log' for more details" "$LINENO" 5; } ;;
esac
fi

  ax_cv_c_compiler_version="$_ax_c_compiler_version_major.$_ax_c_compiler_version_minor.$_ax_c_compiler_version_patch"
   ;; #(
  borland) :


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

int
main (void)
{

	     #if defined(__TURBOC__)
	     __TURBOC__
	     #else
	     choke me
	     #endif

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
       if ac_fn_c_compute_int "$LINENO" "
	     #if defined(__TURBOC__)
	     __TURBOC__
	     #else
	     choke me
	     #endif
	    " "_ax_c_compiler_version_turboc_raw"        ""
then :

else case e in #(
  e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
as_fn_error $? "_AX_COMPILER_VERSION_BORLAND unknown turboc version
See 'config.log' for more details" "$LINENO" 5; } ;;
esac
fi

     if test $_ax_c_compiler_version_turboc_raw -lt 661 || test $_ax_c_compiler_version_turboc_raw -gt 1023
then :
          if ac_fn_c_compute_int "$LINENO" "
	     #if defined(__TURBOC__)
	     __TURBOC__
	     #else
	     choke me
	     #endif
	     % 0x100" "_ax_c_compiler_version_minor"        ""
then :

else case e in #(
  e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
as_fn_error $? "_AX_COMPILER_VERSION_BORLAND unknown turboc minor version
See 'config.log' for more details" "$LINENO" 5; } ;;
esac
fi

	if ac_fn_c_compute_int "$LINENO" "(
	     #if defined(__TURBOC__)
	     __TURBOC__
	     #else
	     choke me
	     #endif
	    /0x100)%0x100" "_ax_c_compiler_version_major"        ""
then :

else case e in #(
  e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
as_fn_error $? "_AX_COMPILER_VERSION_BORLAND unknown turboc major version
See 'config.log' for more details" "$LINENO" 5; } ;;
esac
fi

	ax_cv_c_compiler_version="0turboc:$_ax_c_compiler_version_major.$_ax_c_compiler_version_minor"
else case e in #(
  e)        case $_ax_c_compiler_version_turboc_raw in #(
  661) :
    ax_cv_c_compiler_version="0turboc:1.00" ;; #(
  662) :
    ax_cv_c_compiler_version="0turboc:1.01" ;; #(
  663) :
    ax_cv_c_compiler_version="0turboc:2.00" ;; #(
  *) :

	 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: [_AX_COMPILER_VERSION_BORLAND] unknown turboc version between 0x295 and 0x400 please report bug" >&5
printf "%s\n" "$as_me: WARNING: [_AX_COMPILER_VERSION_BORLAND] unknown turboc version between 0x295 and 0x400 please report bug" >&2;}
	 ax_cv_c_compiler_version=""
	  ;;
esac
       ;;
esac
fi

else case e in #(
  e) # borlandc

    if ac_fn_c_compute_int "$LINENO" "
	     #if defined(__BORLANDC__)
	     __BORLANDC__
	     #else
	     __CODEGEARC__
	     #endif
	    " "_ax_c_compiler_version_borlandc_raw"        ""
then :

else case e in #(
  e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
as_fn_error $? "_AX_COMPILER_VERSION_BORLAND unknown borlandc version
See 'config.log' for more details" "$LINENO" 5; } ;;
esac
fi

    case $_ax_c_compiler_version_borlandc_raw in #(
        512 ) :
    ax_cv_c_compiler_version="1borlanc:2.00" ;; #(
  1024) :
    ax_cv_c_compiler_version="1borlanc:3.00" ;; #(
  1024) :
    ax_cv_c_compiler_version="1borlanc:3.00" ;; #(
  1040) :
    ax_cv_c_compiler_version="1borlanc:3.1" ;; #(
  1106) :
    ax_cv_c_compiler_version="1borlanc:4.0" ;; #(
  1280) :
    ax_cv_c_compiler_version="1borlanc:5.0" ;; #(
  1312) :
    ax_cv_c_compiler_version="1borlanc:5.02" ;; #(
        1328) :
    ax_cv_c_compiler_version="2cppbuilder:3.0" ;; #(
  1344) :
    ax_cv_c_compiler_version="2cppbuilder:4.0" ;; #(
        1360) :
    ax_cv_c_compiler_version="3borlancpp:5.5" ;; #(
  1361) :
    ax_cv_c_compiler_version="3borlancpp:5.51" ;; #(
  1378) :
    ax_cv_c_compiler_version="3borlancpp:5.6.4" ;; #(
        1392) :
    ax_cv_c_compiler_version="4cppbuilder:2006" ;; #(
  1424) :
    ax_cv_c_compiler_version="4cppbuilder:2007" ;; #(
  1555) :
    ax_cv_c_compiler_version="4cppbuilder:2009" ;; #(
  1569) :
    ax_cv_c_compiler_version="4cppbuilder:2010" ;; #(
        1584) :
    ax_cv_c_compiler_version="5xe" ;; #(
  1600) :
    ax_cv_c_compiler_version="5xe:2" ;; #(
  1616) :
    ax_cv_c_compiler_version="5xe:3" ;; #(
  1632) :
    ax_cv_c_compiler_version="5xe:4" ;; #(
  *) :

      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: [_AX_COMPILER_VERSION_BORLAND] Unknown borlandc compiler version $_ax_c_compiler_version_borlandc_raw please report bug" >&5
printf "%s\n" "$as_me: WARNING: [_AX_COMPILER_VERSION_BORLAND] Unknown borlandc compiler version $_ax_c_compiler_version_borlandc_raw please report bug" >&2;}
       ;;
esac
     ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   ;; #(
  comeau) :
       if ac_fn_c_compute_int "$LINENO" "__COMO_VERSION__%100" "_ax_c_compiler_version_minor"        ""
then :

else case e in #(
  e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
as_fn_error $? "_AX_COMPILER_VERSION_COMEAU unknown comeau compiler minor version
See 'config.log' for more details" "$LINENO" 5; } ;;
esac
fi

  if ac_fn_c_compute_int "$LINENO" "(__COMO_VERSION__/100)%10" "_ax_c_compiler_version_major"        ""
then :

else case e in #(
  e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
as_fn_error $? "_AX_COMPILER_VERSION_COMEAU unknown comeau compiler major version
See 'config.log' for more details" "$LINENO" 5; } ;;
esac
fi

  ax_cv_c_compiler_version="$_ax_c_compiler_version_major.$_ax_c_compiler_version_minor"
   ;; #(
  kai) :

  if ac_fn_c_compute_int "$LINENO" "__KCC_VERSION%100" "_ax_c_compiler_version_patch"        ""
then :

else case e in #(
  e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
as_fn_error $? "_AX_COMPILER_VERSION_KAI unknown kay compiler patch version
See 'config.log' for more details" "$LINENO" 5; } ;;
esac
fi

  if ac_fn_c_compute_int "$LINENO" "(__KCC_VERSION/100)%10" "_ax_c_compiler_version_minor"        ""
then :

else case e in #(
  e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
as_fn_error $? "_AX_COMPILER_VERSION_KAI unknown kay compiler minor version
See 'config.log' for more details" "$LINENO" 5; } ;;
esac
fi

  if ac_fn_c_compute_int "$LINENO" "(__KCC_VERSION/1000)%10" "_ax_c_compiler_version_major"        ""
then :

else case e in #(
  e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
as_fn_error $? "_AX_COMPILER_VERSION_KAI unknown kay compiler major version
See 'config.log' for more details" "$LINENO" 5; } ;;
esac
fi

  ax_cv_c_compiler_version="$_ax_c_compiler_version_major.$_ax_c_compiler_version_minor.$_ax_c_compiler_version_patch"
   ;; #(
  sgi) :


  if ac_fn_c_compute_int "$LINENO" "
	     #if defined(_COMPILER_VERSION)
	     _COMPILER_VERSION
	     #else
	     _SGI_COMPILER_VERSION
	     #endif
	    %10" "_ax_c_compiler_version_patch"        ""
then :

else case e in #(
  e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
as_fn_error $? "_AX_COMPILER_VERSION_SGI unknown SGI compiler patch version
See 'config.log' for more details" "$LINENO" 5; } ;;
esac
fi

  if ac_fn_c_compute_int "$LINENO" "(
	     #if defined(_COMPILER_VERSION)
	     _COMPILER_VERSION
	     #else
	     _SGI_COMPILER_VERSION
	     #endif
	    /10)%10" "_ax_c_compiler_version_minor"        ""
then :

else case e in #(
  e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
as_fn_error $? "_AX_COMPILER_VERSION_SGI unknown SGI compiler minor version
See 'config.log' for more details" "$LINENO" 5; } ;;
esac
fi

  if ac_fn_c_compute_int "$LINENO" "(
	     #if defined(_COMPILER_VERSION)
	     _COMPILER_VERSION
	     #else
	     _SGI_COMPILER_VERSION
	     #endif
	    /100)%10" "_ax_c_compiler_version_major"        ""
then :

else case e in #(
  e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
as_fn_error $? "_AX_COMPILER_VERSION_SGI unknown SGI compiler major version
See 'config.log' for more details" "$LINENO" 5; } ;;
esac
fi

  ax_cv_c_compiler_version="$_ax_c_compiler_version_major.$_ax_c_compiler_version_minor.$_ax_c_compiler_version_patch"
   ;; #(
  microsoft) :

  if ac_fn_c_compute_int "$LINENO" "_MSC_VER%100" "_ax_c_compiler_version_minor"        ""
then :

else case e in #(
  e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
as_fn_error $? "_AX_COMPILER_VERSION_MICROSOFT unknown microsoft compiler minor version
See 'config.log' for more details" "$LINENO" 5; } ;;
esac
fi

  if ac_fn_c_compute_int "$LINENO" "(_MSC_VER/100)%100" "_ax_c_compiler_version_major"        ""
then :

else case e in #(
  e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
as_fn_error $? "_AX_COMPILER_VERSION_MICROSOFT unknown microsoft compiler major version
See 'config.log' for more details" "$LINENO" 5; } ;;
esac
fi

    _ax_c_compiler_version_patch=0
  _ax_c_compiler_version_build=0
  # special case for version 6
  if test "X$_ax_c_compiler_version_major" = "X12"
then :
  if ac_fn_c_compute_int "$LINENO" "_MSC_FULL_VER%1000" "_ax_c_compiler_version_patch"        ""
then :

else case e in #(
  e) _ax_c_compiler_version_patch=0 ;;
esac
fi

fi
  # for version 7
  if test "X$_ax_c_compiler_version_major" = "X13"
then :
  if ac_fn_c_compute_int "$LINENO" "_MSC_FULL_VER%1000" "_ax_c_compiler_version_patch"        ""
then :

else case e in #(
  e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
as_fn_error $? "_AX_COMPILER_VERSION_MICROSOFT unknown microsoft compiler patch version
See 'config.log' for more details" "$LINENO" 5; } ;;
esac
fi


fi
  # for version > 8
 if test $_ax_c_compiler_version_major -ge 14
then :
  if ac_fn_c_compute_int "$LINENO" "_MSC_FULL_VER%10000" "_ax_c_compiler_version_patch"        ""
then :

else case e in #(
  e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
as_fn_error $? "_AX_COMPILER_VERSION_MICROSOFT unknown microsoft compiler patch version
See 'config.log' for more details" "$LINENO" 5; } ;;
esac
fi


fi
 if test $_ax_c_compiler_version_major -ge 15
then :
  if ac_fn_c_compute_int "$LINENO" "_MSC_BUILD" "_ax_c_compiler_version_build"        ""
then :

else case e in #(
  e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
as_fn_error $? "_AX_COMPILER_VERSION_MICROSOFT unknown microsoft compiler build version
See 'config.log' for more details" "$LINENO" 5; } ;;
esac
fi


fi
 ax_cv_c_compiler_version="$_ax_c_compiler_version_major.$_ax_c_compiler_version_minor.$_ax_c_compiler_version_patch.$_ax_c_compiler_version_build"
  ;; #(
  metrowerks) :
      if ac_fn_c_compute_int "$LINENO" "__MWERKS__%0x100" "_ax_c_compiler_version_patch"        ""
then :

else case e in #(
  e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
as_fn_error $? "_AX_COMPILER_VERSION_METROWERKS unknown metrowerks compiler patch version
See 'config.log' for more details" "$LINENO" 5; } ;;
esac
fi

  if ac_fn_c_compute_int "$LINENO" "(__MWERKS__/0x100)%0x10" "_ax_c_compiler_version_minor"        ""
then :

else case e in #(
  e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
as_fn_error $? "_AX_COMPILER_VERSION_METROWERKS unknown metrowerks compiler minor version
See 'config.log' for more details" "$LINENO" 5; } ;;
esac
fi

  if ac_fn_c_compute_int "$LINENO" "(__MWERKS__/0x1000)%0x10" "_ax_c_compiler_version_major"        ""
then :

else case e in #(
  e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
as_fn_error $? "_AX_COMPILER_VERSION_METROWERKS unknown metrowerks compiler major version
See 'config.log' for more details" "$LINENO" 5; } ;;
esac
fi

  ax_cv_c_compiler_version="$_ax_c_compiler_version_major.$_ax_c_compiler_version_minor.$_ax_c_compiler_version_patch"
   ;; #(
  watcom) :
      if ac_fn_c_compute_int "$LINENO" "__WATCOMC__%100" "_ax_c_compiler_version_minor"        ""
then :

else case e in #(
  e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
as_fn_error $? "_AX_COMPILER_VERSION_WATCOM unknown watcom compiler minor version
See 'config.log' for more details" "$LINENO" 5; } ;;
esac
fi

  if ac_fn_c_compute_int "$LINENO" "(__WATCOMC__/100)%100" "_ax_c_compiler_version_major"        ""
then :

else case e in #(
  e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
as_fn_error $? "_AX_COMPILER_VERSION_WATCOM unknown watcom compiler major version
See 'config.log' for more details" "$LINENO" 5; } ;;
esac
fi

  ax_cv_c_compiler_version="$_ax_c_compiler_version_major.$_ax_c_compiler_version_minor"
   ;; #(
  portland) :

  if ac_fn_c_compute_int "$LINENO" "__PGIC__" "_ax_c_compiler_version_major"        ""
then :

else case e in #(
  e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
as_fn_error $? "_AX_COMPILER_VERSION_PORTLAND unknown pgi major
See 'config.log' for more details" "$LINENO" 5; } ;;
esac
fi

  if ac_fn_c_compute_int "$LINENO" "__PGIC_MINOR__" "_ax_c_compiler_version_minor"        ""
then :

else case e in #(
  e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
as_fn_error $? "_AX_COMPILER_VERSION_PORTLAND unknown pgi minor
See 'config.log' for more details" "$LINENO" 5; } ;;
esac
fi

  if ac_fn_c_compute_int "$LINENO" "__PGIC_PATCHLEVEL__" "_ax_c_compiler_version_patch"        ""
then :

else case e in #(
  e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
as_fn_error $? "_AX_COMPILER_VERSION_PORTLAND unknown pgi patch level
See 'config.log' for more details" "$LINENO" 5; } ;;
esac
fi

  ax_cv_c_compiler_version="$_ax_c_compiler_version_major.$_ax_c_compiler_version_minor.$_ax_c_compiler_version_patch"
   ;; #(
  tcc) :

  ax_cv_c_compiler_version=`tcc -v | $SED 's/^[ ]*tcc[ ]\+version[ ]\+\([0-9.]\+\).*/\1/g'`
   ;; #(
  sdcc) :

  if ac_fn_c_compute_int "$LINENO" "/* avoid parse error with comments */
    #if(defined(__SDCC_VERSION_MAJOR))
	__SDCC_VERSION_MAJOR
    #else
	SDCC/100
    #endif
    " "_ax_c_compiler_version_major"        ""
then :

else case e in #(
  e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
as_fn_error $? "_AX_COMPILER_VERSION_SDCC unknown sdcc major
See 'config.log' for more details" "$LINENO" 5; } ;;
esac
fi

  if ac_fn_c_compute_int "$LINENO" "/* avoid parse error with comments */
    #if(defined(__SDCC_VERSION_MINOR))
	__SDCC_VERSION_MINOR
    #else
	(SDCC%100)/10
    #endif
    " "_ax_c_compiler_version_minor"        ""
then :

else case e in #(
  e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
as_fn_error $? "_AX_COMPILER_VERSION_SDCC unknown sdcc minor
See 'config.log' for more details" "$LINENO" 5; } ;;
esac
fi

  if ac_fn_c_compute_int "$LINENO" "
    /* avoid parse error with comments */
    #if(defined(__SDCC_VERSION_PATCH))
	__SDCC_VERSION_PATCH
    #elsif(defined(_SDCC_VERSION_PATCHLEVEL))
	__SDCC_VERSION_PATCHLEVEL
    #else
	SDCC%10
    #endif
    " "_ax_c_compiler_version_patch"        ""
then :

else case e in #(
  e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
as_fn_error $? "_AX_COMPILER_VERSION_SDCC unknown sdcc patch level
See 'config.log' for more details" "$LINENO" 5; } ;;
esac
fi

  ax_cv_c_compiler_version="$_ax_c_compiler_version_major.$_ax_c_compiler_version_minor.$_ax_c_compiler_version_patch"
   ;; #(
  *) :
    ax_cv_c_compiler_version="" ;;
esac
     ;;
esac
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_version" >&5
printf "%s\n" "$ax_cv_c_compiler_version" >&6; }

{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler vendor" >&5
printf %s "checking for C compiler vendor... " >&6; }
if test ${ax_cv_c_compiler_vendor+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)   # note: don't check for gcc first since some other compilers define __GNUC__
  vendors="intel:     __ICC,__ECC,__INTEL_COMPILER
           ibm:       __xlc__,__xlC__,__IBMC__,__IBMCPP__
           pathscale: __PATHCC__,__PATHSCALE__
           clang:     __clang__
           cray:      _CRAYC
           fujitsu:   __FUJITSU
           sdcc:      SDCC, __SDCC
           gnu:       __GNUC__
           sun:       __SUNPRO_C,__SUNPRO_CC
           hp:        __HP_cc,__HP_aCC
           dec:       __DECC,__DECCXX,__DECC_VER,__DECCXX_VER
           borland:   __BORLANDC__,__CODEGEARC__,__TURBOC__
           comeau:    __COMO__
           kai:       __KCC
           lcc:       __LCC__
           sgi:       __sgi,sgi
           microsoft: _MSC_VER
           metrowerks: __MWERKS__
           watcom:    __WATCOMC__
           portland:  __PGI
	   tcc:       __TINYC__
           unknown:   UNKNOWN"
  for ventest in $vendors; do
    case $ventest in
      *:) vendor=$ventest; continue ;;
      *)  vencpp="defined("`echo $ventest | sed 's/,/) || defined(/g'`")" ;;
    esac
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main (void)
{

      #if !($vencpp)
        thisisanerror;
      #endif

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  break
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  done
  ax_cv_c_compiler_vendor=`echo $vendor | cut -d: -f1`
  ;;
esac
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_vendor" >&5
printf "%s\n" "$ax_cv_c_compiler_vendor" >&6; }



printf "%s\n" "#define COMPILER_VERSION \"$ax_cv_c_compiler_version\"" >>confdefs.h


printf "%s\n" "#define COMPILER_VENDOR \"$ax_cv_c_compiler_vendor\"" >>confdefs.h


case $ax_cv_c_compiler_vendor in #(
  gnu) :

printf "%s\n" "#define COMPILER \"GCC\"" >>confdefs.h
 ;; #(
  *) :

printf "%s\n" "#define COMPILER /**/" >>confdefs.h

 ;;
esac


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
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
printf %s "checking for $ac_word... " >&6; }
if test ${ac_cv_prog_PERL+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e) 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
  case $as_dir in #(((
    '') as_dir=./ ;;
    */) ;;
    *) as_dir=$as_dir/ ;;
  esac
    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"
    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

fi ;;
esac
fi
PERL=$ac_cv_prog_PERL
if test -n "$PERL"; then
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
printf "%s\n" "$PERL" >&6; }
else
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "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
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
printf %s "checking for $ac_word... " >&6; }
if test ${ac_cv_path_ASCIIDOC+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e) 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
  case $as_dir in #(((
    '') as_dir=./ ;;
    */) ;;
    *) as_dir=$as_dir/ ;;
  esac
    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"
    printf "%s\n" "$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 ;;
esac
fi
ASCIIDOC=$ac_cv_path_ASCIIDOC
if test -n "$ASCIIDOC"; then
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ASCIIDOC" >&5
printf "%s\n" "$ASCIIDOC" >&6; }
else
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "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
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
printf %s "checking for $ac_word... " >&6; }
if test ${ac_cv_path_A2X+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e) 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
  case $as_dir in #(((
    '') as_dir=./ ;;
    */) ;;
    *) as_dir=$as_dir/ ;;
  esac
    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"
    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

  ;;
esac ;;
esac
fi
A2X=$ac_cv_path_A2X
if test -n "$A2X"; then
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $A2X" >&5
printf "%s\n" "$A2X" >&6; }
else
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "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




:

{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Python 3" >&5
printf %s "checking for Python 3... " >&6; }
if test ${tor_cv_PYTHON+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e) 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
  case $as_dir in #(((
    '') as_dir=./ ;;
    */) ;;
    *) as_dir=$as_dir/ ;;
  esac
    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
 ;;
esac
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tor_cv_PYTHON" >&5
printf "%s\n" "$tor_cv_PYTHON" >&6; }
PYTHON=$tor_cv_PYTHON


PYTHON="$tor_cv_PYTHON"

if test "x$PYTHON" = "x"; then
  tor_incr_n_warnings
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Python 3 unavailable; some tests will not be run." >&5
printf "%s\n" "$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




  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for flexible array members" >&5
printf %s "checking for flexible array members... " >&6; }
if test ${ac_cv_c_flexmember+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e) 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 (void)
{
int m = getchar ();
	    struct s *p = (struct s *) malloc (offsetof (struct s, d)
					       + m * sizeof (double));
	    p->d[0] = 0.0;
	    m = p->d != (double *) NULL;
	    free (p);
	    return m;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  ac_cv_c_flexmember=yes
else case e in #(
  e) ac_cv_c_flexmember=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
esac
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_flexmember" >&5
printf "%s\n" "$ac_cv_c_flexmember" >&6; }
  if test $ac_cv_c_flexmember = yes; then

printf "%s\n" "#define FLEXIBLE_ARRAY_MEMBER /**/" >>confdefs.h

  else
    printf "%s\n" "#define FLEXIBLE_ARRAY_MEMBER 1" >>confdefs.h

  fi



{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working C99 mid-block declaration syntax" >&5
printf %s "checking for working C99 mid-block declaration syntax... " >&6; }
if test ${tor_cv_c_c99_decl+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main (void)
{
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 case e in #(
  e) tor_cv_c_c99_decl=no  ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
esac
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tor_cv_c_c99_decl" >&5
printf "%s\n" "$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

{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working C99 designated initializers" >&5
printf %s "checking for working C99 designated initializers... " >&6; }
if test ${tor_cv_c_c99_designated_init+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
struct s { int a; int b; };
int
main (void)
{
 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 case e in #(
  e) tor_cv_c_c99_designated_init=no  ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
esac
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tor_cv_c_c99_designated_init" >&5
printf "%s\n" "$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

saved_CFLAGS="$CFLAGS"
CFLAGS="$CFLAGS -Werror"
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __attribute__((fallthrough))" >&5
printf %s "checking for __attribute__((fallthrough))... " >&6; }
if test ${tor_cv_c_attr_fallthrough+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
extern int x; void fn(void) ;
int
main (void)
{
 switch (x) { case 1: fn(); __attribute__((fallthrough));
                               case 2: fn(); break; }
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  tor_cv_c_attr_fallthrough=yes
else case e in #(
  e) tor_cv_c_attr_fallthrough=no  ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
esac
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tor_cv_c_attr_fallthrough" >&5
printf "%s\n" "$tor_cv_c_attr_fallthrough" >&6; }
CFLAGS="$saved_CFLAGS"

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

printf "%s\n" "#define HAVE_ATTR_FALLTHROUGH 1" >>confdefs.h

fi

saved_CFLAGS="$CFLAGS"
CFLAGS="$CFLAGS -Werror"
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __attribute__((nonstring))" >&5
printf %s "checking for __attribute__((nonstring))... " >&6; }
if test ${tor_cv_c_attr_nonstring+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main (void)
{
 __attribute__((nonstring)) const char foo[5] = "abcde";
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  tor_cv_c_attr_nonstring=yes
else case e in #(
  e) tor_cv_c_attr_nonstring=no  ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
esac
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tor_cv_c_attr_nonstring" >&5
printf "%s\n" "$tor_cv_c_attr_nonstring" >&6; }
CFLAGS="$saved_CFLAGS"

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

printf "%s\n" "#define HAVE_ATTR_NONSTRING 1" >>confdefs.h

fi

TORUSER=_tor

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


fi



TORGROUP=_tor

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


fi




{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for win32" >&5
printf %s "checking for win32... " >&6; }
if test "$cross_compiling" = yes
then :
  bwin32=cross; { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cross" >&5
printf "%s\n" "cross" >&6; }

else case e in #(
  e) 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; { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }
else case e in #(
  e) bwin32=false; { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; } ;;
esac
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
esac
fi


if test "$bwin32" = "cross"; then
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for win32 (cross)" >&5
printf %s "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; { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }
else case e in #(
  e) bwin32=false; { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; } ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam 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


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

int
main (void)
{

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

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  bmipspro=false; { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
else case e in #(
  e) bmipspro=true; { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; } ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext

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

 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
printf %s "checking whether byte ordering is bigendian... " >&6; }
if test ${ac_cv_c_bigendian+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e) 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.beam 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 (void)
{
#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 (void)
{
#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 case e in #(
  e) ac_cv_c_bigendian=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam 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 (void)
{
#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 (void)
{
#ifndef _BIG_ENDIAN
		 not big endian
		#endif

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  ac_cv_c_bigendian=yes
else case e in #(
  e) ac_cv_c_bigendian=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam 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.  */
unsigned short int ascii_mm[] =
		  { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
		unsigned short int ascii_ii[] =
		  { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
		int use_ascii (int i) {
		  return ascii_mm[i] + ascii_ii[i];
		}
		unsigned short int ebcdic_ii[] =
		  { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
		unsigned short int ebcdic_mm[] =
		  { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
		int use_ebcdic (int i) {
		  return ebcdic_mm[i] + ebcdic_ii[i];
		}
		int
		main (int argc, char **argv)
		{
		  /* Intimidate the compiler so that it does not
		     optimize the arrays away.  */
		  char *p = argv[0];
		  ascii_mm[1] = *p++; ebcdic_mm[1] = *p++;
		  ascii_ii[1] = *p++; ebcdic_ii[1] = *p++;
		  return use_ascii (argc) == use_ebcdic (*p);
		}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  if grep BIGenDianSyS conftest$ac_exeext >/dev/null; then
	      ac_cv_c_bigendian=yes
	    fi
	    if grep LiTTleEnDian conftest$ac_exeext >/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.beam \
    conftest$ac_exeext conftest.$ac_ext
else case e in #(
  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
$ac_includes_default
int
main (void)
{

	     /* 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 case e in #(
  e) ac_cv_c_bigendian=yes ;;
esac
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
esac
fi

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

printf "%s\n" "#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


{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
printf %s "checking for library containing socket... " >&6; }
if test ${ac_cv_search_socket+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e) 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.
   The 'extern "C"' is for builds by C++ compilers;
   although this is not generally supported in C code supporting it here
   has little cost and some practical benefit (sr 110532).  */
#ifdef __cplusplus
extern "C"
#endif
char socket (void);
int
main (void)
{
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.beam \
    conftest$ac_exeext
  if test ${ac_cv_search_socket+y}
then :
  break
fi
done
if test ${ac_cv_search_socket+y}
then :

else case e in #(
  e) ac_cv_search_socket=no ;;
esac
fi
rm conftest.$ac_ext
LIBS=$ac_func_search_save_LIBS ;;
esac
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
printf "%s\n" "$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

{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
printf %s "checking for library containing gethostbyname... " >&6; }
if test ${ac_cv_search_gethostbyname+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e) 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.
   The 'extern "C"' is for builds by C++ compilers;
   although this is not generally supported in C code supporting it here
   has little cost and some practical benefit (sr 110532).  */
#ifdef __cplusplus
extern "C"
#endif
char gethostbyname (void);
int
main (void)
{
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.beam \
    conftest$ac_exeext
  if test ${ac_cv_search_gethostbyname+y}
then :
  break
fi
done
if test ${ac_cv_search_gethostbyname+y}
then :

else case e in #(
  e) ac_cv_search_gethostbyname=no ;;
esac
fi
rm conftest.$ac_ext
LIBS=$ac_func_search_save_LIBS ;;
esac
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
printf "%s\n" "$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

{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
printf %s "checking for library containing dlopen... " >&6; }
if test ${ac_cv_search_dlopen+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e) 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.
   The 'extern "C"' is for builds by C++ compilers;
   although this is not generally supported in C code supporting it here
   has little cost and some practical benefit (sr 110532).  */
#ifdef __cplusplus
extern "C"
#endif
char dlopen (void);
int
main (void)
{
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.beam \
    conftest$ac_exeext
  if test ${ac_cv_search_dlopen+y}
then :
  break
fi
done
if test ${ac_cv_search_dlopen+y}
then :

else case e in #(
  e) ac_cv_search_dlopen=no ;;
esac
fi
rm conftest.$ac_ext
LIBS=$ac_func_search_save_LIBS ;;
esac
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
printf "%s\n" "$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

{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing inet_aton" >&5
printf %s "checking for library containing inet_aton... " >&6; }
if test ${ac_cv_search_inet_aton+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e) 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.
   The 'extern "C"' is for builds by C++ compilers;
   although this is not generally supported in C code supporting it here
   has little cost and some practical benefit (sr 110532).  */
#ifdef __cplusplus
extern "C"
#endif
char inet_aton (void);
int
main (void)
{
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.beam \
    conftest$ac_exeext
  if test ${ac_cv_search_inet_aton+y}
then :
  break
fi
done
if test ${ac_cv_search_inet_aton+y}
then :

else case e in #(
  e) ac_cv_search_inet_aton=no ;;
esac
fi
rm conftest.$ac_ext
LIBS=$ac_func_search_save_LIBS ;;
esac
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_aton" >&5
printf "%s\n" "$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

{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing backtrace" >&5
printf %s "checking for library containing backtrace... " >&6; }
if test ${ac_cv_search_backtrace+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e) 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.
   The 'extern "C"' is for builds by C++ compilers;
   although this is not generally supported in C code supporting it here
   has little cost and some practical benefit (sr 110532).  */
#ifdef __cplusplus
extern "C"
#endif
char backtrace (void);
int
main (void)
{
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.beam \
    conftest$ac_exeext
  if test ${ac_cv_search_backtrace+y}
then :
  break
fi
done
if test ${ac_cv_search_backtrace+y}
then :

else case e in #(
  e) ac_cv_search_backtrace=no ;;
esac
fi
rm conftest.$ac_ext
LIBS=$ac_func_search_save_LIBS ;;
esac
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_backtrace" >&5
printf "%s\n" "$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"
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
printf %s "checking for library containing clock_gettime... " >&6; }
if test ${ac_cv_search_clock_gettime+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e) 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.
   The 'extern "C"' is for builds by C++ compilers;
   although this is not generally supported in C code supporting it here
   has little cost and some practical benefit (sr 110532).  */
#ifdef __cplusplus
extern "C"
#endif
char clock_gettime (void);
int
main (void)
{
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.beam \
    conftest$ac_exeext
  if test ${ac_cv_search_clock_gettime+y}
then :
  break
fi
done
if test ${ac_cv_search_clock_gettime+y}
then :

else case e in #(
  e) ac_cv_search_clock_gettime=no ;;
esac
fi
rm conftest.$ac_ext
LIBS=$ac_func_search_save_LIBS ;;
esac
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
printf "%s\n" "$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
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_create" >&5
printf %s "checking for library containing pthread_create... " >&6; }
if test ${ac_cv_search_pthread_create+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e) 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.
   The 'extern "C"' is for builds by C++ compilers;
   although this is not generally supported in C code supporting it here
   has little cost and some practical benefit (sr 110532).  */
#ifdef __cplusplus
extern "C"
#endif
char pthread_create (void);
int
main (void)
{
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.beam \
    conftest$ac_exeext
  if test ${ac_cv_search_pthread_create+y}
then :
  break
fi
done
if test ${ac_cv_search_pthread_create+y}
then :

else case e in #(
  e) ac_cv_search_pthread_create=no ;;
esac
fi
rm conftest.$ac_ext
LIBS=$ac_func_search_save_LIBS ;;
esac
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_create" >&5
printf "%s\n" "$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

  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_detach" >&5
printf %s "checking for library containing pthread_detach... " >&6; }
if test ${ac_cv_search_pthread_detach+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e) 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.
   The 'extern "C"' is for builds by C++ compilers;
   although this is not generally supported in C code supporting it here
   has little cost and some practical benefit (sr 110532).  */
#ifdef __cplusplus
extern "C"
#endif
char pthread_detach (void);
int
main (void)
{
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.beam \
    conftest$ac_exeext
  if test ${ac_cv_search_pthread_detach+y}
then :
  break
fi
done
if test ${ac_cv_search_pthread_detach+y}
then :

else case e in #(
  e) ac_cv_search_pthread_detach=no ;;
esac
fi
rm conftest.$ac_ext
LIBS=$ac_func_search_save_LIBS ;;
esac
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_detach" >&5
printf "%s\n" "$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


ac_fn_c_check_func "$LINENO" "_NSGetEnviron" "ac_cv_func__NSGetEnviron"
if test "x$ac_cv_func__NSGetEnviron" = xyes
then :
  printf "%s\n" "#define HAVE__NSGETENVIRON 1" >>confdefs.h

fi
ac_fn_c_check_func "$LINENO" "RtlSecureZeroMemory" "ac_cv_func_RtlSecureZeroMemory"
if test "x$ac_cv_func_RtlSecureZeroMemory" = xyes
then :
  printf "%s\n" "#define HAVE_RTLSECUREZEROMEMORY 1" >>confdefs.h

fi
ac_fn_c_check_func "$LINENO" "SecureZeroMemory" "ac_cv_func_SecureZeroMemory"
if test "x$ac_cv_func_SecureZeroMemory" = xyes
then :
  printf "%s\n" "#define HAVE_SECUREZEROMEMORY 1" >>confdefs.h

fi
ac_fn_c_check_func "$LINENO" "accept4" "ac_cv_func_accept4"
if test "x$ac_cv_func_accept4" = xyes
then :
  printf "%s\n" "#define HAVE_ACCEPT4 1" >>confdefs.h

fi
ac_fn_c_check_func "$LINENO" "backtrace" "ac_cv_func_backtrace"
if test "x$ac_cv_func_backtrace" = xyes
then :
  printf "%s\n" "#define HAVE_BACKTRACE 1" >>confdefs.h

fi
ac_fn_c_check_func "$LINENO" "backtrace_symbols_fd" "ac_cv_func_backtrace_symbols_fd"
if test "x$ac_cv_func_backtrace_symbols_fd" = xyes
then :
  printf "%s\n" "#define HAVE_BACKTRACE_SYMBOLS_FD 1" >>confdefs.h

fi
ac_fn_c_check_func "$LINENO" "eventfd" "ac_cv_func_eventfd"
if test "x$ac_cv_func_eventfd" = xyes
then :
  printf "%s\n" "#define HAVE_EVENTFD 1" >>confdefs.h

fi
ac_fn_c_check_func "$LINENO" "explicit_bzero" "ac_cv_func_explicit_bzero"
if test "x$ac_cv_func_explicit_bzero" = xyes
then :
  printf "%s\n" "#define HAVE_EXPLICIT_BZERO 1" >>confdefs.h

fi
ac_fn_c_check_func "$LINENO" "timingsafe_memcmp" "ac_cv_func_timingsafe_memcmp"
if test "x$ac_cv_func_timingsafe_memcmp" = xyes
then :
  printf "%s\n" "#define HAVE_TIMINGSAFE_MEMCMP 1" >>confdefs.h

fi
ac_fn_c_check_func "$LINENO" "flock" "ac_cv_func_flock"
if test "x$ac_cv_func_flock" = xyes
then :
  printf "%s\n" "#define HAVE_FLOCK 1" >>confdefs.h

fi
ac_fn_c_check_func "$LINENO" "fsync" "ac_cv_func_fsync"
if test "x$ac_cv_func_fsync" = xyes
then :
  printf "%s\n" "#define HAVE_FSYNC 1" >>confdefs.h

fi
ac_fn_c_check_func "$LINENO" "ftime" "ac_cv_func_ftime"
if test "x$ac_cv_func_ftime" = xyes
then :
  printf "%s\n" "#define HAVE_FTIME 1" >>confdefs.h

fi
ac_fn_c_check_func "$LINENO" "get_current_dir_name" "ac_cv_func_get_current_dir_name"
if test "x$ac_cv_func_get_current_dir_name" = xyes
then :
  printf "%s\n" "#define HAVE_GET_CURRENT_DIR_NAME 1" >>confdefs.h

fi
ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo"
if test "x$ac_cv_func_getaddrinfo" = xyes
then :
  printf "%s\n" "#define HAVE_GETADDRINFO 1" >>confdefs.h

fi
ac_fn_c_check_func "$LINENO" "getdelim" "ac_cv_func_getdelim"
if test "x$ac_cv_func_getdelim" = xyes
then :
  printf "%s\n" "#define HAVE_GETDELIM 1" >>confdefs.h

fi
ac_fn_c_check_func "$LINENO" "getifaddrs" "ac_cv_func_getifaddrs"
if test "x$ac_cv_func_getifaddrs" = xyes
then :
  printf "%s\n" "#define HAVE_GETIFADDRS 1" >>confdefs.h

fi
ac_fn_c_check_func "$LINENO" "getline" "ac_cv_func_getline"
if test "x$ac_cv_func_getline" = xyes
then :
  printf "%s\n" "#define HAVE_GETLINE 1" >>confdefs.h

fi
ac_fn_c_check_func "$LINENO" "getrlimit" "ac_cv_func_getrlimit"
if test "x$ac_cv_func_getrlimit" = xyes
then :
  printf "%s\n" "#define HAVE_GETRLIMIT 1" >>confdefs.h

fi
ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
if test "x$ac_cv_func_gettimeofday" = xyes
then :
  printf "%s\n" "#define HAVE_GETTIMEOFDAY 1" >>confdefs.h

fi
ac_fn_c_check_func "$LINENO" "gmtime_r" "ac_cv_func_gmtime_r"
if test "x$ac_cv_func_gmtime_r" = xyes
then :
  printf "%s\n" "#define HAVE_GMTIME_R 1" >>confdefs.h

fi
ac_fn_c_check_func "$LINENO" "gnu_get_libc_version" "ac_cv_func_gnu_get_libc_version"
if test "x$ac_cv_func_gnu_get_libc_version" = xyes
then :
  printf "%s\n" "#define HAVE_GNU_GET_LIBC_VERSION 1" >>confdefs.h

fi
ac_fn_c_check_func "$LINENO" "inet_aton" "ac_cv_func_inet_aton"
if test "x$ac_cv_func_inet_aton" = xyes
then :
  printf "%s\n" "#define HAVE_INET_ATON 1" >>confdefs.h

fi
ac_fn_c_check_func "$LINENO" "ioctl" "ac_cv_func_ioctl"
if test "x$ac_cv_func_ioctl" = xyes
then :
  printf "%s\n" "#define HAVE_IOCTL 1" >>confdefs.h

fi
ac_fn_c_check_func "$LINENO" "issetugid" "ac_cv_func_issetugid"
if test "x$ac_cv_func_issetugid" = xyes
then :
  printf "%s\n" "#define HAVE_ISSETUGID 1" >>confdefs.h

fi
ac_fn_c_check_func "$LINENO" "llround" "ac_cv_func_llround"
if test "x$ac_cv_func_llround" = xyes
then :
  printf "%s\n" "#define HAVE_LLROUND 1" >>confdefs.h

fi
ac_fn_c_check_func "$LINENO" "localtime_r" "ac_cv_func_localtime_r"
if test "x$ac_cv_func_localtime_r" = xyes
then :
  printf "%s\n" "#define HAVE_LOCALTIME_R 1" >>confdefs.h

fi
ac_fn_c_check_func "$LINENO" "lround" "ac_cv_func_lround"
if test "x$ac_cv_func_lround" = xyes
then :
  printf "%s\n" "#define HAVE_LROUND 1" >>confdefs.h

fi
ac_fn_c_check_func "$LINENO" "madvise" "ac_cv_func_madvise"
if test "x$ac_cv_func_madvise" = xyes
then :
  printf "%s\n" "#define HAVE_MADVISE 1" >>confdefs.h

fi
ac_fn_c_check_func "$LINENO" "memmem" "ac_cv_func_memmem"
if test "x$ac_cv_func_memmem" = xyes
then :
  printf "%s\n" "#define HAVE_MEMMEM 1" >>confdefs.h

fi
ac_fn_c_check_func "$LINENO" "memset_s" "ac_cv_func_memset_s"
if test "x$ac_cv_func_memset_s" = xyes
then :
  printf "%s\n" "#define HAVE_MEMSET_S 1" >>confdefs.h

fi
ac_fn_c_check_func "$LINENO" "minherit" "ac_cv_func_minherit"
if test "x$ac_cv_func_minherit" = xyes
then :
  printf "%s\n" "#define HAVE_MINHERIT 1" >>confdefs.h

fi
ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
if test "x$ac_cv_func_mmap" = xyes
then :
  printf "%s\n" "#define HAVE_MMAP 1" >>confdefs.h

fi
ac_fn_c_check_func "$LINENO" "pipe" "ac_cv_func_pipe"
if test "x$ac_cv_func_pipe" = xyes
then :
  printf "%s\n" "#define HAVE_PIPE 1" >>confdefs.h

fi
ac_fn_c_check_func "$LINENO" "pipe2" "ac_cv_func_pipe2"
if test "x$ac_cv_func_pipe2" = xyes
then :
  printf "%s\n" "#define HAVE_PIPE2 1" >>confdefs.h

fi
ac_fn_c_check_func "$LINENO" "prctl" "ac_cv_func_prctl"
if test "x$ac_cv_func_prctl" = xyes
then :
  printf "%s\n" "#define HAVE_PRCTL 1" >>confdefs.h

fi
ac_fn_c_check_func "$LINENO" "readpassphrase" "ac_cv_func_readpassphrase"
if test "x$ac_cv_func_readpassphrase" = xyes
then :
  printf "%s\n" "#define HAVE_READPASSPHRASE 1" >>confdefs.h

fi
ac_fn_c_check_func "$LINENO" "rint" "ac_cv_func_rint"
if test "x$ac_cv_func_rint" = xyes
then :
  printf "%s\n" "#define HAVE_RINT 1" >>confdefs.h

fi
ac_fn_c_check_func "$LINENO" "sigaction" "ac_cv_func_sigaction"
if test "x$ac_cv_func_sigaction" = xyes
then :
  printf "%s\n" "#define HAVE_SIGACTION 1" >>confdefs.h

fi
ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf"
if test "x$ac_cv_func_snprintf" = xyes
then :
  printf "%s\n" "#define HAVE_SNPRINTF 1" >>confdefs.h

fi
ac_fn_c_check_func "$LINENO" "socketpair" "ac_cv_func_socketpair"
if test "x$ac_cv_func_socketpair" = xyes
then :
  printf "%s\n" "#define HAVE_SOCKETPAIR 1" >>confdefs.h

fi
ac_fn_c_check_func "$LINENO" "statvfs" "ac_cv_func_statvfs"
if test "x$ac_cv_func_statvfs" = xyes
then :
  printf "%s\n" "#define HAVE_STATVFS 1" >>confdefs.h

fi
ac_fn_c_check_func "$LINENO" "strncasecmp" "ac_cv_func_strncasecmp"
if test "x$ac_cv_func_strncasecmp" = xyes
then :
  printf "%s\n" "#define HAVE_STRNCASECMP 1" >>confdefs.h

fi
ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp"
if test "x$ac_cv_func_strcasecmp" = xyes
then :
  printf "%s\n" "#define HAVE_STRCASECMP 1" >>confdefs.h

fi
ac_fn_c_check_func "$LINENO" "strlcat" "ac_cv_func_strlcat"
if test "x$ac_cv_func_strlcat" = xyes
then :
  printf "%s\n" "#define HAVE_STRLCAT 1" >>confdefs.h

fi
ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy"
if test "x$ac_cv_func_strlcpy" = xyes
then :
  printf "%s\n" "#define HAVE_STRLCPY 1" >>confdefs.h

fi
ac_fn_c_check_func "$LINENO" "strnlen" "ac_cv_func_strnlen"
if test "x$ac_cv_func_strnlen" = xyes
then :
  printf "%s\n" "#define HAVE_STRNLEN 1" >>confdefs.h

fi
ac_fn_c_check_func "$LINENO" "strptime" "ac_cv_func_strptime"
if test "x$ac_cv_func_strptime" = xyes
then :
  printf "%s\n" "#define HAVE_STRPTIME 1" >>confdefs.h

fi
ac_fn_c_check_func "$LINENO" "strtok_r" "ac_cv_func_strtok_r"
if test "x$ac_cv_func_strtok_r" = xyes
then :
  printf "%s\n" "#define HAVE_STRTOK_R 1" >>confdefs.h

fi
ac_fn_c_check_func "$LINENO" "strtoull" "ac_cv_func_strtoull"
if test "x$ac_cv_func_strtoull" = xyes
then :
  printf "%s\n" "#define HAVE_STRTOULL 1" >>confdefs.h

fi
ac_fn_c_check_func "$LINENO" "sysconf" "ac_cv_func_sysconf"
if test "x$ac_cv_func_sysconf" = xyes
then :
  printf "%s\n" "#define HAVE_SYSCONF 1" >>confdefs.h

fi
ac_fn_c_check_func "$LINENO" "sysctl" "ac_cv_func_sysctl"
if test "x$ac_cv_func_sysctl" = xyes
then :
  printf "%s\n" "#define HAVE_SYSCTL 1" >>confdefs.h

fi
ac_fn_c_check_func "$LINENO" "timegm" "ac_cv_func_timegm"
if test "x$ac_cv_func_timegm" = xyes
then :
  printf "%s\n" "#define HAVE_TIMEGM 1" >>confdefs.h

fi
ac_fn_c_check_func "$LINENO" "truncate" "ac_cv_func_truncate"
if test "x$ac_cv_func_truncate" = xyes
then :
  printf "%s\n" "#define HAVE_TRUNCATE 1" >>confdefs.h

fi
ac_fn_c_check_func "$LINENO" "uname" "ac_cv_func_uname"
if test "x$ac_cv_func_uname" = xyes
then :
  printf "%s\n" "#define HAVE_UNAME 1" >>confdefs.h

fi
ac_fn_c_check_func "$LINENO" "usleep" "ac_cv_func_usleep"
if test "x$ac_cv_func_usleep" = xyes
then :
  printf "%s\n" "#define HAVE_USLEEP 1" >>confdefs.h

fi
ac_fn_c_check_func "$LINENO" "vasprintf" "ac_cv_func_vasprintf"
if test "x$ac_cv_func_vasprintf" = xyes
then :
  printf "%s\n" "#define HAVE_VASPRINTF 1" >>confdefs.h

fi
ac_fn_c_check_func "$LINENO" "_vscprintf" "ac_cv_func__vscprintf"
if test "x$ac_cv_func__vscprintf" = xyes
then :
  printf "%s\n" "#define HAVE__VSCPRINTF 1" >>confdefs.h

fi
ac_fn_c_check_func "$LINENO" "vsnprintf" "ac_cv_func_vsnprintf"
if test "x$ac_cv_func_vsnprintf" = xyes
then :
  printf "%s\n" "#define HAVE_VSNPRINTF 1" >>confdefs.h

fi


# 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.
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a pre-Yosemite OS X build target" >&5
printf %s "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 (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  on_macos_pre_10_10=no ; { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
else case e in #(
  e) on_macos_pre_10_10=yes; { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; } ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext

if test "$on_macos_pre_10_10" = "no"; then
  ac_fn_c_check_func "$LINENO" "mach_approximate_time" "ac_cv_func_mach_approximate_time"
if test "x$ac_cv_func_mach_approximate_time" = xyes
then :
  printf "%s\n" "#define HAVE_MACH_APPROXIMATE_TIME 1" >>confdefs.h

fi

fi

# We should only probe for these functions if we are sure that we
# are not targeting OSX 10.11 or earlier.
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a pre-Sierra OSX build target" >&5
printf %s "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 (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  on_macos_pre_10_12=no ; { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
else case e in #(
  e) on_macos_pre_10_12=yes; { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; } ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext

if test "$on_macos_pre_10_12" = "no"; then
  ac_fn_c_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime"
if test "x$ac_cv_func_clock_gettime" = xyes
then :
  printf "%s\n" "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h

fi
ac_fn_c_check_func "$LINENO" "getentropy" "ac_cv_func_getentropy"
if test "x$ac_cv_func_getentropy" = xyes
then :
  printf "%s\n" "#define HAVE_GETENTROPY 1" >>confdefs.h

fi

fi

if test "$bwin32" != "true"; then
  ac_fn_c_check_header_compile "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
if test "x$ac_cv_header_pthread_h" = xyes
then :
  printf "%s\n" "#define HAVE_PTHREAD_H 1" >>confdefs.h

fi

  ac_fn_c_check_func "$LINENO" "pthread_create" "ac_cv_func_pthread_create"
if test "x$ac_cv_func_pthread_create" = xyes
then :
  printf "%s\n" "#define HAVE_PTHREAD_CREATE 1" >>confdefs.h

fi

  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 :
  printf "%s\n" "#define HAVE_PTHREAD_CONDATTR_SETCLOCK 1" >>confdefs.h

fi

fi

if test "$bwin32" = "true"; then
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
if test ${ac_cv_c_undeclared_builtin_options+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e) ac_save_CFLAGS=$CFLAGS
   ac_cv_c_undeclared_builtin_options='cannot detect'
   for ac_arg in '' -fno-builtin; do
     CFLAGS="$ac_save_CFLAGS $ac_arg"
     # This test program should *not* compile successfully.
     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main (void)
{
(void) strchr;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :

else case e in #(
  e) # This test program should compile successfully.
        # No library function is consistently available on
        # freestanding implementations, so test against a dummy
        # declaration.  Include always-available headers on the
        # off chance that they somehow elicit warnings.
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <float.h>
#include <limits.h>
#include <stdarg.h>
#include <stddef.h>
extern void ac_decl (int, char *);

int
main (void)
{
(void) ac_decl (0, (char *) 0);
  (void) ac_decl;

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  if test x"$ac_arg" = x
then :
  ac_cv_c_undeclared_builtin_options='none needed'
else case e in #(
  e) ac_cv_c_undeclared_builtin_options=$ac_arg ;;
esac
fi
          break
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
    done
    CFLAGS=$ac_save_CFLAGS
   ;;
esac
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
  case $ac_cv_c_undeclared_builtin_options in #(
  'cannot detect') :
    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
as_fn_error $? "cannot make $CC report undeclared builtins
See 'config.log' for more details" "$LINENO" 5; } ;; #(
  'none needed') :
    ac_c_undeclared_builtin_options='' ;; #(
  *) :
    ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
esac

ac_fn_check_decl "$LINENO" "SecureZeroMemory" "ac_cv_have_decl_SecureZeroMemory" "
#include <windows.h>
#include <conio.h>
#include <wchar.h>

" "$ac_c_undeclared_builtin_options" "CFLAGS"
if test "x$ac_cv_have_decl_SecureZeroMemory" = xyes
then :
  ac_have_decl=1
else case e in #(
  e) ac_have_decl=0 ;;
esac
fi
printf "%s\n" "#define HAVE_DECL_SECUREZEROMEMORY $ac_have_decl" >>confdefs.h
ac_fn_check_decl "$LINENO" "_getwch" "ac_cv_have_decl__getwch" "
#include <windows.h>
#include <conio.h>
#include <wchar.h>

" "$ac_c_undeclared_builtin_options" "CFLAGS"
if test "x$ac_cv_have_decl__getwch" = xyes
then :
  ac_have_decl=1
else case e in #(
  e) ac_have_decl=0 ;;
esac
fi
printf "%s\n" "#define HAVE_DECL__GETWCH $ac_have_decl" >>confdefs.h

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


ac_fn_c_check_func "$LINENO" "glob" "ac_cv_func_glob"
if test "x$ac_cv_func_glob" = xyes
then :
  printf "%s\n" "#define HAVE_GLOB 1" >>confdefs.h

fi


{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether free(NULL) works" >&5
printf %s "checking whether free(NULL) works... " >&6; }
if test "$cross_compiling" = yes
then :
  free_null_ok=cross; { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cross" >&5
printf "%s\n" "cross" >&6; }
else case e in #(
  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

  #include <stdlib.h>

int
main (void)
{

char *p = NULL;
free(p);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_run "$LINENO"
then :
  free_null_ok=true; { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }
else case e in #(
  e) free_null_ok=false; { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; } ;;
esac
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
esac
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
  TOR_LIB_SHLWAPI=-lshlwapi
  TOR_LIB_GDI=-lgdi32
  TOR_LIB_USERENV=-luserenv
  TOR_LIB_BCRYPT=-lbcrypt
  TOR_LIB_CRYPT32=-lcrypt32
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+y}
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"
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libevent directory" >&5
printf %s "checking for libevent directory... " >&6; }
if test ${tor_cv_library_libevent_dir+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
  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="-levent $STATIC_LIBEVENT_FLAGS $TOR_LIB_IPHLPAPI $TOR_LIB_BCRYPT $TOR_LIB_WS32 $tor_saved_LIBS"
    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 (void)
{

#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 case e in #(
  e) linkable=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    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 (void)
{

#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 case e in #(
  e) buildable=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam 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
      { printf "%s\n" "$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
printf "%s\n" "$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
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: On Debian, you can install$h libevent using \"apt-get install $tor_libevent_pkg_debian\"" >&5
printf "%s\n" "$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
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING:    You will probably need $tor_libevent_devpkg_debian too." >&5
printf "%s\n" "$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
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: On Fedora, you can install$h libevent using \"dnf install $tor_libevent_pkg_redhat\"" >&5
printf "%s\n" "$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
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING:    You will probably need to install $tor_libevent_devpkg_redhat too." >&5
printf "%s\n" "$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
    { printf "%s\n" "$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
printf "%s\n" "$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
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING:    You will probably need to install $tor_libevent_devpkg_redhat too." >&5
printf "%s\n" "$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
      { printf "%s\n" "$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
printf "%s\n" "$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
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: On Debian, you can install$h libevent using \"apt-get install $tor_libevent_devpkg_debian\"" >&5
printf "%s\n" "$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
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING:    You will probably need $tor_libevent_devpkg_debian too." >&5
printf "%s\n" "$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
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: On Fedora, you can install$h libevent using \"dnf install $tor_libevent_devpkg_redhat\"" >&5
printf "%s\n" "$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
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING:    You will probably need to install $tor_libevent_devpkg_redhat too." >&5
printf "%s\n" "$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
    { printf "%s\n" "$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
printf "%s\n" "$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
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING:    You will probably need to install $tor_libevent_devpkg_redhat too." >&5
printf "%s\n" "$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"
 ;;
esac
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tor_cv_library_libevent_dir" >&5
printf "%s\n" "$tor_cv_library_libevent_dir" >&6; }
LIBS="-levent $STATIC_LIBEVENT_FLAGS $TOR_LIB_IPHLPAPI $TOR_LIB_BCRYPT $TOR_LIB_WS32 $LIBS"
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
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we need extra options to link libevent" >&5
printf %s "checking whether we need extra options to link libevent... " >&6; }
if test ${tor_cv_library_libevent_linker_option+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
   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 (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  runnable=yes
else case e in #(
  e) runnable=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
else case e in #(
  e) 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 (void)
{

#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 case e in #(
  e) runnable=no ;;
esac
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
esac
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"
   ;;
esac
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tor_cv_library_libevent_linker_option" >&5
printf "%s\n" "$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"

ac_fn_c_check_header_compile "$LINENO" "event2/event.h" "ac_cv_header_event2_event_h" "$ac_includes_default"
if test "x$ac_cv_header_event2_event_h" = xyes
then :
  printf "%s\n" "#define HAVE_EVENT2_EVENT_H 1" >>confdefs.h

fi
ac_fn_c_check_header_compile "$LINENO" "event2/dns.h" "ac_cv_header_event2_dns_h" "$ac_includes_default"
if test "x$ac_cv_header_event2_dns_h" = xyes
then :
  printf "%s\n" "#define HAVE_EVENT2_DNS_H 1" >>confdefs.h

fi
ac_fn_c_check_header_compile "$LINENO" "event2/bufferevent_ssl.h" "ac_cv_header_event2_bufferevent_ssl_h" "$ac_includes_default"
if test "x$ac_cv_header_event2_bufferevent_ssl_h" = xyes
then :
  printf "%s\n" "#define HAVE_EVENT2_BUFFEREVENT_SSL_H 1" >>confdefs.h

fi


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
       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing event_new" >&5
printf %s "checking for library containing event_new... " >&6; }
if test ${ac_cv_search_event_new+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e) 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.
   The 'extern "C"' is for builds by C++ compilers;
   although this is not generally supported in C code supporting it here
   has little cost and some practical benefit (sr 110532).  */
#ifdef __cplusplus
extern "C"
#endif
char event_new (void);
int
main (void)
{
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.beam \
    conftest$ac_exeext
  if test ${ac_cv_search_event_new+y}
then :
  break
fi
done
if test ${ac_cv_search_event_new+y}
then :

else case e in #(
  e) ac_cv_search_event_new=no ;;
esac
fi
rm conftest.$ac_ext
LIBS=$ac_func_search_save_LIBS ;;
esac
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_event_new" >&5
printf "%s\n" "$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 case e in #(
  e) as_fn_error $? "\"libevent2 is installed but linking it failed while searching for event_new\"" "$LINENO" 5 ;;
esac
fi

       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing evdns_base_new" >&5
printf %s "checking for library containing evdns_base_new... " >&6; }
if test ${ac_cv_search_evdns_base_new+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e) 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.
   The 'extern "C"' is for builds by C++ compilers;
   although this is not generally supported in C code supporting it here
   has little cost and some practical benefit (sr 110532).  */
#ifdef __cplusplus
extern "C"
#endif
char evdns_base_new (void);
int
main (void)
{
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.beam \
    conftest$ac_exeext
  if test ${ac_cv_search_evdns_base_new+y}
then :
  break
fi
done
if test ${ac_cv_search_evdns_base_new+y}
then :

else case e in #(
  e) ac_cv_search_evdns_base_new=no ;;
esac
fi
rm conftest.$ac_ext
LIBS=$ac_func_search_save_LIBS ;;
esac
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_evdns_base_new" >&5
printf "%s\n" "$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 case e in #(
  e) as_fn_error $? "\"libevent2 is installed but linking it failed while searching for evdns_base_new\"" "$LINENO" 5 ;;
esac
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

ac_fn_c_check_func "$LINENO" "evutil_secure_rng_set_urandom_device_file" "ac_cv_func_evutil_secure_rng_set_urandom_device_file"
if test "x$ac_cv_func_evutil_secure_rng_set_urandom_device_file" = xyes
then :
  printf "%s\n" "#define HAVE_EVUTIL_SECURE_RNG_SET_URANDOM_DEVICE_FILE 1" >>confdefs.h

fi
ac_fn_c_check_func "$LINENO" "evutil_secure_rng_add_bytes" "ac_cv_func_evutil_secure_rng_add_bytes"
if test "x$ac_cv_func_evutil_secure_rng_add_bytes" = xyes
then :
  printf "%s\n" "#define HAVE_EVUTIL_SECURE_RNG_ADD_BYTES 1" >>confdefs.h

fi
ac_fn_c_check_func "$LINENO" "evdns_base_get_nameserver_addr" "ac_cv_func_evdns_base_get_nameserver_addr"
if test "x$ac_cv_func_evdns_base_get_nameserver_addr" = xyes
then :
  printf "%s\n" "#define HAVE_EVDNS_BASE_GET_NAMESERVER_ADDR 1" >>confdefs.h

fi


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

CPPFLAGS="$CPPFLAGS $TOR_CPPFLAGS_libevent"
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether Libevent is new enough" >&5
printf %s "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 :
   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }
else case e in #(
  e)  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
     as_fn_error $? "Libevent is not new enough.  We require 2.0.10-stable or later" "$LINENO" 5   ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext

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




TOR_LIB_MATH=""
save_LIBS="$LIBS"
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing pow" >&5
printf %s "checking for library containing pow... " >&6; }
if test ${ac_cv_search_pow+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e) 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.
   The 'extern "C"' is for builds by C++ compilers;
   although this is not generally supported in C code supporting it here
   has little cost and some practical benefit (sr 110532).  */
#ifdef __cplusplus
extern "C"
#endif
char pow (void);
int
main (void)
{
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.beam \
    conftest$ac_exeext
  if test ${ac_cv_search_pow+y}
then :
  break
fi
done
if test ${ac_cv_search_pow+y}
then :

else case e in #(
  e) ac_cv_search_pow=no ;;
esac
fi
rm conftest.$ac_ext
LIBS=$ac_func_search_save_LIBS ;;
esac
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pow" >&5
printf "%s\n" "$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 case e in #(
  e) as_fn_error $? "Could not find pow in libm or libc." "$LINENO" 5 ;;
esac
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
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for NSS" >&5
printf %s "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" && \
    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"nss\""; } >&5
  ($PKG_CONFIG --exists --print-errors "nss") 2>&5
  ac_status=$?
  printf "%s\n" "$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" && \
    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"nss\""; } >&5
  ($PKG_CONFIG --exists --print-errors "nss") 2>&5
  ac_status=$?
  printf "%s\n" "$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
   	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "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
     	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "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
        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }
	have_nss=yes
fi



  save_CFLAGS="$CFLAGS"
  save_LIBS="$LIBS"
  LIBS="$LIBS $NSS_LIBS"
  CFLAGS="$CFLAGS $NSS_CFLAGS"
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether NSS defines ssl_kea_ecdh_hybrid(_psk)" >&5
printf %s "checking whether NSS defines ssl_kea_ecdh_hybrid(_psk)... " >&6; }
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

    #include <sslt.h>
    int v = (int) ssl_kea_ecdh_hybrid_psk;
    int v2 = (int) ssl_kea_ecdh_hybrid;

_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; };

printf "%s\n" "#define NSS_HAS_ECDH_HYBRID 1" >>confdefs.h


else case e in #(
  e)  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }  ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  LIBS="$save_LIBS"
  CPPFLAGS="$save_CPPFLAGS"
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+y}
then :
  withval=$with_ssl_dir;
      if test "x$withval" != "xno" && test "x$withval" != "x"; then
         ALT_openssl_WITHVAL="$withval"
      fi

fi


{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: Now, we'll look for OpenSSL." >&5
printf "%s\n" "$as_me: Now, we'll look for OpenSSL." >&6;}

tryopenssldir=""

# Check whether --with-openssl-dir was given.
if test ${with_openssl_dir+y}
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"
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for openssl directory" >&5
printf %s "checking for openssl directory... " >&6; }
if test ${tor_cv_library_openssl_dir+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
  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="-lssl -lcrypto $TOR_LIB_GDI $TOR_LIB_WS32 $TOR_LIB_CRYPT32 $tor_saved_LIBS"
    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 (void)
{
                        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 case e in #(
  e) linkable=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    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 (void)
{
                        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 case e in #(
  e) buildable=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam 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
      { printf "%s\n" "$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
printf "%s\n" "$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
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: On Debian, you can install$h openssl using \"apt-get install $tor_openssl_pkg_debian\"" >&5
printf "%s\n" "$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
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING:    You will probably need $tor_openssl_devpkg_debian too." >&5
printf "%s\n" "$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
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: On Fedora, you can install$h openssl using \"dnf install $tor_openssl_pkg_redhat\"" >&5
printf "%s\n" "$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
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING:    You will probably need to install $tor_openssl_devpkg_redhat too." >&5
printf "%s\n" "$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
    { printf "%s\n" "$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
printf "%s\n" "$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
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING:    You will probably need to install $tor_openssl_devpkg_redhat too." >&5
printf "%s\n" "$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
      { printf "%s\n" "$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
printf "%s\n" "$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
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: On Debian, you can install$h openssl using \"apt-get install $tor_openssl_devpkg_debian\"" >&5
printf "%s\n" "$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
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING:    You will probably need $tor_openssl_devpkg_debian too." >&5
printf "%s\n" "$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
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: On Fedora, you can install$h openssl using \"dnf install $tor_openssl_devpkg_redhat\"" >&5
printf "%s\n" "$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
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING:    You will probably need to install $tor_openssl_devpkg_redhat too." >&5
printf "%s\n" "$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
    { printf "%s\n" "$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
printf "%s\n" "$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
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING:    You will probably need to install $tor_openssl_devpkg_redhat too." >&5
printf "%s\n" "$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"
 ;;
esac
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tor_cv_library_openssl_dir" >&5
printf "%s\n" "$tor_cv_library_openssl_dir" >&6; }
LIBS="-lssl -lcrypto $TOR_LIB_GDI $TOR_LIB_WS32 $TOR_LIB_CRYPT32 $LIBS"
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
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we need extra options to link openssl" >&5
printf %s "checking whether we need extra options to link openssl... " >&6; }
if test ${tor_cv_library_openssl_linker_option+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
   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 (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  runnable=yes
else case e in #(
  e) runnable=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
else case e in #(
  e) 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 (void)
{
                        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 case e in #(
  e) runnable=no ;;
esac
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
esac
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"
   ;;
esac
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tor_cv_library_openssl_linker_option" >&5
printf "%s\n" "$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 $TOR_LIB_WS32 $TOR_LIB_CRYPT32 $TOR_LIB_BCRYPT"
   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"


{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for OpenSSL implementation" >&5
printf %s "checking for OpenSSL implementation... " >&6; }
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include <openssl/opensslv.h>
#if defined(LIBRESSL_VERSION_NUMBER)
#error "this is libressl, no worries"
#endif

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
   openssl_impl=openssl
     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: OpenSSL" >&5
printf "%s\n" "OpenSSL" >&6; }

printf "%s\n" "#define OPENSSL_SUPPRESS_DEPRECATED 1" >>confdefs.h


else case e in #(
  e)  openssl_impl=libressl
     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: LibreSSL" >&5
printf "%s\n" "LibreSSL" >&6; }
    ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext

if test "x$openssl_impl" = "xopenssl"; then
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for OpenSSL < 1.1.1" >&5
printf %s "checking for OpenSSL < 1.1.1... " >&6; }
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

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

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
else case e in #(
  e)  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }
     as_fn_error $? "Your version of OpenSSL is too old. We require 1.1.1 or later, and you should use 3.5 if possible." "$LINENO" 5
    ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

if test "x$openssl_impl" = "xlibressl"; then
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for LibreSSL < 3.7.0" >&5
printf %s "checking for LibreSSL < 3.7.0... " >&6; }
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

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

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
else case e in #(
  e)  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }
     as_fn_error $? "Your version of LibreSSL is too old. We require 3.7.0 or later." "$LINENO" 5
    ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

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 (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
   :
else case e in #(
  e)  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  ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext

{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for significant mismatch between openssl headers and libraries" >&5
printf %s "checking for significant mismatch between openssl headers and libraries... " >&6; }
ac_retval=foo
if test "$cross_compiling" = yes
then :
  openssl_ver_mismatch=cross
else case e in #(
  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

 #include <openssl/opensslv.h>
 #include <openssl/crypto.h>

int
main (void)
{

  /* Include major, minor, and fix, but not patch or status. */
  unsigned long mask = 0xfffff000;
  unsigned long linking = OpenSSL_version_num() & mask;
  unsigned long running = OPENSSL_VERSION_NUMBER & mask;
  return !(linking==running);

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_run "$LINENO"
then :
  openssl_ver_mismatch=no
else case e in #(
  e)
   # This is a kludge to figure out whether compilation failed, or whether
   # running the program failed.
   if test "$ac_retval" = "1"; then
      openssl_ver_mismatch=inconclusive
   else
      openssl_ver_mismatch=yes
   fi ;;
esac
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
esac
fi

{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $openssl_ver_mismatch" >&5
printf "%s\n" "$openssl_ver_mismatch" >&6; }

ac_fn_c_check_func "$LINENO" "EVP_PBE_scrypt" "ac_cv_func_EVP_PBE_scrypt"
if test "x$ac_cv_func_EVP_PBE_scrypt" = xyes
then :
  printf "%s\n" "#define HAVE_EVP_PBE_SCRYPT 1" >>confdefs.h

fi
ac_fn_c_check_func "$LINENO" "SSL_CTX_set_security_level" "ac_cv_func_SSL_CTX_set_security_level"
if test "x$ac_cv_func_SSL_CTX_set_security_level" = xyes
then :
  printf "%s\n" "#define HAVE_SSL_CTX_SET_SECURITY_LEVEL 1" >>confdefs.h

fi
ac_fn_c_check_func "$LINENO" "SSL_set_ciphersuites" "ac_cv_func_SSL_set_ciphersuites"
if test "x$ac_cv_func_SSL_set_ciphersuites" = xyes
then :
  printf "%s\n" "#define HAVE_SSL_SET_CIPHERSUITES 1" >>confdefs.h

fi


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 :

printf "%s\n" "#define HAVE_STRUCT_TCP_INFO_TCPI_UNACKED 1" >>confdefs.h


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 :

printf "%s\n" "#define HAVE_STRUCT_TCP_INFO_TCPI_SND_MSS 1" >>confdefs.h


fi

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

int
main (void)
{

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

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  have_siocoutqnsd=yes
else case e in #(
  e) have_siocoutqnsd=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam 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 :

printf "%s\n" "#define HAVE_KIST_SUPPORT 1" >>confdefs.h

else case e in #(
  e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: KIST scheduler can't be used. Missing support." >&5
printf "%s\n" "$as_me: KIST scheduler can't be used. Missing support." >&6;} ;;
esac
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+y}
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"
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for zlib directory" >&5
printf %s "checking for zlib directory... " >&6; }
if test ${tor_cv_library_zlib_dir+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
  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="-lz $tor_saved_LIBS"
    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 (void)
{
zlibVersion();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  linkable=yes
else case e in #(
  e) linkable=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    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 (void)
{
zlibVersion();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  buildable=yes
else case e in #(
  e) buildable=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam 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
      { printf "%s\n" "$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
printf "%s\n" "$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
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: On Debian, you can install$h zlib using \"apt-get install $tor_zlib_pkg_debian\"" >&5
printf "%s\n" "$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
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING:    You will probably need $tor_zlib_devpkg_debian too." >&5
printf "%s\n" "$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
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: On Fedora, you can install$h zlib using \"dnf install $tor_zlib_pkg_redhat\"" >&5
printf "%s\n" "$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
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING:    You will probably need to install $tor_zlib_devpkg_redhat too." >&5
printf "%s\n" "$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
    { printf "%s\n" "$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
printf "%s\n" "$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
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING:    You will probably need to install $tor_zlib_devpkg_redhat too." >&5
printf "%s\n" "$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
      { printf "%s\n" "$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
printf "%s\n" "$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
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: On Debian, you can install$h zlib using \"apt-get install $tor_zlib_devpkg_debian\"" >&5
printf "%s\n" "$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
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING:    You will probably need $tor_zlib_devpkg_debian too." >&5
printf "%s\n" "$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
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: On Fedora, you can install$h zlib using \"dnf install $tor_zlib_devpkg_redhat\"" >&5
printf "%s\n" "$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
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING:    You will probably need to install $tor_zlib_devpkg_redhat too." >&5
printf "%s\n" "$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
    { printf "%s\n" "$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
printf "%s\n" "$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
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING:    You will probably need to install $tor_zlib_devpkg_redhat too." >&5
printf "%s\n" "$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"
 ;;
esac
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tor_cv_library_zlib_dir" >&5
printf "%s\n" "$tor_cv_library_zlib_dir" >&6; }
LIBS="-lz $LIBS"
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
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we need extra options to link zlib" >&5
printf %s "checking whether we need extra options to link zlib... " >&6; }
if test ${tor_cv_library_zlib_linker_option+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
   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 (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  runnable=yes
else case e in #(
  e) runnable=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
else case e in #(
  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
const char * zlibVersion(void);
int
main (void)
{
zlibVersion();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_run "$LINENO"
then :
  runnable=yes
else case e in #(
  e) runnable=no ;;
esac
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
esac
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"
   ;;
esac
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tor_cv_library_zlib_linker_option" >&5
printf "%s\n" "$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+y}
then :
  enableval=$enable_lzma; case "${enableval}" in
        "yes") ;;
        "no")  ;;
        * ) as_fn_error $? "bad value for --enable-lzma" "$LINENO" 5 ;;
      esac
else case e in #(
  e) enable_lzma=auto ;;
esac
fi


if test "x$enable_lzma" = "xno"; then
    have_lzma=no;
else

pkg_failed=no
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for LZMA" >&5
printf %s "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" && \
    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"liblzma\""; } >&5
  ($PKG_CONFIG --exists --print-errors "liblzma") 2>&5
  ac_status=$?
  printf "%s\n" "$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" && \
    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"liblzma\""; } >&5
  ($PKG_CONFIG --exists --print-errors "liblzma") 2>&5
  ac_status=$?
  printf "%s\n" "$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
   	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "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
     	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
	have_lzma=no
else
	LZMA_CFLAGS=$pkg_cv_LZMA_CFLAGS
	LZMA_LIBS=$pkg_cv_LZMA_LIBS
        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }
	have_lzma=yes
fi

    if test "x$have_lzma" = "xno" ; then
        tor_incr_n_warnings
        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Unable to find liblzma, $pkg_config_user_action, or set LZMA_CFLAGS and LZMA_LIBS." >&5
printf "%s\n" "$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

printf "%s\n" "#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+y}
then :
  enableval=$enable_zstd; case "${enableval}" in
        "yes") ;;
        "no")  ;;
        * ) as_fn_error $? "bad value for --enable-zstd" "$LINENO" 5 ;;
      esac
else case e in #(
  e) enable_zstd=auto ;;
esac
fi


if test "x$enable_zstd" = "xno"; then
    have_zstd=no;
else

pkg_failed=no
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ZSTD" >&5
printf %s "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" && \
    { { printf "%s\n" "$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=$?
  printf "%s\n" "$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" && \
    { { printf "%s\n" "$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=$?
  printf "%s\n" "$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
   	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "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
     	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
	have_zstd=no
else
	ZSTD_CFLAGS=$pkg_cv_ZSTD_CFLAGS
	ZSTD_LIBS=$pkg_cv_ZSTD_LIBS
        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }
	have_zstd=yes
fi

    if test "x$have_zstd" = "xno" ; then
        tor_incr_n_warnings
        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Unable to find libzstd, $pkg_config_user_action, or set ZSTD_CFLAGS and ZSTD_LIBS." >&5
printf "%s\n" "$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

printf "%s\n" "#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"
    ac_fn_c_check_func "$LINENO" "ZSTD_estimateCStreamSize" "ac_cv_func_ZSTD_estimateCStreamSize"
if test "x$ac_cv_func_ZSTD_estimateCStreamSize" = xyes
then :
  printf "%s\n" "#define HAVE_ZSTD_ESTIMATECSTREAMSIZE 1" >>confdefs.h

fi
ac_fn_c_check_func "$LINENO" "ZSTD_estimateDCtxSize" "ac_cv_func_ZSTD_estimateDCtxSize"
if test "x$ac_cv_func_ZSTD_estimateDCtxSize" = xyes
then :
  printf "%s\n" "#define HAVE_ZSTD_ESTIMATEDCTXSIZE 1" >>confdefs.h

fi

    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"

{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for cap_init in -lcap" >&5
printf %s "checking for cap_init in -lcap... " >&6; }
if test ${ac_cv_lib_cap_cap_init+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e) 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.
   The 'extern "C"' is for builds by C++ compilers;
   although this is not generally supported in C code supporting it here
   has little cost and some practical benefit (sr 110532).  */
#ifdef __cplusplus
extern "C"
#endif
char cap_init (void);
int
main (void)
{
return cap_init ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  ac_cv_lib_cap_cap_init=yes
else case e in #(
  e) ac_cv_lib_cap_cap_init=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS ;;
esac
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cap_cap_init" >&5
printf "%s\n" "$ac_cv_lib_cap_cap_init" >&6; }
if test "x$ac_cv_lib_cap_cap_init" = xyes
then :
  printf "%s\n" "#define HAVE_LIBCAP 1" >>confdefs.h

  LIBS="-lcap $LIBS"

else case e in #(
  e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Libcap was not found. Capabilities will not be usable." >&5
printf "%s\n" "$as_me: Libcap was not found. Capabilities will not be usable." >&6;}
 ;;
esac
fi

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 :
  printf "%s\n" "#define HAVE_CAP_SET_PROC 1" >>confdefs.h

fi



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 (void)
{

#if !defined(__clang__)
#error
#endif
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  have_clang=yes
else case e in #(
  e) have_clang=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext

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



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -fPIC" >&5
printf %s "checking whether the compiler accepts -fPIC... " >&6; }
if test ${tor_cv_cflags__fPIC+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -fPIC"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  tor_cv_cflags__fPIC=yes
else case e in #(
  e) tor_cv_cflags__fPIC=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
    if test x != x; then

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

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  tor_can_link__fPIC=yes
else case e in #(
  e) tor_can_link__fPIC=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"
   ;;
esac
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__fPIC" >&5
printf "%s\n" "$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



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Qunused-arguments" >&5
printf %s "checking whether the compiler accepts -Qunused-arguments... " >&6; }
if test ${tor_cv_cflags__Qunused_arguments+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Qunused-arguments"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  tor_cv_cflags__Qunused_arguments=yes
else case e in #(
  e) tor_cv_cflags__Qunused_arguments=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
    if test x != x; then

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

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  tor_can_link__Qunused_arguments=yes
else case e in #(
  e) tor_can_link__Qunused_arguments=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"
   ;;
esac
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Qunused_arguments" >&5
printf "%s\n" "$tor_cv_cflags__Qunused_arguments" >&6; }
  if test x$tor_cv_cflags__Qunused_arguments = xyes; then
     CFLAGS="$CFLAGS -Qunused-arguments"
  else
     true
  fi



    fi



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -fstack-protector-all" >&5
printf %s "checking whether the compiler accepts -fstack-protector-all... " >&6; }
if test ${tor_cv_cflags__fstack_protector_all+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -fstack-protector-all"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  tor_cv_cflags__fstack_protector_all=yes
else case e in #(
  e) tor_cv_cflags__fstack_protector_all=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
    if test xalso_link != x; then

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

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  tor_can_link__fstack_protector_all=yes
else case e in #(
  e) tor_can_link__fstack_protector_all=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"
   ;;
esac
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__fstack_protector_all" >&5
printf "%s\n" "$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 case e in #(
  e) 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 ;;
esac
fi

fi





  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wstack-protector" >&5
printf %s "checking whether the compiler accepts -Wstack-protector... " >&6; }
if test ${tor_cv_cflags__Wstack_protector+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Wstack-protector"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  tor_cv_cflags__Wstack_protector=yes
else case e in #(
  e) tor_cv_cflags__Wstack_protector=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
    if test x != x; then

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

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  tor_can_link__Wstack_protector=yes
else case e in #(
  e) tor_can_link__Wstack_protector=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"
   ;;
esac
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wstack_protector" >&5
printf "%s\n" "$tor_cv_cflags__Wstack_protector" >&6; }
  if test x$tor_cv_cflags__Wstack_protector = xyes; then
     CFLAGS="$CFLAGS -Wstack-protector"
  else
     true
  fi






  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts --param ssp-buffer-size=1" >&5
printf %s "checking whether the compiler accepts --param ssp-buffer-size=1... " >&6; }
if test ${tor_cv_cflags___param_ssp_buffer_size_1+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
    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 (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  tor_cv_cflags___param_ssp_buffer_size_1=yes
else case e in #(
  e) tor_cv_cflags___param_ssp_buffer_size_1=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
    if test x != x; then

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

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  tor_can_link___param_ssp_buffer_size_1=yes
else case e in #(
  e) tor_can_link___param_ssp_buffer_size_1=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"
   ;;
esac
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags___param_ssp_buffer_size_1" >&5
printf "%s\n" "$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...



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -fPIE" >&5
printf %s "checking whether the compiler accepts -fPIE... " >&6; }
if test ${tor_cv_cflags__fPIE+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -fPIE"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  tor_cv_cflags__fPIE=yes
else case e in #(
  e) tor_cv_cflags__fPIE=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
    if test x != x; then

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

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  tor_can_link__fPIE=yes
else case e in #(
  e) tor_can_link__fPIE=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"
   ;;
esac
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__fPIE" >&5
printf "%s\n" "$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.


  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -pie" >&5
printf %s "checking whether the linker accepts -pie... " >&6; }
if test ${tor_cv_ldflags__pie+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
    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 (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  tor_cv_ldflags__pie=yes
else case e in #(
  e) tor_cv_ldflags__pie=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
else case e in #(
  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <stdio.h>
int
main (void)
{
fputs("", stdout)
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_run "$LINENO"
then :
  tor_cv_ldflags__pie=yes
else case e in #(
  e) tor_cv_ldflags__pie=no ;;
esac
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
esac
fi

    CFLAGS="$tor_saved_CFLAGS"
    LDFLAGS="$tor_saved_LDFLAGS"
    LIBS="$tor_saved_LIBS"
   ;;
esac
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tor_cv_ldflags__pie" >&5
printf "%s\n" "$tor_cv_ldflags__pie" >&6; }
  if test x$tor_cv_ldflags__pie = xyes; then
    LDFLAGS="$LDFLAGS -pie"
  fi


    fi


  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -fwrapv" >&5
printf %s "checking whether the compiler accepts -fwrapv... " >&6; }
if test ${tor_cv_cflags__fwrapv+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -fwrapv"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  tor_cv_cflags__fwrapv=yes
else case e in #(
  e) tor_cv_cflags__fwrapv=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
    if test xalso_link != x; then

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

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  tor_can_link__fwrapv=yes
else case e in #(
  e) tor_can_link__fwrapv=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"
   ;;
esac
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__fwrapv" >&5
printf "%s\n" "$tor_cv_cflags__fwrapv" >&6; }
  if test x$tor_cv_cflags__fwrapv = xyes; then
     CFLAGS_FWRAPV="-fwrapv"
  else
     true
  fi



   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we can run hardened binaries" >&5
printf %s "checking whether we can run hardened binaries... " >&6; }
   if test "$cross_compiling" = yes
then :
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cross" >&5
printf "%s\n" "cross" >&6; }
else case e in #(
  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main (void)
{
return 0;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_run "$LINENO"
then :
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }
else case e in #(
  e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "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 ;;
esac
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
esac
fi

fi

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


  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -ftrapv" >&5
printf %s "checking whether the compiler accepts -ftrapv... " >&6; }
if test ${tor_cv_cflags__ftrapv+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -ftrapv"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  tor_cv_cflags__ftrapv=yes
else case e in #(
  e) tor_cv_cflags__ftrapv=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
    if test xalso_link != x; then

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

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  tor_can_link__ftrapv=yes
else case e in #(
  e) tor_can_link__ftrapv=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"
   ;;
esac
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__ftrapv" >&5
printf "%s\n" "$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
      tor_incr_n_warnings
      { printf "%s\n" "$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
printf "%s\n" "$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



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -fsanitize=address" >&5
printf %s "checking whether the compiler accepts -fsanitize=address... " >&6; }
if test ${tor_cv_cflags__fsanitize_address+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -fsanitize=address"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  tor_cv_cflags__fsanitize_address=yes
else case e in #(
  e) tor_cv_cflags__fsanitize_address=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
    if test xalso_link != x; then

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

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  tor_can_link__fsanitize_address=yes
else case e in #(
  e) tor_can_link__fsanitize_address=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"
   ;;
esac
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__fsanitize_address" >&5
printf "%s\n" "$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



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -fsanitize=undefined" >&5
printf %s "checking whether the compiler accepts -fsanitize=undefined... " >&6; }
if test ${tor_cv_cflags__fsanitize_undefined+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -fsanitize=undefined"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  tor_cv_cflags__fsanitize_undefined=yes
else case e in #(
  e) tor_cv_cflags__fsanitize_undefined=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
    if test xalso_link != x; then

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

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  tor_can_link__fsanitize_undefined=yes
else case e in #(
  e) tor_can_link__fsanitize_undefined=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"
   ;;
esac
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__fsanitize_undefined" >&5
printf "%s\n" "$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



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -fno-sanitize=float-divide-by-zero" >&5
printf %s "checking whether the compiler accepts -fno-sanitize=float-divide-by-zero... " >&6; }
if test ${tor_cv_cflags__fno_sanitize_float_divide_by_zero+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
    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 (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  tor_cv_cflags__fno_sanitize_float_divide_by_zero=yes
else case e in #(
  e) tor_cv_cflags__fno_sanitize_float_divide_by_zero=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
    if test xalso_link != x; then

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

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  tor_can_link__fno_sanitize_float_divide_by_zero=yes
else case e in #(
  e) tor_can_link__fno_sanitize_float_divide_by_zero=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"
   ;;
esac
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__fno_sanitize_float_divide_by_zero" >&5
printf "%s\n" "$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




  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -fno-omit-frame-pointer" >&5
printf %s "checking whether the compiler accepts -fno-omit-frame-pointer... " >&6; }
if test ${tor_cv_cflags__fno_omit_frame_pointer+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -fno-omit-frame-pointer"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  tor_cv_cflags__fno_omit_frame_pointer=yes
else case e in #(
  e) tor_cv_cflags__fno_omit_frame_pointer=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
    if test x != x; then

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

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  tor_can_link__fno_omit_frame_pointer=yes
else case e in #(
  e) tor_can_link__fno_omit_frame_pointer=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"
   ;;
esac
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__fno_omit_frame_pointer" >&5
printf "%s\n" "$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

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"
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether clang -ftrapv can link a 64-bit int multiply" >&5
printf %s "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; { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }
else case e in #(
  e) ftrapv_can_link=no; { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; } ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
  if test "$ftrapv_can_link" = "no"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether defining __mulodi4 fixes that" >&5
printf %s "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; { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }
else case e in #(
  e) mulodi_fixes_ftrapv=no; { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; } ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    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


  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -z relro -z now" >&5
printf %s "checking whether the linker accepts -z relro -z now... " >&6; }
if test ${tor_cv_ldflags__z_relro__z_now+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
    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 (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  tor_cv_ldflags__z_relro__z_now=yes
else case e in #(
  e) tor_cv_ldflags__z_relro__z_now=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
else case e in #(
  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <stdio.h>
int
main (void)
{
fputs("", stdout)
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_run "$LINENO"
then :
  tor_cv_ldflags__z_relro__z_now=yes
else case e in #(
  e) tor_cv_ldflags__z_relro__z_now=no ;;
esac
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
esac
fi

    CFLAGS="$tor_saved_CFLAGS"
    LDFLAGS="$tor_saved_LDFLAGS"
    LIBS="$tor_saved_LIBS"
   ;;
esac
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tor_cv_ldflags__z_relro__z_now" >&5
printf "%s\n" "$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


  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -rdynamic" >&5
printf %s "checking whether the linker accepts -rdynamic... " >&6; }
if test ${tor_cv_ldflags__rdynamic+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
    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 (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  tor_cv_ldflags__rdynamic=yes
else case e in #(
  e) tor_cv_ldflags__rdynamic=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
else case e in #(
  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <stdio.h>
int
main (void)
{
fputs("", stdout)
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_run "$LINENO"
then :
  tor_cv_ldflags__rdynamic=yes
else case e in #(
  e) tor_cv_ldflags__rdynamic=no ;;
esac
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
esac
fi

    CFLAGS="$tor_saved_CFLAGS"
    LDFLAGS="$tor_saved_LDFLAGS"
    LIBS="$tor_saved_LIBS"
   ;;
esac
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tor_cv_ldflags__rdynamic" >&5
printf "%s\n" "$tor_cv_ldflags__rdynamic" >&6; }
  if test x$tor_cv_ldflags__rdynamic = xyes; then
    LDFLAGS="$LDFLAGS -rdynamic"
  fi




saved_CFLAGS="$CFLAGS"



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -fomit-frame-pointer" >&5
printf %s "checking whether the compiler accepts -fomit-frame-pointer... " >&6; }
if test ${tor_cv_cflags__fomit_frame_pointer+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -fomit-frame-pointer"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  tor_cv_cflags__fomit_frame_pointer=yes
else case e in #(
  e) tor_cv_cflags__fomit_frame_pointer=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
    if test x != x; then

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

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  tor_can_link__fomit_frame_pointer=yes
else case e in #(
  e) tor_can_link__fomit_frame_pointer=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"
   ;;
esac
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__fomit_frame_pointer" >&5
printf "%s\n" "$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"





  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -fasynchronous-unwind-tables" >&5
printf %s "checking whether the compiler accepts -fasynchronous-unwind-tables... " >&6; }
if test ${tor_cv_cflags__fasynchronous_unwind_tables+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -fasynchronous-unwind-tables"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  tor_cv_cflags__fasynchronous_unwind_tables=yes
else case e in #(
  e) tor_cv_cflags__fasynchronous_unwind_tables=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
    if test x != x; then

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

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  tor_can_link__fasynchronous_unwind_tables=yes
else case e in #(
  e) tor_can_link__fasynchronous_unwind_tables=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"
   ;;
esac
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__fasynchronous_unwind_tables" >&5
printf "%s\n" "$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




# From https://gcc.gnu.org/onlinedocs/gcc/Instrumentation-Options.html:
#
# Enable code instrumentation to increase program security by checking that
# target addresses of control-flow transfer instructions are valid. This
# prevents diverting the flow of control to an unexpected target. This is
# intended to protect against such threats as Return-oriented Programming
# (ROP), and similarly call/jmp-oriented programming (COP/JOP).



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -fcf-protection=full" >&5
printf %s "checking whether the compiler accepts -fcf-protection=full... " >&6; }
if test ${tor_cv_cflags__fcf_protection_full+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -fcf-protection=full"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  tor_cv_cflags__fcf_protection_full=yes
else case e in #(
  e) tor_cv_cflags__fcf_protection_full=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
    if test x != x; then

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

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  tor_can_link__fcf_protection_full=yes
else case e in #(
  e) tor_can_link__fcf_protection_full=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"
   ;;
esac
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__fcf_protection_full" >&5
printf "%s\n" "$tor_cv_cflags__fcf_protection_full" >&6; }
  if test x$tor_cv_cflags__fcf_protection_full = xyes; then
     CFLAGS="$CFLAGS -fcf-protection=full"
  else
     true
  fi





if test "x$enable_seccomp" != "xno"; then
  ac_fn_c_check_header_compile "$LINENO" "seccomp.h" "ac_cv_header_seccomp_h" "$ac_includes_default"
if test "x$ac_cv_header_seccomp_h" = xyes
then :
  printf "%s\n" "#define HAVE_SECCOMP_H 1" >>confdefs.h

fi

  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing seccomp_init" >&5
printf %s "checking for library containing seccomp_init... " >&6; }
if test ${ac_cv_search_seccomp_init+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e) 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.
   The 'extern "C"' is for builds by C++ compilers;
   although this is not generally supported in C code supporting it here
   has little cost and some practical benefit (sr 110532).  */
#ifdef __cplusplus
extern "C"
#endif
char seccomp_init (void);
int
main (void)
{
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.beam \
    conftest$ac_exeext
  if test ${ac_cv_search_seccomp_init+y}
then :
  break
fi
done
if test ${ac_cv_search_seccomp_init+y}
then :

else case e in #(
  e) ac_cv_search_seccomp_init=no ;;
esac
fi
rm conftest.$ac_ext
LIBS=$ac_func_search_save_LIBS ;;
esac
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_seccomp_init" >&5
printf "%s\n" "$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
  ac_fn_c_check_header_compile "$LINENO" "libscrypt.h" "ac_cv_header_libscrypt_h" "$ac_includes_default"
if test "x$ac_cv_header_libscrypt_h" = xyes
then :
  printf "%s\n" "#define HAVE_LIBSCRYPT_H 1" >>confdefs.h

fi

  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing libscrypt_scrypt" >&5
printf %s "checking for library containing libscrypt_scrypt... " >&6; }
if test ${ac_cv_search_libscrypt_scrypt+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e) 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.
   The 'extern "C"' is for builds by C++ compilers;
   although this is not generally supported in C code supporting it here
   has little cost and some practical benefit (sr 110532).  */
#ifdef __cplusplus
extern "C"
#endif
char libscrypt_scrypt (void);
int
main (void)
{
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.beam \
    conftest$ac_exeext
  if test ${ac_cv_search_libscrypt_scrypt+y}
then :
  break
fi
done
if test ${ac_cv_search_libscrypt_scrypt+y}
then :

else case e in #(
  e) ac_cv_search_libscrypt_scrypt=no ;;
esac
fi
rm conftest.$ac_ext
LIBS=$ac_func_search_save_LIBS ;;
esac
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_libscrypt_scrypt" >&5
printf "%s\n" "$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

  ac_fn_c_check_func "$LINENO" "libscrypt_scrypt" "ac_cv_func_libscrypt_scrypt"
if test "x$ac_cv_func_libscrypt_scrypt" = xyes
then :
  printf "%s\n" "#define HAVE_LIBSCRYPT_SCRYPT 1" >>confdefs.h

fi

fi


build_curve25519_donna=no
build_curve25519_donna_c64=no
use_curve25519_donna=no
use_curve25519_nacl=no
CURVE25519_LIBS=

{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we can use curve25519-donna-c64" >&5
printf %s "checking whether we can use curve25519-donna-c64... " >&6; }
if test ${tor_cv_can_use_curve25519_donna_c64+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e) 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 (void)
{
    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 case e in #(
  e) tor_cv_can_use_curve25519_donna_c64=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
else case e in #(
  e) 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 (void)
{
    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 case e in #(
  e) tor_cv_can_use_curve25519_donna_c64=no ;;
esac
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
esac
fi
 ;;
esac
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tor_cv_can_use_curve25519_donna_c64" >&5
printf "%s\n" "$tor_cv_can_use_curve25519_donna_c64" >&6; }

ac_fn_c_check_header_compile "$LINENO" "crypto_scalarmult_curve25519.h" "ac_cv_header_crypto_scalarmult_curve25519_h" "$ac_includes_default"
if test "x$ac_cv_header_crypto_scalarmult_curve25519_h" = xyes
then :
  printf "%s\n" "#define HAVE_CRYPTO_SCALARMULT_CURVE25519_H 1" >>confdefs.h

fi
ac_fn_c_check_header_compile "$LINENO" "nacl/crypto_scalarmult_curve25519.h" "ac_cv_header_nacl_crypto_scalarmult_curve25519_h" "$ac_includes_default"
if test "x$ac_cv_header_nacl_crypto_scalarmult_curve25519_h" = xyes
then :
  printf "%s\n" "#define HAVE_NACL_CRYPTO_SCALARMULT_CURVE25519_H 1" >>confdefs.h

fi


{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for nacl compiled with a fast curve25519 implementation" >&5
printf %s "checking for nacl compiled with a fast curve25519 implementation... " >&6; }
if test ${tor_cv_can_use_curve25519_nacl+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e) 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 (void)
{

   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 case e in #(
  e) tor_cv_can_use_curve25519_nacl=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
   LIBS="$tor_saved_LIBS"  ;;
esac
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tor_cv_can_use_curve25519_nacl" >&5
printf "%s\n" "$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

printf "%s\n" "#define USE_CURVE25519_DONNA 1" >>confdefs.h

fi
if test "x$use_curve25519_nacl" = "xyes"; then

printf "%s\n" "#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+y}
then :
  enableval=$enable_largefile;
fi
if test "$enable_largefile,$enable_year2038" != no,no
then :
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CPPFLAGS option for large files" >&5
printf %s "checking for $CPPFLAGS option for large files... " >&6; }
if test ${ac_cv_sys_largefile_opts+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e) ac_save_CPPFLAGS=$CPPFLAGS
  ac_opt_found=no
  for ac_opt in "none needed" "-D_FILE_OFFSET_BITS=64" "-D_LARGE_FILES=1"; do
    if test x"$ac_opt" != x"none needed"
then :
  CPPFLAGS="$ac_save_CPPFLAGS $ac_opt"
fi
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <sys/types.h>
#ifndef FTYPE
# define FTYPE off_t
#endif
 /* Check that FTYPE can represent 2**63 - 1 correctly.
    We can't simply define LARGE_FTYPE to be 9223372036854775807,
    since some C++ compilers masquerading as C compilers
    incorrectly reject 9223372036854775807.  */
#define LARGE_FTYPE (((FTYPE) 1 << 31 << 31) - 1 + ((FTYPE) 1 << 31 << 31))
  int FTYPE_is_large[(LARGE_FTYPE % 2147483629 == 721
		       && LARGE_FTYPE % 2147483647 == 1)
		      ? 1 : -1];
int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  if test x"$ac_opt" = x"none needed"
then :
  # GNU/Linux s390x and alpha need _FILE_OFFSET_BITS=64 for wide ino_t.
	 CPPFLAGS="$CPPFLAGS -DFTYPE=ino_t"
	 if ac_fn_c_try_compile "$LINENO"
then :

else case e in #(
  e) CPPFLAGS="$CPPFLAGS -D_FILE_OFFSET_BITS=64"
	    if ac_fn_c_try_compile "$LINENO"
then :
  ac_opt='-D_FILE_OFFSET_BITS=64'
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam
fi
      ac_cv_sys_largefile_opts=$ac_opt
      ac_opt_found=yes
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
    test $ac_opt_found = no || break
  done
  CPPFLAGS=$ac_save_CPPFLAGS

  test $ac_opt_found = yes || ac_cv_sys_largefile_opts="support not detected" ;;
esac
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_opts" >&5
printf "%s\n" "$ac_cv_sys_largefile_opts" >&6; }

ac_have_largefile=yes
case $ac_cv_sys_largefile_opts in #(
  "none needed") :
     ;; #(
  "supported through gnulib") :
     ;; #(
  "support not detected") :
    ac_have_largefile=no ;; #(
  "-D_FILE_OFFSET_BITS=64") :

printf "%s\n" "#define _FILE_OFFSET_BITS 64" >>confdefs.h
 ;; #(
  "-D_LARGE_FILES=1") :

printf "%s\n" "#define _LARGE_FILES 1" >>confdefs.h
 ;; #(
  *) :
    as_fn_error $? "internal error: bad value for \$ac_cv_sys_largefile_opts" "$LINENO" 5 ;;
esac

if test "$enable_year2038" != no
then :
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CPPFLAGS option for timestamps after 2038" >&5
printf %s "checking for $CPPFLAGS option for timestamps after 2038... " >&6; }
if test ${ac_cv_sys_year2038_opts+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e) ac_save_CPPFLAGS="$CPPFLAGS"
  ac_opt_found=no
  for ac_opt in "none needed" "-D_TIME_BITS=64" "-D__MINGW_USE_VC2005_COMPAT" "-U_USE_32_BIT_TIME_T -D__MINGW_USE_VC2005_COMPAT"; do
    if test x"$ac_opt" != x"none needed"
then :
  CPPFLAGS="$ac_save_CPPFLAGS $ac_opt"
fi
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

  #include <time.h>
  /* Check that time_t can represent 2**32 - 1 correctly.  */
  #define LARGE_TIME_T \\
    ((time_t) (((time_t) 1 << 30) - 1 + 3 * ((time_t) 1 << 30)))
  int verify_time_t_range[(LARGE_TIME_T / 65537 == 65535
                           && LARGE_TIME_T % 65537 == 0)
                          ? 1 : -1];

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  ac_cv_sys_year2038_opts="$ac_opt"
      ac_opt_found=yes
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
    test $ac_opt_found = no || break
  done
  CPPFLAGS="$ac_save_CPPFLAGS"
  test $ac_opt_found = yes || ac_cv_sys_year2038_opts="support not detected" ;;
esac
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_year2038_opts" >&5
printf "%s\n" "$ac_cv_sys_year2038_opts" >&6; }

ac_have_year2038=yes
case $ac_cv_sys_year2038_opts in #(
  "none needed") :
     ;; #(
  "support not detected") :
    ac_have_year2038=no ;; #(
  "-D_TIME_BITS=64") :

printf "%s\n" "#define _TIME_BITS 64" >>confdefs.h
 ;; #(
  "-D__MINGW_USE_VC2005_COMPAT") :

printf "%s\n" "#define __MINGW_USE_VC2005_COMPAT 1" >>confdefs.h
 ;; #(
  "-U_USE_32_BIT_TIME_T"*) :
    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
as_fn_error $? "the 'time_t' type is currently forced to be 32-bit. It
will stop working after mid-January 2038. Remove
_USE_32BIT_TIME_T from the compiler flags.
See 'config.log' for more details" "$LINENO" 5; } ;; #(
  *) :
    as_fn_error $? "internal error: bad value for \$ac_cv_sys_year2038_opts" "$LINENO" 5 ;;
esac

fi

fi

ac_fn_c_check_header_compile "$LINENO" "errno.h" "ac_cv_header_errno_h" "$ac_includes_default"
if test "x$ac_cv_header_errno_h" = xyes
then :
  printf "%s\n" "#define HAVE_ERRNO_H 1" >>confdefs.h

fi
ac_fn_c_check_header_compile "$LINENO" "fcntl.h" "ac_cv_header_fcntl_h" "$ac_includes_default"
if test "x$ac_cv_header_fcntl_h" = xyes
then :
  printf "%s\n" "#define HAVE_FCNTL_H 1" >>confdefs.h

fi
ac_fn_c_check_header_compile "$LINENO" "signal.h" "ac_cv_header_signal_h" "$ac_includes_default"
if test "x$ac_cv_header_signal_h" = xyes
then :
  printf "%s\n" "#define HAVE_SIGNAL_H 1" >>confdefs.h

fi
ac_fn_c_check_header_compile "$LINENO" "string.h" "ac_cv_header_string_h" "$ac_includes_default"
if test "x$ac_cv_header_string_h" = xyes
then :
  printf "%s\n" "#define HAVE_STRING_H 1" >>confdefs.h

fi
ac_fn_c_check_header_compile "$LINENO" "sys/capability.h" "ac_cv_header_sys_capability_h" "$ac_includes_default"
if test "x$ac_cv_header_sys_capability_h" = xyes
then :
  printf "%s\n" "#define HAVE_SYS_CAPABILITY_H 1" >>confdefs.h

fi
ac_fn_c_check_header_compile "$LINENO" "sys/fcntl.h" "ac_cv_header_sys_fcntl_h" "$ac_includes_default"
if test "x$ac_cv_header_sys_fcntl_h" = xyes
then :
  printf "%s\n" "#define HAVE_SYS_FCNTL_H 1" >>confdefs.h

fi
ac_fn_c_check_header_compile "$LINENO" "sys/stat.h" "ac_cv_header_sys_stat_h" "$ac_includes_default"
if test "x$ac_cv_header_sys_stat_h" = xyes
then :
  printf "%s\n" "#define HAVE_SYS_STAT_H 1" >>confdefs.h

fi
ac_fn_c_check_header_compile "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default"
if test "x$ac_cv_header_sys_time_h" = xyes
then :
  printf "%s\n" "#define HAVE_SYS_TIME_H 1" >>confdefs.h

fi
ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
if test "x$ac_cv_header_sys_types_h" = xyes
then :
  printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h

fi
ac_fn_c_check_header_compile "$LINENO" "time.h" "ac_cv_header_time_h" "$ac_includes_default"
if test "x$ac_cv_header_time_h" = xyes
then :
  printf "%s\n" "#define HAVE_TIME_H 1" >>confdefs.h

fi
ac_fn_c_check_header_compile "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
if test "x$ac_cv_header_unistd_h" = xyes
then :
  printf "%s\n" "#define HAVE_UNISTD_H 1" >>confdefs.h

fi
ac_fn_c_check_header_compile "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default"
if test "x$ac_cv_header_arpa_inet_h" = xyes
then :
  printf "%s\n" "#define HAVE_ARPA_INET_H 1" >>confdefs.h

fi
ac_fn_c_check_header_compile "$LINENO" "crt_externs.h" "ac_cv_header_crt_externs_h" "$ac_includes_default"
if test "x$ac_cv_header_crt_externs_h" = xyes
then :
  printf "%s\n" "#define HAVE_CRT_EXTERNS_H 1" >>confdefs.h

fi
ac_fn_c_check_header_compile "$LINENO" "execinfo.h" "ac_cv_header_execinfo_h" "$ac_includes_default"
if test "x$ac_cv_header_execinfo_h" = xyes
then :
  printf "%s\n" "#define HAVE_EXECINFO_H 1" >>confdefs.h

fi
ac_fn_c_check_header_compile "$LINENO" "gnu/libc-version.h" "ac_cv_header_gnu_libc_version_h" "$ac_includes_default"
if test "x$ac_cv_header_gnu_libc_version_h" = xyes
then :
  printf "%s\n" "#define HAVE_GNU_LIBC_VERSION_H 1" >>confdefs.h

fi
ac_fn_c_check_header_compile "$LINENO" "grp.h" "ac_cv_header_grp_h" "$ac_includes_default"
if test "x$ac_cv_header_grp_h" = xyes
then :
  printf "%s\n" "#define HAVE_GRP_H 1" >>confdefs.h

fi
ac_fn_c_check_header_compile "$LINENO" "ifaddrs.h" "ac_cv_header_ifaddrs_h" "$ac_includes_default"
if test "x$ac_cv_header_ifaddrs_h" = xyes
then :
  printf "%s\n" "#define HAVE_IFADDRS_H 1" >>confdefs.h

fi
ac_fn_c_check_header_compile "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
if test "x$ac_cv_header_inttypes_h" = xyes
then :
  printf "%s\n" "#define HAVE_INTTYPES_H 1" >>confdefs.h

fi
ac_fn_c_check_header_compile "$LINENO" "limits.h" "ac_cv_header_limits_h" "$ac_includes_default"
if test "x$ac_cv_header_limits_h" = xyes
then :
  printf "%s\n" "#define HAVE_LIMITS_H 1" >>confdefs.h

fi
ac_fn_c_check_header_compile "$LINENO" "linux/types.h" "ac_cv_header_linux_types_h" "$ac_includes_default"
if test "x$ac_cv_header_linux_types_h" = xyes
then :
  printf "%s\n" "#define HAVE_LINUX_TYPES_H 1" >>confdefs.h

fi
ac_fn_c_check_header_compile "$LINENO" "mach/vm_inherit.h" "ac_cv_header_mach_vm_inherit_h" "$ac_includes_default"
if test "x$ac_cv_header_mach_vm_inherit_h" = xyes
then :
  printf "%s\n" "#define HAVE_MACH_VM_INHERIT_H 1" >>confdefs.h

fi
ac_fn_c_check_header_compile "$LINENO" "machine/limits.h" "ac_cv_header_machine_limits_h" "$ac_includes_default"
if test "x$ac_cv_header_machine_limits_h" = xyes
then :
  printf "%s\n" "#define HAVE_MACHINE_LIMITS_H 1" >>confdefs.h

fi
ac_fn_c_check_header_compile "$LINENO" "malloc.h" "ac_cv_header_malloc_h" "$ac_includes_default"
if test "x$ac_cv_header_malloc_h" = xyes
then :
  printf "%s\n" "#define HAVE_MALLOC_H 1" >>confdefs.h

fi
ac_fn_c_check_header_compile "$LINENO" "netdb.h" "ac_cv_header_netdb_h" "$ac_includes_default"
if test "x$ac_cv_header_netdb_h" = xyes
then :
  printf "%s\n" "#define HAVE_NETDB_H 1" >>confdefs.h

fi
ac_fn_c_check_header_compile "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
if test "x$ac_cv_header_netinet_in_h" = xyes
then :
  printf "%s\n" "#define HAVE_NETINET_IN_H 1" >>confdefs.h

fi
ac_fn_c_check_header_compile "$LINENO" "netinet/in6.h" "ac_cv_header_netinet_in6_h" "$ac_includes_default"
if test "x$ac_cv_header_netinet_in6_h" = xyes
then :
  printf "%s\n" "#define HAVE_NETINET_IN6_H 1" >>confdefs.h

fi
ac_fn_c_check_header_compile "$LINENO" "pwd.h" "ac_cv_header_pwd_h" "$ac_includes_default"
if test "x$ac_cv_header_pwd_h" = xyes
then :
  printf "%s\n" "#define HAVE_PWD_H 1" >>confdefs.h

fi
ac_fn_c_check_header_compile "$LINENO" "readpassphrase.h" "ac_cv_header_readpassphrase_h" "$ac_includes_default"
if test "x$ac_cv_header_readpassphrase_h" = xyes
then :
  printf "%s\n" "#define HAVE_READPASSPHRASE_H 1" >>confdefs.h

fi
ac_fn_c_check_header_compile "$LINENO" "stdatomic.h" "ac_cv_header_stdatomic_h" "$ac_includes_default"
if test "x$ac_cv_header_stdatomic_h" = xyes
then :
  printf "%s\n" "#define HAVE_STDATOMIC_H 1" >>confdefs.h

fi
ac_fn_c_check_header_compile "$LINENO" "sys/eventfd.h" "ac_cv_header_sys_eventfd_h" "$ac_includes_default"
if test "x$ac_cv_header_sys_eventfd_h" = xyes
then :
  printf "%s\n" "#define HAVE_SYS_EVENTFD_H 1" >>confdefs.h

fi
ac_fn_c_check_header_compile "$LINENO" "sys/file.h" "ac_cv_header_sys_file_h" "$ac_includes_default"
if test "x$ac_cv_header_sys_file_h" = xyes
then :
  printf "%s\n" "#define HAVE_SYS_FILE_H 1" >>confdefs.h

fi
ac_fn_c_check_header_compile "$LINENO" "sys/ioctl.h" "ac_cv_header_sys_ioctl_h" "$ac_includes_default"
if test "x$ac_cv_header_sys_ioctl_h" = xyes
then :
  printf "%s\n" "#define HAVE_SYS_IOCTL_H 1" >>confdefs.h

fi
ac_fn_c_check_header_compile "$LINENO" "sys/limits.h" "ac_cv_header_sys_limits_h" "$ac_includes_default"
if test "x$ac_cv_header_sys_limits_h" = xyes
then :
  printf "%s\n" "#define HAVE_SYS_LIMITS_H 1" >>confdefs.h

fi
ac_fn_c_check_header_compile "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default"
if test "x$ac_cv_header_sys_mman_h" = xyes
then :
  printf "%s\n" "#define HAVE_SYS_MMAN_H 1" >>confdefs.h

fi
ac_fn_c_check_header_compile "$LINENO" "sys/param.h" "ac_cv_header_sys_param_h" "$ac_includes_default"
if test "x$ac_cv_header_sys_param_h" = xyes
then :
  printf "%s\n" "#define HAVE_SYS_PARAM_H 1" >>confdefs.h

fi
ac_fn_c_check_header_compile "$LINENO" "sys/prctl.h" "ac_cv_header_sys_prctl_h" "$ac_includes_default"
if test "x$ac_cv_header_sys_prctl_h" = xyes
then :
  printf "%s\n" "#define HAVE_SYS_PRCTL_H 1" >>confdefs.h

fi
ac_fn_c_check_header_compile "$LINENO" "sys/random.h" "ac_cv_header_sys_random_h" "$ac_includes_default"
if test "x$ac_cv_header_sys_random_h" = xyes
then :
  printf "%s\n" "#define HAVE_SYS_RANDOM_H 1" >>confdefs.h

fi
ac_fn_c_check_header_compile "$LINENO" "sys/resource.h" "ac_cv_header_sys_resource_h" "$ac_includes_default"
if test "x$ac_cv_header_sys_resource_h" = xyes
then :
  printf "%s\n" "#define HAVE_SYS_RESOURCE_H 1" >>confdefs.h

fi
ac_fn_c_check_header_compile "$LINENO" "sys/select.h" "ac_cv_header_sys_select_h" "$ac_includes_default"
if test "x$ac_cv_header_sys_select_h" = xyes
then :
  printf "%s\n" "#define HAVE_SYS_SELECT_H 1" >>confdefs.h

fi
ac_fn_c_check_header_compile "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
if test "x$ac_cv_header_sys_socket_h" = xyes
then :
  printf "%s\n" "#define HAVE_SYS_SOCKET_H 1" >>confdefs.h

fi
ac_fn_c_check_header_compile "$LINENO" "sys/statvfs.h" "ac_cv_header_sys_statvfs_h" "$ac_includes_default"
if test "x$ac_cv_header_sys_statvfs_h" = xyes
then :
  printf "%s\n" "#define HAVE_SYS_STATVFS_H 1" >>confdefs.h

fi
ac_fn_c_check_header_compile "$LINENO" "sys/syscall.h" "ac_cv_header_sys_syscall_h" "$ac_includes_default"
if test "x$ac_cv_header_sys_syscall_h" = xyes
then :
  printf "%s\n" "#define HAVE_SYS_SYSCALL_H 1" >>confdefs.h

fi
ac_fn_c_check_header_compile "$LINENO" "sys/sysctl.h" "ac_cv_header_sys_sysctl_h" "$ac_includes_default"
if test "x$ac_cv_header_sys_sysctl_h" = xyes
then :
  printf "%s\n" "#define HAVE_SYS_SYSCTL_H 1" >>confdefs.h

fi
ac_fn_c_check_header_compile "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default"
if test "x$ac_cv_header_sys_time_h" = xyes
then :
  printf "%s\n" "#define HAVE_SYS_TIME_H 1" >>confdefs.h

fi
ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
if test "x$ac_cv_header_sys_types_h" = xyes
then :
  printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h

fi
ac_fn_c_check_header_compile "$LINENO" "sys/un.h" "ac_cv_header_sys_un_h" "$ac_includes_default"
if test "x$ac_cv_header_sys_un_h" = xyes
then :
  printf "%s\n" "#define HAVE_SYS_UN_H 1" >>confdefs.h

fi
ac_fn_c_check_header_compile "$LINENO" "sys/utime.h" "ac_cv_header_sys_utime_h" "$ac_includes_default"
if test "x$ac_cv_header_sys_utime_h" = xyes
then :
  printf "%s\n" "#define HAVE_SYS_UTIME_H 1" >>confdefs.h

fi
ac_fn_c_check_header_compile "$LINENO" "sys/wait.h" "ac_cv_header_sys_wait_h" "$ac_includes_default"
if test "x$ac_cv_header_sys_wait_h" = xyes
then :
  printf "%s\n" "#define HAVE_SYS_WAIT_H 1" >>confdefs.h

fi
ac_fn_c_check_header_compile "$LINENO" "syslog.h" "ac_cv_header_syslog_h" "$ac_includes_default"
if test "x$ac_cv_header_syslog_h" = xyes
then :
  printf "%s\n" "#define HAVE_SYSLOG_H 1" >>confdefs.h

fi
ac_fn_c_check_header_compile "$LINENO" "utime.h" "ac_cv_header_utime_h" "$ac_includes_default"
if test "x$ac_cv_header_utime_h" = xyes
then :
  printf "%s\n" "#define HAVE_UTIME_H 1" >>confdefs.h

fi
ac_fn_c_check_header_compile "$LINENO" "glob.h" "ac_cv_header_glob_h" "$ac_includes_default"
if test "x$ac_cv_header_glob_h" = xyes
then :
  printf "%s\n" "#define HAVE_GLOB_H 1" >>confdefs.h

fi


ac_fn_c_check_header_compile "$LINENO" "sys/param.h" "ac_cv_header_sys_param_h" "$ac_includes_default"
if test "x$ac_cv_header_sys_param_h" = xyes
then :
  printf "%s\n" "#define HAVE_SYS_PARAM_H 1" >>confdefs.h

fi


       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 :
  printf "%s\n" "#define HAVE_NET_IF_H 1" >>confdefs.h
 net_if_found=1
else case e in #(
  e) net_if_found=0 ;;
esac
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 :
  printf "%s\n" "#define HAVE_NET_PFVAR_H 1" >>confdefs.h
 net_pfvar_found=1
else case e in #(
  e) net_pfvar_found=0 ;;
esac
fi

done

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 :
  printf "%s\n" "#define HAVE_LINUX_IF_H 1" >>confdefs.h

fi


       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 :
  printf "%s\n" "#define HAVE_LINUX_NETFILTER_IPV4_H 1" >>confdefs.h
 linux_netfilter_ipv4=1
else case e in #(
  e) linux_netfilter_ipv4=0 ;;
esac
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 :
  printf "%s\n" "#define HAVE_LINUX_NETFILTER_IPV6_IP6_TABLES_H 1" >>confdefs.h
 linux_netfilter_ipv6_ip6_tables=1
else case e in #(
  e) linux_netfilter_ipv6_ip6_tables=0 ;;
esac
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

printf "%s\n" "#define USE_TRANSPARENT 1" >>confdefs.h

else
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Transparent proxy support enabled, but missing headers." >&5
printf "%s\n" "$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 :

printf "%s\n" "#define HAVE_STRUCT_TIMEVAL_TV_SEC 1" >>confdefs.h


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.
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
printf %s "checking size of char... " >&6; }
if test ${ac_cv_sizeof_char+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e) if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char"        "$ac_includes_default"
then :

else case e in #(
  e) if test "$ac_cv_type_char" = yes; then
     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
printf "%s\n" "$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 ;;
esac
fi
 ;;
esac
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
printf "%s\n" "$ac_cv_sizeof_char" >&6; }



printf "%s\n" "#define SIZEOF_CHAR $ac_cv_sizeof_char" >>confdefs.h


# 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.
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
printf %s "checking size of short... " >&6; }
if test ${ac_cv_sizeof_short+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e) if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short"        "$ac_includes_default"
then :

else case e in #(
  e) if test "$ac_cv_type_short" = yes; then
     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
printf "%s\n" "$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 ;;
esac
fi
 ;;
esac
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
printf "%s\n" "$ac_cv_sizeof_short" >&6; }



printf "%s\n" "#define SIZEOF_SHORT $ac_cv_sizeof_short" >>confdefs.h


# 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.
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
printf %s "checking size of int... " >&6; }
if test ${ac_cv_sizeof_int+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e) if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"
then :

else case e in #(
  e) if test "$ac_cv_type_int" = yes; then
     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
printf "%s\n" "$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 ;;
esac
fi
 ;;
esac
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
printf "%s\n" "$ac_cv_sizeof_int" >&6; }



printf "%s\n" "#define SIZEOF_INT $ac_cv_sizeof_int" >>confdefs.h


# 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.
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5
printf %s "checking size of unsigned int... " >&6; }
if test ${ac_cv_sizeof_unsigned_int+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e) if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned int))" "ac_cv_sizeof_unsigned_int"        "$ac_includes_default"
then :

else case e in #(
  e) if test "$ac_cv_type_unsigned_int" = yes; then
     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
printf "%s\n" "$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 ;;
esac
fi
 ;;
esac
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5
printf "%s\n" "$ac_cv_sizeof_unsigned_int" >&6; }



printf "%s\n" "#define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int" >>confdefs.h


# 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.
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
printf %s "checking size of long... " >&6; }
if test ${ac_cv_sizeof_long+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e) if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"
then :

else case e in #(
  e) if test "$ac_cv_type_long" = yes; then
     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
printf "%s\n" "$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 ;;
esac
fi
 ;;
esac
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
printf "%s\n" "$ac_cv_sizeof_long" >&6; }



printf "%s\n" "#define SIZEOF_LONG $ac_cv_sizeof_long" >>confdefs.h


# 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.
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
printf %s "checking size of long long... " >&6; }
if test ${ac_cv_sizeof_long_long+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e) if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long"        "$ac_includes_default"
then :

else case e in #(
  e) if test "$ac_cv_type_long_long" = yes; then
     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
printf "%s\n" "$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 ;;
esac
fi
 ;;
esac
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
printf "%s\n" "$ac_cv_sizeof_long_long" >&6; }



printf "%s\n" "#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long" >>confdefs.h


# 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.
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of __int64" >&5
printf %s "checking size of __int64... " >&6; }
if test ${ac_cv_sizeof___int64+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e) if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (__int64))" "ac_cv_sizeof___int64"        "$ac_includes_default"
then :

else case e in #(
  e) if test "$ac_cv_type___int64" = yes; then
     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
printf "%s\n" "$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 ;;
esac
fi
 ;;
esac
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof___int64" >&5
printf "%s\n" "$ac_cv_sizeof___int64" >&6; }



printf "%s\n" "#define SIZEOF___INT64 $ac_cv_sizeof___int64" >>confdefs.h


# 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.
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
printf %s "checking size of void *... " >&6; }
if test ${ac_cv_sizeof_void_p+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e) if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p"        "$ac_includes_default"
then :

else case e in #(
  e) if test "$ac_cv_type_void_p" = yes; then
     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
printf "%s\n" "$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 ;;
esac
fi
 ;;
esac
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
printf "%s\n" "$ac_cv_sizeof_void_p" >&6; }



printf "%s\n" "#define SIZEOF_VOID_P $ac_cv_sizeof_void_p" >>confdefs.h


# 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.
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5
printf %s "checking size of time_t... " >&6; }
if test ${ac_cv_sizeof_time_t+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e) if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t"        "$ac_includes_default"
then :

else case e in #(
  e) if test "$ac_cv_type_time_t" = yes; then
     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
printf "%s\n" "$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 ;;
esac
fi
 ;;
esac
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5
printf "%s\n" "$ac_cv_sizeof_time_t" >&6; }



printf "%s\n" "#define SIZEOF_TIME_T $ac_cv_sizeof_time_t" >>confdefs.h


# 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.
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
printf %s "checking size of size_t... " >&6; }
if test ${ac_cv_sizeof_size_t+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e) if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t"        "$ac_includes_default"
then :

else case e in #(
  e) if test "$ac_cv_type_size_t" = yes; then
     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
printf "%s\n" "$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 ;;
esac
fi
 ;;
esac
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
printf "%s\n" "$ac_cv_sizeof_size_t" >&6; }



printf "%s\n" "#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t" >>confdefs.h


# 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.
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of pid_t" >&5
printf %s "checking size of pid_t... " >&6; }
if test ${ac_cv_sizeof_pid_t+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e) if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (pid_t))" "ac_cv_sizeof_pid_t"        "$ac_includes_default"
then :

else case e in #(
  e) if test "$ac_cv_type_pid_t" = yes; then
     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
printf "%s\n" "$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 ;;
esac
fi
 ;;
esac
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_pid_t" >&5
printf "%s\n" "$ac_cv_sizeof_pid_t" >&6; }



printf "%s\n" "#define SIZEOF_PID_T $ac_cv_sizeof_pid_t" >>confdefs.h



ac_fn_c_check_type "$LINENO" "uint" "ac_cv_type_uint" "$ac_includes_default"
if test "x$ac_cv_type_uint" = xyes
then :

printf "%s\n" "#define HAVE_UINT 1" >>confdefs.h


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 :

printf "%s\n" "#define HAVE_U_CHAR 1" >>confdefs.h


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 :

printf "%s\n" "#define HAVE_SSIZE_T 1" >>confdefs.h


fi


ac_fn_c_check_header_compile "$LINENO" "ucontext.h" "ac_cv_header_ucontext_h" "$ac_includes_default"
if test "x$ac_cv_header_ucontext_h" = xyes
then :
  printf "%s\n" "#define HAVE_UCONTEXT_H 1" >>confdefs.h

fi

   # 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

printf "%s\n" "#define HAVE_SYS_UCONTEXT_H 0" >>confdefs.h

     ac_cv_header_sys_ucontext_h=no
   else
     ac_fn_c_check_header_compile "$LINENO" "sys/ucontext.h" "ac_cv_header_sys_ucontext_h" "$ac_includes_default"
if test "x$ac_cv_header_sys_ucontext_h" = xyes
then :
  printf "%s\n" "#define HAVE_SYS_UCONTEXT_H 1" >>confdefs.h

fi
       # ucontext on OS X 10.6 (at least)
   fi
   ac_fn_c_check_header_compile "$LINENO" "cygwin/signal.h" "ac_cv_header_cygwin_signal_h" "$ac_includes_default"
if test "x$ac_cv_header_cygwin_signal_h" = xyes
then :
  printf "%s\n" "#define HAVE_CYGWIN_SIGNAL_H 1" >>confdefs.h

fi
        # ucontext on cygwin
   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to access the program counter from a struct ucontext" >&5
printf %s "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 (void)
{
ucontext_t u; return u.$pc_field == 0;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :

printf "%s\n" "#define PC_FROM_UCONTEXT $pc_field" >>confdefs.h

                        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pc_field" >&5
printf "%s\n" "$pc_field" >&6; }
                        pc_field_found=true
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam 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 (void)
{
ucontext_t u; return u.$pc_field == 0;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :

printf "%s\n" "#define PC_FROM_UCONTEXT $pc_field" >>confdefs.h

                        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pc_field" >&5
printf "%s\n" "$pc_field" >&6; }
                        pc_field_found=true
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam 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 (void)
{
ucontext_t u; return u.$pc_field == 0;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :

printf "%s\n" "#define PC_FROM_UCONTEXT $pc_field" >>confdefs.h

                        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pc_field" >&5
printf "%s\n" "$pc_field" >&6; }
                        pc_field_found=true
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
       else     # hope some standard header gives it to us
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main (void)
{
ucontext_t u; return u.$pc_field == 0;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :

printf "%s\n" "#define PC_FROM_UCONTEXT $pc_field" >>confdefs.h

                        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pc_field" >&5
printf "%s\n" "$pc_field" >&6; }
                        pc_field_found=true
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam 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 (void)
{
ucontext_t u; return u.$pc_field == 0;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :

printf "%s\n" "#define PC_FROM_UCONTEXT $pc_field" >>confdefs.h

                        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pc_field" >&5
printf "%s\n" "$pc_field" >&6; }
                        pc_field_found=true
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam 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 :

printf "%s\n" "#define HAVE_STRUCT_IN6_ADDR 1" >>confdefs.h


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 :

printf "%s\n" "#define HAVE_STRUCT_SOCKADDR_IN6 1" >>confdefs.h


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 :

printf "%s\n" "#define HAVE_SA_FAMILY_T 1" >>confdefs.h


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 :

printf "%s\n" "#define HAVE_STRUCT_IN6_ADDR_S6_ADDR32 1" >>confdefs.h


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 :

printf "%s\n" "#define HAVE_STRUCT_IN6_ADDR_S6_ADDR16 1" >>confdefs.h


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 :

printf "%s\n" "#define HAVE_STRUCT_SOCKADDR_IN_SIN_LEN 1" >>confdefs.h


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 :

printf "%s\n" "#define HAVE_STRUCT_SOCKADDR_IN6_SIN6_LEN 1" >>confdefs.h


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 :

printf "%s\n" "#define HAVE_RLIM_T 1" >>confdefs.h


fi



 typename=`echo time_t | sed "s/[^a-zA-Z0-9_]/_/g"`
 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether time_t is signed" >&5
printf %s "checking whether time_t is signed... " >&6; }
if eval test \${ax_cv_decl_${typename}_signed+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
   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 (void)
{
 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 case e in #(
  e)  eval "ax_cv_decl_${typename}_signed=\"no\""  ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
esac
fi
eval ac_res=\$ax_cv_decl_${typename}_signed
	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
printf "%s\n" "$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"`
 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether size_t is signed" >&5
printf %s "checking whether size_t is signed... " >&6; }
if eval test \${ax_cv_decl_${typename}_signed+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif

int
main (void)
{
 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 case e in #(
  e)  eval "ax_cv_decl_${typename}_signed=\"no\""  ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
esac
fi
eval ac_res=\$ax_cv_decl_${typename}_signed
	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
printf "%s\n" "$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"`
 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether enum always is signed" >&5
printf %s "checking whether enum always is signed... " >&6; }
if eval test \${ax_cv_decl_${typename}_signed+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

 enum always { AAA, BBB, CCC };

int
main (void)
{
 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 case e in #(
  e)  eval "ax_cv_decl_${typename}_signed=\"no\""  ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
esac
fi
eval ac_res=\$ax_cv_decl_${typename}_signed
	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
printf "%s\n" "$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

printf "%s\n" "#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.
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of socklen_t" >&5
printf %s "checking size of socklen_t... " >&6; }
if test ${ac_cv_sizeof_socklen_t+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e) 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 case e in #(
  e) if test "$ac_cv_type_socklen_t" = yes; then
     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
printf "%s\n" "$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 ;;
esac
fi
 ;;
esac
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_socklen_t" >&5
printf "%s\n" "$ac_cv_sizeof_socklen_t" >&6; }



printf "%s\n" "#define SIZEOF_SOCKLEN_T $ac_cv_sizeof_socklen_t" >>confdefs.h



# 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.
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of cell_t" >&5
printf %s "checking size of cell_t... " >&6; }
if test ${ac_cv_sizeof_cell_t+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e) if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (cell_t))" "ac_cv_sizeof_cell_t"        "$ac_includes_default"
then :

else case e in #(
  e) if test "$ac_cv_type_cell_t" = yes; then
     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
printf "%s\n" "$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 ;;
esac
fi
 ;;
esac
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_cell_t" >&5
printf "%s\n" "$ac_cv_sizeof_cell_t" >&6; }



printf "%s\n" "#define SIZEOF_CELL_T $ac_cv_sizeof_cell_t" >>confdefs.h



# Let's see if stdatomic works. (There are some debian clangs that screw it
# up; see Tor bug #26779 and debian bug 903709.)
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C11 stdatomic.h actually works" >&5
printf %s "checking whether C11 stdatomic.h actually works... " >&6; }
if test ${tor_cv_stdatomic_works+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e) 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 case e in #(
  e) tor_cv_stdatomic_works=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
esac
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tor_cv_stdatomic_works" >&5
printf "%s\n" "$tor_cv_stdatomic_works" >&6; }

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

printf "%s\n" "#define STDATOMIC_WORKS 1" >>confdefs.h

elif test "$ac_cv_header_stdatomic_h" = "yes"; then
   tor_incr_n_warnings
   { printf "%s\n" "$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
printf "%s\n" "$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.
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether memset(0) sets pointers to NULL" >&5
printf %s "checking whether memset(0) sets pointers to NULL... " >&6; }
if test ${tor_cv_null_is_zero+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e) if test "$cross_compiling" = yes
then :
  tor_cv_null_is_zero=cross
else case e in #(
  e) 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 (void) { 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 case e in #(
  e) tor_cv_null_is_zero=no ;;
esac
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
esac
fi
 ;;
esac
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tor_cv_null_is_zero" >&5
printf "%s\n" "$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.
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Cross-compiling: we'll assume that NULL is represented as a sequence of 0-valued bytes." >&5
printf "%s\n" "$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

printf "%s\n" "#define NULL_REP_IS_ZERO_BYTES 1" >>confdefs.h

fi

{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether memset(0) sets doubles to 0.0" >&5
printf %s "checking whether memset(0) sets doubles to 0.0... " >&6; }
if test ${tor_cv_dbl0_is_zero+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e) if test "$cross_compiling" = yes
then :
  tor_cv_dbl0_is_zero=cross
else case e in #(
  e) 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 (void) { 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 case e in #(
  e) tor_cv_dbl0_is_zero=no ;;
esac
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
esac
fi
 ;;
esac
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tor_cv_dbl0_is_zero" >&5
printf "%s\n" "$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.
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Cross-compiling: we'll assume that 0.0 can be represented as a sequence of 0-valued bytes." >&5
printf "%s\n" "$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

printf "%s\n" "#define DOUBLE_0_REP_IS_ZERO_BYTES 1" >>confdefs.h

fi

# And what happens when we malloc zero?
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we can malloc(0) safely." >&5
printf %s "checking whether we can malloc(0) safely.... " >&6; }
if test ${tor_cv_malloc_zero_works+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e) if test "$cross_compiling" = yes
then :
  tor_cv_malloc_zero_works=cross
else case e in #(
  e) 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 (void) { return malloc(0)?0:1; }
_ACEOF
if ac_fn_c_try_run "$LINENO"
then :
  tor_cv_malloc_zero_works=yes
else case e in #(
  e) tor_cv_malloc_zero_works=no ;;
esac
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
esac
fi
 ;;
esac
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tor_cv_malloc_zero_works" >&5
printf "%s\n" "$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.
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Cross-compiling: we'll assume that we need to check malloc() arguments for 0." >&5
printf "%s\n" "$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

printf "%s\n" "#define MALLOC_ZERO_WORKS 1" >>confdefs.h

fi

# whether we seem to be in a 2s-complement world.
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are using 2s-complement arithmetic" >&5
printf %s "checking whether we are using 2s-complement arithmetic... " >&6; }
if test ${tor_cv_twos_complement+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e) if test "$cross_compiling" = yes
then :
  tor_cv_twos_complement=cross
else case e in #(
  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
int main (void) { int problem = ((-99) != (~99)+1);
return problem ? 1 : 0; }
_ACEOF
if ac_fn_c_try_run "$LINENO"
then :
  tor_cv_twos_complement=yes
else case e in #(
  e) tor_cv_twos_complement=no ;;
esac
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
esac
fi
 ;;
esac
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tor_cv_twos_complement" >&5
printf "%s\n" "$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.
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Cross-compiling: we'll assume that negative integers are represented with two's complement." >&5
printf "%s\n" "$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

printf "%s\n" "#define USING_TWOS_COMPLEMENT 1" >>confdefs.h

fi

# What does shifting a negative value do?
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether right-shift on negative values does sign-extension" >&5
printf %s "checking whether right-shift on negative values does sign-extension... " >&6; }
if test ${tor_cv_sign_extend+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e) if test "$cross_compiling" = yes
then :
  tor_cv_sign_extend=cross
else case e in #(
  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
int main (void) { int okay = (-60 >> 8) == -1; return okay ? 0 : 1; }
_ACEOF
if ac_fn_c_try_run "$LINENO"
then :
  tor_cv_sign_extend=yes
else case e in #(
  e) tor_cv_sign_extend=no ;;
esac
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
esac
fi
 ;;
esac
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tor_cv_sign_extend" >&5
printf "%s\n" "$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.
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Cross-compiling: we'll assume that right-shifting negative integers causes sign-extension" >&5
printf "%s\n" "$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

printf "%s\n" "#define RSHIFT_DOES_SIGN_EXTEND 1" >>confdefs.h

fi

# Is uint8_t the same type as unsigned char?
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether uint8_t is the same type as unsigned char" >&5
printf %s "checking whether uint8_t is the same type as unsigned char... " >&6; }
if test ${tor_cv_uint8_uchar+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e) 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 case e in #(
  e) tor_cv_uint8_uchar=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
esac
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tor_cv_uint8_uchar" >&5
printf "%s\n" "$tor_cv_uint8_uchar" >&6; }

if test "$tor_cv_uint8_uchar" = "cross"; then
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Cross-compiling: we'll assume that uint8_t is the same type as unsigned char" >&5
printf "%s\n" "$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+y}
then :
  withval=$with_tcmalloc;
fi


default_malloc=system

if test "x$enable_openbsd_malloc" = "xyes" ; then
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: The --enable-openbsd-malloc argument is deprecated; use --with-malloc=openbsd instead." >&5
printf "%s\n" "$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
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: The --with-tcmalloc argument is deprecated; use --with-malloc=tcmalloc instead." >&5
printf "%s\n" "$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+y}
then :
  withval=$with_malloc;  malloc="$with_malloc"
else case e in #(
  e)  malloc="$default_malloc"  ;;
esac
fi


case $malloc in #(
  tcmalloc) :


pkg_failed=no
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for TCMALLOC" >&5
printf %s "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" && \
    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libtcmalloc\""; } >&5
  ($PKG_CONFIG --exists --print-errors "libtcmalloc") 2>&5
  ac_status=$?
  printf "%s\n" "$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" && \
    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libtcmalloc\""; } >&5
  ($PKG_CONFIG --exists --print-errors "libtcmalloc") 2>&5
  ac_status=$?
  printf "%s\n" "$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
   	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "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
     	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
	have_tcmalloc=no
else
	TCMALLOC_CFLAGS=$pkg_cv_TCMALLOC_CFLAGS
	TCMALLOC_LIBS=$pkg_cv_TCMALLOC_LIBS
        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "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
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for JEMALLOC" >&5
printf %s "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" && \
    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"jemalloc\""; } >&5
  ($PKG_CONFIG --exists --print-errors "jemalloc") 2>&5
  ac_status=$?
  printf "%s\n" "$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" && \
    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"jemalloc\""; } >&5
  ($PKG_CONFIG --exists --print-errors "jemalloc") 2>&5
  ac_status=$?
  printf "%s\n" "$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
   	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "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
     	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
	have_jemalloc=no
else
	JEMALLOC_CFLAGS=$pkg_cv_JEMALLOC_CFLAGS
	JEMALLOC_LIBS=$pkg_cv_JEMALLOC_LIBS
        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "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) :

    tor_incr_n_warnings
    { printf "%s\n" "$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
printf "%s\n" "$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
   ;; #(
  *) :
    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.



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -fno-builtin-malloc -fno-builtin-realloc -fno-builtin-calloc -fno-builtin-free" >&5
printf %s "checking whether the compiler accepts -fno-builtin-malloc -fno-builtin-realloc -fno-builtin-calloc -fno-builtin-free... " >&6; }
if test ${tor_cv_cflags__fno_builtin_malloc__fno_builtin_realloc__fno_builtin_calloc__fno_builtin_free+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
    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 (void)
{

  ;
  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 case e in #(
  e) tor_cv_cflags__fno_builtin_malloc__fno_builtin_realloc__fno_builtin_calloc__fno_builtin_free=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
    if test x != x; then

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

int
main (void)
{

  ;
  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 case e in #(
  e) tor_can_link__fno_builtin_malloc__fno_builtin_realloc__fno_builtin_calloc__fno_builtin_free=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"
   ;;
esac
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__fno_builtin_malloc__fno_builtin_realloc__fno_builtin_calloc__fno_builtin_free" >&5
printf "%s\n" "$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.



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -fno-builtin-malloc -fno-builtin-realloc -fno-builtin-calloc -fno-builtin-free" >&5
printf %s "checking whether the compiler accepts -fno-builtin-malloc -fno-builtin-realloc -fno-builtin-calloc -fno-builtin-free... " >&6; }
if test ${tor_cv_cflags__fno_builtin_malloc__fno_builtin_realloc__fno_builtin_calloc__fno_builtin_free+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
    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 (void)
{

  ;
  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 case e in #(
  e) tor_cv_cflags__fno_builtin_malloc__fno_builtin_realloc__fno_builtin_calloc__fno_builtin_free=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
    if test x != x; then

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

int
main (void)
{

  ;
  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 case e in #(
  e) tor_can_link__fno_builtin_malloc__fno_builtin_realloc__fno_builtin_calloc__fno_builtin_free=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"
   ;;
esac
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__fno_builtin_malloc__fno_builtin_realloc__fno_builtin_calloc__fno_builtin_free" >&5
printf "%s\n" "$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.
ac_fn_c_check_func "$LINENO" "mlockall" "ac_cv_func_mlockall"
if test "x$ac_cv_func_mlockall" = xyes
then :
  printf "%s\n" "#define HAVE_MLOCKALL 1" >>confdefs.h

fi

ac_fn_check_decl "$LINENO" "mlockall" "ac_cv_have_decl_mlockall" "
#ifdef HAVE_SYS_MMAN_H
#include <sys/mman.h>
#endif
" "$ac_c_undeclared_builtin_options" "CFLAGS"
if test "x$ac_cv_have_decl_mlockall" = xyes
then :
  ac_have_decl=1
else case e in #(
  e) ac_have_decl=0 ;;
esac
fi
printf "%s\n" "#define HAVE_DECL_MLOCKALL $ac_have_decl" >>confdefs.h


# Allow user to specify an alternate syslog facility

# Check whether --with-syslog-facility was given.
if test ${with_syslog_facility+y}
then :
  withval=$with_syslog_facility; syslog_facility="$withval"
else case e in #(
  e) syslog_facility="LOG_DAEMON" ;;
esac
fi


printf "%s\n" "#define LOGFACILITY $syslog_facility" >>confdefs.h



# Check if we have getresuid and getresgid
ac_fn_c_check_func "$LINENO" "getresuid" "ac_cv_func_getresuid"
if test "x$ac_cv_func_getresuid" = xyes
then :
  printf "%s\n" "#define HAVE_GETRESUID 1" >>confdefs.h

fi
ac_fn_c_check_func "$LINENO" "getresgid" "ac_cv_func_getresgid"
if test "x$ac_cv_func_getresgid" = xyes
then :
  printf "%s\n" "#define HAVE_GETRESGID 1" >>confdefs.h

fi


# 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 :

  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how many arguments gethostbyname_r() wants" >&5
printf %s "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 (void)
{

    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 :

    printf "%s\n" "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h


printf "%s\n" "#define HAVE_GETHOSTBYNAME_R_6_ARG 1" >>confdefs.h

    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: 6" >&5
printf "%s\n" "6" >&6; }

else case e in #(
  e)
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include <netdb.h>

int
main (void)
{

      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 :

      printf "%s\n" "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h


printf "%s\n" "#define HAVE_GETHOSTBYNAME_R_5_ARG 1" >>confdefs.h

      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: 5" >&5
printf "%s\n" "5" >&6; }

else case e in #(
  e)
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include <netdb.h>

int
main (void)
{

       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 :

       printf "%s\n" "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h


printf "%s\n" "#define HAVE_GETHOSTBYNAME_R_3_ARG 1" >>confdefs.h

       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: 3" >&5
printf "%s\n" "3" >&6; }

else case e in #(
  e)
       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: 0" >&5
printf "%s\n" "0" >&6; }
      ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
 CFLAGS=$OLD_CFLAGS

fi


{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler supports __func__" >&5
printf %s "checking whether the C compiler supports __func__... " >&6; }
if test ${tor_cv_have_func_macro+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e) 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 case e in #(
  e) tor_cv_have_func_macro=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
esac
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tor_cv_have_func_macro" >&5
printf "%s\n" "$tor_cv_have_func_macro" >&6; }

{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler supports __FUNC__" >&5
printf %s "checking whether the C compiler supports __FUNC__... " >&6; }
if test ${tor_cv_have_FUNC_macro+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e) 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 case e in #(
  e) tor_cv_have_FUNC_macro=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
esac
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tor_cv_have_FUNC_macro" >&5
printf "%s\n" "$tor_cv_have_FUNC_macro" >&6; }

{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler supports __FUNCTION__" >&5
printf %s "checking whether the C compiler supports __FUNCTION__... " >&6; }
if test ${tor_cv_have_FUNCTION_macro+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e) 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 case e in #(
  e) tor_cv_have_FUNCTION_macro=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
esac
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tor_cv_have_FUNCTION_macro" >&5
printf "%s\n" "$tor_cv_have_FUNCTION_macro" >&6; }

{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we have extern char **environ already declared" >&5
printf %s "checking whether we have extern char **environ already declared... " >&6; }
if test ${tor_cv_have_environ_declared+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e) 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 case e in #(
  e) tor_cv_have_environ_declared=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
esac
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tor_cv_have_environ_declared" >&5
printf "%s\n" "$tor_cv_have_environ_declared" >&6; }

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

printf "%s\n" "#define HAVE_MACRO__func__ 1" >>confdefs.h

fi

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

printf "%s\n" "#define HAVE_MACRO__FUNC__ 1" >>confdefs.h

fi

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

printf "%s\n" "#define HAVE_MACRO__FUNCTION__ 1" >>confdefs.h

fi

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

printf "%s\n" "#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


printf "%s\n" "#define BUILDDIR \"$BUILDDIR\"" >>confdefs.h


if test "x$SRCDIR" = "x"; then
  SRCDIR=$(cd "$srcdir"; pwd)
fi

printf "%s\n" "#define SRCDIR \"$SRCDIR\"" >>confdefs.h


if test "x$CONFDIR" = "x"; then
  CONFDIR=`eval echo $sysconfdir/tor`
fi


printf "%s\n" "#define CONFDIR \"$CONFDIR\"" >>confdefs.h


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"
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the linker supports DllCharacteristics" >&5
printf %s "checking whether the linker supports DllCharacteristics... " >&6; }
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }
    save_LDFLAGS="$save_LDFLAGS $LDFLAGS"
else case e in #(
  e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
   ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    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"



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Waddress" >&5
printf %s "checking whether the compiler accepts -Waddress... " >&6; }
if test ${tor_cv_cflags__Waddress+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Waddress"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  tor_cv_cflags__Waddress=yes
else case e in #(
  e) tor_cv_cflags__Waddress=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
    if test x != x; then

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

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  tor_can_link__Waddress=yes
else case e in #(
  e) tor_can_link__Waddress=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"
   ;;
esac
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Waddress" >&5
printf "%s\n" "$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




  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Waddress-of-array-temporary" >&5
printf %s "checking whether the compiler accepts -Waddress-of-array-temporary... " >&6; }
if test ${tor_cv_cflags__Waddress_of_array_temporary+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Waddress-of-array-temporary"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  tor_cv_cflags__Waddress_of_array_temporary=yes
else case e in #(
  e) tor_cv_cflags__Waddress_of_array_temporary=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
    if test x != x; then

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

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  tor_can_link__Waddress_of_array_temporary=yes
else case e in #(
  e) tor_can_link__Waddress_of_array_temporary=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"
   ;;
esac
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Waddress_of_array_temporary" >&5
printf "%s\n" "$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




  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Waddress-of-temporary" >&5
printf %s "checking whether the compiler accepts -Waddress-of-temporary... " >&6; }
if test ${tor_cv_cflags__Waddress_of_temporary+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Waddress-of-temporary"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  tor_cv_cflags__Waddress_of_temporary=yes
else case e in #(
  e) tor_cv_cflags__Waddress_of_temporary=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
    if test x != x; then

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

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  tor_can_link__Waddress_of_temporary=yes
else case e in #(
  e) tor_can_link__Waddress_of_temporary=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"
   ;;
esac
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Waddress_of_temporary" >&5
printf "%s\n" "$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




  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wambiguous-macro" >&5
printf %s "checking whether the compiler accepts -Wambiguous-macro... " >&6; }
if test ${tor_cv_cflags__Wambiguous_macro+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Wambiguous-macro"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  tor_cv_cflags__Wambiguous_macro=yes
else case e in #(
  e) tor_cv_cflags__Wambiguous_macro=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
    if test x != x; then

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

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  tor_can_link__Wambiguous_macro=yes
else case e in #(
  e) tor_can_link__Wambiguous_macro=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"
   ;;
esac
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wambiguous_macro" >&5
printf "%s\n" "$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




  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wanonymous-pack-parens" >&5
printf %s "checking whether the compiler accepts -Wanonymous-pack-parens... " >&6; }
if test ${tor_cv_cflags__Wanonymous_pack_parens+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Wanonymous-pack-parens"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  tor_cv_cflags__Wanonymous_pack_parens=yes
else case e in #(
  e) tor_cv_cflags__Wanonymous_pack_parens=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
    if test x != x; then

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

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  tor_can_link__Wanonymous_pack_parens=yes
else case e in #(
  e) tor_can_link__Wanonymous_pack_parens=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"
   ;;
esac
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wanonymous_pack_parens" >&5
printf "%s\n" "$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




  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Warc" >&5
printf %s "checking whether the compiler accepts -Warc... " >&6; }
if test ${tor_cv_cflags__Warc+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Warc"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  tor_cv_cflags__Warc=yes
else case e in #(
  e) tor_cv_cflags__Warc=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
    if test x != x; then

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

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  tor_can_link__Warc=yes
else case e in #(
  e) tor_can_link__Warc=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"
   ;;
esac
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Warc" >&5
printf "%s\n" "$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




  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Warc-abi" >&5
printf %s "checking whether the compiler accepts -Warc-abi... " >&6; }
if test ${tor_cv_cflags__Warc_abi+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Warc-abi"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  tor_cv_cflags__Warc_abi=yes
else case e in #(
  e) tor_cv_cflags__Warc_abi=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
    if test x != x; then

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

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  tor_can_link__Warc_abi=yes
else case e in #(
  e) tor_can_link__Warc_abi=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"
   ;;
esac
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Warc_abi" >&5
printf "%s\n" "$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




  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Warc-bridge-casts-disallowed-in-nonarc" >&5
printf %s "checking whether the compiler accepts -Warc-bridge-casts-disallowed-in-nonarc... " >&6; }
if test ${tor_cv_cflags__Warc_bridge_casts_disallowed_in_nonarc+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
    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 (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  tor_cv_cflags__Warc_bridge_casts_disallowed_in_nonarc=yes
else case e in #(
  e) tor_cv_cflags__Warc_bridge_casts_disallowed_in_nonarc=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
    if test x != x; then

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

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  tor_can_link__Warc_bridge_casts_disallowed_in_nonarc=yes
else case e in #(
  e) tor_can_link__Warc_bridge_casts_disallowed_in_nonarc=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"
   ;;
esac
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Warc_bridge_casts_disallowed_in_nonarc" >&5
printf "%s\n" "$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




  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Warc-maybe-repeated-use-of-weak" >&5
printf %s "checking whether the compiler accepts -Warc-maybe-repeated-use-of-weak... " >&6; }
if test ${tor_cv_cflags__Warc_maybe_repeated_use_of_weak+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
    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 (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  tor_cv_cflags__Warc_maybe_repeated_use_of_weak=yes
else case e in #(
  e) tor_cv_cflags__Warc_maybe_repeated_use_of_weak=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
    if test x != x; then

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

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  tor_can_link__Warc_maybe_repeated_use_of_weak=yes
else case e in #(
  e) tor_can_link__Warc_maybe_repeated_use_of_weak=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"
   ;;
esac
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Warc_maybe_repeated_use_of_weak" >&5
printf "%s\n" "$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




  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Warc-performSelector-leaks" >&5
printf %s "checking whether the compiler accepts -Warc-performSelector-leaks... " >&6; }
if test ${tor_cv_cflags__Warc_performSelector_leaks+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Warc-performSelector-leaks"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  tor_cv_cflags__Warc_performSelector_leaks=yes
else case e in #(
  e) tor_cv_cflags__Warc_performSelector_leaks=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
    if test x != x; then

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

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  tor_can_link__Warc_performSelector_leaks=yes
else case e in #(
  e) tor_can_link__Warc_performSelector_leaks=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"
   ;;
esac
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Warc_performSelector_leaks" >&5
printf "%s\n" "$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




  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Warc-repeated-use-of-weak" >&5
printf %s "checking whether the compiler accepts -Warc-repeated-use-of-weak... " >&6; }
if test ${tor_cv_cflags__Warc_repeated_use_of_weak+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
    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 (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  tor_cv_cflags__Warc_repeated_use_of_weak=yes
else case e in #(
  e) tor_cv_cflags__Warc_repeated_use_of_weak=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
    if test x != x; then

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

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  tor_can_link__Warc_repeated_use_of_weak=yes
else case e in #(
  e) tor_can_link__Warc_repeated_use_of_weak=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"
   ;;
esac
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Warc_repeated_use_of_weak" >&5
printf "%s\n" "$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




  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Warray-bounds" >&5
printf %s "checking whether the compiler accepts -Warray-bounds... " >&6; }
if test ${tor_cv_cflags__Warray_bounds+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Warray-bounds"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  tor_cv_cflags__Warray_bounds=yes
else case e in #(
  e) tor_cv_cflags__Warray_bounds=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
    if test x != x; then

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

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  tor_can_link__Warray_bounds=yes
else case e in #(
  e) tor_can_link__Warray_bounds=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"
   ;;
esac
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Warray_bounds" >&5
printf "%s\n" "$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




  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Warray-bounds-pointer-arithmetic" >&5
printf %s "checking whether the compiler accepts -Warray-bounds-pointer-arithmetic... " >&6; }
if test ${tor_cv_cflags__Warray_bounds_pointer_arithmetic+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Warray-bounds-pointer-arithmetic"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  tor_cv_cflags__Warray_bounds_pointer_arithmetic=yes
else case e in #(
  e) tor_cv_cflags__Warray_bounds_pointer_arithmetic=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
    if test x != x; then

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

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  tor_can_link__Warray_bounds_pointer_arithmetic=yes
else case e in #(
  e) tor_can_link__Warray_bounds_pointer_arithmetic=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"
   ;;
esac
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Warray_bounds_pointer_arithmetic" >&5
printf "%s\n" "$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




  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wasm" >&5
printf %s "checking whether the compiler accepts -Wasm... " >&6; }
if test ${tor_cv_cflags__Wasm+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Wasm"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  tor_cv_cflags__Wasm=yes
else case e in #(
  e) tor_cv_cflags__Wasm=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
    if test x != x; then

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

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  tor_can_link__Wasm=yes
else case e in #(
  e) tor_can_link__Wasm=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"
   ;;
esac
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wasm" >&5
printf "%s\n" "$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




  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wasm-operand-widths" >&5
printf %s "checking whether the compiler accepts -Wasm-operand-widths... " >&6; }
if test ${tor_cv_cflags__Wasm_operand_widths+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Wasm-operand-widths"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  tor_cv_cflags__Wasm_operand_widths=yes
else case e in #(
  e) tor_cv_cflags__Wasm_operand_widths=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
    if test x != x; then

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

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  tor_can_link__Wasm_operand_widths=yes
else case e in #(
  e) tor_can_link__Wasm_operand_widths=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"
   ;;
esac
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wasm_operand_widths" >&5
printf "%s\n" "$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




  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Watomic-properties" >&5
printf %s "checking whether the compiler accepts -Watomic-properties... " >&6; }
if test ${tor_cv_cflags__Watomic_properties+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Watomic-properties"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  tor_cv_cflags__Watomic_properties=yes
else case e in #(
  e) tor_cv_cflags__Watomic_properties=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
    if test x != x; then

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

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  tor_can_link__Watomic_properties=yes
else case e in #(
  e) tor_can_link__Watomic_properties=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"
   ;;
esac
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Watomic_properties" >&5
printf "%s\n" "$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




  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Watomic-property-with-user-defined-accessor" >&5
printf %s "checking whether the compiler accepts -Watomic-property-with-user-defined-accessor... " >&6; }
if test ${tor_cv_cflags__Watomic_property_with_user_defined_accessor+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
    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 (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  tor_cv_cflags__Watomic_property_with_user_defined_accessor=yes
else case e in #(
  e) tor_cv_cflags__Watomic_property_with_user_defined_accessor=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
    if test x != x; then

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

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  tor_can_link__Watomic_property_with_user_defined_accessor=yes
else case e in #(
  e) tor_can_link__Watomic_property_with_user_defined_accessor=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"
   ;;
esac
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Watomic_property_with_user_defined_accessor" >&5
printf "%s\n" "$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




  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wauto-import" >&5
printf %s "checking whether the compiler accepts -Wauto-import... " >&6; }
if test ${tor_cv_cflags__Wauto_import+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Wauto-import"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  tor_cv_cflags__Wauto_import=yes
else case e in #(
  e) tor_cv_cflags__Wauto_import=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
    if test x != x; then

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

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  tor_can_link__Wauto_import=yes
else case e in #(
  e) tor_can_link__Wauto_import=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"
   ;;
esac
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wauto_import" >&5
printf "%s\n" "$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




  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wauto-storage-class" >&5
printf %s "checking whether the compiler accepts -Wauto-storage-class... " >&6; }
if test ${tor_cv_cflags__Wauto_storage_class+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Wauto-storage-class"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  tor_cv_cflags__Wauto_storage_class=yes
else case e in #(
  e) tor_cv_cflags__Wauto_storage_class=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
    if test x != x; then

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

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  tor_can_link__Wauto_storage_class=yes
else case e in #(
  e) tor_can_link__Wauto_storage_class=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"
   ;;
esac
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wauto_storage_class" >&5
printf "%s\n" "$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




  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wauto-var-id" >&5
printf %s "checking whether the compiler accepts -Wauto-var-id... " >&6; }
if test ${tor_cv_cflags__Wauto_var_id+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Wauto-var-id"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  tor_cv_cflags__Wauto_var_id=yes
else case e in #(
  e) tor_cv_cflags__Wauto_var_id=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
    if test x != x; then

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

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  tor_can_link__Wauto_var_id=yes
else case e in #(
  e) tor_can_link__Wauto_var_id=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"
   ;;
esac
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wauto_var_id" >&5
printf "%s\n" "$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




  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wavailability" >&5
printf %s "checking whether the compiler accepts -Wavailability... " >&6; }
if test ${tor_cv_cflags__Wavailability+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Wavailability"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  tor_cv_cflags__Wavailability=yes
else case e in #(
  e) tor_cv_cflags__Wavailability=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
    if test x != x; then

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

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  tor_can_link__Wavailability=yes
else case e in #(
  e) tor_can_link__Wavailability=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"
   ;;
esac
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wavailability" >&5
printf "%s\n" "$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




  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wbackslash-newline-escape" >&5
printf %s "checking whether the compiler accepts -Wbackslash-newline-escape... " >&6; }
if test ${tor_cv_cflags__Wbackslash_newline_escape+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Wbackslash-newline-escape"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  tor_cv_cflags__Wbackslash_newline_escape=yes
else case e in #(
  e) tor_cv_cflags__Wbackslash_newline_escape=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
    if test x != x; then

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

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  tor_can_link__Wbackslash_newline_escape=yes
else case e in #(
  e) tor_can_link__Wbackslash_newline_escape=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"
   ;;
esac
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wbackslash_newline_escape" >&5
printf "%s\n" "$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




  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wbad-array-new-length" >&5
printf %s "checking whether the compiler accepts -Wbad-array-new-length... " >&6; }
if test ${tor_cv_cflags__Wbad_array_new_length+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Wbad-array-new-length"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  tor_cv_cflags__Wbad_array_new_length=yes
else case e in #(
  e) tor_cv_cflags__Wbad_array_new_length=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
    if test x != x; then

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

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  tor_can_link__Wbad_array_new_length=yes
else case e in #(
  e) tor_can_link__Wbad_array_new_length=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"
   ;;
esac
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wbad_array_new_length" >&5
printf "%s\n" "$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




  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wbind-to-temporary-copy" >&5
printf %s "checking whether the compiler accepts -Wbind-to-temporary-copy... " >&6; }
if test ${tor_cv_cflags__Wbind_to_temporary_copy+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Wbind-to-temporary-copy"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  tor_cv_cflags__Wbind_to_temporary_copy=yes
else case e in #(
  e) tor_cv_cflags__Wbind_to_temporary_copy=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
    if test x != x; then

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

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  tor_can_link__Wbind_to_temporary_copy=yes
else case e in #(
  e) tor_can_link__Wbind_to_temporary_copy=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"
   ;;
esac
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wbind_to_temporary_copy" >&5
printf "%s\n" "$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




  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wbitfield-constant-conversion" >&5
printf %s "checking whether the compiler accepts -Wbitfield-constant-conversion... " >&6; }
if test ${tor_cv_cflags__Wbitfield_constant_conversion+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Wbitfield-constant-conversion"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  tor_cv_cflags__Wbitfield_constant_conversion=yes
else case e in #(
  e) tor_cv_cflags__Wbitfield_constant_conversion=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
    if test x != x; then

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

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  tor_can_link__Wbitfield_constant_conversion=yes
else case e in #(
  e) tor_can_link__Wbitfield_constant_conversion=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"
   ;;
esac
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wbitfield_constant_conversion" >&5
printf "%s\n" "$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




  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wbool-conversion" >&5
printf %s "checking whether the compiler accepts -Wbool-conversion... " >&6; }
if test ${tor_cv_cflags__Wbool_conversion+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Wbool-conversion"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  tor_cv_cflags__Wbool_conversion=yes
else case e in #(
  e) tor_cv_cflags__Wbool_conversion=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
    if test x != x; then

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

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  tor_can_link__Wbool_conversion=yes
else case e in #(
  e) tor_can_link__Wbool_conversion=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"
   ;;
esac
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wbool_conversion" >&5
printf "%s\n" "$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




  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wbool-conversions" >&5
printf %s "checking whether the compiler accepts -Wbool-conversions... " >&6; }
if test ${tor_cv_cflags__Wbool_conversions+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Wbool-conversions"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  tor_cv_cflags__Wbool_conversions=yes
else case e in #(
  e) tor_cv_cflags__Wbool_conversions=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
    if test x != x; then

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

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  tor_can_link__Wbool_conversions=yes
else case e in #(
  e) tor_can_link__Wbool_conversions=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"
   ;;
esac
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wbool_conversions" >&5
printf "%s\n" "$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




  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wbuiltin-requires-header" >&5
printf %s "checking whether the compiler accepts -Wbuiltin-requires-header... " >&6; }
if test ${tor_cv_cflags__Wbuiltin_requires_header+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Wbuiltin-requires-header"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  tor_cv_cflags__Wbuiltin_requires_header=yes
else case e in #(
  e) tor_cv_cflags__Wbuiltin_requires_header=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
    if test x != x; then

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

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  tor_can_link__Wbuiltin_requires_header=yes
else case e in #(
  e) tor_can_link__Wbuiltin_requires_header=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"
   ;;
esac
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wbuiltin_requires_header" >&5
printf "%s\n" "$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




  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wchar-align" >&5
printf %s "checking whether the compiler accepts -Wchar-align... " >&6; }
if test ${tor_cv_cflags__Wchar_align+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Wchar-align"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  tor_cv_cflags__Wchar_align=yes
else case e in #(
  e) tor_cv_cflags__Wchar_align=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
    if test x != x; then

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

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  tor_can_link__Wchar_align=yes
else case e in #(
  e) tor_can_link__Wchar_align=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"
   ;;
esac
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wchar_align" >&5
printf "%s\n" "$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




  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wcompare-distinct-pointer-types" >&5
printf %s "checking whether the compiler accepts -Wcompare-distinct-pointer-types... " >&6; }
if test ${tor_cv_cflags__Wcompare_distinct_pointer_types+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Wcompare-distinct-pointer-types"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  tor_cv_cflags__Wcompare_distinct_pointer_types=yes
else case e in #(
  e) tor_cv_cflags__Wcompare_distinct_pointer_types=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
    if test x != x; then

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

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  tor_can_link__Wcompare_distinct_pointer_types=yes
else case e in #(
  e) tor_can_link__Wcompare_distinct_pointer_types=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"
   ;;
esac
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wcompare_distinct_pointer_types" >&5
printf "%s\n" "$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




  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wcomplex-component-init" >&5
printf %s "checking whether the compiler accepts -Wcomplex-component-init... " >&6; }
if test ${tor_cv_cflags__Wcomplex_component_init+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Wcomplex-component-init"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  tor_cv_cflags__Wcomplex_component_init=yes
else case e in #(
  e) tor_cv_cflags__Wcomplex_component_init=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
    if test x != x; then

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

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  tor_can_link__Wcomplex_component_init=yes
else case e in #(
  e) tor_can_link__Wcomplex_component_init=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"
   ;;
esac
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wcomplex_component_init" >&5
printf "%s\n" "$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




  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wconditional-type-mismatch" >&5
printf %s "checking whether the compiler accepts -Wconditional-type-mismatch... " >&6; }
if test ${tor_cv_cflags__Wconditional_type_mismatch+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Wconditional-type-mismatch"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  tor_cv_cflags__Wconditional_type_mismatch=yes
else case e in #(
  e) tor_cv_cflags__Wconditional_type_mismatch=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
    if test x != x; then

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

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  tor_can_link__Wconditional_type_mismatch=yes
else case e in #(
  e) tor_can_link__Wconditional_type_mismatch=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"
   ;;
esac
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wconditional_type_mismatch" >&5
printf "%s\n" "$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




  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wconfig-macros" >&5
printf %s "checking whether the compiler accepts -Wconfig-macros... " >&6; }
if test ${tor_cv_cflags__Wconfig_macros+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Wconfig-macros"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  tor_cv_cflags__Wconfig_macros=yes
else case e in #(
  e) tor_cv_cflags__Wconfig_macros=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
    if test x != x; then

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

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  tor_can_link__Wconfig_macros=yes
else case e in #(
  e) tor_can_link__Wconfig_macros=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"
   ;;
esac
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wconfig_macros" >&5
printf "%s\n" "$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




  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wconstant-conversion" >&5
printf %s "checking whether the compiler accepts -Wconstant-conversion... " >&6; }
if test ${tor_cv_cflags__Wconstant_conversion+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Wconstant-conversion"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  tor_cv_cflags__Wconstant_conversion=yes
else case e in #(
  e) tor_cv_cflags__Wconstant_conversion=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
    if test x != x; then

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

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  tor_can_link__Wconstant_conversion=yes
else case e in #(
  e) tor_can_link__Wconstant_conversion=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"
   ;;
esac
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wconstant_conversion" >&5
printf "%s\n" "$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




  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wconstant-logical-operand" >&5
printf %s "checking whether the compiler accepts -Wconstant-logical-operand... " >&6; }
if test ${tor_cv_cflags__Wconstant_logical_operand+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Wconstant-logical-operand"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  tor_cv_cflags__Wconstant_logical_operand=yes
else case e in #(
  e) tor_cv_cflags__Wconstant_logical_operand=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
    if test x != x; then

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

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  tor_can_link__Wconstant_logical_operand=yes
else case e in #(
  e) tor_can_link__Wconstant_logical_operand=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"
   ;;
esac
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wconstant_logical_operand" >&5
printf "%s\n" "$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




  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wconstexpr-not-const" >&5
printf %s "checking whether the compiler accepts -Wconstexpr-not-const... " >&6; }
if test ${tor_cv_cflags__Wconstexpr_not_const+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Wconstexpr-not-const"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  tor_cv_cflags__Wconstexpr_not_const=yes
else case e in #(
  e) tor_cv_cflags__Wconstexpr_not_const=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
    if test x != x; then

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

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  tor_can_link__Wconstexpr_not_const=yes
else case e in #(
  e) tor_can_link__Wconstexpr_not_const=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"
   ;;
esac
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wconstexpr_not_const" >&5
printf "%s\n" "$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




  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wcustom-atomic-properties" >&5
printf %s "checking whether the compiler accepts -Wcustom-atomic-properties... " >&6; }
if test ${tor_cv_cflags__Wcustom_atomic_properties+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Wcustom-atomic-properties"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  tor_cv_cflags__Wcustom_atomic_properties=yes
else case e in #(
  e) tor_cv_cflags__Wcustom_atomic_properties=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
    if test x != x; then

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

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  tor_can_link__Wcustom_atomic_properties=yes
else case e in #(
  e) tor_can_link__Wcustom_atomic_properties=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"
   ;;
esac
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wcustom_atomic_properties" >&5
printf "%s\n" "$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




  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wdangling-field" >&5
printf %s "checking whether the compiler accepts -Wdangling-field... " >&6; }
if test ${tor_cv_cflags__Wdangling_field+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Wdangling-field"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  tor_cv_cflags__Wdangling_field=yes
else case e in #(
  e) tor_cv_cflags__Wdangling_field=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
    if test x != x; then

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

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  tor_can_link__Wdangling_field=yes
else case e in #(
  e) tor_can_link__Wdangling_field=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"
   ;;
esac
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wdangling_field" >&5
printf "%s\n" "$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




  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wdangling-initializer-list" >&5
printf %s "checking whether the compiler accepts -Wdangling-initializer-list... " >&6; }
if test ${tor_cv_cflags__Wdangling_initializer_list+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Wdangling-initializer-list"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  tor_cv_cflags__Wdangling_initializer_list=yes
else case e in #(
  e) tor_cv_cflags__Wdangling_initializer_list=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
    if test x != x; then

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

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  tor_can_link__Wdangling_initializer_list=yes
else case e in #(
  e) tor_can_link__Wdangling_initializer_list=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"
   ;;
esac
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wdangling_initializer_list" >&5
printf "%s\n" "$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




  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wdate-time" >&5
printf %s "checking whether the compiler accepts -Wdate-time... " >&6; }
if test ${tor_cv_cflags__Wdate_time+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Wdate-time"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  tor_cv_cflags__Wdate_time=yes
else case e in #(
  e) tor_cv_cflags__Wdate_time=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
    if test x != x; then

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

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  tor_can_link__Wdate_time=yes
else case e in #(
  e) tor_can_link__Wdate_time=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"
   ;;
esac
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wdate_time" >&5
printf "%s\n" "$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




  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wdelegating-ctor-cycles" >&5
printf %s "checking whether the compiler accepts -Wdelegating-ctor-cycles... " >&6; }
if test ${tor_cv_cflags__Wdelegating_ctor_cycles+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Wdelegating-ctor-cycles"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  tor_cv_cflags__Wdelegating_ctor_cycles=yes
else case e in #(
  e) tor_cv_cflags__Wdelegating_ctor_cycles=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
    if test x != x; then

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

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  tor_can_link__Wdelegating_ctor_cycles=yes
else case e in #(
  e) tor_can_link__Wdelegating_ctor_cycles=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"
   ;;
esac
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wdelegating_ctor_cycles" >&5
printf "%s\n" "$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




  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wdeprecated-implementations" >&5
printf %s "checking whether the compiler accepts -Wdeprecated-implementations... " >&6; }
if test ${tor_cv_cflags__Wdeprecated_implementations+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Wdeprecated-implementations"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  tor_cv_cflags__Wdeprecated_implementations=yes
else case e in #(
  e) tor_cv_cflags__Wdeprecated_implementations=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
    if test x != x; then

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

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  tor_can_link__Wdeprecated_implementations=yes
else case e in #(
  e) tor_can_link__Wdeprecated_implementations=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"
   ;;
esac
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wdeprecated_implementations" >&5
printf "%s\n" "$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




  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wdeprecated-register" >&5
printf %s "checking whether the compiler accepts -Wdeprecated-register... " >&6; }
if test ${tor_cv_cflags__Wdeprecated_register+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Wdeprecated-register"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  tor_cv_cflags__Wdeprecated_register=yes
else case e in #(
  e) tor_cv_cflags__Wdeprecated_register=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
    if test x != x; then

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

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  tor_can_link__Wdeprecated_register=yes
else case e in #(
  e) tor_can_link__Wdeprecated_register=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"
   ;;
esac
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wdeprecated_register" >&5
printf "%s\n" "$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




  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wdirect-ivar-access" >&5
printf %s "checking whether the compiler accepts -Wdirect-ivar-access... " >&6; }
if test ${tor_cv_cflags__Wdirect_ivar_access+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Wdirect-ivar-access"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  tor_cv_cflags__Wdirect_ivar_access=yes
else case e in #(
  e) tor_cv_cflags__Wdirect_ivar_access=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
    if test x != x; then

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

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  tor_can_link__Wdirect_ivar_access=yes
else case e in #(
  e) tor_can_link__Wdirect_ivar_access=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"
   ;;
esac
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wdirect_ivar_access" >&5
printf "%s\n" "$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




  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wdiscard-qual" >&5
printf %s "checking whether the compiler accepts -Wdiscard-qual... " >&6; }
if test ${tor_cv_cflags__Wdiscard_qual+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Wdiscard-qual"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  tor_cv_cflags__Wdiscard_qual=yes
else case e in #(
  e) tor_cv_cflags__Wdiscard_qual=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
    if test x != x; then

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

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  tor_can_link__Wdiscard_qual=yes
else case e in #(
  e) tor_can_link__Wdiscard_qual=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"
   ;;
esac
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wdiscard_qual" >&5
printf "%s\n" "$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




  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wdistributed-object-modifiers" >&5
printf %s "checking whether the compiler accepts -Wdistributed-object-modifiers... " >&6; }
if test ${tor_cv_cflags__Wdistributed_object_modifiers+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Wdistributed-object-modifiers"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  tor_cv_cflags__Wdistributed_object_modifiers=yes
else case e in #(
  e) tor_cv_cflags__Wdistributed_object_modifiers=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
    if test x != x; then

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

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  tor_can_link__Wdistributed_object_modifiers=yes
else case e in #(
  e) tor_can_link__Wdistributed_object_modifiers=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"
   ;;
esac
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wdistributed_object_modifiers" >&5
printf "%s\n" "$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




  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wdivision-by-zero" >&5
printf %s "checking whether the compiler accepts -Wdivision-by-zero... " >&6; }
if test ${tor_cv_cflags__Wdivision_by_zero+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Wdivision-by-zero"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  tor_cv_cflags__Wdivision_by_zero=yes
else case e in #(
  e) tor_cv_cflags__Wdivision_by_zero=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
    if test x != x; then

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

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  tor_can_link__Wdivision_by_zero=yes
else case e in #(
  e) tor_can_link__Wdivision_by_zero=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"
   ;;
esac
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wdivision_by_zero" >&5
printf "%s\n" "$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




  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wdollar-in-identifier-extension" >&5
printf %s "checking whether the compiler accepts -Wdollar-in-identifier-extension... " >&6; }
if test ${tor_cv_cflags__Wdollar_in_identifier_extension+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Wdollar-in-identifier-extension"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  tor_cv_cflags__Wdollar_in_identifier_extension=yes
else case e in #(
  e) tor_cv_cflags__Wdollar_in_identifier_extension=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
    if test x != x; then

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

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  tor_can_link__Wdollar_in_identifier_extension=yes
else case e in #(
  e) tor_can_link__Wdollar_in_identifier_extension=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"
   ;;
esac
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wdollar_in_identifier_extension" >&5
printf "%s\n" "$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




  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wdouble-promotion" >&5
printf %s "checking whether the compiler accepts -Wdouble-promotion... " >&6; }
if test ${tor_cv_cflags__Wdouble_promotion+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Wdouble-promotion"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  tor_cv_cflags__Wdouble_promotion=yes
else case e in #(
  e) tor_cv_cflags__Wdouble_promotion=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
    if test x != x; then

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

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  tor_can_link__Wdouble_promotion=yes
else case e in #(
  e) tor_can_link__Wdouble_promotion=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"
   ;;
esac
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wdouble_promotion" >&5
printf "%s\n" "$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




  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wduplicate-decl-specifier" >&5
printf %s "checking whether the compiler accepts -Wduplicate-decl-specifier... " >&6; }
if test ${tor_cv_cflags__Wduplicate_decl_specifier+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Wduplicate-decl-specifier"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  tor_cv_cflags__Wduplicate_decl_specifier=yes
else case e in #(
  e) tor_cv_cflags__Wduplicate_decl_specifier=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
    if test x != x; then

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

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  tor_can_link__Wduplicate_decl_specifier=yes
else case e in #(
  e) tor_can_link__Wduplicate_decl_specifier=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"
   ;;
esac
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wduplicate_decl_specifier" >&5
printf "%s\n" "$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




  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wduplicate-enum" >&5
printf %s "checking whether the compiler accepts -Wduplicate-enum... " >&6; }
if test ${tor_cv_cflags__Wduplicate_enum+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Wduplicate-enum"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  tor_cv_cflags__Wduplicate_enum=yes
else case e in #(
  e) tor_cv_cflags__Wduplicate_enum=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
    if test x != x; then

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

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  tor_can_link__Wduplicate_enum=yes
else case e in #(
  e) tor_can_link__Wduplicate_enum=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"
   ;;
esac
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wduplicate_enum" >&5
printf "%s\n" "$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




  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wduplicate-method-arg" >&5
printf %s "checking whether the compiler accepts -Wduplicate-method-arg... " >&6; }
if test ${tor_cv_cflags__Wduplicate_method_arg+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Wduplicate-method-arg"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  tor_cv_cflags__Wduplicate_method_arg=yes
else case e in #(
  e) tor_cv_cflags__Wduplicate_method_arg=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
    if test x != x; then

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

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  tor_can_link__Wduplicate_method_arg=yes
else case e in #(
  e) tor_can_link__Wduplicate_method_arg=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"
   ;;
esac
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wduplicate_method_arg" >&5
printf "%s\n" "$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




  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wduplicate-method-match" >&5
printf %s "checking whether the compiler accepts -Wduplicate-method-match... " >&6; }
if test ${tor_cv_cflags__Wduplicate_method_match+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Wduplicate-method-match"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  tor_cv_cflags__Wduplicate_method_match=yes
else case e in #(
  e) tor_cv_cflags__Wduplicate_method_match=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
    if test x != x; then

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

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  tor_can_link__Wduplicate_method_match=yes
else case e in #(
  e) tor_can_link__Wduplicate_method_match=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"
   ;;
esac
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wduplicate_method_match" >&5
printf "%s\n" "$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




  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wduplicated-cond" >&5
printf %s "checking whether the compiler accepts -Wduplicated-cond... " >&6; }
if test ${tor_cv_cflags__Wduplicated_cond+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Wduplicated-cond"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  tor_cv_cflags__Wduplicated_cond=yes
else case e in #(
  e) tor_cv_cflags__Wduplicated_cond=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
    if test x != x; then

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

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  tor_can_link__Wduplicated_cond=yes
else case e in #(
  e) tor_can_link__Wduplicated_cond=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"
   ;;
esac
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wduplicated_cond" >&5
printf "%s\n" "$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




  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wdynamic-class-memaccess" >&5
printf %s "checking whether the compiler accepts -Wdynamic-class-memaccess... " >&6; }
if test ${tor_cv_cflags__Wdynamic_class_memaccess+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Wdynamic-class-memaccess"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  tor_cv_cflags__Wdynamic_class_memaccess=yes
else case e in #(
  e) tor_cv_cflags__Wdynamic_class_memaccess=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
    if test x != x; then

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

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  tor_can_link__Wdynamic_class_memaccess=yes
else case e in #(
  e) tor_can_link__Wdynamic_class_memaccess=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"
   ;;
esac
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wdynamic_class_memaccess" >&5
printf "%s\n" "$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




  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wembedded-directive" >&5
printf %s "checking whether the compiler accepts -Wembedded-directive... " >&6; }
if test ${tor_cv_cflags__Wembedded_directive+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Wembedded-directive"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  tor_cv_cflags__Wembedded_directive=yes
else case e in #(
  e) tor_cv_cflags__Wembedded_directive=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
    if test x != x; then

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

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  tor_can_link__Wembedded_directive=yes
else case e in #(
  e) tor_can_link__Wembedded_directive=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"
   ;;
esac
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wembedded_directive" >&5
printf "%s\n" "$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




  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wempty-translation-unit" >&5
printf %s "checking whether the compiler accepts -Wempty-translation-unit... " >&6; }
if test ${tor_cv_cflags__Wempty_translation_unit+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Wempty-translation-unit"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  tor_cv_cflags__Wempty_translation_unit=yes
else case e in #(
  e) tor_cv_cflags__Wempty_translation_unit=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
    if test x != x; then

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

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  tor_can_link__Wempty_translation_unit=yes
else case e in #(
  e) tor_can_link__Wempty_translation_unit=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"
   ;;
esac
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wempty_translation_unit" >&5
printf "%s\n" "$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




  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wenum-conversion" >&5
printf %s "checking whether the compiler accepts -Wenum-conversion... " >&6; }
if test ${tor_cv_cflags__Wenum_conversion+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Wenum-conversion"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  tor_cv_cflags__Wenum_conversion=yes
else case e in #(
  e) tor_cv_cflags__Wenum_conversion=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
    if test x != x; then

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

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  tor_can_link__Wenum_conversion=yes
else case e in #(
  e) tor_can_link__Wenum_conversion=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"
   ;;
esac
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wenum_conversion" >&5
printf "%s\n" "$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




  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wexit-time-destructors" >&5
printf %s "checking whether the compiler accepts -Wexit-time-destructors... " >&6; }
if test ${tor_cv_cflags__Wexit_time_destructors+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Wexit-time-destructors"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  tor_cv_cflags__Wexit_time_destructors=yes
else case e in #(
  e) tor_cv_cflags__Wexit_time_destructors=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
    if test x != x; then

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

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  tor_can_link__Wexit_time_destructors=yes
else case e in #(
  e) tor_can_link__Wexit_time_destructors=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"
   ;;
esac
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wexit_time_destructors" >&5
printf "%s\n" "$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




  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wexplicit-ownership-type" >&5
printf %s "checking whether the compiler accepts -Wexplicit-ownership-type... " >&6; }
if test ${tor_cv_cflags__Wexplicit_ownership_type+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Wexplicit-ownership-type"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  tor_cv_cflags__Wexplicit_ownership_type=yes
else case e in #(
  e) tor_cv_cflags__Wexplicit_ownership_type=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
    if test x != x; then

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

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  tor_can_link__Wexplicit_ownership_type=yes
else case e in #(
  e) tor_can_link__Wexplicit_ownership_type=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"
   ;;
esac
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wexplicit_ownership_type" >&5
printf "%s\n" "$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




  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wextern-initializer" >&5
printf %s "checking whether the compiler accepts -Wextern-initializer... " >&6; }
if test ${tor_cv_cflags__Wextern_initializer+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Wextern-initializer"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  tor_cv_cflags__Wextern_initializer=yes
else case e in #(
  e) tor_cv_cflags__Wextern_initializer=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
    if test x != x; then

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

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  tor_can_link__Wextern_initializer=yes
else case e in #(
  e) tor_can_link__Wextern_initializer=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"
   ;;
esac
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wextern_initializer" >&5
printf "%s\n" "$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




  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wextra" >&5
printf %s "checking whether the compiler accepts -Wextra... " >&6; }
if test ${tor_cv_cflags__Wextra+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Wextra"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  tor_cv_cflags__Wextra=yes
else case e in #(
  e) tor_cv_cflags__Wextra=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
    if test x != x; then

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

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  tor_can_link__Wextra=yes
else case e in #(
  e) tor_can_link__Wextra=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"
   ;;
esac
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wextra" >&5
printf "%s\n" "$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




  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wextra-tokens" >&5
printf %s "checking whether the compiler accepts -Wextra-tokens... " >&6; }
if test ${tor_cv_cflags__Wextra_tokens+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Wextra-tokens"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  tor_cv_cflags__Wextra_tokens=yes
else case e in #(
  e) tor_cv_cflags__Wextra_tokens=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
    if test x != x; then

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

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  tor_can_link__Wextra_tokens=yes
else case e in #(
  e) tor_can_link__Wextra_tokens=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"
   ;;
esac
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wextra_tokens" >&5
printf "%s\n" "$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




  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wflexible-array-extensions" >&5
printf %s "checking whether the compiler accepts -Wflexible-array-extensions... " >&6; }
if test ${tor_cv_cflags__Wflexible_array_extensions+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Wflexible-array-extensions"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  tor_cv_cflags__Wflexible_array_extensions=yes
else case e in #(
  e) tor_cv_cflags__Wflexible_array_extensions=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
    if test x != x; then

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

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  tor_can_link__Wflexible_array_extensions=yes
else case e in #(
  e) tor_can_link__Wflexible_array_extensions=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"
   ;;
esac
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wflexible_array_extensions" >&5
printf "%s\n" "$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




  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wfloat-conversion" >&5
printf %s "checking whether the compiler accepts -Wfloat-conversion... " >&6; }
if test ${tor_cv_cflags__Wfloat_conversion+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Wfloat-conversion"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  tor_cv_cflags__Wfloat_conversion=yes
else case e in #(
  e) tor_cv_cflags__Wfloat_conversion=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
    if test x != x; then

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

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  tor_can_link__Wfloat_conversion=yes
else case e in #(
  e) tor_can_link__Wfloat_conversion=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"
   ;;
esac
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wfloat_conversion" >&5
printf "%s\n" "$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




  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wformat-non-iso" >&5
printf %s "checking whether the compiler accepts -Wformat-non-iso... " >&6; }
if test ${tor_cv_cflags__Wformat_non_iso+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Wformat-non-iso"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  tor_cv_cflags__Wformat_non_iso=yes
else case e in #(
  e) tor_cv_cflags__Wformat_non_iso=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
    if test x != x; then

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

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  tor_can_link__Wformat_non_iso=yes
else case e in #(
  e) tor_can_link__Wformat_non_iso=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"
   ;;
esac
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wformat_non_iso" >&5
printf "%s\n" "$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




  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wfour-char-constants" >&5
printf %s "checking whether the compiler accepts -Wfour-char-constants... " >&6; }
if test ${tor_cv_cflags__Wfour_char_constants+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Wfour-char-constants"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  tor_cv_cflags__Wfour_char_constants=yes
else case e in #(
  e) tor_cv_cflags__Wfour_char_constants=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
    if test x != x; then

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

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  tor_can_link__Wfour_char_constants=yes
else case e in #(
  e) tor_can_link__Wfour_char_constants=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"
   ;;
esac
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wfour_char_constants" >&5
printf "%s\n" "$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




  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wgcc-compat" >&5
printf %s "checking whether the compiler accepts -Wgcc-compat... " >&6; }
if test ${tor_cv_cflags__Wgcc_compat+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Wgcc-compat"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  tor_cv_cflags__Wgcc_compat=yes
else case e in #(
  e) tor_cv_cflags__Wgcc_compat=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
    if test x != x; then

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

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  tor_can_link__Wgcc_compat=yes
else case e in #(
  e) tor_can_link__Wgcc_compat=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"
   ;;
esac
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wgcc_compat" >&5
printf "%s\n" "$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




  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wglobal-constructors" >&5
printf %s "checking whether the compiler accepts -Wglobal-constructors... " >&6; }
if test ${tor_cv_cflags__Wglobal_constructors+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Wglobal-constructors"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  tor_cv_cflags__Wglobal_constructors=yes
else case e in #(
  e) tor_cv_cflags__Wglobal_constructors=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
    if test x != x; then

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

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  tor_can_link__Wglobal_constructors=yes
else case e in #(
  e) tor_can_link__Wglobal_constructors=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"
   ;;
esac
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wglobal_constructors" >&5
printf "%s\n" "$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




  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wgnu-array-member-paren-init" >&5
printf %s "checking whether the compiler accepts -Wgnu-array-member-paren-init... " >&6; }
if test ${tor_cv_cflags__Wgnu_array_member_paren_init+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
    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 (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  tor_cv_cflags__Wgnu_array_member_paren_init=yes
else case e in #(
  e) tor_cv_cflags__Wgnu_array_member_paren_init=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
    if test x != x; then

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

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  tor_can_link__Wgnu_array_member_paren_init=yes
else case e in #(
  e) tor_can_link__Wgnu_array_member_paren_init=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"
   ;;
esac
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wgnu_array_member_paren_init" >&5
printf "%s\n" "$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




  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wgnu-designator" >&5
printf %s "checking whether the compiler accepts -Wgnu-designator... " >&6; }
if test ${tor_cv_cflags__Wgnu_designator+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Wgnu-designator"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  tor_cv_cflags__Wgnu_designator=yes
else case e in #(
  e) tor_cv_cflags__Wgnu_designator=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
    if test x != x; then

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

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  tor_can_link__Wgnu_designator=yes
else case e in #(
  e) tor_can_link__Wgnu_designator=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"
   ;;
esac
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wgnu_designator" >&5
printf "%s\n" "$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




  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wgnu-static-float-init" >&5
printf %s "checking whether the compiler accepts -Wgnu-static-float-init... " >&6; }
if test ${tor_cv_cflags__Wgnu_static_float_init+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Wgnu-static-float-init"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  tor_cv_cflags__Wgnu_static_float_init=yes
else case e in #(
  e) tor_cv_cflags__Wgnu_static_float_init=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
    if test x != x; then

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

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  tor_can_link__Wgnu_static_float_init=yes
else case e in #(
  e) tor_can_link__Wgnu_static_float_init=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"
   ;;
esac
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wgnu_static_float_init" >&5
printf "%s\n" "$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




  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wheader-guard" >&5
printf %s "checking whether the compiler accepts -Wheader-guard... " >&6; }
if test ${tor_cv_cflags__Wheader_guard+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Wheader-guard"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  tor_cv_cflags__Wheader_guard=yes
else case e in #(
  e) tor_cv_cflags__Wheader_guard=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
    if test x != x; then

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

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  tor_can_link__Wheader_guard=yes
else case e in #(
  e) tor_can_link__Wheader_guard=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"
   ;;
esac
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wheader_guard" >&5
printf "%s\n" "$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




  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wheader-hygiene" >&5
printf %s "checking whether the compiler accepts -Wheader-hygiene... " >&6; }
if test ${tor_cv_cflags__Wheader_hygiene+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Wheader-hygiene"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  tor_cv_cflags__Wheader_hygiene=yes
else case e in #(
  e) tor_cv_cflags__Wheader_hygiene=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
    if test x != x; then

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

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  tor_can_link__Wheader_hygiene=yes
else case e in #(
  e) tor_can_link__Wheader_hygiene=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"
   ;;
esac
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wheader_hygiene" >&5
printf "%s\n" "$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




  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Widiomatic-parentheses" >&5
printf %s "checking whether the compiler accepts -Widiomatic-parentheses... " >&6; }
if test ${tor_cv_cflags__Widiomatic_parentheses+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Widiomatic-parentheses"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  tor_cv_cflags__Widiomatic_parentheses=yes
else case e in #(
  e) tor_cv_cflags__Widiomatic_parentheses=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
    if test x != x; then

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

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  tor_can_link__Widiomatic_parentheses=yes
else case e in #(
  e) tor_can_link__Widiomatic_parentheses=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"
   ;;
esac
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Widiomatic_parentheses" >&5
printf "%s\n" "$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




  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wignored-attributes" >&5
printf %s "checking whether the compiler accepts -Wignored-attributes... " >&6; }
if test ${tor_cv_cflags__Wignored_attributes+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Wignored-attributes"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  tor_cv_cflags__Wignored_attributes=yes
else case e in #(
  e) tor_cv_cflags__Wignored_attributes=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
    if test x != x; then

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

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  tor_can_link__Wignored_attributes=yes
else case e in #(
  e) tor_can_link__Wignored_attributes=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"
   ;;
esac
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wignored_attributes" >&5
printf "%s\n" "$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




  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wimplicit-atomic-properties" >&5
printf %s "checking whether the compiler accepts -Wimplicit-atomic-properties... " >&6; }
if test ${tor_cv_cflags__Wimplicit_atomic_properties+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Wimplicit-atomic-properties"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  tor_cv_cflags__Wimplicit_atomic_properties=yes
else case e in #(
  e) tor_cv_cflags__Wimplicit_atomic_properties=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
    if test x != x; then

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

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  tor_can_link__Wimplicit_atomic_properties=yes
else case e in #(
  e) tor_can_link__Wimplicit_atomic_properties=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"
   ;;
esac
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wimplicit_atomic_properties" >&5
printf "%s\n" "$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




  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wimplicit-conversion-floating-point-to-bool" >&5
printf %s "checking whether the compiler accepts -Wimplicit-conversion-floating-point-to-bool... " >&6; }
if test ${tor_cv_cflags__Wimplicit_conversion_floating_point_to_bool+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
    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 (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  tor_cv_cflags__Wimplicit_conversion_floating_point_to_bool=yes
else case e in #(
  e) tor_cv_cflags__Wimplicit_conversion_floating_point_to_bool=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
    if test x != x; then

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

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  tor_can_link__Wimplicit_conversion_floating_point_to_bool=yes
else case e in #(
  e) tor_can_link__Wimplicit_conversion_floating_point_to_bool=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"
   ;;
esac
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wimplicit_conversion_floating_point_to_bool" >&5
printf "%s\n" "$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




  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wimplicit-exception-spec-mismatch" >&5
printf %s "checking whether the compiler accepts -Wimplicit-exception-spec-mismatch... " >&6; }
if test ${tor_cv_cflags__Wimplicit_exception_spec_mismatch+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Wimplicit-exception-spec-mismatch"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  tor_cv_cflags__Wimplicit_exception_spec_mismatch=yes
else case e in #(
  e) tor_cv_cflags__Wimplicit_exception_spec_mismatch=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
    if test x != x; then

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

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  tor_can_link__Wimplicit_exception_spec_mismatch=yes
else case e in #(
  e) tor_can_link__Wimplicit_exception_spec_mismatch=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"
   ;;
esac
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wimplicit_exception_spec_mismatch" >&5
printf "%s\n" "$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




  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wimplicit-fallthrough" >&5
printf %s "checking whether the compiler accepts -Wimplicit-fallthrough... " >&6; }
if test ${tor_cv_cflags__Wimplicit_fallthrough+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Wimplicit-fallthrough"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  tor_cv_cflags__Wimplicit_fallthrough=yes
else case e in #(
  e) tor_cv_cflags__Wimplicit_fallthrough=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
    if test x != x; then

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

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  tor_can_link__Wimplicit_fallthrough=yes
else case e in #(
  e) tor_can_link__Wimplicit_fallthrough=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"
   ;;
esac
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wimplicit_fallthrough" >&5
printf "%s\n" "$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




  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wimplicit-fallthrough-per-function" >&5
printf %s "checking whether the compiler accepts -Wimplicit-fallthrough-per-function... " >&6; }
if test ${tor_cv_cflags__Wimplicit_fallthrough_per_function+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Wimplicit-fallthrough-per-function"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  tor_cv_cflags__Wimplicit_fallthrough_per_function=yes
else case e in #(
  e) tor_cv_cflags__Wimplicit_fallthrough_per_function=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
    if test x != x; then

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

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  tor_can_link__Wimplicit_fallthrough_per_function=yes
else case e in #(
  e) tor_can_link__Wimplicit_fallthrough_per_function=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"
   ;;
esac
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wimplicit_fallthrough_per_function" >&5
printf "%s\n" "$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




  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wimplicit-retain-self" >&5
printf %s "checking whether the compiler accepts -Wimplicit-retain-self... " >&6; }
if test ${tor_cv_cflags__Wimplicit_retain_self+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Wimplicit-retain-self"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  tor_cv_cflags__Wimplicit_retain_self=yes
else case e in #(
  e) tor_cv_cflags__Wimplicit_retain_self=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
    if test x != x; then

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

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  tor_can_link__Wimplicit_retain_self=yes
else case e in #(
  e) tor_can_link__Wimplicit_retain_self=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"
   ;;
esac
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wimplicit_retain_self" >&5
printf "%s\n" "$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




  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wimport-preprocessor-directive-pedantic" >&5
printf %s "checking whether the compiler accepts -Wimport-preprocessor-directive-pedantic... " >&6; }
if test ${tor_cv_cflags__Wimport_preprocessor_directive_pedantic+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Wimport-preprocessor-directive-pedantic"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  tor_cv_cflags__Wimport_preprocessor_directive_pedantic=yes
else case e in #(
  e) tor_cv_cflags__Wimport_preprocessor_directive_pedantic=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
    if test x != x; then

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

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  tor_can_link__Wimport_preprocessor_directive_pedantic=yes
else case e in #(
  e) tor_can_link__Wimport_preprocessor_directive_pedantic=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"
   ;;
esac
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wimport_preprocessor_directive_pedantic" >&5
printf "%s\n" "$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




  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wincompatible-library-redeclaration" >&5
printf %s "checking whether the compiler accepts -Wincompatible-library-redeclaration... " >&6; }
if test ${tor_cv_cflags__Wincompatible_library_redeclaration+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Wincompatible-library-redeclaration"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  tor_cv_cflags__Wincompatible_library_redeclaration=yes
else case e in #(
  e) tor_cv_cflags__Wincompatible_library_redeclaration=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
    if test x != x; then

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

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  tor_can_link__Wincompatible_library_redeclaration=yes
else case e in #(
  e) tor_can_link__Wincompatible_library_redeclaration=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"
   ;;
esac
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wincompatible_library_redeclaration" >&5
printf "%s\n" "$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




  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wincompatible-pointer-types-discards-qualifiers" >&5
printf %s "checking whether the compiler accepts -Wincompatible-pointer-types-discards-qualifiers... " >&6; }
if test ${tor_cv_cflags__Wincompatible_pointer_types_discards_qualifiers+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
    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 (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  tor_cv_cflags__Wincompatible_pointer_types_discards_qualifiers=yes
else case e in #(
  e) tor_cv_cflags__Wincompatible_pointer_types_discards_qualifiers=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
    if test x != x; then

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

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  tor_can_link__Wincompatible_pointer_types_discards_qualifiers=yes
else case e in #(
  e) tor_can_link__Wincompatible_pointer_types_discards_qualifiers=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"
   ;;
esac
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wincompatible_pointer_types_discards_qualifiers" >&5
printf "%s\n" "$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




  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wincomplete-implementation" >&5
printf %s "checking whether the compiler accepts -Wincomplete-implementation... " >&6; }
if test ${tor_cv_cflags__Wincomplete_implementation+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Wincomplete-implementation"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  tor_cv_cflags__Wincomplete_implementation=yes
else case e in #(
  e) tor_cv_cflags__Wincomplete_implementation=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
    if test x != x; then

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

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  tor_can_link__Wincomplete_implementation=yes
else case e in #(
  e) tor_can_link__Wincomplete_implementation=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"
   ;;
esac
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wincomplete_implementation" >&5
printf "%s\n" "$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




  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wincomplete-module" >&5
printf %s "checking whether the compiler accepts -Wincomplete-module... " >&6; }
if test ${tor_cv_cflags__Wincomplete_module+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Wincomplete-module"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  tor_cv_cflags__Wincomplete_module=yes
else case e in #(
  e) tor_cv_cflags__Wincomplete_module=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
    if test x != x; then

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

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  tor_can_link__Wincomplete_module=yes
else case e in #(
  e) tor_can_link__Wincomplete_module=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"
   ;;
esac
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wincomplete_module" >&5
printf "%s\n" "$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




  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wincomplete-umbrella" >&5
printf %s "checking whether the compiler accepts -Wincomplete-umbrella... " >&6; }
if test ${tor_cv_cflags__Wincomplete_umbrella+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Wincomplete-umbrella"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  tor_cv_cflags__Wincomplete_umbrella=yes
else case e in #(
  e) tor_cv_cflags__Wincomplete_umbrella=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
    if test x != x; then

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

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  tor_can_link__Wincomplete_umbrella=yes
else case e in #(
  e) tor_can_link__Wincomplete_umbrella=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"
   ;;
esac
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wincomplete_umbrella" >&5
printf "%s\n" "$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




  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Winit-self" >&5
printf %s "checking whether the compiler accepts -Winit-self... " >&6; }
if test ${tor_cv_cflags__Winit_self+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Winit-self"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  tor_cv_cflags__Winit_self=yes
else case e in #(
  e) tor_cv_cflags__Winit_self=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
    if test x != x; then

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

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  tor_can_link__Winit_self=yes
else case e in #(
  e) tor_can_link__Winit_self=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"
   ;;
esac
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Winit_self" >&5
printf "%s\n" "$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




  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wint-conversions" >&5
printf %s "checking whether the compiler accepts -Wint-conversions... " >&6; }
if test ${tor_cv_cflags__Wint_conversions+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Wint-conversions"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  tor_cv_cflags__Wint_conversions=yes
else case e in #(
  e) tor_cv_cflags__Wint_conversions=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
    if test x != x; then

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

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  tor_can_link__Wint_conversions=yes
else case e in #(
  e) tor_can_link__Wint_conversions=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"
   ;;
esac
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wint_conversions" >&5
printf "%s\n" "$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




  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wint-to-void-pointer-cast" >&5
printf %s "checking whether the compiler accepts -Wint-to-void-pointer-cast... " >&6; }
if test ${tor_cv_cflags__Wint_to_void_pointer_cast+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
    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 (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  tor_cv_cflags__Wint_to_void_pointer_cast=yes
else case e in #(
  e) tor_cv_cflags__Wint_to_void_pointer_cast=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
    if test x != x; then

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

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  tor_can_link__Wint_to_void_pointer_cast=yes
else case e in #(
  e) tor_can_link__Wint_to_void_pointer_cast=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"
   ;;
esac
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wint_to_void_pointer_cast" >&5
printf "%s\n" "$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




  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Winteger-overflow" >&5
printf %s "checking whether the compiler accepts -Winteger-overflow... " >&6; }
if test ${tor_cv_cflags__Winteger_overflow+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Winteger-overflow"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  tor_cv_cflags__Winteger_overflow=yes
else case e in #(
  e) tor_cv_cflags__Winteger_overflow=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
    if test x != x; then

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

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  tor_can_link__Winteger_overflow=yes
else case e in #(
  e) tor_can_link__Winteger_overflow=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"
   ;;
esac
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Winteger_overflow" >&5
printf "%s\n" "$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




  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Winvalid-constexpr" >&5
printf %s "checking whether the compiler accepts -Winvalid-constexpr... " >&6; }
if test ${tor_cv_cflags__Winvalid_constexpr+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Winvalid-constexpr"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  tor_cv_cflags__Winvalid_constexpr=yes
else case e in #(
  e) tor_cv_cflags__Winvalid_constexpr=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
    if test x != x; then

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

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  tor_can_link__Winvalid_constexpr=yes
else case e in #(
  e) tor_can_link__Winvalid_constexpr=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"
   ;;
esac
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Winvalid_constexpr" >&5
printf "%s\n" "$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




  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Winvalid-iboutlet" >&5
printf %s "checking whether the compiler accepts -Winvalid-iboutlet... " >&6; }
if test ${tor_cv_cflags__Winvalid_iboutlet+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Winvalid-iboutlet"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  tor_cv_cflags__Winvalid_iboutlet=yes
else case e in #(
  e) tor_cv_cflags__Winvalid_iboutlet=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
    if test x != x; then

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

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  tor_can_link__Winvalid_iboutlet=yes
else case e in #(
  e) tor_can_link__Winvalid_iboutlet=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"
   ;;
esac
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Winvalid_iboutlet" >&5
printf "%s\n" "$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




  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Winvalid-noreturn" >&5
printf %s "checking whether the compiler accepts -Winvalid-noreturn... " >&6; }
if test ${tor_cv_cflags__Winvalid_noreturn+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Winvalid-noreturn"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  tor_cv_cflags__Winvalid_noreturn=yes
else case e in #(
  e) tor_cv_cflags__Winvalid_noreturn=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
    if test x != x; then

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

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  tor_can_link__Winvalid_noreturn=yes
else case e in #(
  e) tor_can_link__Winvalid_noreturn=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"
   ;;
esac
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Winvalid_noreturn" >&5
printf "%s\n" "$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




  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Winvalid-pp-token" >&5
printf %s "checking whether the compiler accepts -Winvalid-pp-token... " >&6; }
if test ${tor_cv_cflags__Winvalid_pp_token+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Winvalid-pp-token"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  tor_cv_cflags__Winvalid_pp_token=yes
else case e in #(
  e) tor_cv_cflags__Winvalid_pp_token=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
    if test x != x; then

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

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  tor_can_link__Winvalid_pp_token=yes
else case e in #(
  e) tor_can_link__Winvalid_pp_token=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"
   ;;
esac
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Winvalid_pp_token" >&5
printf "%s\n" "$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




  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Winvalid-source-encoding" >&5
printf %s "checking whether the compiler accepts -Winvalid-source-encoding... " >&6; }
if test ${tor_cv_cflags__Winvalid_source_encoding+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Winvalid-source-encoding"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  tor_cv_cflags__Winvalid_source_encoding=yes
else case e in #(
  e) tor_cv_cflags__Winvalid_source_encoding=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
    if test x != x; then

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

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  tor_can_link__Winvalid_source_encoding=yes
else case e in #(
  e) tor_can_link__Winvalid_source_encoding=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"
   ;;
esac
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Winvalid_source_encoding" >&5
printf "%s\n" "$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




  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Winvalid-token-paste" >&5
printf %s "checking whether the compiler accepts -Winvalid-token-paste... " >&6; }
if test ${tor_cv_cflags__Winvalid_token_paste+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Winvalid-token-paste"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  tor_cv_cflags__Winvalid_token_paste=yes
else case e in #(
  e) tor_cv_cflags__Winvalid_token_paste=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
    if test x != x; then

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

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  tor_can_link__Winvalid_token_paste=yes
else case e in #(
  e) tor_can_link__Winvalid_token_paste=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"
   ;;
esac
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Winvalid_token_paste" >&5
printf "%s\n" "$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




  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wknr-promoted-parameter" >&5
printf %s "checking whether the compiler accepts -Wknr-promoted-parameter... " >&6; }
if test ${tor_cv_cflags__Wknr_promoted_parameter+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Wknr-promoted-parameter"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  tor_cv_cflags__Wknr_promoted_parameter=yes
else case e in #(
  e) tor_cv_cflags__Wknr_promoted_parameter=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
    if test x != x; then

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

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  tor_can_link__Wknr_promoted_parameter=yes
else case e in #(
  e) tor_can_link__Wknr_promoted_parameter=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"
   ;;
esac
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wknr_promoted_parameter" >&5
printf "%s\n" "$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




  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wlarge-by-value-copy" >&5
printf %s "checking whether the compiler accepts -Wlarge-by-value-copy... " >&6; }
if test ${tor_cv_cflags__Wlarge_by_value_copy+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Wlarge-by-value-copy"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  tor_cv_cflags__Wlarge_by_value_copy=yes
else case e in #(
  e) tor_cv_cflags__Wlarge_by_value_copy=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
    if test x != x; then

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

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  tor_can_link__Wlarge_by_value_copy=yes
else case e in #(
  e) tor_can_link__Wlarge_by_value_copy=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"
   ;;
esac
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wlarge_by_value_copy" >&5
printf "%s\n" "$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




  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wliteral-conversion" >&5
printf %s "checking whether the compiler accepts -Wliteral-conversion... " >&6; }
if test ${tor_cv_cflags__Wliteral_conversion+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Wliteral-conversion"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  tor_cv_cflags__Wliteral_conversion=yes
else case e in #(
  e) tor_cv_cflags__Wliteral_conversion=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
    if test x != x; then

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

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  tor_can_link__Wliteral_conversion=yes
else case e in #(
  e) tor_can_link__Wliteral_conversion=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"
   ;;
esac
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wliteral_conversion" >&5
printf "%s\n" "$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




  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wliteral-range" >&5
printf %s "checking whether the compiler accepts -Wliteral-range... " >&6; }
if test ${tor_cv_cflags__Wliteral_range+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Wliteral-range"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  tor_cv_cflags__Wliteral_range=yes
else case e in #(
  e) tor_cv_cflags__Wliteral_range=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
    if test x != x; then

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

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  tor_can_link__Wliteral_range=yes
else case e in #(
  e) tor_can_link__Wliteral_range=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"
   ;;
esac
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wliteral_range" >&5
printf "%s\n" "$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




  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wlocal-type-template-args" >&5
printf %s "checking whether the compiler accepts -Wlocal-type-template-args... " >&6; }
if test ${tor_cv_cflags__Wlocal_type_template_args+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Wlocal-type-template-args"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  tor_cv_cflags__Wlocal_type_template_args=yes
else case e in #(
  e) tor_cv_cflags__Wlocal_type_template_args=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
    if test x != x; then

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

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  tor_can_link__Wlocal_type_template_args=yes
else case e in #(
  e) tor_can_link__Wlocal_type_template_args=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"
   ;;
esac
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wlocal_type_template_args" >&5
printf "%s\n" "$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




  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wlogical-op" >&5
printf %s "checking whether the compiler accepts -Wlogical-op... " >&6; }
if test ${tor_cv_cflags__Wlogical_op+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Wlogical-op"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  tor_cv_cflags__Wlogical_op=yes
else case e in #(
  e) tor_cv_cflags__Wlogical_op=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
    if test x != x; then

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

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  tor_can_link__Wlogical_op=yes
else case e in #(
  e) tor_can_link__Wlogical_op=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"
   ;;
esac
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wlogical_op" >&5
printf "%s\n" "$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




  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wloop-analysis" >&5
printf %s "checking whether the compiler accepts -Wloop-analysis... " >&6; }
if test ${tor_cv_cflags__Wloop_analysis+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Wloop-analysis"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  tor_cv_cflags__Wloop_analysis=yes
else case e in #(
  e) tor_cv_cflags__Wloop_analysis=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
    if test x != x; then

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

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  tor_can_link__Wloop_analysis=yes
else case e in #(
  e) tor_can_link__Wloop_analysis=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"
   ;;
esac
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wloop_analysis" >&5
printf "%s\n" "$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




  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wmain-return-type" >&5
printf %s "checking whether the compiler accepts -Wmain-return-type... " >&6; }
if test ${tor_cv_cflags__Wmain_return_type+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Wmain-return-type"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  tor_cv_cflags__Wmain_return_type=yes
else case e in #(
  e) tor_cv_cflags__Wmain_return_type=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
    if test x != x; then

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

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  tor_can_link__Wmain_return_type=yes
else case e in #(
  e) tor_can_link__Wmain_return_type=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"
   ;;
esac
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wmain_return_type" >&5
printf "%s\n" "$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




  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wmalformed-warning-check" >&5
printf %s "checking whether the compiler accepts -Wmalformed-warning-check... " >&6; }
if test ${tor_cv_cflags__Wmalformed_warning_check+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Wmalformed-warning-check"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  tor_cv_cflags__Wmalformed_warning_check=yes
else case e in #(
  e) tor_cv_cflags__Wmalformed_warning_check=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
    if test x != x; then

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

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  tor_can_link__Wmalformed_warning_check=yes
else case e in #(
  e) tor_can_link__Wmalformed_warning_check=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"
   ;;
esac
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wmalformed_warning_check" >&5
printf "%s\n" "$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




  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wmethod-signatures" >&5
printf %s "checking whether the compiler accepts -Wmethod-signatures... " >&6; }
if test ${tor_cv_cflags__Wmethod_signatures+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Wmethod-signatures"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  tor_cv_cflags__Wmethod_signatures=yes
else case e in #(
  e) tor_cv_cflags__Wmethod_signatures=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
    if test x != x; then

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

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  tor_can_link__Wmethod_signatures=yes
else case e in #(
  e) tor_can_link__Wmethod_signatures=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"
   ;;
esac
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wmethod_signatures" >&5
printf "%s\n" "$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




  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wmicrosoft" >&5
printf %s "checking whether the compiler accepts -Wmicrosoft... " >&6; }
if test ${tor_cv_cflags__Wmicrosoft+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Wmicrosoft"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  tor_cv_cflags__Wmicrosoft=yes
else case e in #(
  e) tor_cv_cflags__Wmicrosoft=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
    if test x != x; then

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

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  tor_can_link__Wmicrosoft=yes
else case e in #(
  e) tor_can_link__Wmicrosoft=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"
   ;;
esac
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wmicrosoft" >&5
printf "%s\n" "$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




  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wmicrosoft-exists" >&5
printf %s "checking whether the compiler accepts -Wmicrosoft-exists... " >&6; }
if test ${tor_cv_cflags__Wmicrosoft_exists+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Wmicrosoft-exists"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  tor_cv_cflags__Wmicrosoft_exists=yes
else case e in #(
  e) tor_cv_cflags__Wmicrosoft_exists=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
    if test x != x; then

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

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  tor_can_link__Wmicrosoft_exists=yes
else case e in #(
  e) tor_can_link__Wmicrosoft_exists=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"
   ;;
esac
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wmicrosoft_exists" >&5
printf "%s\n" "$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




  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wmismatched-parameter-types" >&5
printf %s "checking whether the compiler accepts -Wmismatched-parameter-types... " >&6; }
if test ${tor_cv_cflags__Wmismatched_parameter_types+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Wmismatched-parameter-types"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  tor_cv_cflags__Wmismatched_parameter_types=yes
else case e in #(
  e) tor_cv_cflags__Wmismatched_parameter_types=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
    if test x != x; then

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

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  tor_can_link__Wmismatched_parameter_types=yes
else case e in #(
  e) tor_can_link__Wmismatched_parameter_types=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"
   ;;
esac
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wmismatched_parameter_types" >&5
printf "%s\n" "$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




  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wmismatched-return-types" >&5
printf %s "checking whether the compiler accepts -Wmismatched-return-types... " >&6; }
if test ${tor_cv_cflags__Wmismatched_return_types+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Wmismatched-return-types"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  tor_cv_cflags__Wmismatched_return_types=yes
else case e in #(
  e) tor_cv_cflags__Wmismatched_return_types=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
    if test x != x; then

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

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  tor_can_link__Wmismatched_return_types=yes
else case e in #(
  e) tor_can_link__Wmismatched_return_types=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"
   ;;
esac
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wmismatched_return_types" >&5
printf "%s\n" "$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




  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wmissing-field-initializers" >&5
printf %s "checking whether the compiler accepts -Wmissing-field-initializers... " >&6; }
if test ${tor_cv_cflags__Wmissing_field_initializers+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Wmissing-field-initializers"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  tor_cv_cflags__Wmissing_field_initializers=yes
else case e in #(
  e) tor_cv_cflags__Wmissing_field_initializers=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
    if test x != x; then

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

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  tor_can_link__Wmissing_field_initializers=yes
else case e in #(
  e) tor_can_link__Wmissing_field_initializers=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"
   ;;
esac
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wmissing_field_initializers" >&5
printf "%s\n" "$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




  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wmissing-format-attribute" >&5
printf %s "checking whether the compiler accepts -Wmissing-format-attribute... " >&6; }
if test ${tor_cv_cflags__Wmissing_format_attribute+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Wmissing-format-attribute"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  tor_cv_cflags__Wmissing_format_attribute=yes
else case e in #(
  e) tor_cv_cflags__Wmissing_format_attribute=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
    if test x != x; then

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

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  tor_can_link__Wmissing_format_attribute=yes
else case e in #(
  e) tor_can_link__Wmissing_format_attribute=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"
   ;;
esac
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wmissing_format_attribute" >&5
printf "%s\n" "$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




  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wmissing-noreturn" >&5
printf %s "checking whether the compiler accepts -Wmissing-noreturn... " >&6; }
if test ${tor_cv_cflags__Wmissing_noreturn+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Wmissing-noreturn"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  tor_cv_cflags__Wmissing_noreturn=yes
else case e in #(
  e) tor_cv_cflags__Wmissing_noreturn=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
    if test x != x; then

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

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  tor_can_link__Wmissing_noreturn=yes
else case e in #(
  e) tor_can_link__Wmissing_noreturn=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"
   ;;
esac
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wmissing_noreturn" >&5
printf "%s\n" "$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




  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wmissing-selector-name" >&5
printf %s "checking whether the compiler accepts -Wmissing-selector-name... " >&6; }
if test ${tor_cv_cflags__Wmissing_selector_name+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Wmissing-selector-name"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  tor_cv_cflags__Wmissing_selector_name=yes
else case e in #(
  e) tor_cv_cflags__Wmissing_selector_name=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
    if test x != x; then

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

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  tor_can_link__Wmissing_selector_name=yes
else case e in #(
  e) tor_can_link__Wmissing_selector_name=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"
   ;;
esac
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wmissing_selector_name" >&5
printf "%s\n" "$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




  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wmissing-sysroot" >&5
printf %s "checking whether the compiler accepts -Wmissing-sysroot... " >&6; }
if test ${tor_cv_cflags__Wmissing_sysroot+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Wmissing-sysroot"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  tor_cv_cflags__Wmissing_sysroot=yes
else case e in #(
  e) tor_cv_cflags__Wmissing_sysroot=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
    if test x != x; then

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

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  tor_can_link__Wmissing_sysroot=yes
else case e in #(
  e) tor_can_link__Wmissing_sysroot=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"
   ;;
esac
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wmissing_sysroot" >&5
printf "%s\n" "$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




  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wmissing-variable-declarations" >&5
printf %s "checking whether the compiler accepts -Wmissing-variable-declarations... " >&6; }
if test ${tor_cv_cflags__Wmissing_variable_declarations+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Wmissing-variable-declarations"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  tor_cv_cflags__Wmissing_variable_declarations=yes
else case e in #(
  e) tor_cv_cflags__Wmissing_variable_declarations=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
    if test x != x; then

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

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  tor_can_link__Wmissing_variable_declarations=yes
else case e in #(
  e) tor_can_link__Wmissing_variable_declarations=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"
   ;;
esac
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wmissing_variable_declarations" >&5
printf "%s\n" "$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




  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wmodule-conflict" >&5
printf %s "checking whether the compiler accepts -Wmodule-conflict... " >&6; }
if test ${tor_cv_cflags__Wmodule_conflict+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Wmodule-conflict"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  tor_cv_cflags__Wmodule_conflict=yes
else case e in #(
  e) tor_cv_cflags__Wmodule_conflict=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
    if test x != x; then

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

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  tor_can_link__Wmodule_conflict=yes
else case e in #(
  e) tor_can_link__Wmodule_conflict=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"
   ;;
esac
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wmodule_conflict" >&5
printf "%s\n" "$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




  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wnested-anon-types" >&5
printf %s "checking whether the compiler accepts -Wnested-anon-types... " >&6; }
if test ${tor_cv_cflags__Wnested_anon_types+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Wnested-anon-types"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  tor_cv_cflags__Wnested_anon_types=yes
else case e in #(
  e) tor_cv_cflags__Wnested_anon_types=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
    if test x != x; then

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

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  tor_can_link__Wnested_anon_types=yes
else case e in #(
  e) tor_can_link__Wnested_anon_types=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"
   ;;
esac
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wnested_anon_types" >&5
printf "%s\n" "$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




  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wnewline-eof" >&5
printf %s "checking whether the compiler accepts -Wnewline-eof... " >&6; }
if test ${tor_cv_cflags__Wnewline_eof+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Wnewline-eof"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  tor_cv_cflags__Wnewline_eof=yes
else case e in #(
  e) tor_cv_cflags__Wnewline_eof=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
    if test x != x; then

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

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  tor_can_link__Wnewline_eof=yes
else case e in #(
  e) tor_can_link__Wnewline_eof=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"
   ;;
esac
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wnewline_eof" >&5
printf "%s\n" "$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




  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wnon-literal-null-conversion" >&5
printf %s "checking whether the compiler accepts -Wnon-literal-null-conversion... " >&6; }
if test ${tor_cv_cflags__Wnon_literal_null_conversion+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Wnon-literal-null-conversion"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  tor_cv_cflags__Wnon_literal_null_conversion=yes
else case e in #(
  e) tor_cv_cflags__Wnon_literal_null_conversion=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
    if test x != x; then

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

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  tor_can_link__Wnon_literal_null_conversion=yes
else case e in #(
  e) tor_can_link__Wnon_literal_null_conversion=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"
   ;;
esac
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wnon_literal_null_conversion" >&5
printf "%s\n" "$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




  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wnon-pod-varargs" >&5
printf %s "checking whether the compiler accepts -Wnon-pod-varargs... " >&6; }
if test ${tor_cv_cflags__Wnon_pod_varargs+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Wnon-pod-varargs"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  tor_cv_cflags__Wnon_pod_varargs=yes
else case e in #(
  e) tor_cv_cflags__Wnon_pod_varargs=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
    if test x != x; then

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

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  tor_can_link__Wnon_pod_varargs=yes
else case e in #(
  e) tor_can_link__Wnon_pod_varargs=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"
   ;;
esac
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wnon_pod_varargs" >&5
printf "%s\n" "$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




  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wnonportable-cfstrings" >&5
printf %s "checking whether the compiler accepts -Wnonportable-cfstrings... " >&6; }
if test ${tor_cv_cflags__Wnonportable_cfstrings+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Wnonportable-cfstrings"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  tor_cv_cflags__Wnonportable_cfstrings=yes
else case e in #(
  e) tor_cv_cflags__Wnonportable_cfstrings=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
    if test x != x; then

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

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  tor_can_link__Wnonportable_cfstrings=yes
else case e in #(
  e) tor_can_link__Wnonportable_cfstrings=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"
   ;;
esac
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wnonportable_cfstrings" >&5
printf "%s\n" "$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




  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wnormalized=nfkc" >&5
printf %s "checking whether the compiler accepts -Wnormalized=nfkc... " >&6; }
if test ${tor_cv_cflags__Wnormalized_nfkc+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Wnormalized=nfkc"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  tor_cv_cflags__Wnormalized_nfkc=yes
else case e in #(
  e) tor_cv_cflags__Wnormalized_nfkc=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
    if test x != x; then

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

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  tor_can_link__Wnormalized_nfkc=yes
else case e in #(
  e) tor_can_link__Wnormalized_nfkc=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"
   ;;
esac
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wnormalized_nfkc" >&5
printf "%s\n" "$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




  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wnull-arithmetic" >&5
printf %s "checking whether the compiler accepts -Wnull-arithmetic... " >&6; }
if test ${tor_cv_cflags__Wnull_arithmetic+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Wnull-arithmetic"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  tor_cv_cflags__Wnull_arithmetic=yes
else case e in #(
  e) tor_cv_cflags__Wnull_arithmetic=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
    if test x != x; then

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

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  tor_can_link__Wnull_arithmetic=yes
else case e in #(
  e) tor_can_link__Wnull_arithmetic=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"
   ;;
esac
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wnull_arithmetic" >&5
printf "%s\n" "$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




  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wnull-character" >&5
printf %s "checking whether the compiler accepts -Wnull-character... " >&6; }
if test ${tor_cv_cflags__Wnull_character+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Wnull-character"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  tor_cv_cflags__Wnull_character=yes
else case e in #(
  e) tor_cv_cflags__Wnull_character=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
    if test x != x; then

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

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  tor_can_link__Wnull_character=yes
else case e in #(
  e) tor_can_link__Wnull_character=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"
   ;;
esac
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wnull_character" >&5
printf "%s\n" "$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




  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wnull-conversion" >&5
printf %s "checking whether the compiler accepts -Wnull-conversion... " >&6; }
if test ${tor_cv_cflags__Wnull_conversion+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Wnull-conversion"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  tor_cv_cflags__Wnull_conversion=yes
else case e in #(
  e) tor_cv_cflags__Wnull_conversion=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
    if test x != x; then

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

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  tor_can_link__Wnull_conversion=yes
else case e in #(
  e) tor_can_link__Wnull_conversion=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"
   ;;
esac
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wnull_conversion" >&5
printf "%s\n" "$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




  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wnull-dereference" >&5
printf %s "checking whether the compiler accepts -Wnull-dereference... " >&6; }
if test ${tor_cv_cflags__Wnull_dereference+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Wnull-dereference"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  tor_cv_cflags__Wnull_dereference=yes
else case e in #(
  e) tor_cv_cflags__Wnull_dereference=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
    if test x != x; then

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

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  tor_can_link__Wnull_dereference=yes
else case e in #(
  e) tor_can_link__Wnull_dereference=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"
   ;;
esac
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wnull_dereference" >&5
printf "%s\n" "$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




  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wout-of-line-declaration" >&5
printf %s "checking whether the compiler accepts -Wout-of-line-declaration... " >&6; }
if test ${tor_cv_cflags__Wout_of_line_declaration+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Wout-of-line-declaration"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  tor_cv_cflags__Wout_of_line_declaration=yes
else case e in #(
  e) tor_cv_cflags__Wout_of_line_declaration=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
    if test x != x; then

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

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  tor_can_link__Wout_of_line_declaration=yes
else case e in #(
  e) tor_can_link__Wout_of_line_declaration=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"
   ;;
esac
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wout_of_line_declaration" >&5
printf "%s\n" "$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




  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wover-aligned" >&5
printf %s "checking whether the compiler accepts -Wover-aligned... " >&6; }
if test ${tor_cv_cflags__Wover_aligned+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Wover-aligned"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  tor_cv_cflags__Wover_aligned=yes
else case e in #(
  e) tor_cv_cflags__Wover_aligned=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
    if test x != x; then

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

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  tor_can_link__Wover_aligned=yes
else case e in #(
  e) tor_can_link__Wover_aligned=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"
   ;;
esac
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wover_aligned" >&5
printf "%s\n" "$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




  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Woverlength-strings" >&5
printf %s "checking whether the compiler accepts -Woverlength-strings... " >&6; }
if test ${tor_cv_cflags__Woverlength_strings+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Woverlength-strings"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  tor_cv_cflags__Woverlength_strings=yes
else case e in #(
  e) tor_cv_cflags__Woverlength_strings=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
    if test x != x; then

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

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  tor_can_link__Woverlength_strings=yes
else case e in #(
  e) tor_can_link__Woverlength_strings=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"
   ;;
esac
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Woverlength_strings" >&5
printf "%s\n" "$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




  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Woverride-init" >&5
printf %s "checking whether the compiler accepts -Woverride-init... " >&6; }
if test ${tor_cv_cflags__Woverride_init+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Woverride-init"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  tor_cv_cflags__Woverride_init=yes
else case e in #(
  e) tor_cv_cflags__Woverride_init=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
    if test x != x; then

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

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  tor_can_link__Woverride_init=yes
else case e in #(
  e) tor_can_link__Woverride_init=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"
   ;;
esac
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Woverride_init" >&5
printf "%s\n" "$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




  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Woverriding-method-mismatch" >&5
printf %s "checking whether the compiler accepts -Woverriding-method-mismatch... " >&6; }
if test ${tor_cv_cflags__Woverriding_method_mismatch+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Woverriding-method-mismatch"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  tor_cv_cflags__Woverriding_method_mismatch=yes
else case e in #(
  e) tor_cv_cflags__Woverriding_method_mismatch=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
    if test x != x; then

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

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  tor_can_link__Woverriding_method_mismatch=yes
else case e in #(
  e) tor_can_link__Woverriding_method_mismatch=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"
   ;;
esac
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Woverriding_method_mismatch" >&5
printf "%s\n" "$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




  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wpointer-type-mismatch" >&5
printf %s "checking whether the compiler accepts -Wpointer-type-mismatch... " >&6; }
if test ${tor_cv_cflags__Wpointer_type_mismatch+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Wpointer-type-mismatch"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  tor_cv_cflags__Wpointer_type_mismatch=yes
else case e in #(
  e) tor_cv_cflags__Wpointer_type_mismatch=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
    if test x != x; then

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

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  tor_can_link__Wpointer_type_mismatch=yes
else case e in #(
  e) tor_can_link__Wpointer_type_mismatch=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"
   ;;
esac
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wpointer_type_mismatch" >&5
printf "%s\n" "$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




  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wpredefined-identifier-outside-function" >&5
printf %s "checking whether the compiler accepts -Wpredefined-identifier-outside-function... " >&6; }
if test ${tor_cv_cflags__Wpredefined_identifier_outside_function+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Wpredefined-identifier-outside-function"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  tor_cv_cflags__Wpredefined_identifier_outside_function=yes
else case e in #(
  e) tor_cv_cflags__Wpredefined_identifier_outside_function=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
    if test x != x; then

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

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  tor_can_link__Wpredefined_identifier_outside_function=yes
else case e in #(
  e) tor_can_link__Wpredefined_identifier_outside_function=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"
   ;;
esac
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wpredefined_identifier_outside_function" >&5
printf "%s\n" "$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




  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wprotocol-property-synthesis-ambiguity" >&5
printf %s "checking whether the compiler accepts -Wprotocol-property-synthesis-ambiguity... " >&6; }
if test ${tor_cv_cflags__Wprotocol_property_synthesis_ambiguity+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Wprotocol-property-synthesis-ambiguity"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  tor_cv_cflags__Wprotocol_property_synthesis_ambiguity=yes
else case e in #(
  e) tor_cv_cflags__Wprotocol_property_synthesis_ambiguity=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
    if test x != x; then

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

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  tor_can_link__Wprotocol_property_synthesis_ambiguity=yes
else case e in #(
  e) tor_can_link__Wprotocol_property_synthesis_ambiguity=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"
   ;;
esac
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wprotocol_property_synthesis_ambiguity" >&5
printf "%s\n" "$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




  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wreadonly-iboutlet-property" >&5
printf %s "checking whether the compiler accepts -Wreadonly-iboutlet-property... " >&6; }
if test ${tor_cv_cflags__Wreadonly_iboutlet_property+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Wreadonly-iboutlet-property"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  tor_cv_cflags__Wreadonly_iboutlet_property=yes
else case e in #(
  e) tor_cv_cflags__Wreadonly_iboutlet_property=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
    if test x != x; then

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

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  tor_can_link__Wreadonly_iboutlet_property=yes
else case e in #(
  e) tor_can_link__Wreadonly_iboutlet_property=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"
   ;;
esac
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wreadonly_iboutlet_property" >&5
printf "%s\n" "$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




  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wreadonly-setter-attrs" >&5
printf %s "checking whether the compiler accepts -Wreadonly-setter-attrs... " >&6; }
if test ${tor_cv_cflags__Wreadonly_setter_attrs+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Wreadonly-setter-attrs"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  tor_cv_cflags__Wreadonly_setter_attrs=yes
else case e in #(
  e) tor_cv_cflags__Wreadonly_setter_attrs=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
    if test x != x; then

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

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  tor_can_link__Wreadonly_setter_attrs=yes
else case e in #(
  e) tor_can_link__Wreadonly_setter_attrs=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"
   ;;
esac
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wreadonly_setter_attrs" >&5
printf "%s\n" "$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




  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wreceiver-expr" >&5
printf %s "checking whether the compiler accepts -Wreceiver-expr... " >&6; }
if test ${tor_cv_cflags__Wreceiver_expr+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Wreceiver-expr"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  tor_cv_cflags__Wreceiver_expr=yes
else case e in #(
  e) tor_cv_cflags__Wreceiver_expr=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
    if test x != x; then

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

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  tor_can_link__Wreceiver_expr=yes
else case e in #(
  e) tor_can_link__Wreceiver_expr=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"
   ;;
esac
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wreceiver_expr" >&5
printf "%s\n" "$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




  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wreceiver-forward-class" >&5
printf %s "checking whether the compiler accepts -Wreceiver-forward-class... " >&6; }
if test ${tor_cv_cflags__Wreceiver_forward_class+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Wreceiver-forward-class"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  tor_cv_cflags__Wreceiver_forward_class=yes
else case e in #(
  e) tor_cv_cflags__Wreceiver_forward_class=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
    if test x != x; then

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

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  tor_can_link__Wreceiver_forward_class=yes
else case e in #(
  e) tor_can_link__Wreceiver_forward_class=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"
   ;;
esac
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wreceiver_forward_class" >&5
printf "%s\n" "$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




  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wreceiver-is-weak" >&5
printf %s "checking whether the compiler accepts -Wreceiver-is-weak... " >&6; }
if test ${tor_cv_cflags__Wreceiver_is_weak+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Wreceiver-is-weak"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  tor_cv_cflags__Wreceiver_is_weak=yes
else case e in #(
  e) tor_cv_cflags__Wreceiver_is_weak=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
    if test x != x; then

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

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  tor_can_link__Wreceiver_is_weak=yes
else case e in #(
  e) tor_can_link__Wreceiver_is_weak=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"
   ;;
esac
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wreceiver_is_weak" >&5
printf "%s\n" "$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




  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wreinterpret-base-class" >&5
printf %s "checking whether the compiler accepts -Wreinterpret-base-class... " >&6; }
if test ${tor_cv_cflags__Wreinterpret_base_class+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Wreinterpret-base-class"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  tor_cv_cflags__Wreinterpret_base_class=yes
else case e in #(
  e) tor_cv_cflags__Wreinterpret_base_class=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
    if test x != x; then

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

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  tor_can_link__Wreinterpret_base_class=yes
else case e in #(
  e) tor_can_link__Wreinterpret_base_class=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"
   ;;
esac
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wreinterpret_base_class" >&5
printf "%s\n" "$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




  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wrequires-super-attribute" >&5
printf %s "checking whether the compiler accepts -Wrequires-super-attribute... " >&6; }
if test ${tor_cv_cflags__Wrequires_super_attribute+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Wrequires-super-attribute"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  tor_cv_cflags__Wrequires_super_attribute=yes
else case e in #(
  e) tor_cv_cflags__Wrequires_super_attribute=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
    if test x != x; then

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

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  tor_can_link__Wrequires_super_attribute=yes
else case e in #(
  e) tor_can_link__Wrequires_super_attribute=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"
   ;;
esac
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wrequires_super_attribute" >&5
printf "%s\n" "$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




  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wreserved-user-defined-literal" >&5
printf %s "checking whether the compiler accepts -Wreserved-user-defined-literal... " >&6; }
if test ${tor_cv_cflags__Wreserved_user_defined_literal+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Wreserved-user-defined-literal"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  tor_cv_cflags__Wreserved_user_defined_literal=yes
else case e in #(
  e) tor_cv_cflags__Wreserved_user_defined_literal=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
    if test x != x; then

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

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  tor_can_link__Wreserved_user_defined_literal=yes
else case e in #(
  e) tor_can_link__Wreserved_user_defined_literal=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"
   ;;
esac
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wreserved_user_defined_literal" >&5
printf "%s\n" "$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




  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wreturn-stack-address" >&5
printf %s "checking whether the compiler accepts -Wreturn-stack-address... " >&6; }
if test ${tor_cv_cflags__Wreturn_stack_address+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Wreturn-stack-address"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  tor_cv_cflags__Wreturn_stack_address=yes
else case e in #(
  e) tor_cv_cflags__Wreturn_stack_address=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
    if test x != x; then

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

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  tor_can_link__Wreturn_stack_address=yes
else case e in #(
  e) tor_can_link__Wreturn_stack_address=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"
   ;;
esac
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wreturn_stack_address" >&5
printf "%s\n" "$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




  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wsection" >&5
printf %s "checking whether the compiler accepts -Wsection... " >&6; }
if test ${tor_cv_cflags__Wsection+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Wsection"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  tor_cv_cflags__Wsection=yes
else case e in #(
  e) tor_cv_cflags__Wsection=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
    if test x != x; then

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

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  tor_can_link__Wsection=yes
else case e in #(
  e) tor_can_link__Wsection=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"
   ;;
esac
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wsection" >&5
printf "%s\n" "$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




  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wselector-type-mismatch" >&5
printf %s "checking whether the compiler accepts -Wselector-type-mismatch... " >&6; }
if test ${tor_cv_cflags__Wselector_type_mismatch+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Wselector-type-mismatch"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  tor_cv_cflags__Wselector_type_mismatch=yes
else case e in #(
  e) tor_cv_cflags__Wselector_type_mismatch=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
    if test x != x; then

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

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  tor_can_link__Wselector_type_mismatch=yes
else case e in #(
  e) tor_can_link__Wselector_type_mismatch=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"
   ;;
esac
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wselector_type_mismatch" >&5
printf "%s\n" "$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




  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wsentinel" >&5
printf %s "checking whether the compiler accepts -Wsentinel... " >&6; }
if test ${tor_cv_cflags__Wsentinel+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Wsentinel"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  tor_cv_cflags__Wsentinel=yes
else case e in #(
  e) tor_cv_cflags__Wsentinel=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
    if test x != x; then

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

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  tor_can_link__Wsentinel=yes
else case e in #(
  e) tor_can_link__Wsentinel=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"
   ;;
esac
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wsentinel" >&5
printf "%s\n" "$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




  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wserialized-diagnostics" >&5
printf %s "checking whether the compiler accepts -Wserialized-diagnostics... " >&6; }
if test ${tor_cv_cflags__Wserialized_diagnostics+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Wserialized-diagnostics"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  tor_cv_cflags__Wserialized_diagnostics=yes
else case e in #(
  e) tor_cv_cflags__Wserialized_diagnostics=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
    if test x != x; then

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

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  tor_can_link__Wserialized_diagnostics=yes
else case e in #(
  e) tor_can_link__Wserialized_diagnostics=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"
   ;;
esac
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wserialized_diagnostics" >&5
printf "%s\n" "$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




  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wshadow" >&5
printf %s "checking whether the compiler accepts -Wshadow... " >&6; }
if test ${tor_cv_cflags__Wshadow+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Wshadow"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  tor_cv_cflags__Wshadow=yes
else case e in #(
  e) tor_cv_cflags__Wshadow=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
    if test x != x; then

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

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  tor_can_link__Wshadow=yes
else case e in #(
  e) tor_can_link__Wshadow=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"
   ;;
esac
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wshadow" >&5
printf "%s\n" "$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




  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wshift-count-negative" >&5
printf %s "checking whether the compiler accepts -Wshift-count-negative... " >&6; }
if test ${tor_cv_cflags__Wshift_count_negative+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Wshift-count-negative"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  tor_cv_cflags__Wshift_count_negative=yes
else case e in #(
  e) tor_cv_cflags__Wshift_count_negative=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
    if test x != x; then

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

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  tor_can_link__Wshift_count_negative=yes
else case e in #(
  e) tor_can_link__Wshift_count_negative=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"
   ;;
esac
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wshift_count_negative" >&5
printf "%s\n" "$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




  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wshift-count-overflow" >&5
printf %s "checking whether the compiler accepts -Wshift-count-overflow... " >&6; }
if test ${tor_cv_cflags__Wshift_count_overflow+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Wshift-count-overflow"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  tor_cv_cflags__Wshift_count_overflow=yes
else case e in #(
  e) tor_cv_cflags__Wshift_count_overflow=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
    if test x != x; then

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

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  tor_can_link__Wshift_count_overflow=yes
else case e in #(
  e) tor_can_link__Wshift_count_overflow=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"
   ;;
esac
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wshift_count_overflow" >&5
printf "%s\n" "$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




  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wshift-negative-value" >&5
printf %s "checking whether the compiler accepts -Wshift-negative-value... " >&6; }
if test ${tor_cv_cflags__Wshift_negative_value+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Wshift-negative-value"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  tor_cv_cflags__Wshift_negative_value=yes
else case e in #(
  e) tor_cv_cflags__Wshift_negative_value=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
    if test x != x; then

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

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  tor_can_link__Wshift_negative_value=yes
else case e in #(
  e) tor_can_link__Wshift_negative_value=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"
   ;;
esac
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wshift_negative_value" >&5
printf "%s\n" "$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




  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wshift-overflow=2" >&5
printf %s "checking whether the compiler accepts -Wshift-overflow=2... " >&6; }
if test ${tor_cv_cflags__Wshift_overflow_2+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Wshift-overflow=2"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  tor_cv_cflags__Wshift_overflow_2=yes
else case e in #(
  e) tor_cv_cflags__Wshift_overflow_2=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
    if test x != x; then

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

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  tor_can_link__Wshift_overflow_2=yes
else case e in #(
  e) tor_can_link__Wshift_overflow_2=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"
   ;;
esac
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wshift_overflow_2" >&5
printf "%s\n" "$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




  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wshift-sign-overflow" >&5
printf %s "checking whether the compiler accepts -Wshift-sign-overflow... " >&6; }
if test ${tor_cv_cflags__Wshift_sign_overflow+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Wshift-sign-overflow"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  tor_cv_cflags__Wshift_sign_overflow=yes
else case e in #(
  e) tor_cv_cflags__Wshift_sign_overflow=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
    if test x != x; then

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

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  tor_can_link__Wshift_sign_overflow=yes
else case e in #(
  e) tor_can_link__Wshift_sign_overflow=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"
   ;;
esac
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wshift_sign_overflow" >&5
printf "%s\n" "$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




  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wshorten-64-to-32" >&5
printf %s "checking whether the compiler accepts -Wshorten-64-to-32... " >&6; }
if test ${tor_cv_cflags__Wshorten_64_to_32+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Wshorten-64-to-32"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  tor_cv_cflags__Wshorten_64_to_32=yes
else case e in #(
  e) tor_cv_cflags__Wshorten_64_to_32=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
    if test x != x; then

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

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  tor_can_link__Wshorten_64_to_32=yes
else case e in #(
  e) tor_can_link__Wshorten_64_to_32=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"
   ;;
esac
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wshorten_64_to_32" >&5
printf "%s\n" "$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




  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wsizeof-array-argument" >&5
printf %s "checking whether the compiler accepts -Wsizeof-array-argument... " >&6; }
if test ${tor_cv_cflags__Wsizeof_array_argument+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Wsizeof-array-argument"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  tor_cv_cflags__Wsizeof_array_argument=yes
else case e in #(
  e) tor_cv_cflags__Wsizeof_array_argument=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
    if test x != x; then

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

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  tor_can_link__Wsizeof_array_argument=yes
else case e in #(
  e) tor_can_link__Wsizeof_array_argument=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"
   ;;
esac
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wsizeof_array_argument" >&5
printf "%s\n" "$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




  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wsource-uses-openmp" >&5
printf %s "checking whether the compiler accepts -Wsource-uses-openmp... " >&6; }
if test ${tor_cv_cflags__Wsource_uses_openmp+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Wsource-uses-openmp"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  tor_cv_cflags__Wsource_uses_openmp=yes
else case e in #(
  e) tor_cv_cflags__Wsource_uses_openmp=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
    if test x != x; then

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

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  tor_can_link__Wsource_uses_openmp=yes
else case e in #(
  e) tor_can_link__Wsource_uses_openmp=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"
   ;;
esac
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wsource_uses_openmp" >&5
printf "%s\n" "$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




  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wstatic-float-init" >&5
printf %s "checking whether the compiler accepts -Wstatic-float-init... " >&6; }
if test ${tor_cv_cflags__Wstatic_float_init+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Wstatic-float-init"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  tor_cv_cflags__Wstatic_float_init=yes
else case e in #(
  e) tor_cv_cflags__Wstatic_float_init=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
    if test x != x; then

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

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  tor_can_link__Wstatic_float_init=yes
else case e in #(
  e) tor_can_link__Wstatic_float_init=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"
   ;;
esac
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wstatic_float_init" >&5
printf "%s\n" "$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




  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wstatic-in-inline" >&5
printf %s "checking whether the compiler accepts -Wstatic-in-inline... " >&6; }
if test ${tor_cv_cflags__Wstatic_in_inline+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Wstatic-in-inline"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  tor_cv_cflags__Wstatic_in_inline=yes
else case e in #(
  e) tor_cv_cflags__Wstatic_in_inline=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
    if test x != x; then

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

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  tor_can_link__Wstatic_in_inline=yes
else case e in #(
  e) tor_can_link__Wstatic_in_inline=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"
   ;;
esac
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wstatic_in_inline" >&5
printf "%s\n" "$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




  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wstatic-local-in-inline" >&5
printf %s "checking whether the compiler accepts -Wstatic-local-in-inline... " >&6; }
if test ${tor_cv_cflags__Wstatic_local_in_inline+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Wstatic-local-in-inline"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  tor_cv_cflags__Wstatic_local_in_inline=yes
else case e in #(
  e) tor_cv_cflags__Wstatic_local_in_inline=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
    if test x != x; then

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

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  tor_can_link__Wstatic_local_in_inline=yes
else case e in #(
  e) tor_can_link__Wstatic_local_in_inline=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"
   ;;
esac
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wstatic_local_in_inline" >&5
printf "%s\n" "$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




  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wstrict-overflow=1" >&5
printf %s "checking whether the compiler accepts -Wstrict-overflow=1... " >&6; }
if test ${tor_cv_cflags__Wstrict_overflow_1+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Wstrict-overflow=1"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  tor_cv_cflags__Wstrict_overflow_1=yes
else case e in #(
  e) tor_cv_cflags__Wstrict_overflow_1=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
    if test x != x; then

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

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  tor_can_link__Wstrict_overflow_1=yes
else case e in #(
  e) tor_can_link__Wstrict_overflow_1=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"
   ;;
esac
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wstrict_overflow_1" >&5
printf "%s\n" "$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




  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wstring-compare" >&5
printf %s "checking whether the compiler accepts -Wstring-compare... " >&6; }
if test ${tor_cv_cflags__Wstring_compare+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Wstring-compare"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  tor_cv_cflags__Wstring_compare=yes
else case e in #(
  e) tor_cv_cflags__Wstring_compare=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
    if test x != x; then

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

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  tor_can_link__Wstring_compare=yes
else case e in #(
  e) tor_can_link__Wstring_compare=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"
   ;;
esac
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wstring_compare" >&5
printf "%s\n" "$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




  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wstring-conversion" >&5
printf %s "checking whether the compiler accepts -Wstring-conversion... " >&6; }
if test ${tor_cv_cflags__Wstring_conversion+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Wstring-conversion"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  tor_cv_cflags__Wstring_conversion=yes
else case e in #(
  e) tor_cv_cflags__Wstring_conversion=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
    if test x != x; then

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

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  tor_can_link__Wstring_conversion=yes
else case e in #(
  e) tor_can_link__Wstring_conversion=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"
   ;;
esac
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wstring_conversion" >&5
printf "%s\n" "$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




  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wstrlcpy-strlcat-size" >&5
printf %s "checking whether the compiler accepts -Wstrlcpy-strlcat-size... " >&6; }
if test ${tor_cv_cflags__Wstrlcpy_strlcat_size+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Wstrlcpy-strlcat-size"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  tor_cv_cflags__Wstrlcpy_strlcat_size=yes
else case e in #(
  e) tor_cv_cflags__Wstrlcpy_strlcat_size=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
    if test x != x; then

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

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  tor_can_link__Wstrlcpy_strlcat_size=yes
else case e in #(
  e) tor_can_link__Wstrlcpy_strlcat_size=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"
   ;;
esac
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wstrlcpy_strlcat_size" >&5
printf "%s\n" "$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




  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wstrncat-size" >&5
printf %s "checking whether the compiler accepts -Wstrncat-size... " >&6; }
if test ${tor_cv_cflags__Wstrncat_size+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Wstrncat-size"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  tor_cv_cflags__Wstrncat_size=yes
else case e in #(
  e) tor_cv_cflags__Wstrncat_size=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
    if test x != x; then

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

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  tor_can_link__Wstrncat_size=yes
else case e in #(
  e) tor_can_link__Wstrncat_size=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"
   ;;
esac
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wstrncat_size" >&5
printf "%s\n" "$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




  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wsuggest-attribute=format" >&5
printf %s "checking whether the compiler accepts -Wsuggest-attribute=format... " >&6; }
if test ${tor_cv_cflags__Wsuggest_attribute_format+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Wsuggest-attribute=format"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  tor_cv_cflags__Wsuggest_attribute_format=yes
else case e in #(
  e) tor_cv_cflags__Wsuggest_attribute_format=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
    if test x != x; then

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

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  tor_can_link__Wsuggest_attribute_format=yes
else case e in #(
  e) tor_can_link__Wsuggest_attribute_format=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"
   ;;
esac
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wsuggest_attribute_format" >&5
printf "%s\n" "$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




  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wsuggest-attribute=noreturn" >&5
printf %s "checking whether the compiler accepts -Wsuggest-attribute=noreturn... " >&6; }
if test ${tor_cv_cflags__Wsuggest_attribute_noreturn+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Wsuggest-attribute=noreturn"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  tor_cv_cflags__Wsuggest_attribute_noreturn=yes
else case e in #(
  e) tor_cv_cflags__Wsuggest_attribute_noreturn=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
    if test x != x; then

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

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  tor_can_link__Wsuggest_attribute_noreturn=yes
else case e in #(
  e) tor_can_link__Wsuggest_attribute_noreturn=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"
   ;;
esac
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wsuggest_attribute_noreturn" >&5
printf "%s\n" "$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




  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wsuper-class-method-mismatch" >&5
printf %s "checking whether the compiler accepts -Wsuper-class-method-mismatch... " >&6; }
if test ${tor_cv_cflags__Wsuper_class_method_mismatch+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Wsuper-class-method-mismatch"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  tor_cv_cflags__Wsuper_class_method_mismatch=yes
else case e in #(
  e) tor_cv_cflags__Wsuper_class_method_mismatch=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
    if test x != x; then

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

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  tor_can_link__Wsuper_class_method_mismatch=yes
else case e in #(
  e) tor_can_link__Wsuper_class_method_mismatch=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"
   ;;
esac
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wsuper_class_method_mismatch" >&5
printf "%s\n" "$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




  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wswitch-bool" >&5
printf %s "checking whether the compiler accepts -Wswitch-bool... " >&6; }
if test ${tor_cv_cflags__Wswitch_bool+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Wswitch-bool"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  tor_cv_cflags__Wswitch_bool=yes
else case e in #(
  e) tor_cv_cflags__Wswitch_bool=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
    if test x != x; then

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

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  tor_can_link__Wswitch_bool=yes
else case e in #(
  e) tor_can_link__Wswitch_bool=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"
   ;;
esac
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wswitch_bool" >&5
printf "%s\n" "$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




  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wsync-nand" >&5
printf %s "checking whether the compiler accepts -Wsync-nand... " >&6; }
if test ${tor_cv_cflags__Wsync_nand+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Wsync-nand"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  tor_cv_cflags__Wsync_nand=yes
else case e in #(
  e) tor_cv_cflags__Wsync_nand=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
    if test x != x; then

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

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  tor_can_link__Wsync_nand=yes
else case e in #(
  e) tor_can_link__Wsync_nand=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"
   ;;
esac
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wsync_nand" >&5
printf "%s\n" "$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




  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wtautological-constant-out-of-range-compare" >&5
printf %s "checking whether the compiler accepts -Wtautological-constant-out-of-range-compare... " >&6; }
if test ${tor_cv_cflags__Wtautological_constant_out_of_range_compare+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
    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 (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  tor_cv_cflags__Wtautological_constant_out_of_range_compare=yes
else case e in #(
  e) tor_cv_cflags__Wtautological_constant_out_of_range_compare=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
    if test x != x; then

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

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  tor_can_link__Wtautological_constant_out_of_range_compare=yes
else case e in #(
  e) tor_can_link__Wtautological_constant_out_of_range_compare=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"
   ;;
esac
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wtautological_constant_out_of_range_compare" >&5
printf "%s\n" "$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




  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wtentative-definition-incomplete-type" >&5
printf %s "checking whether the compiler accepts -Wtentative-definition-incomplete-type... " >&6; }
if test ${tor_cv_cflags__Wtentative_definition_incomplete_type+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Wtentative-definition-incomplete-type"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  tor_cv_cflags__Wtentative_definition_incomplete_type=yes
else case e in #(
  e) tor_cv_cflags__Wtentative_definition_incomplete_type=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
    if test x != x; then

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

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  tor_can_link__Wtentative_definition_incomplete_type=yes
else case e in #(
  e) tor_can_link__Wtentative_definition_incomplete_type=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"
   ;;
esac
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wtentative_definition_incomplete_type" >&5
printf "%s\n" "$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




  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wtrampolines" >&5
printf %s "checking whether the compiler accepts -Wtrampolines... " >&6; }
if test ${tor_cv_cflags__Wtrampolines+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Wtrampolines"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  tor_cv_cflags__Wtrampolines=yes
else case e in #(
  e) tor_cv_cflags__Wtrampolines=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
    if test x != x; then

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

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  tor_can_link__Wtrampolines=yes
else case e in #(
  e) tor_can_link__Wtrampolines=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"
   ;;
esac
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wtrampolines" >&5
printf "%s\n" "$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




  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wtype-safety" >&5
printf %s "checking whether the compiler accepts -Wtype-safety... " >&6; }
if test ${tor_cv_cflags__Wtype_safety+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Wtype-safety"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  tor_cv_cflags__Wtype_safety=yes
else case e in #(
  e) tor_cv_cflags__Wtype_safety=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
    if test x != x; then

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

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  tor_can_link__Wtype_safety=yes
else case e in #(
  e) tor_can_link__Wtype_safety=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"
   ;;
esac
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wtype_safety" >&5
printf "%s\n" "$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




  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wtypedef-redefinition" >&5
printf %s "checking whether the compiler accepts -Wtypedef-redefinition... " >&6; }
if test ${tor_cv_cflags__Wtypedef_redefinition+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Wtypedef-redefinition"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  tor_cv_cflags__Wtypedef_redefinition=yes
else case e in #(
  e) tor_cv_cflags__Wtypedef_redefinition=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
    if test x != x; then

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

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  tor_can_link__Wtypedef_redefinition=yes
else case e in #(
  e) tor_can_link__Wtypedef_redefinition=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"
   ;;
esac
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wtypedef_redefinition" >&5
printf "%s\n" "$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




  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wtypename-missing" >&5
printf %s "checking whether the compiler accepts -Wtypename-missing... " >&6; }
if test ${tor_cv_cflags__Wtypename_missing+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Wtypename-missing"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  tor_cv_cflags__Wtypename_missing=yes
else case e in #(
  e) tor_cv_cflags__Wtypename_missing=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
    if test x != x; then

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

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  tor_can_link__Wtypename_missing=yes
else case e in #(
  e) tor_can_link__Wtypename_missing=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"
   ;;
esac
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wtypename_missing" >&5
printf "%s\n" "$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




  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wundefined-inline" >&5
printf %s "checking whether the compiler accepts -Wundefined-inline... " >&6; }
if test ${tor_cv_cflags__Wundefined_inline+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Wundefined-inline"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  tor_cv_cflags__Wundefined_inline=yes
else case e in #(
  e) tor_cv_cflags__Wundefined_inline=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
    if test x != x; then

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

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  tor_can_link__Wundefined_inline=yes
else case e in #(
  e) tor_can_link__Wundefined_inline=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"
   ;;
esac
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wundefined_inline" >&5
printf "%s\n" "$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




  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wundefined-internal" >&5
printf %s "checking whether the compiler accepts -Wundefined-internal... " >&6; }
if test ${tor_cv_cflags__Wundefined_internal+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Wundefined-internal"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  tor_cv_cflags__Wundefined_internal=yes
else case e in #(
  e) tor_cv_cflags__Wundefined_internal=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
    if test x != x; then

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

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  tor_can_link__Wundefined_internal=yes
else case e in #(
  e) tor_can_link__Wundefined_internal=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"
   ;;
esac
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wundefined_internal" >&5
printf "%s\n" "$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




  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wundefined-reinterpret-cast" >&5
printf %s "checking whether the compiler accepts -Wundefined-reinterpret-cast... " >&6; }
if test ${tor_cv_cflags__Wundefined_reinterpret_cast+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Wundefined-reinterpret-cast"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  tor_cv_cflags__Wundefined_reinterpret_cast=yes
else case e in #(
  e) tor_cv_cflags__Wundefined_reinterpret_cast=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
    if test x != x; then

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

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  tor_can_link__Wundefined_reinterpret_cast=yes
else case e in #(
  e) tor_can_link__Wundefined_reinterpret_cast=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"
   ;;
esac
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wundefined_reinterpret_cast" >&5
printf "%s\n" "$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




  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wunicode" >&5
printf %s "checking whether the compiler accepts -Wunicode... " >&6; }
if test ${tor_cv_cflags__Wunicode+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Wunicode"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  tor_cv_cflags__Wunicode=yes
else case e in #(
  e) tor_cv_cflags__Wunicode=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
    if test x != x; then

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

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  tor_can_link__Wunicode=yes
else case e in #(
  e) tor_can_link__Wunicode=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"
   ;;
esac
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wunicode" >&5
printf "%s\n" "$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




  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wunicode-whitespace" >&5
printf %s "checking whether the compiler accepts -Wunicode-whitespace... " >&6; }
if test ${tor_cv_cflags__Wunicode_whitespace+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Wunicode-whitespace"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  tor_cv_cflags__Wunicode_whitespace=yes
else case e in #(
  e) tor_cv_cflags__Wunicode_whitespace=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
    if test x != x; then

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

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  tor_can_link__Wunicode_whitespace=yes
else case e in #(
  e) tor_can_link__Wunicode_whitespace=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"
   ;;
esac
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wunicode_whitespace" >&5
printf "%s\n" "$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




  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wunknown-warning-option" >&5
printf %s "checking whether the compiler accepts -Wunknown-warning-option... " >&6; }
if test ${tor_cv_cflags__Wunknown_warning_option+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Wunknown-warning-option"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  tor_cv_cflags__Wunknown_warning_option=yes
else case e in #(
  e) tor_cv_cflags__Wunknown_warning_option=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
    if test x != x; then

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

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  tor_can_link__Wunknown_warning_option=yes
else case e in #(
  e) tor_can_link__Wunknown_warning_option=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"
   ;;
esac
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wunknown_warning_option" >&5
printf "%s\n" "$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




  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wunnamed-type-template-args" >&5
printf %s "checking whether the compiler accepts -Wunnamed-type-template-args... " >&6; }
if test ${tor_cv_cflags__Wunnamed_type_template_args+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Wunnamed-type-template-args"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  tor_cv_cflags__Wunnamed_type_template_args=yes
else case e in #(
  e) tor_cv_cflags__Wunnamed_type_template_args=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
    if test x != x; then

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

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  tor_can_link__Wunnamed_type_template_args=yes
else case e in #(
  e) tor_can_link__Wunnamed_type_template_args=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"
   ;;
esac
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wunnamed_type_template_args" >&5
printf "%s\n" "$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




  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wunneeded-member-function" >&5
printf %s "checking whether the compiler accepts -Wunneeded-member-function... " >&6; }
if test ${tor_cv_cflags__Wunneeded_member_function+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Wunneeded-member-function"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  tor_cv_cflags__Wunneeded_member_function=yes
else case e in #(
  e) tor_cv_cflags__Wunneeded_member_function=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
    if test x != x; then

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

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  tor_can_link__Wunneeded_member_function=yes
else case e in #(
  e) tor_can_link__Wunneeded_member_function=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"
   ;;
esac
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wunneeded_member_function" >&5
printf "%s\n" "$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




  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wunsequenced" >&5
printf %s "checking whether the compiler accepts -Wunsequenced... " >&6; }
if test ${tor_cv_cflags__Wunsequenced+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Wunsequenced"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  tor_cv_cflags__Wunsequenced=yes
else case e in #(
  e) tor_cv_cflags__Wunsequenced=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
    if test x != x; then

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

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  tor_can_link__Wunsequenced=yes
else case e in #(
  e) tor_can_link__Wunsequenced=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"
   ;;
esac
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wunsequenced" >&5
printf "%s\n" "$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




  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wunsupported-visibility" >&5
printf %s "checking whether the compiler accepts -Wunsupported-visibility... " >&6; }
if test ${tor_cv_cflags__Wunsupported_visibility+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Wunsupported-visibility"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  tor_cv_cflags__Wunsupported_visibility=yes
else case e in #(
  e) tor_cv_cflags__Wunsupported_visibility=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
    if test x != x; then

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

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  tor_can_link__Wunsupported_visibility=yes
else case e in #(
  e) tor_can_link__Wunsupported_visibility=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"
   ;;
esac
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wunsupported_visibility" >&5
printf "%s\n" "$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




  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wunused-but-set-parameter" >&5
printf %s "checking whether the compiler accepts -Wunused-but-set-parameter... " >&6; }
if test ${tor_cv_cflags__Wunused_but_set_parameter+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Wunused-but-set-parameter"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  tor_cv_cflags__Wunused_but_set_parameter=yes
else case e in #(
  e) tor_cv_cflags__Wunused_but_set_parameter=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
    if test x != x; then

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

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  tor_can_link__Wunused_but_set_parameter=yes
else case e in #(
  e) tor_can_link__Wunused_but_set_parameter=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"
   ;;
esac
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wunused_but_set_parameter" >&5
printf "%s\n" "$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




  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wunused-but-set-variable" >&5
printf %s "checking whether the compiler accepts -Wunused-but-set-variable... " >&6; }
if test ${tor_cv_cflags__Wunused_but_set_variable+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Wunused-but-set-variable"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  tor_cv_cflags__Wunused_but_set_variable=yes
else case e in #(
  e) tor_cv_cflags__Wunused_but_set_variable=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
    if test x != x; then

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

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  tor_can_link__Wunused_but_set_variable=yes
else case e in #(
  e) tor_can_link__Wunused_but_set_variable=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"
   ;;
esac
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wunused_but_set_variable" >&5
printf "%s\n" "$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




  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wunused-command-line-argument" >&5
printf %s "checking whether the compiler accepts -Wunused-command-line-argument... " >&6; }
if test ${tor_cv_cflags__Wunused_command_line_argument+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Wunused-command-line-argument"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  tor_cv_cflags__Wunused_command_line_argument=yes
else case e in #(
  e) tor_cv_cflags__Wunused_command_line_argument=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
    if test x != x; then

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

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  tor_can_link__Wunused_command_line_argument=yes
else case e in #(
  e) tor_can_link__Wunused_command_line_argument=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"
   ;;
esac
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wunused_command_line_argument" >&5
printf "%s\n" "$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




  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wunused-const-variable=2" >&5
printf %s "checking whether the compiler accepts -Wunused-const-variable=2... " >&6; }
if test ${tor_cv_cflags__Wunused_const_variable_2+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Wunused-const-variable=2"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  tor_cv_cflags__Wunused_const_variable_2=yes
else case e in #(
  e) tor_cv_cflags__Wunused_const_variable_2=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
    if test x != x; then

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

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  tor_can_link__Wunused_const_variable_2=yes
else case e in #(
  e) tor_can_link__Wunused_const_variable_2=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"
   ;;
esac
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wunused_const_variable_2" >&5
printf "%s\n" "$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




  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wunused-exception-parameter" >&5
printf %s "checking whether the compiler accepts -Wunused-exception-parameter... " >&6; }
if test ${tor_cv_cflags__Wunused_exception_parameter+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Wunused-exception-parameter"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  tor_cv_cflags__Wunused_exception_parameter=yes
else case e in #(
  e) tor_cv_cflags__Wunused_exception_parameter=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
    if test x != x; then

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

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  tor_can_link__Wunused_exception_parameter=yes
else case e in #(
  e) tor_can_link__Wunused_exception_parameter=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"
   ;;
esac
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wunused_exception_parameter" >&5
printf "%s\n" "$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




  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wunused-local-typedefs" >&5
printf %s "checking whether the compiler accepts -Wunused-local-typedefs... " >&6; }
if test ${tor_cv_cflags__Wunused_local_typedefs+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Wunused-local-typedefs"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  tor_cv_cflags__Wunused_local_typedefs=yes
else case e in #(
  e) tor_cv_cflags__Wunused_local_typedefs=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
    if test x != x; then

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

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  tor_can_link__Wunused_local_typedefs=yes
else case e in #(
  e) tor_can_link__Wunused_local_typedefs=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"
   ;;
esac
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wunused_local_typedefs" >&5
printf "%s\n" "$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




  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wunused-member-function" >&5
printf %s "checking whether the compiler accepts -Wunused-member-function... " >&6; }
if test ${tor_cv_cflags__Wunused_member_function+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Wunused-member-function"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  tor_cv_cflags__Wunused_member_function=yes
else case e in #(
  e) tor_cv_cflags__Wunused_member_function=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
    if test x != x; then

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

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  tor_can_link__Wunused_member_function=yes
else case e in #(
  e) tor_can_link__Wunused_member_function=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"
   ;;
esac
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wunused_member_function" >&5
printf "%s\n" "$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




  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wunused-sanitize-argument" >&5
printf %s "checking whether the compiler accepts -Wunused-sanitize-argument... " >&6; }
if test ${tor_cv_cflags__Wunused_sanitize_argument+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Wunused-sanitize-argument"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  tor_cv_cflags__Wunused_sanitize_argument=yes
else case e in #(
  e) tor_cv_cflags__Wunused_sanitize_argument=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
    if test x != x; then

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

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  tor_can_link__Wunused_sanitize_argument=yes
else case e in #(
  e) tor_can_link__Wunused_sanitize_argument=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"
   ;;
esac
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wunused_sanitize_argument" >&5
printf "%s\n" "$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




  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wunused-volatile-lvalue" >&5
printf %s "checking whether the compiler accepts -Wunused-volatile-lvalue... " >&6; }
if test ${tor_cv_cflags__Wunused_volatile_lvalue+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Wunused-volatile-lvalue"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  tor_cv_cflags__Wunused_volatile_lvalue=yes
else case e in #(
  e) tor_cv_cflags__Wunused_volatile_lvalue=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
    if test x != x; then

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

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  tor_can_link__Wunused_volatile_lvalue=yes
else case e in #(
  e) tor_can_link__Wunused_volatile_lvalue=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"
   ;;
esac
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wunused_volatile_lvalue" >&5
printf "%s\n" "$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




  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wuser-defined-literals" >&5
printf %s "checking whether the compiler accepts -Wuser-defined-literals... " >&6; }
if test ${tor_cv_cflags__Wuser_defined_literals+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Wuser-defined-literals"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  tor_cv_cflags__Wuser_defined_literals=yes
else case e in #(
  e) tor_cv_cflags__Wuser_defined_literals=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
    if test x != x; then

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

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  tor_can_link__Wuser_defined_literals=yes
else case e in #(
  e) tor_can_link__Wuser_defined_literals=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"
   ;;
esac
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wuser_defined_literals" >&5
printf "%s\n" "$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




  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wvariadic-macros" >&5
printf %s "checking whether the compiler accepts -Wvariadic-macros... " >&6; }
if test ${tor_cv_cflags__Wvariadic_macros+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Wvariadic-macros"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  tor_cv_cflags__Wvariadic_macros=yes
else case e in #(
  e) tor_cv_cflags__Wvariadic_macros=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
    if test x != x; then

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

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  tor_can_link__Wvariadic_macros=yes
else case e in #(
  e) tor_can_link__Wvariadic_macros=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"
   ;;
esac
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wvariadic_macros" >&5
printf "%s\n" "$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




  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wvector-conversion" >&5
printf %s "checking whether the compiler accepts -Wvector-conversion... " >&6; }
if test ${tor_cv_cflags__Wvector_conversion+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Wvector-conversion"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  tor_cv_cflags__Wvector_conversion=yes
else case e in #(
  e) tor_cv_cflags__Wvector_conversion=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
    if test x != x; then

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

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  tor_can_link__Wvector_conversion=yes
else case e in #(
  e) tor_can_link__Wvector_conversion=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"
   ;;
esac
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wvector_conversion" >&5
printf "%s\n" "$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




  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wvector-conversions" >&5
printf %s "checking whether the compiler accepts -Wvector-conversions... " >&6; }
if test ${tor_cv_cflags__Wvector_conversions+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Wvector-conversions"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  tor_cv_cflags__Wvector_conversions=yes
else case e in #(
  e) tor_cv_cflags__Wvector_conversions=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
    if test x != x; then

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

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  tor_can_link__Wvector_conversions=yes
else case e in #(
  e) tor_can_link__Wvector_conversions=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"
   ;;
esac
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wvector_conversions" >&5
printf "%s\n" "$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




  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wvexing-parse" >&5
printf %s "checking whether the compiler accepts -Wvexing-parse... " >&6; }
if test ${tor_cv_cflags__Wvexing_parse+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Wvexing-parse"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  tor_cv_cflags__Wvexing_parse=yes
else case e in #(
  e) tor_cv_cflags__Wvexing_parse=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
    if test x != x; then

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

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  tor_can_link__Wvexing_parse=yes
else case e in #(
  e) tor_can_link__Wvexing_parse=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"
   ;;
esac
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wvexing_parse" >&5
printf "%s\n" "$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




  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wvisibility" >&5
printf %s "checking whether the compiler accepts -Wvisibility... " >&6; }
if test ${tor_cv_cflags__Wvisibility+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Wvisibility"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  tor_cv_cflags__Wvisibility=yes
else case e in #(
  e) tor_cv_cflags__Wvisibility=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
    if test x != x; then

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

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  tor_can_link__Wvisibility=yes
else case e in #(
  e) tor_can_link__Wvisibility=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"
   ;;
esac
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wvisibility" >&5
printf "%s\n" "$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




  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wvla-extension" >&5
printf %s "checking whether the compiler accepts -Wvla-extension... " >&6; }
if test ${tor_cv_cflags__Wvla_extension+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Wvla-extension"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  tor_cv_cflags__Wvla_extension=yes
else case e in #(
  e) tor_cv_cflags__Wvla_extension=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
    if test x != x; then

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

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  tor_can_link__Wvla_extension=yes
else case e in #(
  e) tor_can_link__Wvla_extension=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"
   ;;
esac
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wvla_extension" >&5
printf "%s\n" "$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




  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts -Wzero-length-array" >&5
printf %s "checking whether the compiler accepts -Wzero-length-array... " >&6; }
if test ${tor_cv_cflags__Wzero_length_array+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror -Wzero-length-array"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  tor_cv_cflags__Wzero_length_array=yes
else case e in #(
  e) tor_cv_cflags__Wzero_length_array=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
    if test x != x; then

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

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  tor_can_link__Wzero_length_array=yes
else case e in #(
  e) tor_can_link__Wzero_length_array=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"
   ;;
esac
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__Wzero_length_array" >&5
printf "%s\n" "$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




  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler accepts -Wextra-semi" >&5
printf %s "checking whether the C compiler accepts -Wextra-semi... " >&6; }
if test ${ax_cv_check_cflags__Werror__Wextra_semi+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
  ax_check_save_flags=$CFLAGS
  CFLAGS="$CFLAGS -Werror -Wextra-semi"
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  ax_cv_check_cflags__Werror__Wextra_semi=yes
else case e in #(
  e) ax_cv_check_cflags__Werror__Wextra_semi=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  CFLAGS=$ax_check_save_flags ;;
esac
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags__Werror__Wextra_semi" >&5
printf "%s\n" "$ax_cv_check_cflags__Werror__Wextra_semi" >&6; }
if test "x$ax_cv_check_cflags__Werror__Wextra_semi" = xyes
then :
  CFLAGS="$CFLAGS -Wextra-semi"
else case e in #(
  e) : ;;
esac
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

printf "%s\n" "#define HAVE_CFLAG_WNULL_DEREFERENCE 1" >>confdefs.h

  fi
  if test "$tor_cv_cflags__Woverlength_strings" = "yes"; then

printf "%s\n" "#define HAVE_CFLAG_WOVERLENGTH_STRINGS 1" >>confdefs.h

  fi
  if test "$tor_cv_cflags__warn_unused_const_variable_2" = "yes"; then

printf "%s\n" "#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



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts @warning_flags" >&5
printf %s "checking whether the compiler accepts @warning_flags... " >&6; }
if test ${tor_cv_cflags__warning_flags+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e)
    tor_saved_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS -pedantic -Werror @warning_flags"
    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  tor_cv_cflags__warning_flags=yes
else case e in #(
  e) tor_cv_cflags__warning_flags=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
    if test x != x; then

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

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  tor_can_link__warning_flags=yes
else case e in #(
  e) tor_can_link__warning_flags=no ;;
esac
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext

    fi
    CFLAGS="$tor_saved_CFLAGS"
   ;;
esac
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tor_cv_cflags__warning_flags" >&5
printf "%s\n" "$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*)
      tor_incr_n_warnings
      { printf "%s\n" "$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
printf "%s\n" "$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

# These HashX parameter definitions are needed in CPPFLAGS when compiling
# the equix and hashx ext modules, but elsewhere in tor we can use orconfig.h


HASHX_SIZE=8


printf "%s\n" "#define HASHX_SIZE 8" >>confdefs.h


printf "%s\n" "#define HASHX_STATIC 1" >>confdefs.h


printf "%s\n" "#define EQUIX_STATIC 1" >>confdefs.h


CPPFLAGS="$CPPFLAGS $TOR_CPPFLAGS_libevent $TOR_CPPFLAGS_openssl $TOR_CPPFLAGS_zlib"

ac_config_files="$ac_config_files Doxyfile Makefile contrib/operator-tools/tor.logrotate src/config/torrc.sample src/config/torrc.minimal scripts/maint/checkOptionDocs.pl warning_flags"


if test "x$asciidoc" = "xtrue" && test "$ASCIIDOC" = "none"; then
  regular_mans="doc/man/tor doc/man/tor-gencert doc/man/tor-resolve doc/man/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
  tor_incr_n_warnings
  { printf "%s\n" "$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://gitlab.torproject.org/tpo/core/team/-/wikis/TorFragileHardening
============
  " >&5
printf "%s\n" "$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://gitlab.torproject.org/tpo/core/team/-/wikis/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_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
printf "%s\n" "$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+y} || &/
     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
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
printf "%s\n" "$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
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
printf "%s\n" "$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=`printf "%s\n" "$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


{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
printf %s "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
   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
printf "%s\n" "done" >&6; }
case $enable_silent_rules in # (((
  yes) AM_DEFAULT_VERBOSITY=0;;
   no) AM_DEFAULT_VERBOSITY=1;;
esac
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

 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_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_TRACING_INSTRUMENTATION_LTTNG_TRUE}" && test -z "${USE_TRACING_INSTRUMENTATION_LTTNG_FALSE}"; then
  as_fn_error $? "conditional \"USE_TRACING_INSTRUMENTATION_LTTNG\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${USE_TRACING_INSTRUMENTATION_USDT_TRUE}" && test -z "${USE_TRACING_INSTRUMENTATION_USDT_FALSE}"; then
  as_fn_error $? "conditional \"USE_TRACING_INSTRUMENTATION_USDT\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${USE_TRACING_INSTRUMENTATION_LOG_DEBUG_TRUE}" && test -z "${USE_TRACING_INSTRUMENTATION_LOG_DEBUG_FALSE}"; then
  as_fn_error $? "conditional \"USE_TRACING_INSTRUMENTATION_LOG_DEBUG\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${USE_TRACING_TRUE}" && test -z "${USE_TRACING_FALSE}"; then
  as_fn_error $? "conditional \"USE_TRACING\" 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 "${BUILD_MODULE_POW_TRUE}" && test -z "${BUILD_MODULE_POW_FALSE}"; then
  as_fn_error $? "conditional \"BUILD_MODULE_POW\" 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
# Check whether --enable-year2038 was given.
if test ${enable_year2038+y}
then :
  enableval=$enable_year2038;
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"
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
printf "%s\n" "$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 ${ZSH_VERSION+y} && (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 e in #(
  e) case `(set -o) 2>/dev/null` in #(
  *posix*) :
    set -o posix ;; #(
  *) :
     ;;
esac ;;
esac
fi



# Reset variables that may have inherited troublesome values from
# the environment.

# IFS needs to be set, to space, tab, and newline, in precisely that order.
# (If _AS_PATH_WALK were called with IFS unset, it would have the
# side effect of setting IFS to empty, thus disabling word splitting.)
# Quoting is to prevent editors from complaining about space-tab.
as_nl='
'
export as_nl
IFS=" ""	$as_nl"

PS1='$ '
PS2='> '
PS4='+ '

# Ensure predictable behavior from utilities with locale-dependent output.
LC_ALL=C
export LC_ALL
LANGUAGE=C
export LANGUAGE

# We cannot yet rely on "unset" to work, but we need these variables
# to be unset--not just set to an empty or harmless value--now, to
# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh).  This construct
# also avoids known problems related to "unset" and subshell syntax
# in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
do eval test \${$as_var+y} \
  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
done

# Ensure that fds 0, 1, and 2 are open.
if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
if (exec 3>&2)            ; then :; else exec 2>/dev/null; fi

# The user is always right.
if ${PATH_SEPARATOR+false} :; 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


# 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
  case $as_dir in #(((
    '') as_dir=./ ;;
    */) ;;
    *) as_dir=$as_dir/ ;;
  esac
    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
  printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  exit 1
fi



# 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
    printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  fi
  printf "%s\n" "$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 case e in #(
  e) as_fn_append ()
  {
    eval $1=\$$1\$2
  } ;;
esac
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 case e in #(
  e) as_fn_arith ()
  {
    as_val=`expr "$@" || test $? -eq 1`
  } ;;
esac
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 ||
printf "%s\n" 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


# Determine whether it's possible to make 'echo' print without a newline.
# These variables are no longer used directly by Autoconf, but are AC_SUBSTed
# for compatibility with existing Makefiles.
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

# For backward compatibility with old third-party macros, we provide
# the shell variables $as_echo and $as_echo_n.  New code should use
# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
as_echo='printf %s\n'
as_echo_n='printf %s'

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=`printf "%s\n" "$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 ||
printf "%s\n" 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_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated

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


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.9.3-alpha-dev, which was
generated by GNU Autoconf 2.72.  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
ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
ac_cs_config='$ac_cs_config_escaped'
ac_cs_version="\\
tor config.status 0.4.9.3-alpha-dev
configured by $0, generated by GNU Autoconf 2.72,
  with options \\"\$ac_cs_config\\"

Copyright (C) 2023 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 )
    printf "%s\n" "$ac_cs_version"; exit ;;
  --config | --confi | --conf | --con | --co | --c )
    printf "%s\n" "$ac_cs_config"; exit ;;
  --debug | --debu | --deb | --de | --d | -d )
    debug=: ;;
  --file | --fil | --fi | --f )
    $ac_shift
    case $ac_optarg in
    *\'*) ac_optarg=`printf "%s\n" "$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=`printf "%s\n" "$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 )
    printf "%s\n" "$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
  \printf "%s\n" "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
  printf "%s\n" "$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" ;;
    "contrib/operator-tools/tor.logrotate") CONFIG_FILES="$CONFIG_FILES contrib/operator-tools/tor.logrotate" ;;
    "src/config/torrc.sample") CONFIG_FILES="$CONFIG_FILES src/config/torrc.sample" ;;
    "src/config/torrc.minimal") CONFIG_FILES="$CONFIG_FILES src/config/torrc.minimal" ;;
    "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+y} || CONFIG_FILES=$config_files
  test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
  test ${CONFIG_COMMANDS+y} || 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=`printf "%s\n" "$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 '`
	  printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
	`' by configure.'
    if test x"$ac_file" != x-; then
      configure_input="$ac_file.  $configure_input"
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
printf "%s\n" "$as_me: creating $ac_file" >&6;}
    fi
    # Neutralize special characters interpreted by sed in replacement strings.
    case $configure_input in #(
    *\&* | *\|* | *\\* )
       ac_sed_conf_input=`printf "%s\n" "$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 ||
printf "%s\n" 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=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
  # A ".." for each directory in $ac_dir_suffix.
  ac_top_builddir_sub=`printf "%s\n" "$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@*)
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
printf "%s\n" "$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"; } &&
  { printf "%s\n" "$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
printf "%s\n" "$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
    {
      printf "%s\n" "/* $configure_input  */" >&1 \
      && 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
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
printf "%s\n" "$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
    printf "%s\n" "/* $configure_input  */" >&1 \
      && 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 ||
printf "%s\n" 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)  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
printf "%s\n" "$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=`printf "%s\n" "$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 ||
printf "%s\n" 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 ||
printf "%s\n" 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
    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
as_fn_error $? "Something went wrong bootstrapping makefile fragments
    for automatic dependency tracking.  If GNU make was not used, consider
    re-running the configure script with MAKE=\"gmake\" (or whatever is
    necessary).  You can also 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
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
fi


if test "$openssl_ver_mismatch" = "yes"; then
   tor_incr_n_warnings
   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING:
============
Warning! The version OpenSSL headers we get from compiling with
    \"${TOR_CPPFLAGS_OPENSSL:-(no extra options)}\"
do not match version of the OpenSSL library we get when linking with
    \"$TOR_LDFLAGS_OPENSSL $TOR_OPENSSL_LIBS\".
This might cause compilation to fail. Try using --with-openssl-dir to specify
the exact OpenSSL path you want.
============
" >&5
printf "%s\n" "$as_me: WARNING:
============
Warning! The version OpenSSL headers we get from compiling with
    \"${TOR_CPPFLAGS_OPENSSL:-(no extra options)}\"
do not match version of the OpenSSL library we get when linking with
    \"$TOR_LDFLAGS_OPENSSL $TOR_OPENSSL_LIBS\".
This might cause compilation to fail. Try using --with-openssl-dir to specify
the exact OpenSSL path you want.
============
" >&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
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
printf %s "checking for $ac_word... " >&6; }
if test ${ac_cv_path_pprint_tput+y}
then :
  printf %s "(cached) " >&6
else case e in #(
  e) 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
  case $as_dir in #(((
    '') as_dir=./ ;;
    */) ;;
    *) as_dir=$as_dir/ ;;
  esac
    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"
    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
    break 2
  fi
done
  done
IFS=$as_save_IFS

  ;;
esac ;;
esac
fi
pprint_tput=$ac_cv_path_pprint_tput
if test -n "$pprint_tput"; then
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pprint_tput" >&5
printf "%s\n" "$pprint_tput" >&6; }
else
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "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








printf "%s\n"
printf "%s\n" "Tor Version: ${PPRINT_COLOR_BLDBLU}Tor $PACKAGE_VERSION $PPRINT_COLOR_RST"
printf "%s\n"


  printf "%s\n" "${PPRINT_COLOR_SUBTITLE}Build Features$PPRINT_COLOR_RST"






























































































































      printf %s " "

      printf %s " "




  printf %s """Compiler$PPRINT_COLOR_RST:                                                      "
  printf "%s\n" "${PPRINT_COLOR_BLD}$CC$PPRINT_COLOR_RST"






































































































































      printf %s " "

      printf %s " "




  printf %s """Host OS$PPRINT_COLOR_RST:                                                       "
  printf "%s\n" "${PPRINT_COLOR_BLD}$host_os$PPRINT_COLOR_RST"
























































































































      printf %s " "

      printf %s " "




  printf %s """License Option$PPRINT_COLOR_RST:                                                "
  printf "%s\n" "${PPRINT_COLOR_BLD}$license_option$PPRINT_COLOR_RST"








printf "%s\n"

test "x$enable_fatal_warnings" = "xyes" && value=1 || value=0




  test $value -eq 0 && pprint_msg="$PPRINT_NO_MSG" || pprint_msg="$PPRINT_YES_MSG"






















































      printf %s " "

      printf %s " "




  printf %s """Warnings are fatal (--enable-fatal-warnings)$PPRINT_COLOR_RST:                  "
  printf "%s\n" "${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"










































































      printf %s " "

      printf %s " "




  printf %s """Android support (--enable-android)$PPRINT_COLOR_RST:                            "
  printf "%s\n" "${PPRINT_COLOR_BLD}$pprint_msg$PPRINT_COLOR_RST"














printf "%s\n"

  printf "%s\n" "${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"




























































































      printf %s " "

      printf %s " "




  printf %s """tor (--enable-static-tor)$PPRINT_COLOR_RST:                                     "
  printf "%s\n" "${PPRINT_COLOR_BLD}$pprint_msg$PPRINT_COLOR_RST"














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




























































































































      printf %s " "

      printf %s " "




  printf %s """libevent$PPRINT_COLOR_RST:                                                      "
  printf "%s\n" "${PPRINT_COLOR_BLD}$TOR_LIBDIR_libevent$PPRINT_COLOR_RST"








else




  test $value -eq 0 && pprint_msg="$PPRINT_NO_MSG" || pprint_msg="$PPRINT_YES_MSG"








































































      printf %s " "

      printf %s " "




  printf %s """libevent (--enable-static-libevent)$PPRINT_COLOR_RST:                           "
  printf "%s\n" "${PPRINT_COLOR_BLD}$pprint_msg$PPRINT_COLOR_RST"













fi

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
































































































































      printf %s " "

      printf %s " "




  printf %s """libssl$PPRINT_COLOR_RST:                                                        "
  printf "%s\n" "${PPRINT_COLOR_BLD}$TOR_LIBDIR_openssl$PPRINT_COLOR_RST"








else




  test $value -eq 0 && pprint_msg="$PPRINT_NO_MSG" || pprint_msg="$PPRINT_YES_MSG"














































































      printf %s " "

      printf %s " "




  printf %s """libssl (--enable-static-openssl)$PPRINT_COLOR_RST:                              "
  printf "%s\n" "${PPRINT_COLOR_BLD}$pprint_msg$PPRINT_COLOR_RST"













fi

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
































































































































      printf %s " "

      printf %s " "




  printf %s """zlib1g$PPRINT_COLOR_RST:                                                        "
  printf "%s\n" "${PPRINT_COLOR_BLD}$TOR_LIBDIR_zlib$PPRINT_COLOR_RST"








else




  test $value -eq 0 && pprint_msg="$PPRINT_NO_MSG" || pprint_msg="$PPRINT_YES_MSG"




















































































      printf %s " "

      printf %s " "




  printf %s """zlib1g (--enable-static-zlib)$PPRINT_COLOR_RST:                                 "
  printf "%s\n" "${PPRINT_COLOR_BLD}$pprint_msg$PPRINT_COLOR_RST"













fi

printf "%s\n"

  printf "%s\n" "${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"




































































































      printf %s " "

      printf %s " "




  printf %s """libnss (--enable-nss)$PPRINT_COLOR_RST:                                         "
  printf "%s\n" "${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"


















































































      printf %s " "

      printf %s " "




  printf %s """libseccomp (--disable-seccomp)$PPRINT_COLOR_RST:                                "
  printf "%s\n" "${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"
















































































      printf %s " "

      printf %s " "




  printf %s """libscrypt (--disable-libscrypt)$PPRINT_COLOR_RST:                               "
  printf "%s\n" "${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"










































































      printf %s " "

      printf %s " "




  printf %s """Systemd support (--enable-systemd)$PPRINT_COLOR_RST:                            "
  printf "%s\n" "${PPRINT_COLOR_BLD}$pprint_msg$PPRINT_COLOR_RST"














test "x$have_lzma" = "xyes" && value=1 || value=0




  test $value -eq 0 && pprint_msg="$PPRINT_NO_MSG" || pprint_msg="$PPRINT_YES_MSG"
































































































      printf %s " "

      printf %s " "




  printf %s """liblzma (--enable-lzma)$PPRINT_COLOR_RST:                                       "
  printf "%s\n" "${PPRINT_COLOR_BLD}$pprint_msg$PPRINT_COLOR_RST"














test "x$have_zstd" = "xyes" && value=1 || value=0




  test $value -eq 0 && pprint_msg="$PPRINT_NO_MSG" || pprint_msg="$PPRINT_YES_MSG"
































































































      printf %s " "

      printf %s " "




  printf %s """libzstd (--enable-zstd)$PPRINT_COLOR_RST:                                       "
  printf "%s\n" "${PPRINT_COLOR_BLD}$pprint_msg$PPRINT_COLOR_RST"














printf "%s\n"

  printf "%s\n" "${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"






















































      printf %s " "

      printf %s " "




  printf %s """Compiler Hardening (--disable-gcc-hardening)$PPRINT_COLOR_RST:                  "
  printf "%s\n" "${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"




















































      printf %s " "

      printf %s " "




  printf %s """Linker Hardening (--disable-linker-hardening)$PPRINT_COLOR_RST:                 "
  printf "%s\n" "${PPRINT_COLOR_BLD}$pprint_msg$PPRINT_COLOR_RST"














test "x$fragile_hardening" = "xyes" && value=1 || value=0




  test $value -eq 0 && pprint_msg="$PPRINT_NO_MSG" || pprint_msg="$PPRINT_YES_MSG"






























      printf %s " "

      printf %s " "




  printf %s """Fragile Hardening (--enable-fragile-hardening, dev only)$PPRINT_COLOR_RST:      "
  printf "%s\n" "${PPRINT_COLOR_BLD}$pprint_msg$PPRINT_COLOR_RST"














printf "%s\n"

  printf "%s\n" "${PPRINT_COLOR_SUBTITLE}Modules$PPRINT_COLOR_RST"


# Modules have documentation hints indicating how they can be enabled
# or disabled, and those hints can select which version of our message
# to show based on variables at configure-time.
#
# Each "module_option_hints(<name>)" macro, if it exists, must
# visit exactly one HINT_* macro using shell conditionals.


    if test -z "$BUILD_MODULE_RELAY_TRUE"; then :
  value=1
else
  value=0
fi


    if test "x$value" = x1
then :




  test $value -eq 0 && pprint_msg="$PPRINT_NO_MSG" || pprint_msg="$PPRINT_YES_MSG"


















































































      printf %s " "

      printf %s " "




  printf %s """relay (--disable-module-relay)$PPRINT_COLOR_RST:                                "
  printf "%s\n" "${PPRINT_COLOR_BLD}$pprint_msg$PPRINT_COLOR_RST"













else case e in #(
  e)



  test $value -eq 0 && pprint_msg="$PPRINT_NO_MSG" || pprint_msg="$PPRINT_YES_MSG"




































































































































      printf %s " "

      printf %s " "




  printf %s """relay$PPRINT_COLOR_RST:                                                         "
  printf "%s\n" "${PPRINT_COLOR_BLD}$pprint_msg$PPRINT_COLOR_RST"












 ;;
esac
fi



    if test -z "$BUILD_MODULE_DIRAUTH_TRUE"; then :
  value=1
else
  value=0
fi


    if test "x$value" = x1
then :




  test $value -eq 0 && pprint_msg="$PPRINT_NO_MSG" || pprint_msg="$PPRINT_YES_MSG"










































































      printf %s " "

      printf %s " "




  printf %s """dirauth (--disable-module-dirauth)$PPRINT_COLOR_RST:                            "
  printf "%s\n" "${PPRINT_COLOR_BLD}$pprint_msg$PPRINT_COLOR_RST"













else case e in #(
  e)



  test $value -eq 0 && pprint_msg="$PPRINT_NO_MSG" || pprint_msg="$PPRINT_YES_MSG"
































































































































      printf %s " "

      printf %s " "




  printf %s """dirauth$PPRINT_COLOR_RST:                                                       "
  printf "%s\n" "${PPRINT_COLOR_BLD}$pprint_msg$PPRINT_COLOR_RST"












 ;;
esac
fi



    if test -z "$BUILD_MODULE_DIRCACHE_TRUE"; then :
  value=1
else
  value=0
fi






  test $value -eq 0 && pprint_msg="$PPRINT_NO_MSG" || pprint_msg="$PPRINT_YES_MSG"






























































































































      printf %s " "

      printf %s " "




  printf %s """dircache$PPRINT_COLOR_RST:                                                      "
  printf "%s\n" "${PPRINT_COLOR_BLD}$pprint_msg$PPRINT_COLOR_RST"
















    if test -z "$BUILD_MODULE_POW_TRUE"; then :
  value=1
else
  value=0
fi


    if test "x$value" = x1
then :




  test $value -eq 0 && pprint_msg="$PPRINT_NO_MSG" || pprint_msg="$PPRINT_YES_MSG"


























































































      printf %s " "

      printf %s " "




  printf %s """pow (--disable-module-pow)$PPRINT_COLOR_RST:                                    "
  printf "%s\n" "${PPRINT_COLOR_BLD}$pprint_msg$PPRINT_COLOR_RST"













else case e in #(
  e) if test "x$license_option" != "xGPL"
then :




  test $value -eq 0 && pprint_msg="$PPRINT_NO_MSG" || pprint_msg="$PPRINT_YES_MSG"
























































































      printf %s " "

      printf %s " "




  printf %s """pow (requires --enable-gpl)$PPRINT_COLOR_RST:                                   "
  printf "%s\n" "${PPRINT_COLOR_BLD}$pprint_msg$PPRINT_COLOR_RST"













else case e in #(
  e)



  test $value -eq 0 && pprint_msg="$PPRINT_NO_MSG" || pprint_msg="$PPRINT_YES_MSG"








































































































































      printf %s " "

      printf %s " "




  printf %s """pow$PPRINT_COLOR_RST:                                                           "
  printf "%s\n" "${PPRINT_COLOR_BLD}$pprint_msg$PPRINT_COLOR_RST"












 ;;
esac
fi ;;
esac
fi




printf "%s\n"

  printf "%s\n" "${PPRINT_COLOR_SUBTITLE}Documentation$PPRINT_COLOR_RST"


test "x$enable_asciidoc" != "xno" && value=1 || value=0




  test $value -eq 0 && pprint_msg="$PPRINT_NO_MSG" || pprint_msg="$PPRINT_YES_MSG"




















































































      printf %s " "

      printf %s " "




  printf %s """AsciiDoc (--disable-asciidoc)$PPRINT_COLOR_RST:                                 "
  printf "%s\n" "${PPRINT_COLOR_BLD}$pprint_msg$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"




















































































      printf %s " "

      printf %s " "




  printf %s """Man Pages (--disable-manpage)$PPRINT_COLOR_RST:                                 "
  printf "%s\n" "${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"








































































      printf %s " "

      printf %s " "




  printf %s """HTML Manual (--disable-html-manual)$PPRINT_COLOR_RST:                           "
  printf "%s\n" "${PPRINT_COLOR_BLD}$pprint_msg$PPRINT_COLOR_RST"














printf "%s\n"

  printf "%s\n" "${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"














































































      printf %s " "

      printf %s " "




  printf %s """Unit tests (--disable-unittests)$PPRINT_COLOR_RST:                              "
  printf "%s\n" "${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"
































      printf %s " "

      printf %s " "




  printf %s """assert()s enabled (--enable-asserts-in-tests, dev only)$PPRINT_COLOR_RST:       "
  printf "%s\n" "${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"












































































      printf %s " "

      printf %s " "




  printf %s """Code Coverage (--enable-coverage)$PPRINT_COLOR_RST:                             "
  printf "%s\n" "${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"


































































      printf %s " "

      printf %s " "




  printf %s """libFuzzer support (--enable-libfuzzer)$PPRINT_COLOR_RST:                        "
  printf "%s\n" "${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"






































































      printf %s " "

      printf %s " "




  printf %s """OSS-Fuzz support (--enable-oss-fuzz)$PPRINT_COLOR_RST:                          "
  printf "%s\n" "${PPRINT_COLOR_BLD}$pprint_msg$PPRINT_COLOR_RST"














printf "%s\n"

  printf "%s\n" "${PPRINT_COLOR_SUBTITLE}Tracing (--enable-tracing-instrumentation-<type>)$PPRINT_COLOR_RST"


test "x$enable_tracing_instrumentation_log_debug" = "xyes" && value=1 || value=0




  test $value -eq 0 && pprint_msg="$PPRINT_NO_MSG" || pprint_msg="$PPRINT_YES_MSG"


































































      printf %s " "

      printf %s " "




  printf %s """Tracepoints to log_debug() (log-debug)$PPRINT_COLOR_RST:                        "
  printf "%s\n" "${PPRINT_COLOR_BLD}$pprint_msg$PPRINT_COLOR_RST"














test "x$enable_tracing_instrumentation_usdt" = "xyes" && value=1 || value=0




  test $value -eq 0 && pprint_msg="$PPRINT_NO_MSG" || pprint_msg="$PPRINT_YES_MSG"
























































































      printf %s " "

      printf %s " "




  printf %s """USDT Instrumentation (usdt)$PPRINT_COLOR_RST:                                   "
  printf "%s\n" "${PPRINT_COLOR_BLD}$pprint_msg$PPRINT_COLOR_RST"














test "x$enable_tracing_instrumentation_lttng" = "xyes" && value=1 || value=0




  test $value -eq 0 && pprint_msg="$PPRINT_NO_MSG" || pprint_msg="$PPRINT_YES_MSG"




















































































      printf %s " "

      printf %s " "




  printf %s """LTTng Instrumentation (lttng)$PPRINT_COLOR_RST:                                 "
  printf "%s\n" "${PPRINT_COLOR_BLD}$pprint_msg$PPRINT_COLOR_RST"














printf "%s\n"

  printf "%s\n" "${PPRINT_COLOR_SUBTITLE}Install Directories$PPRINT_COLOR_RST"


report_mandir="`eval eval echo $mandir`"




























































































































      printf %s " "

      printf %s " "




  printf %s """Binaries$PPRINT_COLOR_RST:                                                      "
  printf "%s\n" "${PPRINT_COLOR_BLD}$BINDIR$PPRINT_COLOR_RST"


























































































































      printf %s " "

      printf %s " "




  printf %s """Configuration$PPRINT_COLOR_RST:                                                 "
  printf "%s\n" "${PPRINT_COLOR_BLD}$CONFDIR$PPRINT_COLOR_RST"


































































































































      printf %s " "

      printf %s " "




  printf %s """Man Pages$PPRINT_COLOR_RST:                                                     "
  printf "%s\n" "${PPRINT_COLOR_BLD}$report_mandir$PPRINT_COLOR_RST"









printf "%s\n"
printf "%s\n" "Configure Line: ./configure $configure_flags"

if test "$tor_ac_n_warnings" != "0"; then
  printf "%s\n"






      printf %s " "

      printf %s " "



  printf "%s\n" "${PPRINT_COLOR_TXTYLW}WARNING:$PPRINT_COLOR_RST ${PPRINT_COLOR_BLDYLW}
Encountered $tor_ac_n_warnings warning(s). See messages above for more info.
  $PPRINT_COLOR_RST"



fi

