#! /bin/sh
# Guess values for system-dependent variables and create Makefiles.
# Generated by GNU Autoconf 2.71.
#
#
# Copyright (C) 1992-1996, 1998-2017, 2020-2021 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
as_nop=:
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 $as_nop
  case `(set -o) 2>/dev/null` in #(
  *posix*) :
    set -o posix ;; #(
  *) :
     ;;
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="as_nop=:
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 \$as_nop
  case \`(set -o) 2>/dev/null\` in #(
  *posix*) :
    set -o posix ;; #(
  *) :
     ;;
esac
fi
"
  as_required="as_fn_return () { (exit \$1); }
as_fn_success () { as_fn_return 0; }
as_fn_failure () { as_fn_return 1; }
as_fn_ret_success () { return 0; }
as_fn_ret_failure () { return 1; }

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

else \$as_nop
  exitcode=1; echo positional parameters were not saved.
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 $as_nop
  as_have_required=no
fi
  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
then :

else $as_nop
  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 $as_nop
  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
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
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_nop
# ---------
# Do nothing but, unlike ":", preserve the value of $?.
as_fn_nop ()
{
  return $?
}
as_nop=as_fn_nop

# 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 $as_nop
  as_fn_append ()
  {
    eval $1=\$$1\$2
  }
fi # as_fn_append

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

# as_fn_nop
# ---------
# Do nothing but, unlike ":", preserve the value of $?.
as_fn_nop ()
{
  return $?
}
as_nop=as_fn_nop

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

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


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

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

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

# Identity of this package.
PACKAGE_NAME=''
PACKAGE_TARNAME=''
PACKAGE_VERSION=''
PACKAGE_STRING=''
PACKAGE_BUGREPORT=''
PACKAGE_URL=''

ac_unique_file="."
ac_unique_file="bar/bar.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=
ac_subst_vars='LTLIBOBJS
LIBOBJS
ac_ct_CXX
CXXFLAGS
ac_ct_CC
CPPFLAGS
LDFLAGS
CFLAGS
WINEPATH
KILLALL
SUDO
CERTTOOL
MD5SUM
GIT
SVNVERSION
SQLITE3
INSTALL_DATA
INSTALL_SCRIPT
INSTALL_PROGRAM
PKGCONFIG
M4
TCLSH
PERL
PATCH
MAKE
CMAKE
WINDRES
RANLIB
AR
CXX
BUILD_LD
BUILD_CC
HEAPVIEW_DIR
HAVE_USER_TEST
HAVE_SUDO_COMMAND_CHATTR_A
HAVE_SUDO_COMMAND_CHATTR_I
HAVE_SUDO_COMMAND_DIFF
HAVE_SUDO_COMMAND_CP
HAVE_SUDO_COMMAND_MKFS
HAVE_SUDO_COMMAND_DD
HAVE_SUDO_COMMAND_CHMOD
HAVE_SUDO_COMMAND_LOSETUP
HAVE_SUDO_COMMAND_MOUNT_UMOUNT
HAVE_SUDO_COMMAND_CHATTR
HAVE_SUDO_COMMAND_MKNOD_B
HAVE_SUDO_COMMAND_MKNOD_C
HAVE_SUDO_COMMANDS
ISCC
WINE_C_DRIVE
WINE
DOCKER
CREATEDB
PSQL
MYSQL
SOCAT
MKFS_XFS
MKFS_EXFAT
MKFS_MSDOS
MKFS_EXT4
MKFS_EXT3
MKFS_EXT2
SETFATTR
GETFATTR
TIME
ATTR
CONVERT
TXT2MAN
UNOCONV
KEYTOOL
OPENSSL
CERTOOL
GENHTML
LCOV
DUMP_SYMS
JRE_WINDOWS_DIR
LAUNCH4J_DIR
LAUNCH4JC
SWT_DIR
JAVA_PATH_SEPARATOR_CHAR
JAVAC_FLAGS
JAVA_FLAGS
JAVA_DATA_MODEL
MSGFMT
MSGMERGE
XGETTEXT
JAR
JAVAC
JAVA
STATIC_LIBRARIES
LIBRARIES
LIBRARY_PATHS
LD_FLAGS_VALGRIND
LD_FLAGS_GCOV
LD_FLAGS_DEBUG
LD_FLAGS_RELEASE
LD_FLAGS
CC_INCLUDES
CC_DEFINES_VALGRIND
CC_DEFINES_DEBUG
CC_DEFINES_RELEASE
CC_DEFINES
CC_FLAGS_OPTIMIZE_VALGRIND
CC_FLAGS_OPTIMIZE_DEBUG
CC_FLAGS_OPTIMIZE_RELEASE
CC_FLAGS_OPTIMIZE
CXX_WARN_FLAGS
CXX_FLAGS
CC_WARN_FLAGS
CC_FLAGS_VALGRIND
CC_FLAGS_GPROF
CC_FLAGS_GCOV
CC_FLAGS_DEBUG
CC_FLAGS_RELEASE
CC_FLAGS
OBJCOPY
OBJDUMP
STRIP
LD
CC
CPP
LOCALE_DIR
MAN_DIR
TLS_DIR
RUNTIME_DIR
CONFIG_DIR
INSTALL_BIN_DIR
INSTALL_DIR
HAVE_STATIC_ASSERT
HAVE_BFD
HAVE_PTHREADS_W32
HAVE_MOUNT
HAVE_BURN
HAVE_XFS
HAVE_RCU
HAVE_UUID
HAVE_ISOFS
HAVE_PAR2
HAVE_POSTGRESQL
HAVE_MARIADB
HAVE_PCRE
HAVE_SMB2
HAVE_ISO9660
HAVE_GNU_TLS
HAVE_SSH2
HAVE_SSL
HAVE_MXML
HAVE_CURL
HAVE_CARES
HAVE_FTP
HAVE_GCRYPT
HAVE_IDN2
HAVE_XDELTA3
HAVE_ZSTD
HAVE_LZ4
HAVE_LZO
HAVE_LZMA
HAVE_BZ2
HAVE_Z
HAVE_ICU
ENABLE_GUI_I18N
ENABLE_GUI
ENABLE_PCRE
ENABLE_SMBCLIENT
ENABLE_ISO9660
ENABLE_TLS
ENABLE_SSH
ENABLE_CURL
ENABLE_GCRYPT
ENABLE_XDELTA3
ENABLE_ZSTD
ENABLE_LZ4
ENABLE_LZO
ENABLE_LZMA
ENABLE_BZ2
ENABLE_DEBUG_THREAD_CRASH_HANDLERS
ENABLE_DEBUG
SHELLEXT
EXEEXT
OBJEXT
FILE_SEPARATOR_STRING
FILE_SEPARATOR_CHAR
CPU
PLATFORM
COPYRIGHT_DATE
VERSION_REVISION
VERSION_PATCH
VERSION_MINOR
VERSION_MAJOR
host_os
host_vendor
host_cpu
host
build_os
build_vendor
build_cpu
build
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'
ac_subst_files=''
ac_user_opts='
enable_option_checking
with_toolchain_prefix
with_config_dir
with_runtime_dir
with_tls_dir
with_swt_dir
with_launch4j_dir
with_heapview
enable_debug
enable_debug_thread_crash_handlers
enable_link_static
enable_link_dynamic
enable_all
enable_bz2
enable_lzma
enable_xz
enable_lzo
enable_lz4
enable_zstd
enable_xdelta3
enable_gcrypt
enable_curl
enable_ssh
enable_tls
enable_iso9660
enable_smbclient
enable_mariadb
enable_postgresql
enable_pcre
enable_par2
enable_isofs
enable_xfs
enable_burn
enable_mount
enable_bfd
enable_gui
enable_gui_i18n
enable_extern_compile
enable_extern_check
'
      ac_precious_vars='build_alias
host_alias
target_alias
CC
CFLAGS
LDFLAGS
LIBS
CPPFLAGS
CXX
CXXFLAGS
CCC
CPP'


# 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}'
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 this package 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/PACKAGE]
  --htmldir=DIR           html documentation [DOCDIR]
  --dvidir=DIR            dvi documentation [DOCDIR]
  --pdfdir=DIR            pdf documentation [DOCDIR]
  --psdir=DIR             ps documentation [DOCDIR]
_ACEOF

  cat <<\_ACEOF

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

  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-debug          enable debug functions
  --disable-debug-thread-crash-handlers
                          enable debug thread crash handlers
  --disable-link-static   disable static linkage (same as
                          --enable-link-dynamic)
  --enable-link-dynamic   enable dynamic linkage (same as
                          --disable-link-static)
  --disable-all           disable debug functions
  --disable-bz2           disable bzip2 support
  --disable-lzma          disable lzma/xz support
  --disable-xz            disable lzma/xz support
  --disable-lzo           disable lzo support
  --disable-lz4           disable lz4 support
  --disable-zstd          disable zstd support
  --disable-xdelta3       disable xdelta3 support
  --disable-gcrypt        disable gcrypt support
  --disable-curl          disable curl support
  --disable-ssh           disable SSH support
  --disable-tls           disable TLS support
  --disable-iso9660       disable ISO 9660 support
  --disable-smbclient     disable SMB client support
  --disable-mariadb       disable MariaDB support
  --disable-postgresql    disable PostgreSQL support
  --disable-pcre          disable PCRE support
  --disable-par2          disable PAR2 support
  --disable-isofs         disable ISO file system support
  --disable-xfs           disable XFS file system support
  --disable-burn          disable burn support
  --disable-mount         disable mount support
  --disable-bfd           disable BFD support
  --disable-gui           disable GUI support (barcontrol)
  --disable-gui-i18n      disable GUI localization support (barcontrol)
  --disable-extern-compile
                          disable compilation of external software
  --enable-extern-check   enable check extern software

Optional Packages:
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
  --with-toolchain-prefix=<prefix>
                          toolchain prefix
  --with-config-dir=<path>
                          configuration directory (default: /etc)
  --with-runtime-dir=<path>
                          runtime directory (default: /var/lib)
  --with-tls-dir=<path>   TLS/SLL configuration and certificate directory
                          (default: /etc/ssl)
  --with-swt-dir=<path>   SWT directory
  --with-launch4j-dir=<path>
                          launch4j directory
  --with-heapview=<path>  heapview directory

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>
  CXX         C++ compiler command
  CXXFLAGS    C++ compiler flags
  CPP         C preprocessor

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
configure
generated by GNU Autoconf 2.71

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

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

} # ac_fn_c_try_compile

# ac_fn_cxx_try_compile LINENO
# ----------------------------
# Try to compile conftest.$ac_ext, and return whether this succeeded.
ac_fn_cxx_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_cxx_werror_flag" ||
	 test ! -s conftest.err
       } && test -s conftest.$ac_objext
then :
  ac_retval=0
else $as_nop
  printf "%s\n" "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

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

} # ac_fn_cxx_try_compile

# ac_fn_c_try_link LINENO
# -----------------------
# Try to link conftest.$ac_ext, and return whether this succeeded.
ac_fn_c_try_link ()
{
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  rm -f conftest.$ac_objext conftest.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 $as_nop
  printf "%s\n" "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

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

} # ac_fn_c_try_link

# ac_fn_c_check_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 $as_nop
  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 $as_nop
  eval "$3=yes"
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
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_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 $as_nop
  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 $as_nop
  eval "$3=no"
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
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_cxx_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_cxx_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 $as_nop
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
$4
#include <$2>
_ACEOF
if ac_fn_cxx_try_compile "$LINENO"
then :
  eval "$3=yes"
else $as_nop
  eval "$3=no"
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
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_cxx_check_header_compile

# 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 $as_nop
  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
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 $as_nop
  as_fn_arith $ac_mid + 1 && ac_lo=$as_val
			if test $ac_lo -le $ac_mid; then
			  ac_lo= ac_hi=
			  break
			fi
			as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  done
else $as_nop
  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 $as_nop
  as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
			if test $ac_mid -le $ac_hi; then
			  ac_lo= ac_hi=
			  break
			fi
			as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  done
else $as_nop
  ac_lo= ac_hi=
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
# 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 $as_nop
  as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
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 $as_nop
  ac_retval=1
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
rm -f conftest.val

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

} # ac_fn_c_compute_int

# ac_fn_c_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 $as_nop
  printf "%s\n" "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

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

} # ac_fn_c_try_cpp
ac_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 $as_me, which was
generated by GNU Autoconf 2.71.  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

# 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 (p, i)
     char **p;
     int i;
{
  return p[i];
}
static char *f (char * (*g) (char **, int), char **p, ...)
{
  char *s;
  va_list v;
  va_start (v,p);
  s = g (p, va_arg (v,int));
  va_end (v);
  return s;
}

/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
   function prototypes and stuff, but not \xHH hex character constants.
   These 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

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

// 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)
{
  // See if C++-style comments work.
  // Iterate through items via the restricted pointer.
  // Also check for declarations in for loops.
  for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
    continue;
  return 0;
}

// Check varargs and va_copy.
static 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;

  // 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;
}
"

# Test code for whether the C++ compiler supports C++98 (global declarations)
ac_cxx_conftest_cxx98_globals='
// Does the compiler advertise C++98 conformance?
#if !defined __cplusplus || __cplusplus < 199711L
# error "Compiler does not advertise C++98 conformance"
#endif

// These inclusions are to reject old compilers that
// lack the unsuffixed header files.
#include <cstdlib>
#include <exception>

// <cassert> and <cstring> are *not* freestanding headers in C++98.
extern void assert (int);
namespace std {
  extern int strcmp (const char *, const char *);
}

// Namespaces, exceptions, and templates were all added after "C++ 2.0".
using std::exception;
using std::strcmp;

namespace {

void test_exception_syntax()
{
  try {
    throw "test";
  } catch (const char *s) {
    // Extra parentheses suppress a warning when building autoconf itself,
    // due to lint rules shared with more typical C programs.
    assert (!(strcmp) (s, "test"));
  }
}

template <typename T> struct test_template
{
  T const val;
  explicit test_template(T t) : val(t) {}
  template <typename U> T add(U u) { return static_cast<T>(u) + val; }
};

} // anonymous namespace
'

# Test code for whether the C++ compiler supports C++98 (body of main)
ac_cxx_conftest_cxx98_main='
  assert (argc);
  assert (! argv[0]);
{
  test_exception_syntax ();
  test_template<double> tt (2.0);
  assert (tt.add (4) == 6.0);
  assert (true && !false);
}
'

# Test code for whether the C++ compiler supports C++11 (global declarations)
ac_cxx_conftest_cxx11_globals='
// Does the compiler advertise C++ 2011 conformance?
#if !defined __cplusplus || __cplusplus < 201103L
# error "Compiler does not advertise C++11 conformance"
#endif

namespace cxx11test
{
  constexpr int get_val() { return 20; }

  struct testinit
  {
    int i;
    double d;
  };

  class delegate
  {
  public:
    delegate(int n) : n(n) {}
    delegate(): delegate(2354) {}

    virtual int getval() { return this->n; };
  protected:
    int n;
  };

  class overridden : public delegate
  {
  public:
    overridden(int n): delegate(n) {}
    virtual int getval() override final { return this->n * 2; }
  };

  class nocopy
  {
  public:
    nocopy(int i): i(i) {}
    nocopy() = default;
    nocopy(const nocopy&) = delete;
    nocopy & operator=(const nocopy&) = delete;
  private:
    int i;
  };

  // for testing lambda expressions
  template <typename Ret, typename Fn> Ret eval(Fn f, Ret v)
  {
    return f(v);
  }

  // for testing variadic templates and trailing return types
  template <typename V> auto sum(V first) -> V
  {
    return first;
  }
  template <typename V, typename... Args> auto sum(V first, Args... rest) -> V
  {
    return first + sum(rest...);
  }
}
'

# Test code for whether the C++ compiler supports C++11 (body of main)
ac_cxx_conftest_cxx11_main='
{
  // Test auto and decltype
  auto a1 = 6538;
  auto a2 = 48573953.4;
  auto a3 = "String literal";

  int total = 0;
  for (auto i = a3; *i; ++i) { total += *i; }

  decltype(a2) a4 = 34895.034;
}
{
  // Test constexpr
  short sa[cxx11test::get_val()] = { 0 };
}
{
  // Test initializer lists
  cxx11test::testinit il = { 4323, 435234.23544 };
}
{
  // Test range-based for
  int array[] = {9, 7, 13, 15, 4, 18, 12, 10, 5, 3,
                 14, 19, 17, 8, 6, 20, 16, 2, 11, 1};
  for (auto &x : array) { x += 23; }
}
{
  // Test lambda expressions
  using cxx11test::eval;
  assert (eval ([](int x) { return x*2; }, 21) == 42);
  double d = 2.0;
  assert (eval ([&](double x) { return d += x; }, 3.0) == 5.0);
  assert (d == 5.0);
  assert (eval ([=](double x) mutable { return d += x; }, 4.0) == 9.0);
  assert (d == 5.0);
}
{
  // Test use of variadic templates
  using cxx11test::sum;
  auto a = sum(1);
  auto b = sum(1, 2);
  auto c = sum(1.0, 2.0, 3.0);
}
{
  // Test constructor delegation
  cxx11test::delegate d1;
  cxx11test::delegate d2();
  cxx11test::delegate d3(45);
}
{
  // Test override and final
  cxx11test::overridden o1(55464);
}
{
  // Test nullptr
  char *c = nullptr;
}
{
  // Test template brackets
  test_template<::test_template<int>> v(test_template<int>(12));
}
{
  // Unicode literals
  char const *utf8 = u8"UTF-8 string \u2500";
  char16_t const *utf16 = u"UTF-8 string \u2500";
  char32_t const *utf32 = U"UTF-32 string \u2500";
}
'

# Test code for whether the C compiler supports C++11 (complete).
ac_cxx_conftest_cxx11_program="${ac_cxx_conftest_cxx98_globals}
${ac_cxx_conftest_cxx11_globals}

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

# Test code for whether the C compiler supports C++98 (complete).
ac_cxx_conftest_cxx98_program="${ac_cxx_conftest_cxx98_globals}
int
main (int argc, char **argv)
{
  int ok = 0;
  ${ac_cxx_conftest_cxx98_main}
  return ok;
}
"

as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
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"

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

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

# 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 $as_nop
  as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
fi


# These three variables are undocumented and unsupported,
# and are intended to be withdrawn in a future Autoconf release.
# They can cause serious problems if a builder's source tree is in a directory
# whose full name contains unusual characters.
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











  # 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 $as_nop
  ac_build_alias=$build_alias
test "x$ac_build_alias" = x &&
  ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
test "x$ac_build_alias" = x &&
  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
  as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5

fi
{ 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 $as_nop
  if test "x$host_alias" = x; then
  ac_cv_host=$ac_cv_build
else
  ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
    as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
fi

fi
{ 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











                 #AC_SUBST(HAVE_USLEEP)                        dnl "1" if usleep() is avaiulable, "" otherwise









                                                      # TODO: remove











HAVE_SUDO_COMMANDS=1
               HAVE_SUDO_COMMAND_MKNOD_C=1
        HAVE_SUDO_COMMAND_MKNOD_B=1
        HAVE_SUDO_COMMAND_CHATTR=1
         HAVE_SUDO_COMMAND_MOUNT_UMOUNT=1
   HAVE_SUDO_COMMAND_LOSETUP=1
        HAVE_SUDO_COMMAND_CHMOD=1
          HAVE_SUDO_COMMAND_DD=1
             HAVE_SUDO_COMMAND_MKFS=1
           HAVE_SUDO_COMMAND_CP=1
             HAVE_SUDO_COMMAND_DIFF=1

HAVE_SUDO_COMMAND_CHATTR_I=1
       HAVE_SUDO_COMMAND_CHATTR_A=1

HAVE_USER_TEST=1



CPP_FLAGS="$CPPFLAGS"
CC_FLAGS="$CFLAGS"
CC_WARN_FLAGS=""
CXX_FLAGS="$CXXFLAGS"
CXX_WARN_FLAGS=""
CC_FLAGS_OPTIMIZE=""
CC_FLAGS_OPTIMIZE_RELEASE=""
CC_FLAGS_OPTIMIZE_DEBUG=""
CC_FLAGS_OPTIMIZE_VALGRIND=""
CC_DEFINES="_GNU_SOURCE"
CC_DEFINES_RELEASE=""
CC_DEFINES_DEBUG=""
CC_DEFINES_VALGRIND=""
CC_INCLUDES=""

LD_FLAGS="$LDFLAGS"
LIBRARY_PATHS=""
LIBRARIES=""
STATIC_LIBRARIES=""

ENABLE_DEBUG="no"
ENABLE_DEBUG_THREAD_CRASH_HANDLERS="yes"
ENABLE_LINK_DYNAMIC="no"
ENABLE_BZ2="yes"
ENABLE_LZMA="yes"
ENABLE_LZO="yes"
ENABLE_LZ4="yes"
ENABLE_ZSTD="yes"
ENABLE_XDELTA3="yes"
ENABLE_GCRYPT="yes"
ENABLE_CURL="yes"
ENABLE_SSH="yes"
ENABLE_TLS="yes"
ENABLE_ISO9660="yes"
ENABLE_SMBCLIENT="yes"
ENABLE_PCRE="yes"
ENABLE_MARIADB="yes"
ENABLE_POSTGRESQL="yes"
ENABLE_PTHREADS_W32="yes"
ENABLE_PAR2="yes"
ENABLE_ISOFS="yes"
ENABLE_XFS="yes"
ENABLE_BURN="yes"
ENABLE_MOUNT="yes"
ENABLE_BFD="yes"
ENABLE_GUI="yes"
ENABLE_GUI_I18N="yes"
ENABLE_EXTERN_COMPILE="yes"

# temporary file
tmpFile=`mktemp configure-XXXXXX`


# get absolute source directory path (Note: do not use realpath; may be not available on some platforms)
SOURCE_DIR=`(cd $srcdir; pwd)`

# get platform specific settings
case $host_os in
  linux-*)
    PLATFORM=LINUX
    SYSTEM_NAME=Linux
    CPU=$host_cpu
    FILE_SEPARATOR_CHAR="/"
    JAVA_PATH_SEPARATOR=":"
    SHELLEXT=""
    nproc 1>/dev/null 2>&1
    if test $? -eq 0; then
      CPU_CORES=`nproc`
    else
      CPU_CORES=1
    fi
    ;;
  sunos | solaris*)
    PLATFORM=SOLARIS
    SYSTEM_NAME=Solaris
    CPU=$host_cpu
    FILE_SEPARATOR_CHAR="/"
    JAVA_PATH_SEPARATOR=":"
    SHELLEXT=""
    CPU_CORES=1
    ;;
  darwin*)
    PLATFORM=MAC_OSX
    SYSTEM_NAME=MacOSX
    CPU=$host_cpu
    FILE_SEPARATOR_CHAR="/"
    JAVA_PATH_SEPARATOR=":"
    SHELLEXT=""
    CPU_CORES=1
    ;;
  windows*|mingw*)
    PLATFORM=WINDOWS
    SYSTEM_NAME=Windows
    CPU=$host_cpu
    FILE_SEPARATOR_CHAR="\\\\"
    JAVA_PATH_SEPARATOR=";"
    SHELLEXT=".cmd"
    nproc 1>/dev/null 2>&1
    if test $? -eq 0; then
      CPU_CORES=`nproc`
    else
      CPU_CORES=1
    fi
    ;;
  *)
    as_fn_error $? "unknown host operation system '$host_os'. Please specify host as (cpu-vendor-os or cpu-os). Supported host operating systems: $host_supported_os" "$LINENO" 5
    ;;
esac



#TODO: remove

# Check whether --with-toolchain-prefix was given.
if test ${with_toolchain_prefix+y}
then :
  withval=$with_toolchain_prefix; TOOLCHAIN_PREFIX=$withval

fi


# Check whether --with-config-dir was given.
if test ${with_config_dir+y}
then :
  withval=$with_config_dir; CONFIG_DIR=$withval
else $as_nop
  CONFIG_DIR=/etc

fi


# Check whether --with-runtime-dir was given.
if test ${with_runtime_dir+y}
then :
  withval=$with_runtime_dir; RUNTIME_DIR=$withval
else $as_nop
  RUNTIME_DIR=/var/lib

fi


# Check whether --with-tls-dir was given.
if test ${with_tls_dir+y}
then :
  withval=$with_tls_dir; TLS_DIR=$withval
else $as_nop
  TLS_DIR=/etc/ssl

fi


# Check whether --with-swt-dir was given.
if test ${with_swt_dir+y}
then :
  withval=$with_swt_dir; SWT_DIR=$withval

fi


# Check whether --with-launch4j-dir was given.
if test ${with_launch4j_dir+y}
then :
  withval=$with_launch4j_dir; LAUNCH4J_DIR=$withval

fi



# Check whether --with-heapview was given.
if test ${with_heapview+y}
then :
  withval=$with_heapview; HEAPVIEW_DIR=$withval

fi



# Check whether --enable-debug was given.
if test ${enable_debug+y}
then :
  enableval=$enable_debug; ENABLE_DEBUG=$enableval

fi

# Check whether --enable-debug-thread-crash-handlers was given.
if test ${enable_debug_thread_crash_handlers+y}
then :
  enableval=$enable_debug_thread_crash_handlers; if test "$enableval" = "no"; then ENABLE_DEBUG_THREAD_CRASH_HANDLERS=no; fi

fi

# Check whether --enable-link-static was given.
if test ${enable_link_static+y}
then :
  enableval=$enable_link_static; if test "$enableval" = "no"; then ENABLE_LINK_DYNAMIC=yes; fi

fi

# Check whether --enable-link-dynamic was given.
if test ${enable_link_dynamic+y}
then :
  enableval=$enable_link_dynamic; ENABLE_LINK_DYNAMIC=$enableval

fi

# Check whether --enable-all was given.
if test ${enable_all+y}
then :
  enableval=$enable_all; ENABLE_BZ2=$enableval
   ENABLE_LZMA=$enableval
   ENABLE_LZO=$enableval
   ENABLE_LZ4=$enableval
   ENABLE_ZSTD=$enableval
   ENABLE_XDELTA3=$enableval
   ENABLE_GCRYPT=$enableval
   ENABLE_CURL=$enableval
   ENABLE_SSH=$enableval
   ENABLE_TLS=$enableval
   ENABLE_ISO9660=$enableval
   ENABLE_SMBCLIENT=$enableval
   ENABLE_MARIADB=$enableval
   ENABLE_POSTGRESQL=$enableval
   ENABLE_PCRE=$enableval
   ENABLE_PAR2=$enableval
   ENABLE_ISOFS=$enableval
   ENABLE_XFS=$enableval
   ENABLE_BURN=$enableval
   ENABLE_MOUNT=$enableval
   ENABLE_GUI=$enableval
   ENABLE_GUI_I18N=$enableval


fi

# Check whether --enable-bz2 was given.
if test ${enable_bz2+y}
then :
  enableval=$enable_bz2; ENABLE_BZ2=$enableval

fi

# Check whether --enable-lzma was given.
if test ${enable_lzma+y}
then :
  enableval=$enable_lzma; ENABLE_LZMA=$enableval

fi

# Check whether --enable-xz was given.
if test ${enable_xz+y}
then :
  enableval=$enable_xz; ENABLE_LZMA=$enableval

fi

# Check whether --enable-lzo was given.
if test ${enable_lzo+y}
then :
  enableval=$enable_lzo; ENABLE_LZO=$enableval

fi

# Check whether --enable-lz4 was given.
if test ${enable_lz4+y}
then :
  enableval=$enable_lz4; ENABLE_LZ4=$enableval

fi

# Check whether --enable-zstd was given.
if test ${enable_zstd+y}
then :
  enableval=$enable_zstd; ENABLE_ZSTD=$enableval

fi

# Check whether --enable-xdelta3 was given.
if test ${enable_xdelta3+y}
then :
  enableval=$enable_xdelta3; ENABLE_XDELTA3=$enableval

fi

# Check whether --enable-gcrypt was given.
if test ${enable_gcrypt+y}
then :
  enableval=$enable_gcrypt; ENABLE_GCRYPT=$enableval

fi

# Check whether --enable-curl was given.
if test ${enable_curl+y}
then :
  enableval=$enable_curl; ENABLE_CURL=$enableval

fi

# Check whether --enable-ssh was given.
if test ${enable_ssh+y}
then :
  enableval=$enable_ssh; ENABLE_SSH=$enableval

fi

# Check whether --enable-tls was given.
if test ${enable_tls+y}
then :
  enableval=$enable_tls; ENABLE_TLS=$enableval

fi

# Check whether --enable-iso9660 was given.
if test ${enable_iso9660+y}
then :
  enableval=$enable_iso9660; ENABLE_ISO9660=$enableval

fi

# Check whether --enable-smbclient was given.
if test ${enable_smbclient+y}
then :
  enableval=$enable_smbclient; ENABLE_SMBCLIENT=$enableval

fi

# Check whether --enable-mariadb was given.
if test ${enable_mariadb+y}
then :
  enableval=$enable_mariadb; ENABLE_MARIADB=$enableval

fi

# Check whether --enable-postgresql was given.
if test ${enable_postgresql+y}
then :
  enableval=$enable_postgresql; ENABLE_POSTGRESQL=$enableval

fi

# Check whether --enable-pcre was given.
if test ${enable_pcre+y}
then :
  enableval=$enable_pcre; ENABLE_PCRE=$enableval

fi

# Check whether --enable-par2 was given.
if test ${enable_par2+y}
then :
  enableval=$enable_par2; ENABLE_PAR2=$enableval

fi

# Check whether --enable-isofs was given.
if test ${enable_isofs+y}
then :
  enableval=$enable_isofs; ENABLE_ISOFS=$enableval

fi

# Check whether --enable-xfs was given.
if test ${enable_xfs+y}
then :
  enableval=$enable_xfs; ENABLE_XFS=$enableval

fi

# Check whether --enable-burn was given.
if test ${enable_burn+y}
then :
  enableval=$enable_burn; ENABLE_BURN=$enableval

fi

# Check whether --enable-mount was given.
if test ${enable_mount+y}
then :
  enableval=$enable_mount; ENABLE_MOUNT=$enableval

fi

# Check whether --enable-bfd was given.
if test ${enable_bfd+y}
then :
  enableval=$enable_bfd; ENABLE_BFD=$enableval

fi

# Check whether --enable-gui was given.
if test ${enable_gui+y}
then :
  enableval=$enable_gui; ENABLE_GUI=$enableval

fi

# Check whether --enable-gui-i18n was given.
if test ${enable_gui_i18n+y}
then :
  enableval=$enable_gui_i18n; ENABLE_GUI_I18N=$enableval

fi

# Check whether --enable-extern-compile was given.
if test ${enable_extern_compile+y}
then :
  enableval=$enable_extern_compile; ENABLE_EXTERN_COMPILE=$enableval

fi


# check dependencies of enabled packages
if test $ENABLE_TLS = "yes" -a ! $ENABLE_GCRYPT = "yes"; then
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: gcrypt not enabled, disabled TLS." >&5
printf "%s\n" "$as_me: WARNING: gcrypt not enabled, disabled TLS." >&2;}
  ENABLE_TLS=no
fi
if test $ENABLE_CURL = "yes" -a ! $ENABLE_GCRYPT = "yes"; then
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: gcrypt not enabled, disabled curl support." >&5
printf "%s\n" "$as_me: WARNING: gcrypt not enabled, disabled curl support." >&2;}
  ENABLE_CURL=no
fi
if test $ENABLE_CURL = "yes" -a ! $ENABLE_SSH = "yes"; then
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ssh not enabled, disabled curl support." >&5
printf "%s\n" "$as_me: WARNING: ssh not enabled, disabled curl support." >&2;}
  ENABLE_CURL=no
fi
if test $ENABLE_CURL = "yes" -a ! $ENABLE_TLS = "yes"; then
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: TLS not enabled, disabled curl support." >&5
printf "%s\n" "$as_me: WARNING: TLS not enabled, disabled curl support." >&2;}
  ENABLE_CURL=no
fi


if test -z "$BUILD_CC"; then
  for ac_prog in $build-gcc $build-cc gcc cc
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_BUILD_CC+y}
then :
  printf %s "(cached) " >&6
else $as_nop
  case $BUILD_CC in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_BUILD_CC="$BUILD_CC" # 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_BUILD_CC="$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
fi
BUILD_CC=$ac_cv_path_BUILD_CC
if test -n "$BUILD_CC"; then
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5
printf "%s\n" "$BUILD_CC" >&6; }
else
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
fi


  test -n "$BUILD_CC" && break
done

fi
if test -z "$BUILD_LD"; then
  for ac_prog in $build-ld $build-ld ld gcc
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_BUILD_LD+y}
then :
  printf %s "(cached) " >&6
else $as_nop
  case $BUILD_LD in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_BUILD_LD="$BUILD_LD" # 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_BUILD_LD="$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
fi
BUILD_LD=$ac_cv_path_BUILD_LD
if test -n "$BUILD_LD"; then
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $BUILD_LD" >&5
printf "%s\n" "$BUILD_LD" >&6; }
else
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
fi


  test -n "$BUILD_LD" && break
done

fi

if test -z "$CPP"; then
  for ac_prog in $host-cpp cpp
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_CPP+y}
then :
  printf %s "(cached) " >&6
else $as_nop
  case $CPP in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_CPP="$CPP" # 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_CPP="$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
fi
CPP=$ac_cv_path_CPP
if test -n "$CPP"; then
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
printf "%s\n" "$CPP" >&6; }
else
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
fi


  test -n "$CPP" && break
done

fi
if test -z "$CPP"; then
  as_fn_error $? "Cannot find C preprocessor in PATH. Please check your PATH environment variable." "$LINENO" 5
fi
if test -z "$CC"; then
  for ac_prog in $host-gcc $host-cc gcc cc
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_CC+y}
then :
  printf %s "(cached) " >&6
else $as_nop
  case $CC in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_CC="$CC" # 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_CC="$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
fi
CC=$ac_cv_path_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
  as_fn_error $? "Cannot find C compiler in PATH. Please check your PATH environment variable." "$LINENO" 5
fi
if test -z "$CXX"; then
  for ac_prog in $host-g++ $host-c++ g++ c++
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_CXX+y}
then :
  printf %s "(cached) " >&6
else $as_nop
  case $CXX in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_CXX="$CXX" # 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_CXX="$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
fi
CXX=$ac_cv_path_CXX
if test -n "$CXX"; then
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
printf "%s\n" "$CXX" >&6; }
else
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
fi


  test -n "$CXX" && break
done

fi
if test -z "$CXX"; then
  as_fn_error $? "Cannot find C++ compiler in PATH. Please check your PATH environment variable." "$LINENO" 5
fi
if test -z "$LD"; then
  for ac_prog in $host-ld $host-gcc ld gcc
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_LD+y}
then :
  printf %s "(cached) " >&6
else $as_nop
  case $LD in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_LD="$LD" # 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_LD="$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
fi
LD=$ac_cv_path_LD
if test -n "$LD"; then
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
printf "%s\n" "$LD" >&6; }
else
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
fi


  test -n "$LD" && break
done

fi
if test -z "$AR"; then
  for ac_prog in $host-ar ar
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_AR+y}
then :
  printf %s "(cached) " >&6
else $as_nop
  case $AR in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_AR="$AR" # 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_AR="$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
fi
AR=$ac_cv_path_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 "$STRIP"; then
  for ac_prog in $host-strip strip
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_STRIP+y}
then :
  printf %s "(cached) " >&6
else $as_nop
  case $STRIP in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_STRIP="$STRIP" # 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_STRIP="$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
fi
STRIP=$ac_cv_path_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


  test -n "$STRIP" && break
done

fi
if test -z "$OBJDUMP"; then
  for ac_prog in $host-objdump objdump
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_OBJDUMP+y}
then :
  printf %s "(cached) " >&6
else $as_nop
  case $OBJDUMP in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_OBJDUMP="$OBJDUMP" # 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_OBJDUMP="$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
fi
OBJDUMP=$ac_cv_path_OBJDUMP
if test -n "$OBJDUMP"; then
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
printf "%s\n" "$OBJDUMP" >&6; }
else
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
fi


  test -n "$OBJDUMP" && break
done

fi
if test -z "$OBJCOPY"; then
  for ac_prog in $host-objcopy objcopy
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_OBJCOPY+y}
then :
  printf %s "(cached) " >&6
else $as_nop
  case $OBJCOPY in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_OBJCOPY="$OBJCOPY" # 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_OBJCOPY="$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
fi
OBJCOPY=$ac_cv_path_OBJCOPY
if test -n "$OBJCOPY"; then
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
printf "%s\n" "$OBJCOPY" >&6; }
else
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
fi


  test -n "$OBJCOPY" && break
done

fi
if test -z "$RANLIB"; then
  for ac_prog in $host-ranlib ranlib
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_RANLIB+y}
then :
  printf %s "(cached) " >&6
else $as_nop
  case $RANLIB in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_RANLIB="$RANLIB" # 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_RANLIB="$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
fi
RANLIB=$ac_cv_path_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


  test -n "$RANLIB" && break
done

fi
if test -z "$WINDRES"; then
  for ac_prog in $host-windres windres
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_WINDRES+y}
then :
  printf %s "(cached) " >&6
else $as_nop
  case $WINDRES in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_WINDRES="$WINDRES" # 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_WINDRES="$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
fi
WINDRES=$ac_cv_path_WINDRES
if test -n "$WINDRES"; then
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
printf "%s\n" "$WINDRES" >&6; }
else
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
fi


  test -n "$WINDRES" && break
done

fi

for ac_prog in cmake
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_CMAKE+y}
then :
  printf %s "(cached) " >&6
else $as_nop
  case $CMAKE in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_CMAKE="$CMAKE" # 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_CMAKE="$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
fi
CMAKE=$ac_cv_path_CMAKE
if test -n "$CMAKE"; then
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CMAKE" >&5
printf "%s\n" "$CMAKE" >&6; }
else
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
fi


  test -n "$CMAKE" && break
done

if test -z "$CMAKE"; then
  as_fn_error $? "Cannot find a 'cmake' in PATH. Please check your PATH environment variable." "$LINENO" 5
fi
for ac_prog in make
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_MAKE+y}
then :
  printf %s "(cached) " >&6
else $as_nop
  case $MAKE in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_MAKE="$MAKE" # 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_MAKE="$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
fi
MAKE=$ac_cv_path_MAKE
if test -n "$MAKE"; then
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5
printf "%s\n" "$MAKE" >&6; }
else
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
fi


  test -n "$MAKE" && break
done

if test -z "$MAKE"; then
  as_fn_error $? "Cannot find a 'make' in PATH. Please check your PATH environment variable." "$LINENO" 5
fi
if test -z "`$MAKE --version 2>/dev/null|grep GNU 2>/dev/null`"; then
  as_fn_error $? "$MAKE is not a GNU make. Please install a GNU make." "$LINENO" 5
fi
for ac_prog in patch
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_PATCH+y}
then :
  printf %s "(cached) " >&6
else $as_nop
  case $PATCH in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_PATCH="$PATCH" # 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_PATCH="$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
fi
PATCH=$ac_cv_path_PATCH
if test -n "$PATCH"; then
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PATCH" >&5
printf "%s\n" "$PATCH" >&6; }
else
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
fi


  test -n "$PATCH" && break
done

if test -z "$PATCH"; then
  as_fn_error $? "Cannot find a 'patch' in PATH. Please check your PATH environment variable." "$LINENO" 5
fi

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_path_PERL+y}
then :
  printf %s "(cached) " >&6
else $as_nop
  case $PERL in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_PERL="$PERL" # 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_PERL="$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
fi
PERL=$ac_cv_path_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 -z "$PERL"; then
  as_fn_error $? "Cannot find a 'perl' in PATH. Please check your PATH environment variable." "$LINENO" 5
fi

# required for building sqlite3.c
for ac_prog in tclsh
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_TCLSH+y}
then :
  printf %s "(cached) " >&6
else $as_nop
  case $TCLSH in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_TCLSH="$TCLSH" # 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_TCLSH="$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
fi
TCLSH=$ac_cv_path_TCLSH
if test -n "$TCLSH"; then
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $TCLSH" >&5
printf "%s\n" "$TCLSH" >&6; }
else
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
fi


  test -n "$TCLSH" && break
done

if test -z "$TCLSH"; then
  as_fn_error $? "Cannot find a 'tclsh' in PATH. Please check your PATH environment variable." "$LINENO" 5
fi

for ac_prog in m4
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_M4+y}
then :
  printf %s "(cached) " >&6
else $as_nop
  case $M4 in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_M4="$M4" # 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_M4="$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
fi
M4=$ac_cv_path_M4
if test -n "$M4"; then
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $M4" >&5
printf "%s\n" "$M4" >&6; }
else
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
fi


  test -n "$M4" && break
done

if test -z "$M4"; then
  as_fn_error $? "Cannot find a 'm4' in PATH. Please check your PATH environment variable." "$LINENO" 5
fi

for ac_prog in pkg-config
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_PKGCONFIG+y}
then :
  printf %s "(cached) " >&6
else $as_nop
  case $PKGCONFIG in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_PKGCONFIG="$PKGCONFIG" # 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_PKGCONFIG="$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
fi
PKGCONFIG=$ac_cv_path_PKGCONFIG
if test -n "$PKGCONFIG"; then
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
printf "%s\n" "$PKGCONFIG" >&6; }
else
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
fi


  test -n "$PKGCONFIG" && break
done

if test -z "$PKGCONFIG"; then
  as_fn_error $? "Cannot find a 'pkg-config' in PATH. Please check your PATH environment variable." "$LINENO" 5
fi

for ac_prog in xgettext
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_XGETTEXT+y}
then :
  printf %s "(cached) " >&6
else $as_nop
  case $XGETTEXT in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_XGETTEXT="$XGETTEXT" # 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_XGETTEXT="$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
fi
XGETTEXT=$ac_cv_path_XGETTEXT
if test -n "$XGETTEXT"; then
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
printf "%s\n" "$XGETTEXT" >&6; }
else
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
fi


  test -n "$XGETTEXT" && break
done

if test -z "$XGETTEXT"; then
  as_fn_error $? "Cannot find a 'xgettext' in PATH. Please check your PATH environment variable." "$LINENO" 5
fi
for ac_prog in msgmerge
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_MSGMERGE+y}
then :
  printf %s "(cached) " >&6
else $as_nop
  case $MSGMERGE in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_MSGMERGE="$MSGMERGE" # 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_MSGMERGE="$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
fi
MSGMERGE=$ac_cv_path_MSGMERGE
if test -n "$MSGMERGE"; then
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
printf "%s\n" "$MSGMERGE" >&6; }
else
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
fi


  test -n "$MSGMERGE" && break
done

if test -z "$MSGMERGE"; then
  as_fn_error $? "Cannot find a 'msgmerge' in PATH. Please check your PATH environment variable." "$LINENO" 5
fi
for ac_prog in msgfmt
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_MSGFMT+y}
then :
  printf %s "(cached) " >&6
else $as_nop
  case $MSGFMT in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_MSGFMT="$MSGFMT" # 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_MSGFMT="$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
fi
MSGFMT=$ac_cv_path_MSGFMT
if test -n "$MSGFMT"; then
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
printf "%s\n" "$MSGFMT" >&6; }
else
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
fi


  test -n "$MSGFMT" && break
done

if test -z "$MSGFMT"; then
  as_fn_error $? "Cannot find a 'msgfmt' in PATH. Please check your PATH environment variable." "$LINENO" 5
fi


  # 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 $as_nop
  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

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'

if test -z "$INSTALL"; then
  as_fn_error $? "Cannot find a 'install' in PATH. Please check your PATH environment variable." "$LINENO" 5
fi

for ac_prog in sqlite3
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_SQLITE3+y}
then :
  printf %s "(cached) " >&6
else $as_nop
  case $SQLITE3 in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_SQLITE3="$SQLITE3" # 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_SQLITE3="$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
fi
SQLITE3=$ac_cv_path_SQLITE3
if test -n "$SQLITE3"; then
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $SQLITE3" >&5
printf "%s\n" "$SQLITE3" >&6; }
else
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
fi


  test -n "$SQLITE3" && break
done

if test -z "$SQLITE3"; then
  as_fn_error $? "Cannot find a 'sqlite3' in PATH. Please check your PATH environment variable." "$LINENO" 5
fi
if test $ENABLE_MARIADB = "yes"; then
  for ac_prog in mysql
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_MYSQL+y}
then :
  printf %s "(cached) " >&6
else $as_nop
  case $MYSQL in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_MYSQL="$MYSQL" # 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_MYSQL="$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
fi
MYSQL=$ac_cv_path_MYSQL
if test -n "$MYSQL"; then
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MYSQL" >&5
printf "%s\n" "$MYSQL" >&6; }
else
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
fi


  test -n "$MYSQL" && break
done

  if test -z "$MYSQL"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: No 'mysql' command found in path - tests with MariaDB cannot be executed." >&5
printf "%s\n" "$as_me: WARNING: No 'mysql' command found in path - tests with MariaDB cannot be executed." >&2;}
  fi
fi
if test $ENABLE_POSTGRESQL = "yes"; then
  for ac_prog in psql
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_PSQL+y}
then :
  printf %s "(cached) " >&6
else $as_nop
  case $PSQL in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_PSQL="$PSQL" # 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_PSQL="$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
fi
PSQL=$ac_cv_path_PSQL
if test -n "$PSQL"; then
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PSQL" >&5
printf "%s\n" "$PSQL" >&6; }
else
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
fi


  test -n "$PSQL" && break
done

  if test -z "$PSQL"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: No 'psql' command found in path - tests with PostgreSQL cannot be executed." >&5
printf "%s\n" "$as_me: WARNING: No 'psql' command found in path - tests with PostgreSQL cannot be executed." >&2;}
  fi
  for ac_prog in createdb
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_CREATEDB+y}
then :
  printf %s "(cached) " >&6
else $as_nop
  case $CREATEDB in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_CREATEDB="$CREATEDB" # 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_CREATEDB="$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
fi
CREATEDB=$ac_cv_path_CREATEDB
if test -n "$CREATEDB"; then
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CREATEDB" >&5
printf "%s\n" "$CREATEDB" >&6; }
else
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
fi


  test -n "$CREATEDB" && break
done

  if test -z "$CREATEDB"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: No 'createdb' command found in path - tests with PostgreSQL cannot be executed." >&5
printf "%s\n" "$as_me: WARNING: No 'createdb' command found in path - tests with PostgreSQL cannot be executed." >&2;}
  fi
fi

for ac_prog in svnversion
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_SVNVERSION+y}
then :
  printf %s "(cached) " >&6
else $as_nop
  case $SVNVERSION in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_SVNVERSION="$SVNVERSION" # 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_SVNVERSION="$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
fi
SVNVERSION=$ac_cv_path_SVNVERSION
if test -n "$SVNVERSION"; then
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $SVNVERSION" >&5
printf "%s\n" "$SVNVERSION" >&6; }
else
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
fi


  test -n "$SVNVERSION" && break
done

for ac_prog in git
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_GIT+y}
then :
  printf %s "(cached) " >&6
else $as_nop
  case $GIT in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_GIT="$GIT" # 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_GIT="$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
fi
GIT=$ac_cv_path_GIT
if test -n "$GIT"; then
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GIT" >&5
printf "%s\n" "$GIT" >&6; }
else
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
fi


  test -n "$GIT" && break
done


for ac_prog in md5sum
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_MD5SUM+y}
then :
  printf %s "(cached) " >&6
else $as_nop
  case $MD5SUM in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_MD5SUM="$MD5SUM" # 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_MD5SUM="$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
fi
MD5SUM=$ac_cv_path_MD5SUM
if test -n "$MD5SUM"; then
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MD5SUM" >&5
printf "%s\n" "$MD5SUM" >&6; }
else
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
fi


  test -n "$MD5SUM" && break
done


if test "$ENABLE_GUI" = "yes"; then
  for ac_prog in java
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_JAVA+y}
then :
  printf %s "(cached) " >&6
else $as_nop
  case $JAVA in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_JAVA="$JAVA" # 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_JAVA="$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
fi
JAVA=$ac_cv_path_JAVA
if test -n "$JAVA"; then
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $JAVA" >&5
printf "%s\n" "$JAVA" >&6; }
else
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
fi


  test -n "$JAVA" && break
done


  if test -z "$JAVA"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: No 'java' command found in path - cannot execute GUI" >&5
printf "%s\n" "$as_me: WARNING: No 'java' command found in path - cannot execute GUI" >&2;}
    ENABLE_GUI="no"
  fi
  for ac_prog in javac
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_JAVAC+y}
then :
  printf %s "(cached) " >&6
else $as_nop
  case $JAVAC in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_JAVAC="$JAVAC" # 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_JAVAC="$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
fi
JAVAC=$ac_cv_path_JAVAC
if test -n "$JAVAC"; then
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $JAVAC" >&5
printf "%s\n" "$JAVAC" >&6; }
else
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
fi


  test -n "$JAVAC" && break
done


  if test -z "$JAVAC"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: No 'javac' command found in path - cannot compile GUI" >&5
printf "%s\n" "$as_me: WARNING: No 'javac' command found in path - cannot compile GUI" >&2;}
    ENABLE_GUI="no"
  fi
  for ac_prog in jar
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_JAR+y}
then :
  printf %s "(cached) " >&6
else $as_nop
  case $JAR in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_JAR="$JAR" # 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_JAR="$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
fi
JAR=$ac_cv_path_JAR
if test -n "$JAR"; then
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $JAR" >&5
printf "%s\n" "$JAR" >&6; }
else
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
fi


  test -n "$JAR" && break
done


  if test -z "$JAVAC"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: No 'jar' command found in path - cannot compile GUI" >&5
printf "%s\n" "$as_me: WARNING: No 'jar' command found in path - cannot compile GUI" >&2;}
    ENABLE_GUI="no"
  fi
  if test "$ENABLE_GUI_I18N" = "yes"; then
    for ac_prog in xgettext
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_XGETTEXT+y}
then :
  printf %s "(cached) " >&6
else $as_nop
  case $XGETTEXT in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_XGETTEXT="$XGETTEXT" # 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_XGETTEXT="$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
fi
XGETTEXT=$ac_cv_path_XGETTEXT
if test -n "$XGETTEXT"; then
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
printf "%s\n" "$XGETTEXT" >&6; }
else
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
fi


  test -n "$XGETTEXT" && break
done

    for ac_prog in msgmerge
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_MSGMERGE+y}
then :
  printf %s "(cached) " >&6
else $as_nop
  case $MSGMERGE in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_MSGMERGE="$MSGMERGE" # 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_MSGMERGE="$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
fi
MSGMERGE=$ac_cv_path_MSGMERGE
if test -n "$MSGMERGE"; then
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
printf "%s\n" "$MSGMERGE" >&6; }
else
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
fi


  test -n "$MSGMERGE" && break
done

    for ac_prog in msgfmt
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_MSGFMT+y}
then :
  printf %s "(cached) " >&6
else $as_nop
  case $MSGFMT in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_MSGFMT="$MSGFMT" # 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_MSGFMT="$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
fi
MSGFMT=$ac_cv_path_MSGFMT
if test -n "$MSGFMT"; then
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
printf "%s\n" "$MSGFMT" >&6; }
else
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
fi


  test -n "$MSGFMT" && break
done

    if test -z "$XGETTEXT"; then
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: No 'xgettext' command found in path - cannot use localize application" >&5
printf "%s\n" "$as_me: WARNING: No 'xgettext' command found in path - cannot use localize application" >&2;}
      ENABLE_GUI_I18N="no"
    fi
    if test -z "$MSGMERGE"; then
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: No 'msgmerge' command found in path - cannot use localize application" >&5
printf "%s\n" "$as_me: WARNING: No 'msgmerge' command found in path - cannot use localize application" >&2;}
      ENABLE_GUI_I18N="no"
    fi
    if test -z "$MSGFMT"; then
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: No 'msgfmt' command found in path - cannot use localize application" >&5
printf "%s\n" "$as_me: WARNING: No 'msgfmt' command found in path - cannot use localize application" >&2;}
      ENABLE_GUI_I18N="no"
    fi
  fi

  if test -n "$JAVA"; then


  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking $JAVAC version" >&5
printf %s "checking $JAVAC version... " >&6; }
if test ${ac_cv_prog_java_version+y}
then :
  printf %s "(cached) " >&6
else $as_nop

      ac_cv_prog_java_version=`$JAVAC -version 2>&1|sed 's/^.* \([^_]\+\).*/\\1/g'`
      JAVA_VERSION=$ac_cv_prog_java_version

      rm -f Test.java Test.class


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

    case "$JAVA_VERSION" in
      1.6*)
        ;;
      1.7*)
        ;;
      1.8*)
        ;;
      11.0*)
        ;;
      *)
        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Insufficient Java version (found $JAVA_VERSION, require 1.6, 1.7 or 1.8) - disabled compile GUI" >&5
printf "%s\n" "$as_me: WARNING: Insufficient Java version (found $JAVA_VERSION, require 1.6, 1.7 or 1.8) - disabled compile GUI" >&2;}
        ENABLE_GUI="no"
        ENABLE_GUI_I18N="no"
        ;;
    esac
  fi

  if test -n "$JAVAC" -a -n "$JAVA"; then



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking $JAVA data model" >&5
printf %s "checking $JAVA data model... " >&6; }
if test ${ac_cv_prog_java_data_model+y}
then :
  printf %s "(cached) " >&6
else $as_nop

      cat << \EOF > Test.java
class Test
{
  public static void main(String[] args)
  {
    System.out.println(System.getProperty("sun.arch.data.model"));
  }
}
EOF
      if { ac_try='$JAVAC $JAVAC_FLAGS Test.java'
  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
  (eval $ac_try) 2>&5
  ac_status=$?
  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }; } && test -s Test.class; then
        ac_cv_prog_java_data_model=`$JAVA $JAVA_FLAGS Test`
      else
        ac_cv_prog_java_data_model=32
      fi
      JAVA_DATA_MODEL=$ac_cv_prog_java_data_model

      rm -f Test.java Test.class


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

  fi

  JAVA_FLAGS=""
  if test "$ENABLE_DEBUG" = "yes"; then
    JAVA_FLAGS="-enableassertions"
  fi
  if test "$ENABLE_DEBUG" = "yes"; then
    JAVAC_FLAGS="-g"
  fi

  for ac_prog in launch4jc
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_LAUNCH4JC+y}
then :
  printf %s "(cached) " >&6
else $as_nop
  case $LAUNCH4JC in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_LAUNCH4JC="$LAUNCH4JC" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $LAUNCH4J_DIR $PWD/launch4j
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_LAUNCH4JC="$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
fi
LAUNCH4JC=$ac_cv_path_LAUNCH4JC
if test -n "$LAUNCH4JC"; then
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LAUNCH4JC" >&5
printf "%s\n" "$LAUNCH4JC" >&6; }
else
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
fi


  test -n "$LAUNCH4JC" && break
done

  if test -d jre_windows; then
    JRE_WINDOWS_DIR=$PWD/jre_windows
  fi
fi

for ac_prog in certtool
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_CERTTOOL+y}
then :
  printf %s "(cached) " >&6
else $as_nop
  case $CERTTOOL in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_CERTTOOL="$CERTTOOL" # 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_CERTTOOL="$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
fi
CERTTOOL=$ac_cv_path_CERTTOOL
if test -n "$CERTTOOL"; then
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CERTTOOL" >&5
printf "%s\n" "$CERTTOOL" >&6; }
else
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
fi


  test -n "$CERTTOOL" && break
done

for ac_prog in openssl
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_OPENSSL+y}
then :
  printf %s "(cached) " >&6
else $as_nop
  case $OPENSSL in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_OPENSSL="$OPENSSL" # 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_OPENSSL="$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
fi
OPENSSL=$ac_cv_path_OPENSSL
if test -n "$OPENSSL"; then
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OPENSSL" >&5
printf "%s\n" "$OPENSSL" >&6; }
else
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
fi


  test -n "$OPENSSL" && break
done

for ac_prog in keytool
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_KEYTOOL+y}
then :
  printf %s "(cached) " >&6
else $as_nop
  case $KEYTOOL in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_KEYTOOL="$KEYTOOL" # 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_KEYTOOL="$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
fi
KEYTOOL=$ac_cv_path_KEYTOOL
if test -n "$KEYTOOL"; then
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $KEYTOOL" >&5
printf "%s\n" "$KEYTOOL" >&6; }
else
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
fi


  test -n "$KEYTOOL" && break
done


for ac_prog in lcov
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_LCOV+y}
then :
  printf %s "(cached) " >&6
else $as_nop
  case $LCOV in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_LCOV="$LCOV" # 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_LCOV="$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
fi
LCOV=$ac_cv_path_LCOV
if test -n "$LCOV"; then
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LCOV" >&5
printf "%s\n" "$LCOV" >&6; }
else
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
fi


  test -n "$LCOV" && break
done

for ac_prog in genhtml
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_GENHTML+y}
then :
  printf %s "(cached) " >&6
else $as_nop
  case $GENHTML in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_GENHTML="$GENHTML" # 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_GENHTML="$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
fi
GENHTML=$ac_cv_path_GENHTML
if test -n "$GENHTML"; then
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GENHTML" >&5
printf "%s\n" "$GENHTML" >&6; }
else
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
fi


  test -n "$GENHTML" && break
done


for ac_prog in unoconv
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_UNOCONV+y}
then :
  printf %s "(cached) " >&6
else $as_nop
  case $UNOCONV in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_UNOCONV="$UNOCONV" # 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_UNOCONV="$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
fi
UNOCONV=$ac_cv_path_UNOCONV
if test -n "$UNOCONV"; then
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $UNOCONV" >&5
printf "%s\n" "$UNOCONV" >&6; }
else
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
fi


  test -n "$UNOCONV" && break
done

if test -z "$UNOCONV"; then
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: No 'unoconv' tool found. Cannot create PDF manual. Please check PATH or create PDF manual manually in OO." >&5
printf "%s\n" "$as_me: WARNING: No 'unoconv' tool found. Cannot create PDF manual. Please check PATH or create PDF manual manually in OO." >&2;}
fi
for ac_prog in convert
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_CONVERT+y}
then :
  printf %s "(cached) " >&6
else $as_nop
  case $CONVERT in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_CONVERT="$CONVERT" # 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_CONVERT="$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
fi
CONVERT=$ac_cv_path_CONVERT
if test -n "$CONVERT"; then
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CONVERT" >&5
printf "%s\n" "$CONVERT" >&6; }
else
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
fi


  test -n "$CONVERT" && break
done

if test -z "$CONVERT"; then
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: No 'convert' tool found. Cannot create distribution and PDF manual. Please check PATH." >&5
printf "%s\n" "$as_me: WARNING: No 'convert' tool found. Cannot create distribution and PDF manual. Please check PATH." >&2;}
fi
for ac_prog in txt2man
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_TXT2MAN+y}
then :
  printf %s "(cached) " >&6
else $as_nop
  case $TXT2MAN in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_TXT2MAN="$TXT2MAN" # 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_TXT2MAN="$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
fi
TXT2MAN=$ac_cv_path_TXT2MAN
if test -n "$TXT2MAN"; then
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $TXT2MAN" >&5
printf "%s\n" "$TXT2MAN" >&6; }
else
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
fi


  test -n "$TXT2MAN" && break
done

if test -z "$TXT2MAN"; then
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: No 'txt2man' tool found. Cannot create man page. Please check PATH." >&5
printf "%s\n" "$as_me: WARNING: No 'txt2man' tool found. Cannot create man page. Please check PATH." >&2;}
fi

for ac_prog in sudo
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_SUDO+y}
then :
  printf %s "(cached) " >&6
else $as_nop
  case $SUDO in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_SUDO="$SUDO" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in /usr/bin
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_SUDO="$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
fi
SUDO=$ac_cv_path_SUDO
if test -n "$SUDO"; then
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $SUDO" >&5
printf "%s\n" "$SUDO" >&6; }
else
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
fi


  test -n "$SUDO" && break
done

for ac_prog in attr
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_ATTR+y}
then :
  printf %s "(cached) " >&6
else $as_nop
  case $ATTR in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_ATTR="$ATTR" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in /usr/bin
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_ATTR="$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
fi
ATTR=$ac_cv_path_ATTR
if test -n "$ATTR"; then
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ATTR" >&5
printf "%s\n" "$ATTR" >&6; }
else
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
fi


  test -n "$ATTR" && break
done

for ac_prog in time
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_TIME+y}
then :
  printf %s "(cached) " >&6
else $as_nop
  case $TIME in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_TIME="$TIME" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in /usr/bin
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_TIME="$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
fi
TIME=$ac_cv_path_TIME
if test -n "$TIME"; then
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $TIME" >&5
printf "%s\n" "$TIME" >&6; }
else
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
fi


  test -n "$TIME" && break
done

for ac_prog in getfattr
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_GETFATTR+y}
then :
  printf %s "(cached) " >&6
else $as_nop
  case $GETFATTR in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_GETFATTR="$GETFATTR" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in /usr/bin
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_GETFATTR="$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
fi
GETFATTR=$ac_cv_path_GETFATTR
if test -n "$GETFATTR"; then
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GETFATTR" >&5
printf "%s\n" "$GETFATTR" >&6; }
else
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
fi


  test -n "$GETFATTR" && break
done

for ac_prog in setfattr
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_SETFATTR+y}
then :
  printf %s "(cached) " >&6
else $as_nop
  case $SETFATTR in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_SETFATTR="$SETFATTR" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in /usr/bin
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_SETFATTR="$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
fi
SETFATTR=$ac_cv_path_SETFATTR
if test -n "$SETFATTR"; then
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $SETFATTR" >&5
printf "%s\n" "$SETFATTR" >&6; }
else
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
fi


  test -n "$SETFATTR" && break
done


for ac_prog in mkfs.ext2
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_MKFS_EXT2+y}
then :
  printf %s "(cached) " >&6
else $as_nop
  case $MKFS_EXT2 in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_MKFS_EXT2="$MKFS_EXT2" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in /sbin
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_MKFS_EXT2="$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
fi
MKFS_EXT2=$ac_cv_path_MKFS_EXT2
if test -n "$MKFS_EXT2"; then
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKFS_EXT2" >&5
printf "%s\n" "$MKFS_EXT2" >&6; }
else
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
fi


  test -n "$MKFS_EXT2" && break
done

for ac_prog in mkfs.ext3
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_MKFS_EXT3+y}
then :
  printf %s "(cached) " >&6
else $as_nop
  case $MKFS_EXT3 in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_MKFS_EXT3="$MKFS_EXT3" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in /sbin
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_MKFS_EXT3="$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
fi
MKFS_EXT3=$ac_cv_path_MKFS_EXT3
if test -n "$MKFS_EXT3"; then
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKFS_EXT3" >&5
printf "%s\n" "$MKFS_EXT3" >&6; }
else
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
fi


  test -n "$MKFS_EXT3" && break
done

for ac_prog in mkfs.ext4
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_MKFS_EXT4+y}
then :
  printf %s "(cached) " >&6
else $as_nop
  case $MKFS_EXT4 in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_MKFS_EXT4="$MKFS_EXT4" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in /sbin
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_MKFS_EXT4="$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
fi
MKFS_EXT4=$ac_cv_path_MKFS_EXT4
if test -n "$MKFS_EXT4"; then
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKFS_EXT4" >&5
printf "%s\n" "$MKFS_EXT4" >&6; }
else
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
fi


  test -n "$MKFS_EXT4" && break
done

for ac_prog in mkfs.msdos
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_MKFS_MSDOS+y}
then :
  printf %s "(cached) " >&6
else $as_nop
  case $MKFS_MSDOS in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_MKFS_MSDOS="$MKFS_MSDOS" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in /sbin
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_MKFS_MSDOS="$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
fi
MKFS_MSDOS=$ac_cv_path_MKFS_MSDOS
if test -n "$MKFS_MSDOS"; then
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKFS_MSDOS" >&5
printf "%s\n" "$MKFS_MSDOS" >&6; }
else
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
fi


  test -n "$MKFS_MSDOS" && break
done

for ac_prog in mkfs.exfat
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_MKFS_EXFAT+y}
then :
  printf %s "(cached) " >&6
else $as_nop
  case $MKFS_EXFAT in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_MKFS_EXFAT="$MKFS_EXFAT" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in /sbin
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_MKFS_EXFAT="$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
fi
MKFS_EXFAT=$ac_cv_path_MKFS_EXFAT
if test -n "$MKFS_EXFAT"; then
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKFS_EXFAT" >&5
printf "%s\n" "$MKFS_EXFAT" >&6; }
else
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
fi


  test -n "$MKFS_EXFAT" && break
done

for ac_prog in mkfs.xfs
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_MKFS_XFS+y}
then :
  printf %s "(cached) " >&6
else $as_nop
  case $MKFS_XFS in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_MKFS_XFS="$MKFS_XFS" # Let the user override the test with a path.
  ;;
  *)
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in /sbin
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_MKFS_XFS="$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
fi
MKFS_XFS=$ac_cv_path_MKFS_XFS
if test -n "$MKFS_XFS"; then
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKFS_XFS" >&5
printf "%s\n" "$MKFS_XFS" >&6; }
else
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
fi


  test -n "$MKFS_XFS" && break
done


for ac_prog in socat
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_SOCAT+y}
then :
  printf %s "(cached) " >&6
else $as_nop
  case $SOCAT in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_SOCAT="$SOCAT" # 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_SOCAT="$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
fi
SOCAT=$ac_cv_path_SOCAT
if test -n "$SOCAT"; then
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $SOCAT" >&5
printf "%s\n" "$SOCAT" >&6; }
else
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
fi


  test -n "$SOCAT" && break
done


for ac_prog in docker
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_DOCKER+y}
then :
  printf %s "(cached) " >&6
else $as_nop
  case $DOCKER in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_DOCKER="$DOCKER" # 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_DOCKER="$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
fi
DOCKER=$ac_cv_path_DOCKER
if test -n "$DOCKER"; then
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DOCKER" >&5
printf "%s\n" "$DOCKER" >&6; }
else
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
fi


  test -n "$DOCKER" && break
done

# required for tests
for ac_prog in killall
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_KILLALL+y}
then :
  printf %s "(cached) " >&6
else $as_nop
  case $KILLALL in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_KILLALL="$KILLALL" # 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_KILLALL="$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
fi
KILLALL=$ac_cv_path_KILLALL
if test -n "$KILLALL"; then
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $KILLALL" >&5
printf "%s\n" "$KILLALL" >&6; }
else
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
fi


  test -n "$KILLALL" && break
done

if test -z "$KILLALL"; then
  as_fn_error $? "Cannot find a 'killall' in PATH. Please check your PATH environment variable." "$LINENO" 5
fi
for ac_prog in wine
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_WINE+y}
then :
  printf %s "(cached) " >&6
else $as_nop
  case $WINE in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_WINE="$WINE" # 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_WINE="$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
fi
WINE=$ac_cv_path_WINE
if test -n "$WINE"; then
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $WINE" >&5
printf "%s\n" "$WINE" >&6; }
else
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
fi


  test -n "$WINE" && break
done

for ac_prog in winepath
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_WINEPATH+y}
then :
  printf %s "(cached) " >&6
else $as_nop
  case $WINEPATH in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_WINEPATH="$WINEPATH" # 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_WINEPATH="$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
fi
WINEPATH=$ac_cv_path_WINEPATH
if test -n "$WINEPATH"; then
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $WINEPATH" >&5
printf "%s\n" "$WINEPATH" >&6; }
else
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
fi


  test -n "$WINEPATH" && break
done



if test -n "$WINE" -a -n "$WINEPATH"; then

  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking wine C: drive" >&5
printf %s "checking wine C: drive... " >&6; }
if test ${ac_cv_wine_c_drive+y}
then :
  printf %s "(cached) " >&6
else $as_nop

      ac_cv_wine_c_drive=`winepath C: 2>/dev/null`
      ac_cv_wine_c_drive=`dirname $ac_cv_wine_c_drive 2>/dev/null`
      ac_cv_wine_c_drive=`realpath $ac_cv_wine_c_drive/c: 2>/dev/null`
      WINE_C_DRIVE=$ac_cv_wine_c_drive


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




  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking ISCC" >&5
printf %s "checking ISCC... " >&6; }
if test ${ac_cv_prog_iscc+y}
then :
  printf %s "(cached) " >&6
else $as_nop

      $WINE c\:/Program\ Files\ \(x86\)/Inno\ Setup\ 5/ISCC.exe /\? 1>/dev/null 2>/dev/null
      if test $? -lt 2; then
        ac_cv_prog_iscc=`winepath c\:/Program\ Files\ \(x86\)/Inno\ Setup\ 5/ISCC.exe 2>/dev/null`
      fi
      $WINE c\:/Program\ Files/Inno\ Setup\ 5/ISCC.exe \/\? 1>/dev/null 2>/dev/null
      if test $? -lt 2; then
        ac_cv_prog_iscc=`winepath c\:/Program\ Files/Inno\ Setup\ 5/ISCC.exe 2>/dev/null`
      fi
      ISCC=$ac_cv_prog_iscc


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

  if test -z "$ISCC"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: No 'ISCC.exe' tool found. Cannot create Win32 setup program." >&5
printf "%s\n" "$as_me: WARNING: No 'ISCC.exe' tool found. Cannot create Win32 setup program." >&2;}
  fi
else
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: No 'wine' tool found. Cannot create Win32 setup program." >&5
printf "%s\n" "$as_me: WARNING: No 'wine' tool found. Cannot create Win32 setup program." >&2;}
fi

# compiler/link flags/paths

# Note: do not use AC_PROG_CC_STDC, because it adds the option to the CC command









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 $as_nop
  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
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 $as_nop
  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
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 $as_nop
  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
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 $as_nop
  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
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 $as_nop
  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
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 $as_nop
  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
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 $as_nop
  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
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 $as_nop
  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
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 $as_nop
  ac_file=''
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 $as_nop
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; }
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 $as_nop
  { { 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; }
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");
 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.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 $as_nop
  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 $as_nop
  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; }
fi
rm -f conftest.$ac_cv_objext conftest.$ac_ext
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 $as_nop
  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 $as_nop
  ac_compiler_gnu=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
ac_cv_c_compiler_gnu=$ac_compiler_gnu

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 $as_nop
  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 $as_nop
  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 $as_nop
  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
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
   ac_c_werror_flag=$ac_save_c_werror_flag
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 $as_nop
  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
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 $as_nop
  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 $as_nop
  { 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"
fi
  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
  ac_prog_cc_stdc=c11
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 $as_nop
  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
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 $as_nop
  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 $as_nop
  { 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"
fi
  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
  ac_prog_cc_stdc=c99
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 $as_nop
  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
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 $as_nop
  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 $as_nop
  { 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"
fi
  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
  ac_prog_cc_stdc=c89
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



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC support option -std=gnu99" >&5
printf %s "checking if $CC support option -std=gnu99... " >&6; }
if { as_var=ac_cv_c_option_`echo -std=gnu99|tr -c -d a-zA-Z0-9_`; eval test \${$as_var+y}; }
then :
  printf %s "(cached) " >&6
else $as_nop

      cat << \EOF > test.c
int main(void)
{
  return 0;
}
EOF
      if { ac_try='$CC -std=gnu99 test.c -o test.o'
  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&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_supported=yes
        for s in CC_FLAGS; do
          eval "if test -n \"\$$s\"; then $s=\"\$$s \"; fi"
          eval "$s=\"\$$s-std=gnu99\""
        done
      else
        ac_supported=no
      fi
      eval "ac_cv_c_option_`echo -std=gnu99|tr -c -d a-zA-Z0-9_`=\$ac_supported"

      rm -f test.c test.o


fi
eval ac_res=\$ac_cv_c_option_`echo -std=gnu99|tr -c -d a-zA-Z0-9_`
	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
printf "%s\n" "$ac_res" >&6; }

# Note: disable address randomization for debug/analysis builds


  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC support option -fno-pie" >&5
printf %s "checking if $CC support option -fno-pie... " >&6; }
if { as_var=ac_cv_c_option_`echo -fno-pie|tr -c -d a-zA-Z0-9_`; eval test \${$as_var+y}; }
then :
  printf %s "(cached) " >&6
else $as_nop

      cat << \EOF > test.c
int main(void)
{
  return 0;
}
EOF
      if { ac_try='$CC -fno-pie test.c -o test.o'
  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&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_supported=yes
        for s in CC_FLAGS_DEBUG CC_FLAGS_GCOV CC_FLAGS_GPROF CC_FLAGS_VALGRIND CXX_FLAGS_DEBUG; do
          eval "if test -n \"\$$s\"; then $s=\"\$$s \"; fi"
          eval "$s=\"\$$s-fno-pie\""
        done
      else
        ac_supported=no
      fi
      eval "ac_cv_c_option_`echo -fno-pie|tr -c -d a-zA-Z0-9_`=\$ac_supported"

      rm -f test.c test.o


fi
eval ac_res=\$ac_cv_c_option_`echo -fno-pie|tr -c -d a-zA-Z0-9_`
	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
printf "%s\n" "$ac_res" >&6; }



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC support option -Wall" >&5
printf %s "checking if $CC support option -Wall... " >&6; }
if { as_var=ac_cv_c_option_`echo -Wall|tr -c -d a-zA-Z0-9_`; eval test \${$as_var+y}; }
then :
  printf %s "(cached) " >&6
else $as_nop

      cat << \EOF > test.c
int main(void)
{
  return 0;
}
EOF
      if { ac_try='$CC -Wall test.c -o test.o'
  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&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_supported=yes
        for s in CC_WARN_FLAGS CXX_WARN_FLAGS; do
          eval "if test -n \"\$$s\"; then $s=\"\$$s \"; fi"
          eval "$s=\"\$$s-Wall\""
        done
      else
        ac_supported=no
      fi
      eval "ac_cv_c_option_`echo -Wall|tr -c -d a-zA-Z0-9_`=\$ac_supported"

      rm -f test.c test.o


fi
eval ac_res=\$ac_cv_c_option_`echo -Wall|tr -c -d a-zA-Z0-9_`
	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
printf "%s\n" "$ac_res" >&6; }


  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC support option -Wpointer-arith" >&5
printf %s "checking if $CC support option -Wpointer-arith... " >&6; }
if { as_var=ac_cv_c_option_`echo -Wpointer-arith|tr -c -d a-zA-Z0-9_`; eval test \${$as_var+y}; }
then :
  printf %s "(cached) " >&6
else $as_nop

      cat << \EOF > test.c
int main(void)
{
  return 0;
}
EOF
      if { ac_try='$CC -Wpointer-arith test.c -o test.o'
  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&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_supported=yes
        for s in CC_WARN_FLAGS CXX_WARN_FLAGS; do
          eval "if test -n \"\$$s\"; then $s=\"\$$s \"; fi"
          eval "$s=\"\$$s-Wpointer-arith\""
        done
      else
        ac_supported=no
      fi
      eval "ac_cv_c_option_`echo -Wpointer-arith|tr -c -d a-zA-Z0-9_`=\$ac_supported"

      rm -f test.c test.o


fi
eval ac_res=\$ac_cv_c_option_`echo -Wpointer-arith|tr -c -d a-zA-Z0-9_`
	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
printf "%s\n" "$ac_res" >&6; }


  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC support option -Wunused-label" >&5
printf %s "checking if $CC support option -Wunused-label... " >&6; }
if { as_var=ac_cv_c_option_`echo -Wunused-label|tr -c -d a-zA-Z0-9_`; eval test \${$as_var+y}; }
then :
  printf %s "(cached) " >&6
else $as_nop

      cat << \EOF > test.c
int main(void)
{
  return 0;
}
EOF
      if { ac_try='$CC -Wunused-label test.c -o test.o'
  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&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_supported=yes
        for s in CC_WARN_FLAGS CXX_WARN_FLAGS; do
          eval "if test -n \"\$$s\"; then $s=\"\$$s \"; fi"
          eval "$s=\"\$$s-Wunused-label\""
        done
      else
        ac_supported=no
      fi
      eval "ac_cv_c_option_`echo -Wunused-label|tr -c -d a-zA-Z0-9_`=\$ac_supported"

      rm -f test.c test.o


fi
eval ac_res=\$ac_cv_c_option_`echo -Wunused-label|tr -c -d a-zA-Z0-9_`
	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
printf "%s\n" "$ac_res" >&6; }


  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC support option -Wunused-parameter" >&5
printf %s "checking if $CC support option -Wunused-parameter... " >&6; }
if { as_var=ac_cv_c_option_`echo -Wunused-parameter|tr -c -d a-zA-Z0-9_`; eval test \${$as_var+y}; }
then :
  printf %s "(cached) " >&6
else $as_nop

      cat << \EOF > test.c
int main(void)
{
  return 0;
}
EOF
      if { ac_try='$CC -Wunused-parameter test.c -o test.o'
  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&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_supported=yes
        for s in CC_WARN_FLAGS CXX_WARN_FLAGS; do
          eval "if test -n \"\$$s\"; then $s=\"\$$s \"; fi"
          eval "$s=\"\$$s-Wunused-parameter\""
        done
      else
        ac_supported=no
      fi
      eval "ac_cv_c_option_`echo -Wunused-parameter|tr -c -d a-zA-Z0-9_`=\$ac_supported"

      rm -f test.c test.o


fi
eval ac_res=\$ac_cv_c_option_`echo -Wunused-parameter|tr -c -d a-zA-Z0-9_`
	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
printf "%s\n" "$ac_res" >&6; }


  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC support option -Wunused-variable" >&5
printf %s "checking if $CC support option -Wunused-variable... " >&6; }
if { as_var=ac_cv_c_option_`echo -Wunused-variable|tr -c -d a-zA-Z0-9_`; eval test \${$as_var+y}; }
then :
  printf %s "(cached) " >&6
else $as_nop

      cat << \EOF > test.c
int main(void)
{
  return 0;
}
EOF
      if { ac_try='$CC -Wunused-variable test.c -o test.o'
  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&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_supported=yes
        for s in CC_WARN_FLAGS CXX_WARN_FLAGS; do
          eval "if test -n \"\$$s\"; then $s=\"\$$s \"; fi"
          eval "$s=\"\$$s-Wunused-variable\""
        done
      else
        ac_supported=no
      fi
      eval "ac_cv_c_option_`echo -Wunused-variable|tr -c -d a-zA-Z0-9_`=\$ac_supported"

      rm -f test.c test.o


fi
eval ac_res=\$ac_cv_c_option_`echo -Wunused-variable|tr -c -d a-zA-Z0-9_`
	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
printf "%s\n" "$ac_res" >&6; }


  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC support option -Wmissing-prototypes" >&5
printf %s "checking if $CC support option -Wmissing-prototypes... " >&6; }
if { as_var=ac_cv_c_option_`echo -Wmissing-prototypes|tr -c -d a-zA-Z0-9_`; eval test \${$as_var+y}; }
then :
  printf %s "(cached) " >&6
else $as_nop

      cat << \EOF > test.c
int main(void)
{
  return 0;
}
EOF
      if { ac_try='$CC -Wmissing-prototypes test.c -o test.o'
  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&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_supported=yes
        for s in CC_WARN_FLAGS; do
          eval "if test -n \"\$$s\"; then $s=\"\$$s \"; fi"
          eval "$s=\"\$$s-Wmissing-prototypes\""
        done
      else
        ac_supported=no
      fi
      eval "ac_cv_c_option_`echo -Wmissing-prototypes|tr -c -d a-zA-Z0-9_`=\$ac_supported"

      rm -f test.c test.o


fi
eval ac_res=\$ac_cv_c_option_`echo -Wmissing-prototypes|tr -c -d a-zA-Z0-9_`
	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
printf "%s\n" "$ac_res" >&6; }


  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC support option -Wmissing-declarations" >&5
printf %s "checking if $CC support option -Wmissing-declarations... " >&6; }
if { as_var=ac_cv_c_option_`echo -Wmissing-declarations|tr -c -d a-zA-Z0-9_`; eval test \${$as_var+y}; }
then :
  printf %s "(cached) " >&6
else $as_nop

      cat << \EOF > test.c
int main(void)
{
  return 0;
}
EOF
      if { ac_try='$CC -Wmissing-declarations test.c -o test.o'
  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&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_supported=yes
        for s in CC_WARN_FLAGS CXX_WARN_FLAGS; do
          eval "if test -n \"\$$s\"; then $s=\"\$$s \"; fi"
          eval "$s=\"\$$s-Wmissing-declarations\""
        done
      else
        ac_supported=no
      fi
      eval "ac_cv_c_option_`echo -Wmissing-declarations|tr -c -d a-zA-Z0-9_`=\$ac_supported"

      rm -f test.c test.o


fi
eval ac_res=\$ac_cv_c_option_`echo -Wmissing-declarations|tr -c -d a-zA-Z0-9_`
	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
printf "%s\n" "$ac_res" >&6; }


  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC support option -Wstrict-aliasing" >&5
printf %s "checking if $CC support option -Wstrict-aliasing... " >&6; }
if { as_var=ac_cv_c_option_`echo -Wstrict-aliasing|tr -c -d a-zA-Z0-9_`; eval test \${$as_var+y}; }
then :
  printf %s "(cached) " >&6
else $as_nop

      cat << \EOF > test.c
int main(void)
{
  return 0;
}
EOF
      if { ac_try='$CC -Wstrict-aliasing test.c -o test.o'
  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&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_supported=yes
        for s in CC_WARN_FLAGS CXX_WARN_FLAGS; do
          eval "if test -n \"\$$s\"; then $s=\"\$$s \"; fi"
          eval "$s=\"\$$s-Wstrict-aliasing\""
        done
      else
        ac_supported=no
      fi
      eval "ac_cv_c_option_`echo -Wstrict-aliasing|tr -c -d a-zA-Z0-9_`=\$ac_supported"

      rm -f test.c test.o


fi
eval ac_res=\$ac_cv_c_option_`echo -Wstrict-aliasing|tr -c -d a-zA-Z0-9_`
	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
printf "%s\n" "$ac_res" >&6; }


  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC support option -Wextra" >&5
printf %s "checking if $CC support option -Wextra... " >&6; }
if { as_var=ac_cv_c_option_`echo -Wextra|tr -c -d a-zA-Z0-9_`; eval test \${$as_var+y}; }
then :
  printf %s "(cached) " >&6
else $as_nop

      cat << \EOF > test.c
int main(void)
{
  return 0;
}
EOF
      if { ac_try='$CC -Wextra test.c -o test.o'
  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&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_supported=yes
        for s in CC_WARN_FLAGS CXX_WARN_FLAGS; do
          eval "if test -n \"\$$s\"; then $s=\"\$$s \"; fi"
          eval "$s=\"\$$s-Wextra\""
        done
      else
        ac_supported=no
      fi
      eval "ac_cv_c_option_`echo -Wextra|tr -c -d a-zA-Z0-9_`=\$ac_supported"

      rm -f test.c test.o


fi
eval ac_res=\$ac_cv_c_option_`echo -Wextra|tr -c -d a-zA-Z0-9_`
	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
printf "%s\n" "$ac_res" >&6; }


  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC support option -Wfloat-equal" >&5
printf %s "checking if $CC support option -Wfloat-equal... " >&6; }
if { as_var=ac_cv_c_option_`echo -Wfloat-equal|tr -c -d a-zA-Z0-9_`; eval test \${$as_var+y}; }
then :
  printf %s "(cached) " >&6
else $as_nop

      cat << \EOF > test.c
int main(void)
{
  return 0;
}
EOF
      if { ac_try='$CC -Wfloat-equal test.c -o test.o'
  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&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_supported=yes
        for s in CC_WARN_FLAGS CXX_WARN_FLAGS; do
          eval "if test -n \"\$$s\"; then $s=\"\$$s \"; fi"
          eval "$s=\"\$$s-Wfloat-equal\""
        done
      else
        ac_supported=no
      fi
      eval "ac_cv_c_option_`echo -Wfloat-equal|tr -c -d a-zA-Z0-9_`=\$ac_supported"

      rm -f test.c test.o


fi
eval ac_res=\$ac_cv_c_option_`echo -Wfloat-equal|tr -c -d a-zA-Z0-9_`
	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
printf "%s\n" "$ac_res" >&6; }


  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC support option -Wbad-function-cast" >&5
printf %s "checking if $CC support option -Wbad-function-cast... " >&6; }
if { as_var=ac_cv_c_option_`echo -Wbad-function-cast|tr -c -d a-zA-Z0-9_`; eval test \${$as_var+y}; }
then :
  printf %s "(cached) " >&6
else $as_nop

      cat << \EOF > test.c
int main(void)
{
  return 0;
}
EOF
      if { ac_try='$CC -Wbad-function-cast test.c -o test.o'
  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&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_supported=yes
        for s in CC_WARN_FLAGS; do
          eval "if test -n \"\$$s\"; then $s=\"\$$s \"; fi"
          eval "$s=\"\$$s-Wbad-function-cast\""
        done
      else
        ac_supported=no
      fi
      eval "ac_cv_c_option_`echo -Wbad-function-cast|tr -c -d a-zA-Z0-9_`=\$ac_supported"

      rm -f test.c test.o


fi
eval ac_res=\$ac_cv_c_option_`echo -Wbad-function-cast|tr -c -d a-zA-Z0-9_`
	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
printf "%s\n" "$ac_res" >&6; }


  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC support option -Wsign-compare" >&5
printf %s "checking if $CC support option -Wsign-compare... " >&6; }
if { as_var=ac_cv_c_option_`echo -Wsign-compare|tr -c -d a-zA-Z0-9_`; eval test \${$as_var+y}; }
then :
  printf %s "(cached) " >&6
else $as_nop

      cat << \EOF > test.c
int main(void)
{
  return 0;
}
EOF
      if { ac_try='$CC -Wsign-compare test.c -o test.o'
  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&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_supported=yes
        for s in CC_WARN_FLAGS CXX_WARN_FLAGS; do
          eval "if test -n \"\$$s\"; then $s=\"\$$s \"; fi"
          eval "$s=\"\$$s-Wsign-compare\""
        done
      else
        ac_supported=no
      fi
      eval "ac_cv_c_option_`echo -Wsign-compare|tr -c -d a-zA-Z0-9_`=\$ac_supported"

      rm -f test.c test.o


fi
eval ac_res=\$ac_cv_c_option_`echo -Wsign-compare|tr -c -d a-zA-Z0-9_`
	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
printf "%s\n" "$ac_res" >&6; }


  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC support option -Wstrict-prototypes" >&5
printf %s "checking if $CC support option -Wstrict-prototypes... " >&6; }
if { as_var=ac_cv_c_option_`echo -Wstrict-prototypes|tr -c -d a-zA-Z0-9_`; eval test \${$as_var+y}; }
then :
  printf %s "(cached) " >&6
else $as_nop

      cat << \EOF > test.c
int main(void)
{
  return 0;
}
EOF
      if { ac_try='$CC -Wstrict-prototypes test.c -o test.o'
  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&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_supported=yes
        for s in CC_WARN_FLAGS; do
          eval "if test -n \"\$$s\"; then $s=\"\$$s \"; fi"
          eval "$s=\"\$$s-Wstrict-prototypes\""
        done
      else
        ac_supported=no
      fi
      eval "ac_cv_c_option_`echo -Wstrict-prototypes|tr -c -d a-zA-Z0-9_`=\$ac_supported"

      rm -f test.c test.o


fi
eval ac_res=\$ac_cv_c_option_`echo -Wstrict-prototypes|tr -c -d a-zA-Z0-9_`
	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
printf "%s\n" "$ac_res" >&6; }


  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC support option -Wno-declaration-after-statement" >&5
printf %s "checking if $CC support option -Wno-declaration-after-statement... " >&6; }
if { as_var=ac_cv_c_option_`echo -Wno-declaration-after-statement|tr -c -d a-zA-Z0-9_`; eval test \${$as_var+y}; }
then :
  printf %s "(cached) " >&6
else $as_nop

      cat << \EOF > test.c
int main(void)
{
  return 0;
}
EOF
      if { ac_try='$CC -Wno-declaration-after-statement test.c -o test.o'
  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&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_supported=yes
        for s in CC_WARN_FLAGS; do
          eval "if test -n \"\$$s\"; then $s=\"\$$s \"; fi"
          eval "$s=\"\$$s-Wno-declaration-after-statement\""
        done
      else
        ac_supported=no
      fi
      eval "ac_cv_c_option_`echo -Wno-declaration-after-statement|tr -c -d a-zA-Z0-9_`=\$ac_supported"

      rm -f test.c test.o


fi
eval ac_res=\$ac_cv_c_option_`echo -Wno-declaration-after-statement|tr -c -d a-zA-Z0-9_`
	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
printf "%s\n" "$ac_res" >&6; }


  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC support option -Wno-unknown-pragmas" >&5
printf %s "checking if $CC support option -Wno-unknown-pragmas... " >&6; }
if { as_var=ac_cv_c_option_`echo -Wno-unknown-pragmas|tr -c -d a-zA-Z0-9_`; eval test \${$as_var+y}; }
then :
  printf %s "(cached) " >&6
else $as_nop

      cat << \EOF > test.c
int main(void)
{
  return 0;
}
EOF
      if { ac_try='$CC -Wno-unknown-pragmas test.c -o test.o'
  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&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_supported=yes
        for s in CC_WARN_FLAGS CXX_WARN_FLAGS; do
          eval "if test -n \"\$$s\"; then $s=\"\$$s \"; fi"
          eval "$s=\"\$$s-Wno-unknown-pragmas\""
        done
      else
        ac_supported=no
      fi
      eval "ac_cv_c_option_`echo -Wno-unknown-pragmas|tr -c -d a-zA-Z0-9_`=\$ac_supported"

      rm -f test.c test.o


fi
eval ac_res=\$ac_cv_c_option_`echo -Wno-unknown-pragmas|tr -c -d a-zA-Z0-9_`
	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
printf "%s\n" "$ac_res" >&6; }


  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC support option -Wvla" >&5
printf %s "checking if $CC support option -Wvla... " >&6; }
if { as_var=ac_cv_c_option_`echo -Wvla|tr -c -d a-zA-Z0-9_`; eval test \${$as_var+y}; }
then :
  printf %s "(cached) " >&6
else $as_nop

      cat << \EOF > test.c
int main(void)
{
  return 0;
}
EOF
      if { ac_try='$CC -Wvla test.c -o test.o'
  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&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_supported=yes
        for s in CC_WARN_FLAGS CXX_WARN_FLAGS; do
          eval "if test -n \"\$$s\"; then $s=\"\$$s \"; fi"
          eval "$s=\"\$$s-Wvla\""
        done
      else
        ac_supported=no
      fi
      eval "ac_cv_c_option_`echo -Wvla|tr -c -d a-zA-Z0-9_`=\$ac_supported"

      rm -f test.c test.o


fi
eval ac_res=\$ac_cv_c_option_`echo -Wvla|tr -c -d a-zA-Z0-9_`
	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
printf "%s\n" "$ac_res" >&6; }
case $host_os in
  linux-*)
    ;;
  sunos | solaris*)
    ;;
  darwin*)
    ;;
  windows*|mingw*)
    # Note: __mingw_printf, __mingw_fprintf are not recognized as format functions by mingw gcc version 7.3?


  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC support option -Wno-format" >&5
printf %s "checking if $CC support option -Wno-format... " >&6; }
if { as_var=ac_cv_c_option_`echo -Wno-format|tr -c -d a-zA-Z0-9_`; eval test \${$as_var+y}; }
then :
  printf %s "(cached) " >&6
else $as_nop

      cat << \EOF > test.c
int main(void)
{
  return 0;
}
EOF
      if { ac_try='$CC -Wno-format test.c -o test.o'
  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&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_supported=yes
        for s in CC_WARN_FLAGS CXX_WARN_FLAGS; do
          eval "if test -n \"\$$s\"; then $s=\"\$$s \"; fi"
          eval "$s=\"\$$s-Wno-format\""
        done
      else
        ac_supported=no
      fi
      eval "ac_cv_c_option_`echo -Wno-format|tr -c -d a-zA-Z0-9_`=\$ac_supported"

      rm -f test.c test.o


fi
eval ac_res=\$ac_cv_c_option_`echo -Wno-format|tr -c -d a-zA-Z0-9_`
	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
printf "%s\n" "$ac_res" >&6; }
    ;;
esac







ac_ext=cpp
ac_cpp='$CXXCPP $CPPFLAGS'
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
if test -z "$CXX"; then
  if test -n "$CCC"; then
    CXX=$CCC
  else
    if test -n "$ac_tool_prefix"; then
  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
  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_CXX+y}
then :
  printf %s "(cached) " >&6
else $as_nop
  if test -n "$CXX"; then
  ac_cv_prog_CXX="$CXX" # 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_CXX="$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
fi
CXX=$ac_cv_prog_CXX
if test -n "$CXX"; then
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
printf "%s\n" "$CXX" >&6; }
else
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
fi


    test -n "$CXX" && break
  done
fi
if test -z "$CXX"; then
  ac_ct_CXX=$CXX
  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
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_CXX+y}
then :
  printf %s "(cached) " >&6
else $as_nop
  if test -n "$ac_ct_CXX"; then
  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # 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_CXX="$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
fi
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
if test -n "$ac_ct_CXX"; then
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
printf "%s\n" "$ac_ct_CXX" >&6; }
else
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
fi


  test -n "$ac_ct_CXX" && break
done

  if test "x$ac_ct_CXX" = x; then
    CXX="g++"
  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
    CXX=$ac_ct_CXX
  fi
fi

  fi
fi
# 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; 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_cxx_compiler_gnu+y}
then :
  printf %s "(cached) " >&6
else $as_nop
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

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

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

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

if test $ac_compiler_gnu = yes; then
  GXX=yes
else
  GXX=
fi
ac_test_CXXFLAGS=${CXXFLAGS+y}
ac_save_CXXFLAGS=$CXXFLAGS
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
printf %s "checking whether $CXX accepts -g... " >&6; }
if test ${ac_cv_prog_cxx_g+y}
then :
  printf %s "(cached) " >&6
else $as_nop
  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
   ac_cxx_werror_flag=yes
   ac_cv_prog_cxx_g=no
   CXXFLAGS="-g"
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_cxx_try_compile "$LINENO"
then :
  ac_cv_prog_cxx_g=yes
else $as_nop
  CXXFLAGS=""
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main (void)
{

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

else $as_nop
  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
	 CXXFLAGS="-g"
	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main (void)
{

  ;
  return 0;
}
_ACEOF
if ac_fn_cxx_try_compile "$LINENO"
then :
  ac_cv_prog_cxx_g=yes
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
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
printf "%s\n" "$ac_cv_prog_cxx_g" >&6; }
if test $ac_test_CXXFLAGS; then
  CXXFLAGS=$ac_save_CXXFLAGS
elif test $ac_cv_prog_cxx_g = yes; then
  if test "$GXX" = yes; then
    CXXFLAGS="-g -O2"
  else
    CXXFLAGS="-g"
  fi
else
  if test "$GXX" = yes; then
    CXXFLAGS="-O2"
  else
    CXXFLAGS=
  fi
fi
ac_prog_cxx_stdcxx=no
if test x$ac_prog_cxx_stdcxx = xno
then :
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++11 features" >&5
printf %s "checking for $CXX option to enable C++11 features... " >&6; }
if test ${ac_cv_prog_cxx_cxx11+y}
then :
  printf %s "(cached) " >&6
else $as_nop
  ac_cv_prog_cxx_cxx11=no
ac_save_CXX=$CXX
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
$ac_cxx_conftest_cxx11_program
_ACEOF
for ac_arg in '' -std=gnu++11 -std=gnu++0x -std=c++11 -std=c++0x -qlanglvl=extended0x -AA
do
  CXX="$ac_save_CXX $ac_arg"
  if ac_fn_cxx_try_compile "$LINENO"
then :
  ac_cv_prog_cxx_cxx11=$ac_arg
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam
  test "x$ac_cv_prog_cxx_cxx11" != "xno" && break
done
rm -f conftest.$ac_ext
CXX=$ac_save_CXX
fi

if test "x$ac_cv_prog_cxx_cxx11" = xno
then :
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
printf "%s\n" "unsupported" >&6; }
else $as_nop
  if test "x$ac_cv_prog_cxx_cxx11" = x
then :
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
printf "%s\n" "none needed" >&6; }
else $as_nop
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx11" >&5
printf "%s\n" "$ac_cv_prog_cxx_cxx11" >&6; }
     CXX="$CXX $ac_cv_prog_cxx_cxx11"
fi
  ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx11
  ac_prog_cxx_stdcxx=cxx11
fi
fi
if test x$ac_prog_cxx_stdcxx = xno
then :
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++98 features" >&5
printf %s "checking for $CXX option to enable C++98 features... " >&6; }
if test ${ac_cv_prog_cxx_cxx98+y}
then :
  printf %s "(cached) " >&6
else $as_nop
  ac_cv_prog_cxx_cxx98=no
ac_save_CXX=$CXX
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
$ac_cxx_conftest_cxx98_program
_ACEOF
for ac_arg in '' -std=gnu++98 -std=c++98 -qlanglvl=extended -AA
do
  CXX="$ac_save_CXX $ac_arg"
  if ac_fn_cxx_try_compile "$LINENO"
then :
  ac_cv_prog_cxx_cxx98=$ac_arg
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam
  test "x$ac_cv_prog_cxx_cxx98" != "xno" && break
done
rm -f conftest.$ac_ext
CXX=$ac_save_CXX
fi

if test "x$ac_cv_prog_cxx_cxx98" = xno
then :
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
printf "%s\n" "unsupported" >&6; }
else $as_nop
  if test "x$ac_cv_prog_cxx_cxx98" = x
then :
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
printf "%s\n" "none needed" >&6; }
else $as_nop
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx98" >&5
printf "%s\n" "$ac_cv_prog_cxx_cxx98" >&6; }
     CXX="$CXX $ac_cv_prog_cxx_cxx98"
fi
  ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx98
  ac_prog_cxx_stdcxx=cxx98
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



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CXX support option -no-pie" >&5
printf %s "checking if $CXX support option -no-pie... " >&6; }
if { as_var=ac_cv_cxx_option_`echo -no-pie|tr -c -d a-zA-Z0-9_`; eval test \${$as_var+y}; }
then :
  printf %s "(cached) " >&6
else $as_nop

      cat << \EOF > test.cpp
int main(void)
{
  return 0;
}
EOF
      if { ac_try='$CXX -no-pie test.cpp -o test.o'
  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&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_supported=yes
        for s in LD_FLAGS_DEBUG LD_FLAGS_GCOV LD_FLAGS_VALGRIND; do
          eval "if test -n \"\$$s\"; then $s=\"\$$s \"; fi"
          eval "$s=\"\$$s-no-pie\""
        done
      else
        ac_supported=no
      fi
      eval "ac_cv_cxx_option_`echo -no-pie|tr -c -d a-zA-Z0-9_`=\$ac_supported"

      rm -f test.cpp test.o


fi
eval ac_res=\$ac_cv_cxx_option_`echo -no-pie|tr -c -d a-zA-Z0-9_`
	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
printf "%s\n" "$ac_res" >&6; }

CC_FLAGS_OPTIMIZE="$CC_FLAGS_OPTIMIZE"
CC_FLAGS_OPTIMIZE_RELEASE="$CC_FLAGS_OPTIMIZE_RELEASE -O2"


  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC support option -fno-schedule-insns2" >&5
printf %s "checking if $CC support option -fno-schedule-insns2... " >&6; }
if { as_var=ac_cv_c_option_`echo -fno-schedule-insns2|tr -c -d a-zA-Z0-9_`; eval test \${$as_var+y}; }
then :
  printf %s "(cached) " >&6
else $as_nop

      cat << \EOF > test.c
int main(void)
{
  return 0;
}
EOF
      if { ac_try='$CC -fno-schedule-insns2 test.c -o test.o'
  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&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_supported=yes
        for s in CC_FLAGS_OPTIMIZE_RELEASE; do
          eval "if test -n \"\$$s\"; then $s=\"\$$s \"; fi"
          eval "$s=\"\$$s-fno-schedule-insns2\""
        done
      else
        ac_supported=no
      fi
      eval "ac_cv_c_option_`echo -fno-schedule-insns2|tr -c -d a-zA-Z0-9_`=\$ac_supported"

      rm -f test.c test.o


fi
eval ac_res=\$ac_cv_c_option_`echo -fno-schedule-insns2|tr -c -d a-zA-Z0-9_`
	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
printf "%s\n" "$ac_res" >&6; }
CC_FLAGS_OPTIMIZE_DEBUG="$CC_FLAGS_OPTIMIZE_DEBUG -O0"
CC_FLAGS_OPTIMIZE_VALGRIND="$CC_FLAGS_OPTIMIZE_VALGRIND -O2"

CC_DEFINES="$CC_DEFINES"
CC_DEFINES_RELEASE="$CC_DEFINES_RELEASE NDEBUG"
CC_DEFINES_DEBUG="$CC_DEFINES_DEBUG"
CC_DEFINES_VALGRIND="$CC_DEFINES_VALGRIND"

case $host_os in
  linux-*)
    ;;
  sunos | solaris*)
    ;;
  darwin*)
    ;;
  windows*|mingw*)
    CC_DEFINES="$CC_DEFINES _WIN32_WINNT=0x0600 _POSIX_C_SOURCE"
    ;;
esac

CC_INCLUDES="$CC_INCLUDES"
case $host_os in
  linux-*)
    ;;
  sunos | solaris*)
    ;;
  darwin*)
    ;;
  windows*|mingw*)
    ;;
esac

LD_FLAGS=""
if test ! $ENABLE_LINK_DYNAMIC = "yes"; then
  LD_FLAGS="-static-libgcc"
fi
LIBRARY_PATHS="$LIBRARY_PATHS /usr/local/lib"
case $host_os in
  linux-*)
    if test "$ENABLE_DEBUG" = "yes"; then
      # required for printing stacktraces


  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC support option -rdynamic" >&5
printf %s "checking if $CC support option -rdynamic... " >&6; }
if { as_var=ac_cv_c_option_`echo -rdynamic|tr -c -d a-zA-Z0-9_`; eval test \${$as_var+y}; }
then :
  printf %s "(cached) " >&6
else $as_nop

      cat << \EOF > test.c
int main(void)
{
  return 0;
}
EOF
      if { ac_try='$CC -rdynamic test.c -o test.o'
  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&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_supported=yes
        for s in CC_FLAGS CXX_FLAGS LD_FLAGS; do
          eval "if test -n \"\$$s\"; then $s=\"\$$s \"; fi"
          eval "$s=\"\$$s-rdynamic\""
        done
      else
        ac_supported=no
      fi
      eval "ac_cv_c_option_`echo -rdynamic|tr -c -d a-zA-Z0-9_`=\$ac_supported"

      rm -f test.c test.o


fi
eval ac_res=\$ac_cv_c_option_`echo -rdynamic|tr -c -d a-zA-Z0-9_`
	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
printf "%s\n" "$ac_res" >&6; }
    fi
    ;;
  sunos | solaris*)
    if test "$ENABLE_DEBUG" = "yes"; then
      # required for printing stacktraces


  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC support option -rdynamic" >&5
printf %s "checking if $CC support option -rdynamic... " >&6; }
if { as_var=ac_cv_c_option_`echo -rdynamic|tr -c -d a-zA-Z0-9_`; eval test \${$as_var+y}; }
then :
  printf %s "(cached) " >&6
else $as_nop

      cat << \EOF > test.c
int main(void)
{
  return 0;
}
EOF
      if { ac_try='$CC -rdynamic test.c -o test.o'
  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&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_supported=yes
        for s in CC_FLAGS CXX_FLAGS LD_FLAGS; do
          eval "if test -n \"\$$s\"; then $s=\"\$$s \"; fi"
          eval "$s=\"\$$s-rdynamic\""
        done
      else
        ac_supported=no
      fi
      eval "ac_cv_c_option_`echo -rdynamic|tr -c -d a-zA-Z0-9_`=\$ac_supported"

      rm -f test.c test.o


fi
eval ac_res=\$ac_cv_c_option_`echo -rdynamic|tr -c -d a-zA-Z0-9_`
	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
printf "%s\n" "$ac_res" >&6; }
    fi
    ;;
  darwin*)
    if test "$ENABLE_DEBUG" = "yes"; then
      # required for printing stacktraces


  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC support option -rdynamic" >&5
printf %s "checking if $CC support option -rdynamic... " >&6; }
if { as_var=ac_cv_c_option_`echo -rdynamic|tr -c -d a-zA-Z0-9_`; eval test \${$as_var+y}; }
then :
  printf %s "(cached) " >&6
else $as_nop

      cat << \EOF > test.c
int main(void)
{
  return 0;
}
EOF
      if { ac_try='$CC -rdynamic test.c -o test.o'
  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&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_supported=yes
        for s in CC_FLAGS CXX_FLAGS LD_FLAGS; do
          eval "if test -n \"\$$s\"; then $s=\"\$$s \"; fi"
          eval "$s=\"\$$s-rdynamic\""
        done
      else
        ac_supported=no
      fi
      eval "ac_cv_c_option_`echo -rdynamic|tr -c -d a-zA-Z0-9_`=\$ac_supported"

      rm -f test.c test.o


fi
eval ac_res=\$ac_cv_c_option_`echo -rdynamic|tr -c -d a-zA-Z0-9_`
	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
printf "%s\n" "$ac_res" >&6; }
    fi
    ;;
  windows*|mingw*)
    ;;
esac

# sudo tests (Note: keep "," immediately after "]"!)

  if test -n "$SUDO"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for execution of '$SUDO mknod \* c \*'" >&5
printf %s "checking for execution of '$SUDO mknod \* c \*'... " >&6; }
    as_ac_cv_prog_sudo_command=`printf "%s\n" "ac_cv_prog_sudo_command_\`echo mknod \\* c \\*|tr -c -d a-zA-Z0-9_\`" | $as_tr_sh`
    if eval test \${$as_ac_cv_prog_sudo_command+y}
then :
  printf %s "(cached) " >&6
else $as_nop

        # escape command
        ac_pattern="mknod \* c \*"
        ac_pattern=`echo "$ac_pattern"|sed 's/\(\[\)/\\\\\1/g'`
        ac_pattern=`echo "$ac_pattern"|sed 's/\(\]\)/\\\\\1/g'`
        ac_pattern=`echo "$ac_pattern"|sed 's/=/\\\\\\\\=/g'`
        ac_pattern=`echo "$ac_pattern"|sed 's/ \\+/\\\\s+/g'`

        # test sudo
        SUDO_ASKPASS=false $SUDO -n -ll 2>/dev/null | grep -E "$ac_pattern" 1>/dev/null 2>/dev/null
        if   test $? -eq 0; then
          ac_result=yes
        else
          ac_result=no
        fi
        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_result" >&5
printf "%s\n" "$ac_result" >&6; }
        eval "$as_ac_cv_prog_sudo_command=\$ac_result"


fi

  else
    ac_result=no
  fi
  if test "$ac_result" != "no"
then :

else $as_nop
  HAVE_SUDO_COMMAND_MKNOD_C=0;      HAVE_SUDO_COMMANDS=0
fi


  if test -n "$SUDO"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for execution of '$SUDO mknod \* b \*'" >&5
printf %s "checking for execution of '$SUDO mknod \* b \*'... " >&6; }
    as_ac_cv_prog_sudo_command=`printf "%s\n" "ac_cv_prog_sudo_command_\`echo mknod \\* b \\*|tr -c -d a-zA-Z0-9_\`" | $as_tr_sh`
    if eval test \${$as_ac_cv_prog_sudo_command+y}
then :
  printf %s "(cached) " >&6
else $as_nop

        # escape command
        ac_pattern="mknod \* b \*"
        ac_pattern=`echo "$ac_pattern"|sed 's/\(\[\)/\\\\\1/g'`
        ac_pattern=`echo "$ac_pattern"|sed 's/\(\]\)/\\\\\1/g'`
        ac_pattern=`echo "$ac_pattern"|sed 's/=/\\\\\\\\=/g'`
        ac_pattern=`echo "$ac_pattern"|sed 's/ \\+/\\\\s+/g'`

        # test sudo
        SUDO_ASKPASS=false $SUDO -n -ll 2>/dev/null | grep -E "$ac_pattern" 1>/dev/null 2>/dev/null
        if   test $? -eq 0; then
          ac_result=yes
        else
          ac_result=no
        fi
        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_result" >&5
printf "%s\n" "$ac_result" >&6; }
        eval "$as_ac_cv_prog_sudo_command=\$ac_result"


fi

  else
    ac_result=no
  fi
  if test "$ac_result" != "no"
then :

else $as_nop
  HAVE_SUDO_COMMAND_MKNOD_B=0;      HAVE_SUDO_COMMANDS=0
fi


  if test -n "$SUDO"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for execution of '$SUDO chattr \* data/\*'" >&5
printf %s "checking for execution of '$SUDO chattr \* data/\*'... " >&6; }
    as_ac_cv_prog_sudo_command=`printf "%s\n" "ac_cv_prog_sudo_command_\`echo chattr \\* data/\\*|tr -c -d a-zA-Z0-9_\`" | $as_tr_sh`
    if eval test \${$as_ac_cv_prog_sudo_command+y}
then :
  printf %s "(cached) " >&6
else $as_nop

        # escape command
        ac_pattern="chattr \* data/\*"
        ac_pattern=`echo "$ac_pattern"|sed 's/\(\[\)/\\\\\1/g'`
        ac_pattern=`echo "$ac_pattern"|sed 's/\(\]\)/\\\\\1/g'`
        ac_pattern=`echo "$ac_pattern"|sed 's/=/\\\\\\\\=/g'`
        ac_pattern=`echo "$ac_pattern"|sed 's/ \\+/\\\\s+/g'`

        # test sudo
        SUDO_ASKPASS=false $SUDO -n -ll 2>/dev/null | grep -E "$ac_pattern" 1>/dev/null 2>/dev/null
        if   test $? -eq 0; then
          ac_result=yes
        else
          ac_result=no
        fi
        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_result" >&5
printf "%s\n" "$ac_result" >&6; }
        eval "$as_ac_cv_prog_sudo_command=\$ac_result"


fi

  else
    ac_result=no
  fi
  if test "$ac_result" != "no"
then :

else $as_nop
  HAVE_SUDO_COMMAND_CHATTR=0;       HAVE_SUDO_COMMANDS=0
fi


  if test -n "$SUDO"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for execution of '$SUDO chattr \* configure-\*'" >&5
printf %s "checking for execution of '$SUDO chattr \* configure-\*'... " >&6; }
    as_ac_cv_prog_sudo_command=`printf "%s\n" "ac_cv_prog_sudo_command_\`echo chattr \\* configure-\\*|tr -c -d a-zA-Z0-9_\`" | $as_tr_sh`
    if eval test \${$as_ac_cv_prog_sudo_command+y}
then :
  printf %s "(cached) " >&6
else $as_nop

        # escape command
        ac_pattern="chattr \* configure-\*"
        ac_pattern=`echo "$ac_pattern"|sed 's/\(\[\)/\\\\\1/g'`
        ac_pattern=`echo "$ac_pattern"|sed 's/\(\]\)/\\\\\1/g'`
        ac_pattern=`echo "$ac_pattern"|sed 's/=/\\\\\\\\=/g'`
        ac_pattern=`echo "$ac_pattern"|sed 's/ \\+/\\\\s+/g'`

        # test sudo
        SUDO_ASKPASS=false $SUDO -n -ll 2>/dev/null | grep -E "$ac_pattern" 1>/dev/null 2>/dev/null
        if   test $? -eq 0; then
          ac_result=yes
        else
          ac_result=no
        fi
        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_result" >&5
printf "%s\n" "$ac_result" >&6; }
        eval "$as_ac_cv_prog_sudo_command=\$ac_result"


fi

  else
    ac_result=no
  fi
  if test "$ac_result" != "no"
then :

else $as_nop
  HAVE_SUDO_COMMAND_CHATTR=0;       HAVE_SUDO_COMMANDS=0
fi


  if test -n "$SUDO"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for execution of '$SUDO mount /dev/loop[01] intermediate/dev[01]'" >&5
printf %s "checking for execution of '$SUDO mount /dev/loop[01] intermediate/dev[01]'... " >&6; }
    as_ac_cv_prog_sudo_command=`printf "%s\n" "ac_cv_prog_sudo_command_\`echo mount /dev/loop[01] intermediate/dev[01]|tr -c -d a-zA-Z0-9_\`" | $as_tr_sh`
    if eval test \${$as_ac_cv_prog_sudo_command+y}
then :
  printf %s "(cached) " >&6
else $as_nop

        # escape command
        ac_pattern="mount /dev/loop[01] intermediate/dev[01]"
        ac_pattern=`echo "$ac_pattern"|sed 's/\(\[\)/\\\\\1/g'`
        ac_pattern=`echo "$ac_pattern"|sed 's/\(\]\)/\\\\\1/g'`
        ac_pattern=`echo "$ac_pattern"|sed 's/=/\\\\\\\\=/g'`
        ac_pattern=`echo "$ac_pattern"|sed 's/ \\+/\\\\s+/g'`

        # test sudo
        SUDO_ASKPASS=false $SUDO -n -ll 2>/dev/null | grep -E "$ac_pattern" 1>/dev/null 2>/dev/null
        if   test $? -eq 0; then
          ac_result=yes
        else
          ac_result=no
        fi
        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_result" >&5
printf "%s\n" "$ac_result" >&6; }
        eval "$as_ac_cv_prog_sudo_command=\$ac_result"


fi

  else
    ac_result=no
  fi
  if test "$ac_result" != "no"
then :

else $as_nop
  HAVE_SUDO_COMMAND_MOUNT_UMOUNT=0; HAVE_SUDO_COMMANDS=0
fi


  if test -n "$SUDO"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for execution of '$SUDO umount intermediate/dev[01]'" >&5
printf %s "checking for execution of '$SUDO umount intermediate/dev[01]'... " >&6; }
    as_ac_cv_prog_sudo_command=`printf "%s\n" "ac_cv_prog_sudo_command_\`echo umount intermediate/dev[01]|tr -c -d a-zA-Z0-9_\`" | $as_tr_sh`
    if eval test \${$as_ac_cv_prog_sudo_command+y}
then :
  printf %s "(cached) " >&6
else $as_nop

        # escape command
        ac_pattern="umount intermediate/dev[01]"
        ac_pattern=`echo "$ac_pattern"|sed 's/\(\[\)/\\\\\1/g'`
        ac_pattern=`echo "$ac_pattern"|sed 's/\(\]\)/\\\\\1/g'`
        ac_pattern=`echo "$ac_pattern"|sed 's/=/\\\\\\\\=/g'`
        ac_pattern=`echo "$ac_pattern"|sed 's/ \\+/\\\\s+/g'`

        # test sudo
        SUDO_ASKPASS=false $SUDO -n -ll 2>/dev/null | grep -E "$ac_pattern" 1>/dev/null 2>/dev/null
        if   test $? -eq 0; then
          ac_result=yes
        else
          ac_result=no
        fi
        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_result" >&5
printf "%s\n" "$ac_result" >&6; }
        eval "$as_ac_cv_prog_sudo_command=\$ac_result"


fi

  else
    ac_result=no
  fi
  if test "$ac_result" != "no"
then :

else $as_nop
  HAVE_SUDO_COMMAND_MOUNT_UMOUNT=0; HAVE_SUDO_COMMANDS=0
fi


  if test -n "$SUDO"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for execution of '$SUDO losetup -d /dev/loop[01]'" >&5
printf %s "checking for execution of '$SUDO losetup -d /dev/loop[01]'... " >&6; }
    as_ac_cv_prog_sudo_command=`printf "%s\n" "ac_cv_prog_sudo_command_\`echo losetup -d /dev/loop[01]|tr -c -d a-zA-Z0-9_\`" | $as_tr_sh`
    if eval test \${$as_ac_cv_prog_sudo_command+y}
then :
  printf %s "(cached) " >&6
else $as_nop

        # escape command
        ac_pattern="losetup -d /dev/loop[01]"
        ac_pattern=`echo "$ac_pattern"|sed 's/\(\[\)/\\\\\1/g'`
        ac_pattern=`echo "$ac_pattern"|sed 's/\(\]\)/\\\\\1/g'`
        ac_pattern=`echo "$ac_pattern"|sed 's/=/\\\\\\\\=/g'`
        ac_pattern=`echo "$ac_pattern"|sed 's/ \\+/\\\\s+/g'`

        # test sudo
        SUDO_ASKPASS=false $SUDO -n -ll 2>/dev/null | grep -E "$ac_pattern" 1>/dev/null 2>/dev/null
        if   test $? -eq 0; then
          ac_result=yes
        else
          ac_result=no
        fi
        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_result" >&5
printf "%s\n" "$ac_result" >&6; }
        eval "$as_ac_cv_prog_sudo_command=\$ac_result"


fi

  else
    ac_result=no
  fi
  if test "$ac_result" != "no"
then :

else $as_nop
  HAVE_SUDO_COMMAND_LOSETUP=0;      HAVE_SUDO_COMMANDS=0
fi


  if test -n "$SUDO"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for execution of '$SUDO losetup /dev/loop[01] intermediate/dev[01].dat'" >&5
printf %s "checking for execution of '$SUDO losetup /dev/loop[01] intermediate/dev[01].dat'... " >&6; }
    as_ac_cv_prog_sudo_command=`printf "%s\n" "ac_cv_prog_sudo_command_\`echo losetup /dev/loop[01] intermediate/dev[01].dat|tr -c -d a-zA-Z0-9_\`" | $as_tr_sh`
    if eval test \${$as_ac_cv_prog_sudo_command+y}
then :
  printf %s "(cached) " >&6
else $as_nop

        # escape command
        ac_pattern="losetup /dev/loop[01] intermediate/dev[01]\.dat"
        ac_pattern=`echo "$ac_pattern"|sed 's/\(\[\)/\\\\\1/g'`
        ac_pattern=`echo "$ac_pattern"|sed 's/\(\]\)/\\\\\1/g'`
        ac_pattern=`echo "$ac_pattern"|sed 's/=/\\\\\\\\=/g'`
        ac_pattern=`echo "$ac_pattern"|sed 's/ \\+/\\\\s+/g'`

        # test sudo
        SUDO_ASKPASS=false $SUDO -n -ll 2>/dev/null | grep -E "$ac_pattern" 1>/dev/null 2>/dev/null
        if   test $? -eq 0; then
          ac_result=yes
        else
          ac_result=no
        fi
        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_result" >&5
printf "%s\n" "$ac_result" >&6; }
        eval "$as_ac_cv_prog_sudo_command=\$ac_result"


fi

  else
    ac_result=no
  fi
  if test "$ac_result" != "no"
then :

else $as_nop
  HAVE_SUDO_COMMAND_LOSETUP=0;      HAVE_SUDO_COMMANDS=0
fi


  if test -n "$SUDO"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for execution of '$SUDO losetup /dev/loop[01] intermediate/dev0[ab]\.dat'" >&5
printf %s "checking for execution of '$SUDO losetup /dev/loop[01] intermediate/dev0[ab]\.dat'... " >&6; }
    as_ac_cv_prog_sudo_command=`printf "%s\n" "ac_cv_prog_sudo_command_\`echo losetup /dev/loop[01] intermediate/dev0[ab]\\.dat|tr -c -d a-zA-Z0-9_\`" | $as_tr_sh`
    if eval test \${$as_ac_cv_prog_sudo_command+y}
then :
  printf %s "(cached) " >&6
else $as_nop

        # escape command
        ac_pattern="losetup /dev/loop[01] intermediate/dev0[ab]\.dat"
        ac_pattern=`echo "$ac_pattern"|sed 's/\(\[\)/\\\\\1/g'`
        ac_pattern=`echo "$ac_pattern"|sed 's/\(\]\)/\\\\\1/g'`
        ac_pattern=`echo "$ac_pattern"|sed 's/=/\\\\\\\\=/g'`
        ac_pattern=`echo "$ac_pattern"|sed 's/ \\+/\\\\s+/g'`

        # test sudo
        SUDO_ASKPASS=false $SUDO -n -ll 2>/dev/null | grep -E "$ac_pattern" 1>/dev/null 2>/dev/null
        if   test $? -eq 0; then
          ac_result=yes
        else
          ac_result=no
        fi
        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_result" >&5
printf "%s\n" "$ac_result" >&6; }
        eval "$as_ac_cv_prog_sudo_command=\$ac_result"


fi

  else
    ac_result=no
  fi
  if test "$ac_result" != "no"
then :

else $as_nop
  HAVE_SUDO_COMMAND_LOSETUP=0;      HAVE_SUDO_COMMANDS=0
fi


  if test -n "$SUDO"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for execution of '$SUDO chmod o\+rw /dev/loop[01]'" >&5
printf %s "checking for execution of '$SUDO chmod o\+rw /dev/loop[01]'... " >&6; }
    as_ac_cv_prog_sudo_command=`printf "%s\n" "ac_cv_prog_sudo_command_\`echo chmod o\\+rw /dev/loop[01]|tr -c -d a-zA-Z0-9_\`" | $as_tr_sh`
    if eval test \${$as_ac_cv_prog_sudo_command+y}
then :
  printf %s "(cached) " >&6
else $as_nop

        # escape command
        ac_pattern="chmod o\+rw /dev/loop[01]"
        ac_pattern=`echo "$ac_pattern"|sed 's/\(\[\)/\\\\\1/g'`
        ac_pattern=`echo "$ac_pattern"|sed 's/\(\]\)/\\\\\1/g'`
        ac_pattern=`echo "$ac_pattern"|sed 's/=/\\\\\\\\=/g'`
        ac_pattern=`echo "$ac_pattern"|sed 's/ \\+/\\\\s+/g'`

        # test sudo
        SUDO_ASKPASS=false $SUDO -n -ll 2>/dev/null | grep -E "$ac_pattern" 1>/dev/null 2>/dev/null
        if   test $? -eq 0; then
          ac_result=yes
        else
          ac_result=no
        fi
        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_result" >&5
printf "%s\n" "$ac_result" >&6; }
        eval "$as_ac_cv_prog_sudo_command=\$ac_result"


fi

  else
    ac_result=no
  fi
  if test "$ac_result" != "no"
then :

else $as_nop
  HAVE_SUDO_COMMAND_CHMOD=0;        HAVE_SUDO_COMMANDS=0
fi


  if test -n "$SUDO"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for execution of '$SUDO cp -r -p data/\* intermediate/dev[01]'" >&5
printf %s "checking for execution of '$SUDO cp -r -p data/\* intermediate/dev[01]'... " >&6; }
    as_ac_cv_prog_sudo_command=`printf "%s\n" "ac_cv_prog_sudo_command_\`echo cp -r -p data/\\* intermediate/dev[01]|tr -c -d a-zA-Z0-9_\`" | $as_tr_sh`
    if eval test \${$as_ac_cv_prog_sudo_command+y}
then :
  printf %s "(cached) " >&6
else $as_nop

        # escape command
        ac_pattern="cp -r -p data/\* intermediate/dev[01]"
        ac_pattern=`echo "$ac_pattern"|sed 's/\(\[\)/\\\\\1/g'`
        ac_pattern=`echo "$ac_pattern"|sed 's/\(\]\)/\\\\\1/g'`
        ac_pattern=`echo "$ac_pattern"|sed 's/=/\\\\\\\\=/g'`
        ac_pattern=`echo "$ac_pattern"|sed 's/ \\+/\\\\s+/g'`

        # test sudo
        SUDO_ASKPASS=false $SUDO -n -ll 2>/dev/null | grep -E "$ac_pattern" 1>/dev/null 2>/dev/null
        if   test $? -eq 0; then
          ac_result=yes
        else
          ac_result=no
        fi
        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_result" >&5
printf "%s\n" "$ac_result" >&6; }
        eval "$as_ac_cv_prog_sudo_command=\$ac_result"


fi

  else
    ac_result=no
  fi
  if test "$ac_result" != "no"
then :

else $as_nop
  HAVE_SUDO_COMMAND_CP=0;           HAVE_SUDO_COMMANDS=0
fi


  if test -n "$SUDO"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for execution of '$SUDO diff -r intermediate/dev0 intermediate/dev1'" >&5
printf %s "checking for execution of '$SUDO diff -r intermediate/dev0 intermediate/dev1'... " >&6; }
    as_ac_cv_prog_sudo_command=`printf "%s\n" "ac_cv_prog_sudo_command_\`echo diff -r intermediate/dev0 intermediate/dev1|tr -c -d a-zA-Z0-9_\`" | $as_tr_sh`
    if eval test \${$as_ac_cv_prog_sudo_command+y}
then :
  printf %s "(cached) " >&6
else $as_nop

        # escape command
        ac_pattern="diff -r intermediate/dev0 intermediate/dev1"
        ac_pattern=`echo "$ac_pattern"|sed 's/\(\[\)/\\\\\1/g'`
        ac_pattern=`echo "$ac_pattern"|sed 's/\(\]\)/\\\\\1/g'`
        ac_pattern=`echo "$ac_pattern"|sed 's/=/\\\\\\\\=/g'`
        ac_pattern=`echo "$ac_pattern"|sed 's/ \\+/\\\\s+/g'`

        # test sudo
        SUDO_ASKPASS=false $SUDO -n -ll 2>/dev/null | grep -E "$ac_pattern" 1>/dev/null 2>/dev/null
        if   test $? -eq 0; then
          ac_result=yes
        else
          ac_result=no
        fi
        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_result" >&5
printf "%s\n" "$ac_result" >&6; }
        eval "$as_ac_cv_prog_sudo_command=\$ac_result"


fi

  else
    ac_result=no
  fi
  if test "$ac_result" != "no"
then :

else $as_nop
  HAVE_SUDO_COMMAND_DIFF=0;         HAVE_SUDO_COMMANDS=0
fi


  if test -n "$SUDO"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for execution of '$SUDO chattr -i \* data/\*'" >&5
printf %s "checking for execution of '$SUDO chattr -i \* data/\*'... " >&6; }
    as_ac_cv_prog_sudo_command=`printf "%s\n" "ac_cv_prog_sudo_command_\`echo chattr -i \\* data/\\*|tr -c -d a-zA-Z0-9_\`" | $as_tr_sh`
    if eval test \${$as_ac_cv_prog_sudo_command+y}
then :
  printf %s "(cached) " >&6
else $as_nop

        # escape command
        ac_pattern="chattr \* data/\*"
        ac_pattern=`echo "$ac_pattern"|sed 's/\(\[\)/\\\\\1/g'`
        ac_pattern=`echo "$ac_pattern"|sed 's/\(\]\)/\\\\\1/g'`
        ac_pattern=`echo "$ac_pattern"|sed 's/=/\\\\\\\\=/g'`
        ac_pattern=`echo "$ac_pattern"|sed 's/ \\+/\\\\s+/g'`

        # test sudo
        SUDO_ASKPASS=false $SUDO -n -ll 2>/dev/null | grep -E "$ac_pattern" 1>/dev/null 2>/dev/null
        if   test $? -eq 0; then
          ac_result=yes
        else
          ac_result=no
        fi
        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_result" >&5
printf "%s\n" "$ac_result" >&6; }
        eval "$as_ac_cv_prog_sudo_command=\$ac_result"


fi

  else
    ac_result=no
  fi
  if test "$ac_result" != "no"
then :

else $as_nop
  HAVE_SUDO_COMMAND_CHATTR_I=0;     HAVE_SUDO_COMMANDS=0
fi


  if test -n "$SUDO"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for execution of '$SUDO chattr -a \* data/\*'" >&5
printf %s "checking for execution of '$SUDO chattr -a \* data/\*'... " >&6; }
    as_ac_cv_prog_sudo_command=`printf "%s\n" "ac_cv_prog_sudo_command_\`echo chattr -a \\* data/\\*|tr -c -d a-zA-Z0-9_\`" | $as_tr_sh`
    if eval test \${$as_ac_cv_prog_sudo_command+y}
then :
  printf %s "(cached) " >&6
else $as_nop

        # escape command
        ac_pattern="chattr \* data/\*"
        ac_pattern=`echo "$ac_pattern"|sed 's/\(\[\)/\\\\\1/g'`
        ac_pattern=`echo "$ac_pattern"|sed 's/\(\]\)/\\\\\1/g'`
        ac_pattern=`echo "$ac_pattern"|sed 's/=/\\\\\\\\=/g'`
        ac_pattern=`echo "$ac_pattern"|sed 's/ \\+/\\\\s+/g'`

        # test sudo
        SUDO_ASKPASS=false $SUDO -n -ll 2>/dev/null | grep -E "$ac_pattern" 1>/dev/null 2>/dev/null
        if   test $? -eq 0; then
          ac_result=yes
        else
          ac_result=no
        fi
        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_result" >&5
printf "%s\n" "$ac_result" >&6; }
        eval "$as_ac_cv_prog_sudo_command=\$ac_result"


fi

  else
    ac_result=no
  fi
  if test "$ac_result" != "no"
then :

else $as_nop
  HAVE_SUDO_COMMAND_CHATTR_A=0;     HAVE_SUDO_COMMANDS=0
fi


# test user
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if user 'test' exists" >&5
printf %s "checking if user 'test' exists... " >&6; }
if test ${ac_cv_user_test+y}
then :
  printf %s "(cached) " >&6
else $as_nop

    if { ac_try='id test 1>/dev/null'
  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&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_result=yes
    else
      ac_result=no
    fi
    if test "$ac_result" != no
then :
  HAVE_USER_TEST=1
elif :
then :
  HAVE_USER_TEST=0
fi
    ac_cv_user_test=$ac_result


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

case $host_os in
  linux-*)



    ac_result=""
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing round" >&5
printf %s "checking for library containing round... " >&6; }
if test ${ac_cv_search_libraries_round+y}
then :
  printf %s "(cached) " >&6
else $as_nop

            ac_func_search_libraries_save_LIBS=$LIBS

      for ac_library in m ""; do
        if test -z "$ac_library"; then
          ac_result="none required"
        else
          ac_result=-l$ac_library
          LIBS="-l$ac_library $ac_func_search_libraries_save_LIBS"
        fi

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
`echo |sed 's/ /\n/g'|while read s; do if test -n "$s"; then echo $s|sed 's/\(.*\)/#include <\\1>/g'; fi; done`
int
main (void)
{
`if test -z ""; then echo "extern void round();"; fi`
                                         return (int)round;


  ;
  return 0;
}

_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  ac_cv_search_libraries_round=$ac_result; break

fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      done
      if test ${ac_cv_search_libraries_round+y}
then :

else $as_nop
  ac_cv_search_libraries_round=no
fi

            LIBS=$ac_func_search_libraries_save_LIBS


fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_libraries_round" >&5
printf "%s\n" "$ac_cv_search_libraries_round" >&6; }
  ac_result=$ac_cv_search_libraries_round
  if test "$ac_result" != no
then :
  test "$ac_result" = "none required" || LIBS="$ac_result $LIBS" LIBRARIES="$LIBRARIES m"
else $as_nop
  as_fn_error $? "m library not found" "$LINENO" 5
fi



    ac_result=""
  { 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_libraries_dlopen+y}
then :
  printf %s "(cached) " >&6
else $as_nop

            ac_func_search_libraries_save_LIBS=$LIBS

      for ac_library in dl ""; do
        if test -z "$ac_library"; then
          ac_result="none required"
        else
          ac_result=-l$ac_library
          LIBS="-l$ac_library $ac_func_search_libraries_save_LIBS"
        fi

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
`echo |sed 's/ /\n/g'|while read s; do if test -n "$s"; then echo $s|sed 's/\(.*\)/#include <\\1>/g'; fi; done`
int
main (void)
{
`if test -z ""; then echo "extern void dlopen();"; fi`
                                         return (int)dlopen;


  ;
  return 0;
}

_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  ac_cv_search_libraries_dlopen=$ac_result; break

fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      done
      if test ${ac_cv_search_libraries_dlopen+y}
then :

else $as_nop
  ac_cv_search_libraries_dlopen=no
fi

            LIBS=$ac_func_search_libraries_save_LIBS


fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_libraries_dlopen" >&5
printf "%s\n" "$ac_cv_search_libraries_dlopen" >&6; }
  ac_result=$ac_cv_search_libraries_dlopen
  if test "$ac_result" != no
then :
  test "$ac_result" = "none required" || LIBS="$ac_result $LIBS" LIBRARIES="$LIBRARIES dl"
fi



    ac_result=""
  { 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_libraries_clock_gettime+y}
then :
  printf %s "(cached) " >&6
else $as_nop

            ac_func_search_libraries_save_LIBS=$LIBS

      for ac_library in rt ""; do
        if test -z "$ac_library"; then
          ac_result="none required"
        else
          ac_result=-l$ac_library
          LIBS="-l$ac_library $ac_func_search_libraries_save_LIBS"
        fi

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
`echo |sed 's/ /\n/g'|while read s; do if test -n "$s"; then echo $s|sed 's/\(.*\)/#include <\\1>/g'; fi; done`
int
main (void)
{
`if test -z ""; then echo "extern void clock_gettime();"; fi`
                                         return (int)clock_gettime;


  ;
  return 0;
}

_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  ac_cv_search_libraries_clock_gettime=$ac_result; break

fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      done
      if test ${ac_cv_search_libraries_clock_gettime+y}
then :

else $as_nop
  ac_cv_search_libraries_clock_gettime=no
fi

            LIBS=$ac_func_search_libraries_save_LIBS


fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_libraries_clock_gettime" >&5
printf "%s\n" "$ac_cv_search_libraries_clock_gettime" >&6; }
  ac_result=$ac_cv_search_libraries_clock_gettime
  if test "$ac_result" != no
then :
  test "$ac_result" = "none required" || LIBS="$ac_result $LIBS" LIBRARIES="$LIBRARIES rt"
else $as_nop
  as_fn_error $? "rt library not found" "$LINENO" 5
fi



    ac_result=""
  { 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_libraries_pthread_create+y}
then :
  printf %s "(cached) " >&6
else $as_nop

            ac_func_search_libraries_save_LIBS=$LIBS

      for ac_library in pthread ""; do
        if test -z "$ac_library"; then
          ac_result="none required"
        else
          ac_result=-l$ac_library
          LIBS="-l$ac_library $ac_func_search_libraries_save_LIBS"
        fi

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
`echo |sed 's/ /\n/g'|while read s; do if test -n "$s"; then echo $s|sed 's/\(.*\)/#include <\\1>/g'; fi; done`
int
main (void)
{
`if test -z ""; then echo "extern void pthread_create();"; fi`
                                         return (int)pthread_create;


  ;
  return 0;
}

_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  ac_cv_search_libraries_pthread_create=$ac_result; break

fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      done
      if test ${ac_cv_search_libraries_pthread_create+y}
then :

else $as_nop
  ac_cv_search_libraries_pthread_create=no
fi

            LIBS=$ac_func_search_libraries_save_LIBS


fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_libraries_pthread_create" >&5
printf "%s\n" "$ac_cv_search_libraries_pthread_create" >&6; }
  ac_result=$ac_cv_search_libraries_pthread_create
  if test "$ac_result" != no
then :
  test "$ac_result" = "none required" || LIBS="$ac_result $LIBS" LIBRARIES="$LIBRARIES pthread"
else $as_nop
  as_fn_error $? "pthread library not found" "$LINENO" 5
fi



    ac_result=""
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing ns_initparse" >&5
printf %s "checking for library containing ns_initparse... " >&6; }
if test ${ac_cv_search_libraries_ns_initparse+y}
then :
  printf %s "(cached) " >&6
else $as_nop

            ac_func_search_libraries_save_LIBS=$LIBS

      for ac_library in resolv ""; do
        if test -z "$ac_library"; then
          ac_result="none required"
        else
          ac_result=-l$ac_library
          LIBS="-l$ac_library $ac_func_search_libraries_save_LIBS"
        fi

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
`echo |sed 's/ /\n/g'|while read s; do if test -n "$s"; then echo $s|sed 's/\(.*\)/#include <\\1>/g'; fi; done`
int
main (void)
{
`if test -z ""; then echo "extern void ns_initparse();"; fi`
                                         return (int)ns_initparse;


  ;
  return 0;
}

_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  ac_cv_search_libraries_ns_initparse=$ac_result; break

fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      done
      if test ${ac_cv_search_libraries_ns_initparse+y}
then :

else $as_nop
  ac_cv_search_libraries_ns_initparse=no
fi

            LIBS=$ac_func_search_libraries_save_LIBS


fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_libraries_ns_initparse" >&5
printf "%s\n" "$ac_cv_search_libraries_ns_initparse" >&6; }
  ac_result=$ac_cv_search_libraries_ns_initparse
  if test "$ac_result" != no
then :
  test "$ac_result" = "none required" || LIBS="$ac_result $LIBS" LIBRARIES="$LIBRARIES resolv"
fi

    ;;
  sunos | solaris*)


    ac_result=""
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing round" >&5
printf %s "checking for library containing round... " >&6; }
if test ${ac_cv_search_libraries_round+y}
then :
  printf %s "(cached) " >&6
else $as_nop

            ac_func_search_libraries_save_LIBS=$LIBS

      for ac_library in m ""; do
        if test -z "$ac_library"; then
          ac_result="none required"
        else
          ac_result=-l$ac_library
          LIBS="-l$ac_library $ac_func_search_libraries_save_LIBS"
        fi

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
`echo |sed 's/ /\n/g'|while read s; do if test -n "$s"; then echo $s|sed 's/\(.*\)/#include <\\1>/g'; fi; done`
int
main (void)
{
`if test -z ""; then echo "extern void round();"; fi`
                                         return (int)round;


  ;
  return 0;
}

_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  ac_cv_search_libraries_round=$ac_result; break

fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      done
      if test ${ac_cv_search_libraries_round+y}
then :

else $as_nop
  ac_cv_search_libraries_round=no
fi

            LIBS=$ac_func_search_libraries_save_LIBS


fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_libraries_round" >&5
printf "%s\n" "$ac_cv_search_libraries_round" >&6; }
  ac_result=$ac_cv_search_libraries_round
  if test "$ac_result" != no
then :
  test "$ac_result" = "none required" || LIBS="$ac_result $LIBS" LIBRARIES="$LIBRARIES m"
else $as_nop
  as_fn_error $? "m library not found" "$LINENO" 5
fi



    ac_result=""
  { 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_libraries_dlopen+y}
then :
  printf %s "(cached) " >&6
else $as_nop

            ac_func_search_libraries_save_LIBS=$LIBS

      for ac_library in dl ""; do
        if test -z "$ac_library"; then
          ac_result="none required"
        else
          ac_result=-l$ac_library
          LIBS="-l$ac_library $ac_func_search_libraries_save_LIBS"
        fi

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
`echo |sed 's/ /\n/g'|while read s; do if test -n "$s"; then echo $s|sed 's/\(.*\)/#include <\\1>/g'; fi; done`
int
main (void)
{
`if test -z ""; then echo "extern void dlopen();"; fi`
                                         return (int)dlopen;


  ;
  return 0;
}

_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  ac_cv_search_libraries_dlopen=$ac_result; break

fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      done
      if test ${ac_cv_search_libraries_dlopen+y}
then :

else $as_nop
  ac_cv_search_libraries_dlopen=no
fi

            LIBS=$ac_func_search_libraries_save_LIBS


fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_libraries_dlopen" >&5
printf "%s\n" "$ac_cv_search_libraries_dlopen" >&6; }
  ac_result=$ac_cv_search_libraries_dlopen
  if test "$ac_result" != no
then :
  test "$ac_result" = "none required" || LIBS="$ac_result $LIBS" LIBRARIES="$LIBRARIES dl"
fi



    ac_result=""
  { 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_libraries_clock_gettime+y}
then :
  printf %s "(cached) " >&6
else $as_nop

            ac_func_search_libraries_save_LIBS=$LIBS

      for ac_library in rt ""; do
        if test -z "$ac_library"; then
          ac_result="none required"
        else
          ac_result=-l$ac_library
          LIBS="-l$ac_library $ac_func_search_libraries_save_LIBS"
        fi

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
`echo |sed 's/ /\n/g'|while read s; do if test -n "$s"; then echo $s|sed 's/\(.*\)/#include <\\1>/g'; fi; done`
int
main (void)
{
`if test -z ""; then echo "extern void clock_gettime();"; fi`
                                         return (int)clock_gettime;


  ;
  return 0;
}

_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  ac_cv_search_libraries_clock_gettime=$ac_result; break

fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      done
      if test ${ac_cv_search_libraries_clock_gettime+y}
then :

else $as_nop
  ac_cv_search_libraries_clock_gettime=no
fi

            LIBS=$ac_func_search_libraries_save_LIBS


fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_libraries_clock_gettime" >&5
printf "%s\n" "$ac_cv_search_libraries_clock_gettime" >&6; }
  ac_result=$ac_cv_search_libraries_clock_gettime
  if test "$ac_result" != no
then :
  test "$ac_result" = "none required" || LIBS="$ac_result $LIBS" LIBRARIES="$LIBRARIES rt"
else $as_nop
  as_fn_error $? "rt library not found" "$LINENO" 5
fi



    ac_result=""
  { 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_libraries_pthread_create+y}
then :
  printf %s "(cached) " >&6
else $as_nop

            ac_func_search_libraries_save_LIBS=$LIBS

      for ac_library in pthread ""; do
        if test -z "$ac_library"; then
          ac_result="none required"
        else
          ac_result=-l$ac_library
          LIBS="-l$ac_library $ac_func_search_libraries_save_LIBS"
        fi

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
`echo |sed 's/ /\n/g'|while read s; do if test -n "$s"; then echo $s|sed 's/\(.*\)/#include <\\1>/g'; fi; done`
int
main (void)
{
`if test -z ""; then echo "extern void pthread_create();"; fi`
                                         return (int)pthread_create;


  ;
  return 0;
}

_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  ac_cv_search_libraries_pthread_create=$ac_result; break

fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      done
      if test ${ac_cv_search_libraries_pthread_create+y}
then :

else $as_nop
  ac_cv_search_libraries_pthread_create=no
fi

            LIBS=$ac_func_search_libraries_save_LIBS


fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_libraries_pthread_create" >&5
printf "%s\n" "$ac_cv_search_libraries_pthread_create" >&6; }
  ac_result=$ac_cv_search_libraries_pthread_create
  if test "$ac_result" != no
then :
  test "$ac_result" = "none required" || LIBS="$ac_result $LIBS" LIBRARIES="$LIBRARIES pthread"
else $as_nop
  as_fn_error $? "pthread library not found" "$LINENO" 5
fi



    ac_result=""
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing ns_initparse" >&5
printf %s "checking for library containing ns_initparse... " >&6; }
if test ${ac_cv_search_libraries_ns_initparse+y}
then :
  printf %s "(cached) " >&6
else $as_nop

            ac_func_search_libraries_save_LIBS=$LIBS

      for ac_library in resolv ""; do
        if test -z "$ac_library"; then
          ac_result="none required"
        else
          ac_result=-l$ac_library
          LIBS="-l$ac_library $ac_func_search_libraries_save_LIBS"
        fi

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
`echo |sed 's/ /\n/g'|while read s; do if test -n "$s"; then echo $s|sed 's/\(.*\)/#include <\\1>/g'; fi; done`
int
main (void)
{
`if test -z ""; then echo "extern void ns_initparse();"; fi`
                                         return (int)ns_initparse;


  ;
  return 0;
}

_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  ac_cv_search_libraries_ns_initparse=$ac_result; break

fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      done
      if test ${ac_cv_search_libraries_ns_initparse+y}
then :

else $as_nop
  ac_cv_search_libraries_ns_initparse=no
fi

            LIBS=$ac_func_search_libraries_save_LIBS


fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_libraries_ns_initparse" >&5
printf "%s\n" "$ac_cv_search_libraries_ns_initparse" >&6; }
  ac_result=$ac_cv_search_libraries_ns_initparse
  if test "$ac_result" != no
then :
  test "$ac_result" = "none required" || LIBS="$ac_result $LIBS" LIBRARIES="$LIBRARIES resolv"
fi

    ;;
  darwin*)


    ac_result=""
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing round" >&5
printf %s "checking for library containing round... " >&6; }
if test ${ac_cv_search_libraries_round+y}
then :
  printf %s "(cached) " >&6
else $as_nop

            ac_func_search_libraries_save_LIBS=$LIBS

      for ac_library in m ""; do
        if test -z "$ac_library"; then
          ac_result="none required"
        else
          ac_result=-l$ac_library
          LIBS="-l$ac_library $ac_func_search_libraries_save_LIBS"
        fi

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
`echo |sed 's/ /\n/g'|while read s; do if test -n "$s"; then echo $s|sed 's/\(.*\)/#include <\\1>/g'; fi; done`
int
main (void)
{
`if test -z ""; then echo "extern void round();"; fi`
                                         return (int)round;


  ;
  return 0;
}

_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  ac_cv_search_libraries_round=$ac_result; break

fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      done
      if test ${ac_cv_search_libraries_round+y}
then :

else $as_nop
  ac_cv_search_libraries_round=no
fi

            LIBS=$ac_func_search_libraries_save_LIBS


fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_libraries_round" >&5
printf "%s\n" "$ac_cv_search_libraries_round" >&6; }
  ac_result=$ac_cv_search_libraries_round
  if test "$ac_result" != no
then :
  test "$ac_result" = "none required" || LIBS="$ac_result $LIBS" LIBRARIES="$LIBRARIES m"
else $as_nop
  as_fn_error $? "m library not found" "$LINENO" 5
fi



    ac_result=""
  { 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_libraries_dlopen+y}
then :
  printf %s "(cached) " >&6
else $as_nop

            ac_func_search_libraries_save_LIBS=$LIBS

      for ac_library in dl ""; do
        if test -z "$ac_library"; then
          ac_result="none required"
        else
          ac_result=-l$ac_library
          LIBS="-l$ac_library $ac_func_search_libraries_save_LIBS"
        fi

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
`echo |sed 's/ /\n/g'|while read s; do if test -n "$s"; then echo $s|sed 's/\(.*\)/#include <\\1>/g'; fi; done`
int
main (void)
{
`if test -z ""; then echo "extern void dlopen();"; fi`
                                         return (int)dlopen;


  ;
  return 0;
}

_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  ac_cv_search_libraries_dlopen=$ac_result; break

fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      done
      if test ${ac_cv_search_libraries_dlopen+y}
then :

else $as_nop
  ac_cv_search_libraries_dlopen=no
fi

            LIBS=$ac_func_search_libraries_save_LIBS


fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_libraries_dlopen" >&5
printf "%s\n" "$ac_cv_search_libraries_dlopen" >&6; }
  ac_result=$ac_cv_search_libraries_dlopen
  if test "$ac_result" != no
then :
  test "$ac_result" = "none required" || LIBS="$ac_result $LIBS" LIBRARIES="$LIBRARIES dl"
fi



    ac_result=""
  { 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_libraries_clock_gettime+y}
then :
  printf %s "(cached) " >&6
else $as_nop

            ac_func_search_libraries_save_LIBS=$LIBS

      for ac_library in rt ""; do
        if test -z "$ac_library"; then
          ac_result="none required"
        else
          ac_result=-l$ac_library
          LIBS="-l$ac_library $ac_func_search_libraries_save_LIBS"
        fi

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
`echo |sed 's/ /\n/g'|while read s; do if test -n "$s"; then echo $s|sed 's/\(.*\)/#include <\\1>/g'; fi; done`
int
main (void)
{
`if test -z ""; then echo "extern void clock_gettime();"; fi`
                                         return (int)clock_gettime;


  ;
  return 0;
}

_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  ac_cv_search_libraries_clock_gettime=$ac_result; break

fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      done
      if test ${ac_cv_search_libraries_clock_gettime+y}
then :

else $as_nop
  ac_cv_search_libraries_clock_gettime=no
fi

            LIBS=$ac_func_search_libraries_save_LIBS


fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_libraries_clock_gettime" >&5
printf "%s\n" "$ac_cv_search_libraries_clock_gettime" >&6; }
  ac_result=$ac_cv_search_libraries_clock_gettime
  if test "$ac_result" != no
then :
  test "$ac_result" = "none required" || LIBS="$ac_result $LIBS" LIBRARIES="$LIBRARIES rt"
else $as_nop
  as_fn_error $? "rt library not found" "$LINENO" 5
fi



    ac_result=""
  { 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_libraries_pthread_create+y}
then :
  printf %s "(cached) " >&6
else $as_nop

            ac_func_search_libraries_save_LIBS=$LIBS

      for ac_library in pthread ""; do
        if test -z "$ac_library"; then
          ac_result="none required"
        else
          ac_result=-l$ac_library
          LIBS="-l$ac_library $ac_func_search_libraries_save_LIBS"
        fi

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
`echo |sed 's/ /\n/g'|while read s; do if test -n "$s"; then echo $s|sed 's/\(.*\)/#include <\\1>/g'; fi; done`
int
main (void)
{
`if test -z ""; then echo "extern void pthread_create();"; fi`
                                         return (int)pthread_create;


  ;
  return 0;
}

_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  ac_cv_search_libraries_pthread_create=$ac_result; break

fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      done
      if test ${ac_cv_search_libraries_pthread_create+y}
then :

else $as_nop
  ac_cv_search_libraries_pthread_create=no
fi

            LIBS=$ac_func_search_libraries_save_LIBS


fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_libraries_pthread_create" >&5
printf "%s\n" "$ac_cv_search_libraries_pthread_create" >&6; }
  ac_result=$ac_cv_search_libraries_pthread_create
  if test "$ac_result" != no
then :
  test "$ac_result" = "none required" || LIBS="$ac_result $LIBS" LIBRARIES="$LIBRARIES pthread"
else $as_nop
  as_fn_error $? "pthread library not found" "$LINENO" 5
fi



    ac_result=""
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing ns_initparse" >&5
printf %s "checking for library containing ns_initparse... " >&6; }
if test ${ac_cv_search_libraries_ns_initparse+y}
then :
  printf %s "(cached) " >&6
else $as_nop

            ac_func_search_libraries_save_LIBS=$LIBS

      for ac_library in resolv ""; do
        if test -z "$ac_library"; then
          ac_result="none required"
        else
          ac_result=-l$ac_library
          LIBS="-l$ac_library $ac_func_search_libraries_save_LIBS"
        fi

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
`echo |sed 's/ /\n/g'|while read s; do if test -n "$s"; then echo $s|sed 's/\(.*\)/#include <\\1>/g'; fi; done`
int
main (void)
{
`if test -z ""; then echo "extern void ns_initparse();"; fi`
                                         return (int)ns_initparse;


  ;
  return 0;
}

_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  ac_cv_search_libraries_ns_initparse=$ac_result; break

fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      done
      if test ${ac_cv_search_libraries_ns_initparse+y}
then :

else $as_nop
  ac_cv_search_libraries_ns_initparse=no
fi

            LIBS=$ac_func_search_libraries_save_LIBS


fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_libraries_ns_initparse" >&5
printf "%s\n" "$ac_cv_search_libraries_ns_initparse" >&6; }
  ac_result=$ac_cv_search_libraries_ns_initparse
  if test "$ac_result" != no
then :
  test "$ac_result" = "none required" || LIBS="$ac_result $LIBS" LIBRARIES="$LIBRARIES resolv"
fi

    ;;
  windows*|mingw*)


    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for static library containing pthread_create" >&5
printf %s "checking for static library containing pthread_create... " >&6; }
if test ${ac_cv_search_static_pthread_create+y}
then :
  printf %s "(cached) " >&6
else $as_nop

            ac_func_search_static_libraries_save_CFLAGS="$CFLAGS"
      ac_func_search_static_libraries_save_LIBS="$LIBS"

            CFLAGS="$CFLAGS"
      ac_libraries=""
      for ac_library in pthreadGC2; do
        if test -n "$ac_libraries"; then
          ac_libraries="$ac_libraries -l$ac_library"
        else
          ac_libraries="-l$ac_library"
        fi
      done
      LIBS="-Wl,-Bstatic $ac_libraries -Wl,-Bdynamic $ac_func_search_static_libraries_save_LIBS"
      if test -z "$ac_libraries"; then
        ac_result="none required"
      else
        ac_result=$ac_libraries
      fi
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
`echo pthread.h|sed 's/ /\n/g'|while read s; do if test -n "$s"; then echo $s|sed 's/\(.*\)/#include <\\1>/g'; fi; done`
int
main (void)
{
`if test -z "pthread.h"; then echo "extern void pthread_create();"; fi`
                                       return (int)pthread_create;


  ;
  return 0;
}

_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  ac_cv_search_static_pthread_create=$ac_result; break

fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if test ${ac_cv_search_static_pthread_create+y}
then :

else $as_nop
  ac_cv_search_static_pthread_create=no
fi

            LIBS=$ac_func_search_static_libraries_save_LIBS
      CFLAGS=$ac_func_search_static_libraries_save_CFLAGS


fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_static_pthread_create" >&5
printf "%s\n" "$ac_cv_search_static_pthread_create" >&6; }
  ac_result=$ac_cv_search_static_pthread_create
  if test "$ac_result" != no
then :
  test "$ac_result" = "none required" || LIBS="$ac_result $LIBS" STATIC_LIBRARIES="$STATIC_LIBRARIES pthreadGC2"
fi



    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for static library containing WSAStartup" >&5
printf %s "checking for static library containing WSAStartup... " >&6; }
if test ${ac_cv_search_static_WSAStartup+y}
then :
  printf %s "(cached) " >&6
else $as_nop

            ac_func_search_static_libraries_save_CFLAGS="$CFLAGS"
      ac_func_search_static_libraries_save_LIBS="$LIBS"

            CFLAGS="$CFLAGS"
      ac_libraries=""
      for ac_library in wsock32; do
        if test -n "$ac_libraries"; then
          ac_libraries="$ac_libraries -l$ac_library"
        else
          ac_libraries="-l$ac_library"
        fi
      done
      LIBS="-Wl,-Bstatic $ac_libraries -Wl,-Bdynamic $ac_func_search_static_libraries_save_LIBS"
      if test -z "$ac_libraries"; then
        ac_result="none required"
      else
        ac_result=$ac_libraries
      fi
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
`echo winsock2.h|sed 's/ /\n/g'|while read s; do if test -n "$s"; then echo $s|sed 's/\(.*\)/#include <\\1>/g'; fi; done`
int
main (void)
{
`if test -z "winsock2.h"; then echo "extern void WSAStartup();"; fi`
                                       return (int)WSAStartup;


  ;
  return 0;
}

_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  ac_cv_search_static_WSAStartup=$ac_result; break

fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if test ${ac_cv_search_static_WSAStartup+y}
then :

else $as_nop
  ac_cv_search_static_WSAStartup=no
fi

            LIBS=$ac_func_search_static_libraries_save_LIBS
      CFLAGS=$ac_func_search_static_libraries_save_CFLAGS


fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_static_WSAStartup" >&5
printf "%s\n" "$ac_cv_search_static_WSAStartup" >&6; }
  ac_result=$ac_cv_search_static_WSAStartup
  if test "$ac_result" != no
then :
  test "$ac_result" = "none required" || LIBS="$ac_result $LIBS" STATIC_LIBRARIES="$STATIC_LIBRARIES wsock32"
fi



    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for static library containing getaddrinfo" >&5
printf %s "checking for static library containing getaddrinfo... " >&6; }
if test ${ac_cv_search_static_getaddrinfo+y}
then :
  printf %s "(cached) " >&6
else $as_nop

            ac_func_search_static_libraries_save_CFLAGS="$CFLAGS"
      ac_func_search_static_libraries_save_LIBS="$LIBS"

            CFLAGS="$CFLAGS"
      ac_libraries=""
      for ac_library in ws2_32; do
        if test -n "$ac_libraries"; then
          ac_libraries="$ac_libraries -l$ac_library"
        else
          ac_libraries="-l$ac_library"
        fi
      done
      LIBS="-Wl,-Bstatic $ac_libraries -Wl,-Bdynamic $ac_func_search_static_libraries_save_LIBS"
      if test -z "$ac_libraries"; then
        ac_result="none required"
      else
        ac_result=$ac_libraries
      fi
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
`echo ws2tcpip.h|sed 's/ /\n/g'|while read s; do if test -n "$s"; then echo $s|sed 's/\(.*\)/#include <\\1>/g'; fi; done`
int
main (void)
{
`if test -z "ws2tcpip.h"; then echo "extern void getaddrinfo();"; fi`
                                       return (int)getaddrinfo;


  ;
  return 0;
}

_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  ac_cv_search_static_getaddrinfo=$ac_result; break

fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if test ${ac_cv_search_static_getaddrinfo+y}
then :

else $as_nop
  ac_cv_search_static_getaddrinfo=no
fi

            LIBS=$ac_func_search_static_libraries_save_LIBS
      CFLAGS=$ac_func_search_static_libraries_save_CFLAGS


fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_static_getaddrinfo" >&5
printf "%s\n" "$ac_cv_search_static_getaddrinfo" >&6; }
  ac_result=$ac_cv_search_static_getaddrinfo
  if test "$ac_result" != no
then :
  test "$ac_result" = "none required" || LIBS="$ac_result $LIBS" STATIC_LIBRARIES="$STATIC_LIBRARIES ws2_32"
fi



    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for static library containing UuidCreate" >&5
printf %s "checking for static library containing UuidCreate... " >&6; }
if test ${ac_cv_search_static_UuidCreate+y}
then :
  printf %s "(cached) " >&6
else $as_nop

            ac_func_search_static_libraries_save_CFLAGS="$CFLAGS"
      ac_func_search_static_libraries_save_LIBS="$LIBS"

            CFLAGS="$CFLAGS"
      ac_libraries=""
      for ac_library in rpcrt4; do
        if test -n "$ac_libraries"; then
          ac_libraries="$ac_libraries -l$ac_library"
        else
          ac_libraries="-l$ac_library"
        fi
      done
      LIBS="-Wl,-Bstatic $ac_libraries -Wl,-Bdynamic $ac_func_search_static_libraries_save_LIBS"
      if test -z "$ac_libraries"; then
        ac_result="none required"
      else
        ac_result=$ac_libraries
      fi
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
`echo windows.h rpcdce.h|sed 's/ /\n/g'|while read s; do if test -n "$s"; then echo $s|sed 's/\(.*\)/#include <\\1>/g'; fi; done`
int
main (void)
{
`if test -z "windows.h rpcdce.h"; then echo "extern void UuidCreate();"; fi`
                                       return (int)UuidCreate;


  ;
  return 0;
}

_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  ac_cv_search_static_UuidCreate=$ac_result; break

fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if test ${ac_cv_search_static_UuidCreate+y}
then :

else $as_nop
  ac_cv_search_static_UuidCreate=no
fi

            LIBS=$ac_func_search_static_libraries_save_LIBS
      CFLAGS=$ac_func_search_static_libraries_save_CFLAGS


fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_static_UuidCreate" >&5
printf "%s\n" "$ac_cv_search_static_UuidCreate" >&6; }
  ac_result=$ac_cv_search_static_UuidCreate
  if test "$ac_result" != no
then :
  test "$ac_result" = "none required" || LIBS="$ac_result $LIBS" STATIC_LIBRARIES="$STATIC_LIBRARIES rpcrt4"
fi



    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for static library containing SHGetFolderPath" >&5
printf %s "checking for static library containing SHGetFolderPath... " >&6; }
if test ${ac_cv_search_static_SHGetFolderPath+y}
then :
  printf %s "(cached) " >&6
else $as_nop

            ac_func_search_static_libraries_save_CFLAGS="$CFLAGS"
      ac_func_search_static_libraries_save_LIBS="$LIBS"

            CFLAGS="$CFLAGS"
      ac_libraries=""
      for ac_library in shell32; do
        if test -n "$ac_libraries"; then
          ac_libraries="$ac_libraries -l$ac_library"
        else
          ac_libraries="-l$ac_library"
        fi
      done
      LIBS="-Wl,-Bstatic $ac_libraries -Wl,-Bdynamic $ac_func_search_static_libraries_save_LIBS"
      if test -z "$ac_libraries"; then
        ac_result="none required"
      else
        ac_result=$ac_libraries
      fi
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
`echo shlobj.h|sed 's/ /\n/g'|while read s; do if test -n "$s"; then echo $s|sed 's/\(.*\)/#include <\\1>/g'; fi; done`
int
main (void)
{
`if test -z "shlobj.h"; then echo "extern void SHGetFolderPath();"; fi`
                                       return (int)SHGetFolderPath;


  ;
  return 0;
}

_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  ac_cv_search_static_SHGetFolderPath=$ac_result; break

fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if test ${ac_cv_search_static_SHGetFolderPath+y}
then :

else $as_nop
  ac_cv_search_static_SHGetFolderPath=no
fi

            LIBS=$ac_func_search_static_libraries_save_LIBS
      CFLAGS=$ac_func_search_static_libraries_save_CFLAGS


fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_static_SHGetFolderPath" >&5
printf "%s\n" "$ac_cv_search_static_SHGetFolderPath" >&6; }
  ac_result=$ac_cv_search_static_SHGetFolderPath
  if test "$ac_result" != no
then :
  test "$ac_result" = "none required" || LIBS="$ac_result $LIBS" STATIC_LIBRARIES="$STATIC_LIBRARIES shell32"
fi



    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for static library containing CoTaskMemFree" >&5
printf %s "checking for static library containing CoTaskMemFree... " >&6; }
if test ${ac_cv_search_static_CoTaskMemFree+y}
then :
  printf %s "(cached) " >&6
else $as_nop

            ac_func_search_static_libraries_save_CFLAGS="$CFLAGS"
      ac_func_search_static_libraries_save_LIBS="$LIBS"

            CFLAGS="$CFLAGS"
      ac_libraries=""
      for ac_library in ole32; do
        if test -n "$ac_libraries"; then
          ac_libraries="$ac_libraries -l$ac_library"
        else
          ac_libraries="-l$ac_library"
        fi
      done
      LIBS="-Wl,-Bstatic $ac_libraries -Wl,-Bdynamic $ac_func_search_static_libraries_save_LIBS"
      if test -z "$ac_libraries"; then
        ac_result="none required"
      else
        ac_result=$ac_libraries
      fi
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
`echo combaseapi.h|sed 's/ /\n/g'|while read s; do if test -n "$s"; then echo $s|sed 's/\(.*\)/#include <\\1>/g'; fi; done`
int
main (void)
{
`if test -z "combaseapi.h"; then echo "extern void CoTaskMemFree();"; fi`
                                       return (int)CoTaskMemFree;


  ;
  return 0;
}

_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  ac_cv_search_static_CoTaskMemFree=$ac_result; break

fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if test ${ac_cv_search_static_CoTaskMemFree+y}
then :

else $as_nop
  ac_cv_search_static_CoTaskMemFree=no
fi

            LIBS=$ac_func_search_static_libraries_save_LIBS
      CFLAGS=$ac_func_search_static_libraries_save_CFLAGS


fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_static_CoTaskMemFree" >&5
printf "%s\n" "$ac_cv_search_static_CoTaskMemFree" >&6; }
  ac_result=$ac_cv_search_static_CoTaskMemFree
  if test "$ac_result" != no
then :
  test "$ac_result" = "none required" || LIBS="$ac_result $LIBS" STATIC_LIBRARIES="$STATIC_LIBRARIES ole32"
fi



    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for static library containing FOLDERID_LocalAppData" >&5
printf %s "checking for static library containing FOLDERID_LocalAppData... " >&6; }
if test ${ac_cv_search_static_FOLDERID_LocalAppData+y}
then :
  printf %s "(cached) " >&6
else $as_nop

            ac_func_search_static_libraries_save_CFLAGS="$CFLAGS"
      ac_func_search_static_libraries_save_LIBS="$LIBS"

            CFLAGS="$CFLAGS"
      ac_libraries=""
      for ac_library in uuid; do
        if test -n "$ac_libraries"; then
          ac_libraries="$ac_libraries -l$ac_library"
        else
          ac_libraries="-l$ac_library"
        fi
      done
      LIBS="-Wl,-Bstatic $ac_libraries -Wl,-Bdynamic $ac_func_search_static_libraries_save_LIBS"
      if test -z "$ac_libraries"; then
        ac_result="none required"
      else
        ac_result=$ac_libraries
      fi
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
`echo |sed 's/ /\n/g'|while read s; do if test -n "$s"; then echo $s|sed 's/\(.*\)/#include <\\1>/g'; fi; done`
int
main (void)
{
`if test -z ""; then echo "extern void FOLDERID_LocalAppData();"; fi`
                                       return (int)FOLDERID_LocalAppData;


  ;
  return 0;
}

_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  ac_cv_search_static_FOLDERID_LocalAppData=$ac_result; break

fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if test ${ac_cv_search_static_FOLDERID_LocalAppData+y}
then :

else $as_nop
  ac_cv_search_static_FOLDERID_LocalAppData=no
fi

            LIBS=$ac_func_search_static_libraries_save_LIBS
      CFLAGS=$ac_func_search_static_libraries_save_CFLAGS


fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_static_FOLDERID_LocalAppData" >&5
printf "%s\n" "$ac_cv_search_static_FOLDERID_LocalAppData" >&6; }
  ac_result=$ac_cv_search_static_FOLDERID_LocalAppData
  if test "$ac_result" != no
then :
  test "$ac_result" = "none required" || LIBS="$ac_result $LIBS" STATIC_LIBRARIES="$STATIC_LIBRARIES uuid"
fi



    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for static library containing PathRemoveFileSpec" >&5
printf %s "checking for static library containing PathRemoveFileSpec... " >&6; }
if test ${ac_cv_search_static_PathRemoveFileSpec+y}
then :
  printf %s "(cached) " >&6
else $as_nop

            ac_func_search_static_libraries_save_CFLAGS="$CFLAGS"
      ac_func_search_static_libraries_save_LIBS="$LIBS"

            CFLAGS="$CFLAGS"
      ac_libraries=""
      for ac_library in shlwapi; do
        if test -n "$ac_libraries"; then
          ac_libraries="$ac_libraries -l$ac_library"
        else
          ac_libraries="-l$ac_library"
        fi
      done
      LIBS="-Wl,-Bstatic $ac_libraries -Wl,-Bdynamic $ac_func_search_static_libraries_save_LIBS"
      if test -z "$ac_libraries"; then
        ac_result="none required"
      else
        ac_result=$ac_libraries
      fi
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
`echo shlwapi.h|sed 's/ /\n/g'|while read s; do if test -n "$s"; then echo $s|sed 's/\(.*\)/#include <\\1>/g'; fi; done`
int
main (void)
{
`if test -z "shlwapi.h"; then echo "extern void PathRemoveFileSpec();"; fi`
                                       return (int)PathRemoveFileSpec;


  ;
  return 0;
}

_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  ac_cv_search_static_PathRemoveFileSpec=$ac_result; break

fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if test ${ac_cv_search_static_PathRemoveFileSpec+y}
then :

else $as_nop
  ac_cv_search_static_PathRemoveFileSpec=no
fi

            LIBS=$ac_func_search_static_libraries_save_LIBS
      CFLAGS=$ac_func_search_static_libraries_save_CFLAGS


fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_static_PathRemoveFileSpec" >&5
printf "%s\n" "$ac_cv_search_static_PathRemoveFileSpec" >&6; }
  ac_result=$ac_cv_search_static_PathRemoveFileSpec
  if test "$ac_result" != no
then :
  test "$ac_result" = "none required" || LIBS="$ac_result $LIBS" STATIC_LIBRARIES="$STATIC_LIBRARIES shlwapi"
fi



    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for static library containing GetUnicastIpAddressTable" >&5
printf %s "checking for static library containing GetUnicastIpAddressTable... " >&6; }
if test ${ac_cv_search_static_GetUnicastIpAddressTable+y}
then :
  printf %s "(cached) " >&6
else $as_nop

            ac_func_search_static_libraries_save_CFLAGS="$CFLAGS"
      ac_func_search_static_libraries_save_LIBS="$LIBS"

            CFLAGS="$CFLAGS"
      ac_libraries=""
      for ac_library in iphlpapi ssp; do
        if test -n "$ac_libraries"; then
          ac_libraries="$ac_libraries -l$ac_library"
        else
          ac_libraries="-l$ac_library"
        fi
      done
      LIBS="-Wl,-Bstatic $ac_libraries -Wl,-Bdynamic $ac_func_search_static_libraries_save_LIBS"
      if test -z "$ac_libraries"; then
        ac_result="none required"
      else
        ac_result=$ac_libraries
      fi
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
`echo winsock2.h netioapi.h|sed 's/ /\n/g'|while read s; do if test -n "$s"; then echo $s|sed 's/\(.*\)/#include <\\1>/g'; fi; done`
int
main (void)
{
`if test -z "winsock2.h netioapi.h"; then echo "extern void GetUnicastIpAddressTable();"; fi`
                                       return (int)GetUnicastIpAddressTable;


  ;
  return 0;
}

_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  ac_cv_search_static_GetUnicastIpAddressTable=$ac_result; break

fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if test ${ac_cv_search_static_GetUnicastIpAddressTable+y}
then :

else $as_nop
  ac_cv_search_static_GetUnicastIpAddressTable=no
fi

            LIBS=$ac_func_search_static_libraries_save_LIBS
      CFLAGS=$ac_func_search_static_libraries_save_CFLAGS


fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_static_GetUnicastIpAddressTable" >&5
printf "%s\n" "$ac_cv_search_static_GetUnicastIpAddressTable" >&6; }
  ac_result=$ac_cv_search_static_GetUnicastIpAddressTable
  if test "$ac_result" != no
then :
  test "$ac_result" = "none required" || LIBS="$ac_result $LIBS" STATIC_LIBRARIES="$STATIC_LIBRARIES iphlpapi ssp"
fi



    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for static library containing NCryptOpenKey" >&5
printf %s "checking for static library containing NCryptOpenKey... " >&6; }
if test ${ac_cv_search_static_NCryptOpenKey+y}
then :
  printf %s "(cached) " >&6
else $as_nop

            ac_func_search_static_libraries_save_CFLAGS="$CFLAGS"
      ac_func_search_static_libraries_save_LIBS="$LIBS"

            CFLAGS="$CFLAGS"
      ac_libraries=""
      for ac_library in ncrypt; do
        if test -n "$ac_libraries"; then
          ac_libraries="$ac_libraries -l$ac_library"
        else
          ac_libraries="-l$ac_library"
        fi
      done
      LIBS="-Wl,-Bstatic $ac_libraries -Wl,-Bdynamic $ac_func_search_static_libraries_save_LIBS"
      if test -z "$ac_libraries"; then
        ac_result="none required"
      else
        ac_result=$ac_libraries
      fi
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
`echo windows.h ncrypt.h|sed 's/ /\n/g'|while read s; do if test -n "$s"; then echo $s|sed 's/\(.*\)/#include <\\1>/g'; fi; done`
int
main (void)
{
`if test -z "windows.h ncrypt.h"; then echo "extern void NCryptOpenKey();"; fi`
                                       return (int)NCryptOpenKey;


  ;
  return 0;
}

_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  ac_cv_search_static_NCryptOpenKey=$ac_result; break

fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if test ${ac_cv_search_static_NCryptOpenKey+y}
then :

else $as_nop
  ac_cv_search_static_NCryptOpenKey=no
fi

            LIBS=$ac_func_search_static_libraries_save_LIBS
      CFLAGS=$ac_func_search_static_libraries_save_CFLAGS


fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_static_NCryptOpenKey" >&5
printf "%s\n" "$ac_cv_search_static_NCryptOpenKey" >&6; }
  ac_result=$ac_cv_search_static_NCryptOpenKey
  if test "$ac_result" != no
then :
  test "$ac_result" = "none required" || LIBS="$ac_result $LIBS" STATIC_LIBRARIES="$STATIC_LIBRARIES ncrypt"
fi



    ac_result=""
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing ns_initparse" >&5
printf %s "checking for library containing ns_initparse... " >&6; }
if test ${ac_cv_search_libraries_ns_initparse+y}
then :
  printf %s "(cached) " >&6
else $as_nop

            ac_func_search_libraries_save_LIBS=$LIBS

      for ac_library in resolv ""; do
        if test -z "$ac_library"; then
          ac_result="none required"
        else
          ac_result=-l$ac_library
          LIBS="-l$ac_library $ac_func_search_libraries_save_LIBS"
        fi

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
`echo |sed 's/ /\n/g'|while read s; do if test -n "$s"; then echo $s|sed 's/\(.*\)/#include <\\1>/g'; fi; done`
int
main (void)
{
`if test -z ""; then echo "extern void ns_initparse();"; fi`
                                         return (int)ns_initparse;


  ;
  return 0;
}

_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  ac_cv_search_libraries_ns_initparse=$ac_result; break

fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      done
      if test ${ac_cv_search_libraries_ns_initparse+y}
then :

else $as_nop
  ac_cv_search_libraries_ns_initparse=no
fi

            LIBS=$ac_func_search_libraries_save_LIBS


fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_libraries_ns_initparse" >&5
printf "%s\n" "$ac_cv_search_libraries_ns_initparse" >&6; }
  ac_result=$ac_cv_search_libraries_ns_initparse
  if test "$ac_result" != no
then :
  test "$ac_result" = "none required" || LIBS="$ac_result $LIBS" LIBRARIES="$LIBRARIES resolv"
fi

    ;;
esac


# create extern directory
cwd=`pwd`
mkdir extern 2>/dev/null
if test "$ENABLE_EXTERN_COMPILE" = "yes"; then
  (cd extern; rm -rf include; mkdir include 2>/dev/null)
  (cd extern; rm -rf lib; mkdir lib 2>/dev/null)
fi
(cd extern; rm -f lib64; ln -s lib lib64 2>/dev/null)

# add extern include/library+local include search directory
CC_INCLUDES="$CC_INCLUDES $cwd/extern/include $cwd/bar"
LIBRARY_PATHS="$cwd/extern/lib $cwd/extern/lib/mariadb $LIBRARY_PATHS"

# set toolchain settings for compile extern (Note: do not move ) at the end!)

  CPPFLAGS="$CPP_FLAGS"
  CFLAGS="$CC_FLAGS -v"
  CXXFLAGS="$CXX_FLAGS -v"
  for z in $CC_DEFINES ""; do
    if test -n "$z"; then
      CPPFLAGS="$CPPFLAGS -D$z"
      CFLAGS="$CFLAGS -D$z"
    fi
  done
  for z in $CC_INCLUDES ""; do
    if test -n "$z"; then
      CPPFLAGS="$CPPFLAGS -I$z"
      CFLAGS="$CFLAGS -I$z"
    fi
  done
  LDFLAGS="$LD_FLAGS"
  for z in $LIBRARY_PATHS ""; do
    if test -n "$z"; then
      LDFLAGS="$LDFLAGS -L$z"
    fi
  done
  LIBS=""
  for z in $STATIC_LIBRARIES ""; do
    if test -n "$z"; then
      LIBS="$LIBS -l$z"
    fi
  done
  for z in $LIBRARIES ""; do
    if test -n "$z"; then
      LIBS="$LIBS -l$z"
    fi
  done
  for z in $STATIC_LIBRARIES ""; do
    if test -n "$z"; then
      LIBS="$LIBS -l$z"
    fi
  done
  for z in $LIBRARIES ""; do
    if test -n "$z"; then
      LIBS="$LIBS -l$z"
    fi
  done

  # some host tests need dynamic libraries
  export LD_LIBRARY_PATH=`pwd`/extern/lib


# compile/use icu
if test -d icu -o -d "`readlink icu`"; then
  if test "$ENABLE_EXTERN_COMPILE" = "yes"; then
    cwd=`pwd`


  printf %s "compile icu... " >&6

    result=1
    if test $result -eq 1; then
      case $host_os in
        linux-*)
          ;;
        sunos | solaris*)
          ;;
        darwin*)
          ;;
        windows*|mingw*)
          # patch to disable usage of lib-command when RANLIB is set
          ;;
      esac
      if test $? -ne 0; then
        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: fail (patch)" >&5
printf "%s\n" "fail (patch)" >&6; }

  printf "%s\n" "--- error log -------------------------------------------------------------------------"
  cat $tmpFile | while read s; do printf "%s\n" "  $s"; done
  printf "%s\n" "---------------------------------------------------------------------------------------"

        result=0
      fi
    fi
    if test $result -eq 1; then
      install -d icu/build/$build
      (cd icu/build/$build; CFLAGS="-fPIC" CXXFLAGS="-fPIC" LDFLAGS="" ../../source/configure \
        --build=$build \
        --prefix=$cwd/extern \
        --disable-shared \
        --enable-static \
        --disable-tests \
        --disable-samples \
      ) 1>$tmpFile 2>&1
      if test $? -ne 0; then
        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: fail (configure host)" >&5
printf "%s\n" "fail (configure host)" >&6; }

  printf "%s\n" "--- error log -------------------------------------------------------------------------"
  cat $tmpFile | while read s; do printf "%s\n" "  $s"; done
  printf "%s\n" "---------------------------------------------------------------------------------------"

        result=0
      fi
    fi
    if test $result -eq 1; then
      (cd icu/build/$build; make clean; make -j$CPU_CORES) 1>$tmpFile 2>&1
      if test $? -ne 0; then
        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: fail (make host)" >&5
printf "%s\n" "fail (make host)" >&6; }

  printf "%s\n" "--- error log -------------------------------------------------------------------------"
  cat $tmpFile | while read s; do printf "%s\n" "  $s"; done
  printf "%s\n" "---------------------------------------------------------------------------------------"

        result=0
      fi
    fi
    if test "$host" != "$build"; then
      install -d icu/build/$host
      if test $result -eq 1; then
        (cd icu/build/$host; CFLAGS="-fPIC" CXXFLAGS="-fPIC" LDFLAGS="" ../../source/configure \
          --host=$host \
          --build=$build \
          --with-cross-build=$cwd/icu/build/$build \
          --prefix=$cwd/extern \
          --disable-shared \
          --enable-static \
          --disable-tests \
          --disable-samples \
        ) 1>$tmpFile 2>&1
        if test $? -ne 0; then
          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: fail (configure target)" >&5
printf "%s\n" "fail (configure target)" >&6; }

  printf "%s\n" "--- error log -------------------------------------------------------------------------"
  cat $tmpFile | while read s; do printf "%s\n" "  $s"; done
  printf "%s\n" "---------------------------------------------------------------------------------------"

          result=0
        fi
      fi
      if test $result -eq 1; then
        (cd icu/build/$host; make clean; make -j$CPU_CORES) 1>$tmpFile 2>&1
        if test $? -ne 0; then
          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: fail (make target)" >&5
printf "%s\n" "fail (make target)" >&6; }

  printf "%s\n" "--- error log -------------------------------------------------------------------------"
  cat $tmpFile | while read s; do printf "%s\n" "  $s"; done
  printf "%s\n" "---------------------------------------------------------------------------------------"

          result=0
        fi
      fi
    fi
    if test $result -eq 1; then
      (cd icu/build/$host; make install PREFIX=$cwd/extern) 1>$tmpFile 2>&1
      if test $? -ne 0; then
        result=0
      fi
      case $host_os in
        linux-*)
          ;;
        sunos | solaris*)
          ;;
        darwin*)
          ;;
        windows*|mingw*)
          # Note: bug in library names of older ICU versions?
          #       https://unicode-org.atlassian.net/browse/ICU-13138
          (cd extern/lib; ln -s libsicuuc.a libicuuc.a) 1>/dev/null 2>/dev/null
          (cd extern/lib; ln -s libsicuin.a libicui18n.a) 1>/dev/null 2>/dev/null
          (cd extern/lib; ln -s libsicudt.a libicudata.a) 1>/dev/null 2>/dev/null
          (cd extern/lib; ln -s libsicuio.a libicuio.a) 1>/dev/null 2>/dev/null
          (cd extern/lib; ln -s libsicutu.a libicutu.a) 1>/dev/null 2>/dev/null
          (cd extern/lib; ln -s libsiculx.a libiculx.a) 1>/dev/null 2>/dev/null
          ;;
      esac
      if test $result -ne 1; then
        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: fail (install)" >&5
printf "%s\n" "fail (install)" >&6; }

  printf "%s\n" "--- error log -------------------------------------------------------------------------"
  cat $tmpFile | while read s; do printf "%s\n" "  $s"; done
  printf "%s\n" "---------------------------------------------------------------------------------------"

      fi
    fi
    if test $result -eq 1; then
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
printf "%s\n" "done" >&6; }
    fi
  else
    result=1
  fi

  if test $result -eq 1; then
    if test $ENABLE_LINK_DYNAMIC = "yes"; then
      LIBRARIES="$LIBRARIES icuuc icui18n icudata"
    else
      STATIC_LIBRARIES="$STATIC_LIBRARIES icuuc icui18n icudata"
    fi
    HAVE_ICU=1

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

  fi
else

  if test $ENABLE_LINK_DYNAMIC = "yes"; then


    ac_result=""
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing u_strToUpper" >&5
printf %s "checking for library containing u_strToUpper... " >&6; }
if test ${ac_cv_search_libraries_u_strToUpper+y}
then :
  printf %s "(cached) " >&6
else $as_nop

            ac_func_search_libraries_save_LIBS=$LIBS

      for ac_library in icuuc ""; do
        if test -z "$ac_library"; then
          ac_result="none required"
        else
          ac_result=-l$ac_library
          LIBS="-l$ac_library $ac_func_search_libraries_save_LIBS"
        fi

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
`echo |sed 's/ /\n/g'|while read s; do if test -n "$s"; then echo $s|sed 's/\(.*\)/#include <\\1>/g'; fi; done`
int
main (void)
{
`if test -z ""; then echo "extern void u_strToUpper();"; fi`
                                         return (int)u_strToUpper;


  ;
  return 0;
}

_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  ac_cv_search_libraries_u_strToUpper=$ac_result; break

fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      done
      if test ${ac_cv_search_libraries_u_strToUpper+y}
then :

else $as_nop
  ac_cv_search_libraries_u_strToUpper=no
fi

            LIBS=$ac_func_search_libraries_save_LIBS


fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_libraries_u_strToUpper" >&5
printf "%s\n" "$ac_cv_search_libraries_u_strToUpper" >&6; }
  ac_result=$ac_cv_search_libraries_u_strToUpper
  if test "$ac_result" != no
then :
  test "$ac_result" = "none required" || LIBS="$ac_result $LIBS" HAVE_ICUUC=1;LIBRARIES="$LIBRARIES icuuc";
printf "%s\n" "#define HAVE_ICUUC 1" >>confdefs.h

fi

  else
    if test -z "$HAVE_ICUUC"; then


    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for static library containing u_strToUpper" >&5
printf %s "checking for static library containing u_strToUpper... " >&6; }
if test ${ac_cv_search_static_u_strToUpper+y}
then :
  printf %s "(cached) " >&6
else $as_nop

            ac_func_search_static_libraries_save_CFLAGS="$CFLAGS"
      ac_func_search_static_libraries_save_LIBS="$LIBS"

            CFLAGS="$CFLAGS"
      ac_libraries=""
      for ac_library in icuuc; do
        if test -n "$ac_libraries"; then
          ac_libraries="$ac_libraries -l$ac_library"
        else
          ac_libraries="-l$ac_library"
        fi
      done
      LIBS="-Wl,-Bstatic $ac_libraries -Wl,-Bdynamic $ac_func_search_static_libraries_save_LIBS"
      if test -z "$ac_libraries"; then
        ac_result="none required"
      else
        ac_result=$ac_libraries
      fi
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
`echo |sed 's/ /\n/g'|while read s; do if test -n "$s"; then echo $s|sed 's/\(.*\)/#include <\\1>/g'; fi; done`
int
main (void)
{
`if test -z ""; then echo "extern void u_strToUpper();"; fi`
                                       return (int)u_strToUpper;


  ;
  return 0;
}

_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  ac_cv_search_static_u_strToUpper=$ac_result; break

fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if test ${ac_cv_search_static_u_strToUpper+y}
then :

else $as_nop
  ac_cv_search_static_u_strToUpper=no
fi

            LIBS=$ac_func_search_static_libraries_save_LIBS
      CFLAGS=$ac_func_search_static_libraries_save_CFLAGS


fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_static_u_strToUpper" >&5
printf "%s\n" "$ac_cv_search_static_u_strToUpper" >&6; }
  ac_result=$ac_cv_search_static_u_strToUpper
  if test "$ac_result" != no
then :
  test "$ac_result" = "none required" || LIBS="$ac_result $LIBS" HAVE_ICUUC=1;STATIC_LIBRARIES="$STATIC_LIBRARIES icuuc";
printf "%s\n" "#define HAVE_ICUUC 1" >>confdefs.h

fi

    fi
    if test -z "$HAVE_ICUUC"; then


    ac_result=""
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing u_strToUpper" >&5
printf %s "checking for library containing u_strToUpper... " >&6; }
if test ${ac_cv_search_libraries_u_strToUpper+y}
then :
  printf %s "(cached) " >&6
else $as_nop

            ac_func_search_libraries_save_LIBS=$LIBS

      for ac_library in icuuc ""; do
        if test -z "$ac_library"; then
          ac_result="none required"
        else
          ac_result=-l$ac_library
          LIBS="-l$ac_library $ac_func_search_libraries_save_LIBS"
        fi

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
`echo |sed 's/ /\n/g'|while read s; do if test -n "$s"; then echo $s|sed 's/\(.*\)/#include <\\1>/g'; fi; done`
int
main (void)
{
`if test -z ""; then echo "extern void u_strToUpper();"; fi`
                                         return (int)u_strToUpper;


  ;
  return 0;
}

_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  ac_cv_search_libraries_u_strToUpper=$ac_result; break

fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      done
      if test ${ac_cv_search_libraries_u_strToUpper+y}
then :

else $as_nop
  ac_cv_search_libraries_u_strToUpper=no
fi

            LIBS=$ac_func_search_libraries_save_LIBS


fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_libraries_u_strToUpper" >&5
printf "%s\n" "$ac_cv_search_libraries_u_strToUpper" >&6; }
  ac_result=$ac_cv_search_libraries_u_strToUpper
  if test "$ac_result" != no
then :
  test "$ac_result" = "none required" || LIBS="$ac_result $LIBS" HAVE_ICUUC=1;LIBRARIES="$LIBRARIES icuuc";
printf "%s\n" "#define HAVE_ICUUC 1" >>confdefs.h

fi

    fi
  fi
  if test $ENABLE_LINK_DYNAMIC = "yes"; then


    ac_result=""
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing uregex_open" >&5
printf %s "checking for library containing uregex_open... " >&6; }
if test ${ac_cv_search_libraries_uregex_open+y}
then :
  printf %s "(cached) " >&6
else $as_nop

            ac_func_search_libraries_save_LIBS=$LIBS

      for ac_library in icui18n ""; do
        if test -z "$ac_library"; then
          ac_result="none required"
        else
          ac_result=-l$ac_library
          LIBS="-l$ac_library $ac_func_search_libraries_save_LIBS"
        fi

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
`echo |sed 's/ /\n/g'|while read s; do if test -n "$s"; then echo $s|sed 's/\(.*\)/#include <\\1>/g'; fi; done`
int
main (void)
{
`if test -z ""; then echo "extern void uregex_open();"; fi`
                                         return (int)uregex_open;


  ;
  return 0;
}

_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  ac_cv_search_libraries_uregex_open=$ac_result; break

fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      done
      if test ${ac_cv_search_libraries_uregex_open+y}
then :

else $as_nop
  ac_cv_search_libraries_uregex_open=no
fi

            LIBS=$ac_func_search_libraries_save_LIBS


fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_libraries_uregex_open" >&5
printf "%s\n" "$ac_cv_search_libraries_uregex_open" >&6; }
  ac_result=$ac_cv_search_libraries_uregex_open
  if test "$ac_result" != no
then :
  test "$ac_result" = "none required" || LIBS="$ac_result $LIBS" HAVE_ICUI18N=1;LIBRARIES="$LIBRARIES icui18n";
printf "%s\n" "#define HAVE_ICUI18N 1" >>confdefs.h

fi

  else
    if test -z "$HAVE_ICUI18N"; then


    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for static library containing uregex_open" >&5
printf %s "checking for static library containing uregex_open... " >&6; }
if test ${ac_cv_search_static_uregex_open+y}
then :
  printf %s "(cached) " >&6
else $as_nop

            ac_func_search_static_libraries_save_CFLAGS="$CFLAGS"
      ac_func_search_static_libraries_save_LIBS="$LIBS"

            CFLAGS="$CFLAGS"
      ac_libraries=""
      for ac_library in icui18n; do
        if test -n "$ac_libraries"; then
          ac_libraries="$ac_libraries -l$ac_library"
        else
          ac_libraries="-l$ac_library"
        fi
      done
      LIBS="-Wl,-Bstatic $ac_libraries -Wl,-Bdynamic $ac_func_search_static_libraries_save_LIBS"
      if test -z "$ac_libraries"; then
        ac_result="none required"
      else
        ac_result=$ac_libraries
      fi
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
`echo |sed 's/ /\n/g'|while read s; do if test -n "$s"; then echo $s|sed 's/\(.*\)/#include <\\1>/g'; fi; done`
int
main (void)
{
`if test -z ""; then echo "extern void uregex_open();"; fi`
                                       return (int)uregex_open;


  ;
  return 0;
}

_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  ac_cv_search_static_uregex_open=$ac_result; break

fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if test ${ac_cv_search_static_uregex_open+y}
then :

else $as_nop
  ac_cv_search_static_uregex_open=no
fi

            LIBS=$ac_func_search_static_libraries_save_LIBS
      CFLAGS=$ac_func_search_static_libraries_save_CFLAGS


fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_static_uregex_open" >&5
printf "%s\n" "$ac_cv_search_static_uregex_open" >&6; }
  ac_result=$ac_cv_search_static_uregex_open
  if test "$ac_result" != no
then :
  test "$ac_result" = "none required" || LIBS="$ac_result $LIBS" HAVE_ICUI18N=1;STATIC_LIBRARIES="$STATIC_LIBRARIES icui18n";
printf "%s\n" "#define HAVE_ICUI18N 1" >>confdefs.h

fi

    fi
    if test -z "$HAVE_ICUI18N"; then


    ac_result=""
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing uregex_open" >&5
printf %s "checking for library containing uregex_open... " >&6; }
if test ${ac_cv_search_libraries_uregex_open+y}
then :
  printf %s "(cached) " >&6
else $as_nop

            ac_func_search_libraries_save_LIBS=$LIBS

      for ac_library in icui18n ""; do
        if test -z "$ac_library"; then
          ac_result="none required"
        else
          ac_result=-l$ac_library
          LIBS="-l$ac_library $ac_func_search_libraries_save_LIBS"
        fi

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
`echo |sed 's/ /\n/g'|while read s; do if test -n "$s"; then echo $s|sed 's/\(.*\)/#include <\\1>/g'; fi; done`
int
main (void)
{
`if test -z ""; then echo "extern void uregex_open();"; fi`
                                         return (int)uregex_open;


  ;
  return 0;
}

_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  ac_cv_search_libraries_uregex_open=$ac_result; break

fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      done
      if test ${ac_cv_search_libraries_uregex_open+y}
then :

else $as_nop
  ac_cv_search_libraries_uregex_open=no
fi

            LIBS=$ac_func_search_libraries_save_LIBS


fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_libraries_uregex_open" >&5
printf "%s\n" "$ac_cv_search_libraries_uregex_open" >&6; }
  ac_result=$ac_cv_search_libraries_uregex_open
  if test "$ac_result" != no
then :
  test "$ac_result" = "none required" || LIBS="$ac_result $LIBS" HAVE_ICUI18N=1;LIBRARIES="$LIBRARIES icui18n";
printf "%s\n" "#define HAVE_ICUI18N 1" >>confdefs.h

fi

    fi
  fi
  if test $ENABLE_LINK_DYNAMIC = "yes"; then


    ac_result=""
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing icudt" >&5
printf %s "checking for library containing icudt... " >&6; }
if test ${ac_cv_search_libraries_icudt+y}
then :
  printf %s "(cached) " >&6
else $as_nop

            ac_func_search_libraries_save_LIBS=$LIBS

      for ac_library in icudata ""; do
        if test -z "$ac_library"; then
          ac_result="none required"
        else
          ac_result=-l$ac_library
          LIBS="-l$ac_library $ac_func_search_libraries_save_LIBS"
        fi

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
`echo |sed 's/ /\n/g'|while read s; do if test -n "$s"; then echo $s|sed 's/\(.*\)/#include <\\1>/g'; fi; done`
int
main (void)
{
`if test -z ""; then echo "extern void icudt();"; fi`
                                         return (int)icudt;


  ;
  return 0;
}

_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  ac_cv_search_libraries_icudt=$ac_result; break

fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      done
      if test ${ac_cv_search_libraries_icudt+y}
then :

else $as_nop
  ac_cv_search_libraries_icudt=no
fi

            LIBS=$ac_func_search_libraries_save_LIBS


fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_libraries_icudt" >&5
printf "%s\n" "$ac_cv_search_libraries_icudt" >&6; }
  ac_result=$ac_cv_search_libraries_icudt
  if test "$ac_result" != no
then :
  test "$ac_result" = "none required" || LIBS="$ac_result $LIBS" HAVE_ICUDATA=1;LIBRARIES="$LIBRARIES icudata";
printf "%s\n" "#define HAVE_ICUI18N 1" >>confdefs.h

fi

  else
    if test -z "$HAVE_ICUDATA"; then


    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for static library containing icudt" >&5
printf %s "checking for static library containing icudt... " >&6; }
if test ${ac_cv_search_static_icudt+y}
then :
  printf %s "(cached) " >&6
else $as_nop

            ac_func_search_static_libraries_save_CFLAGS="$CFLAGS"
      ac_func_search_static_libraries_save_LIBS="$LIBS"

            CFLAGS="$CFLAGS"
      ac_libraries=""
      for ac_library in icudata; do
        if test -n "$ac_libraries"; then
          ac_libraries="$ac_libraries -l$ac_library"
        else
          ac_libraries="-l$ac_library"
        fi
      done
      LIBS="-Wl,-Bstatic $ac_libraries -Wl,-Bdynamic $ac_func_search_static_libraries_save_LIBS"
      if test -z "$ac_libraries"; then
        ac_result="none required"
      else
        ac_result=$ac_libraries
      fi
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
`echo |sed 's/ /\n/g'|while read s; do if test -n "$s"; then echo $s|sed 's/\(.*\)/#include <\\1>/g'; fi; done`
int
main (void)
{
`if test -z ""; then echo "extern void icudt();"; fi`
                                       return (int)icudt;


  ;
  return 0;
}

_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  ac_cv_search_static_icudt=$ac_result; break

fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if test ${ac_cv_search_static_icudt+y}
then :

else $as_nop
  ac_cv_search_static_icudt=no
fi

            LIBS=$ac_func_search_static_libraries_save_LIBS
      CFLAGS=$ac_func_search_static_libraries_save_CFLAGS


fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_static_icudt" >&5
printf "%s\n" "$ac_cv_search_static_icudt" >&6; }
  ac_result=$ac_cv_search_static_icudt
  if test "$ac_result" != no
then :
  test "$ac_result" = "none required" || LIBS="$ac_result $LIBS" HAVE_ICUDATA=1;STATIC_LIBRARIES="$STATIC_LIBRARIES icudata";
printf "%s\n" "#define HAVE_ICUI18N 1" >>confdefs.h

fi

    fi
    if test -z "$HAVE_ICUDATA"; then


    ac_result=""
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing icudt" >&5
printf %s "checking for library containing icudt... " >&6; }
if test ${ac_cv_search_libraries_icudt+y}
then :
  printf %s "(cached) " >&6
else $as_nop

            ac_func_search_libraries_save_LIBS=$LIBS

      for ac_library in icudata ""; do
        if test -z "$ac_library"; then
          ac_result="none required"
        else
          ac_result=-l$ac_library
          LIBS="-l$ac_library $ac_func_search_libraries_save_LIBS"
        fi

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
`echo |sed 's/ /\n/g'|while read s; do if test -n "$s"; then echo $s|sed 's/\(.*\)/#include <\\1>/g'; fi; done`
int
main (void)
{
`if test -z ""; then echo "extern void icudt();"; fi`
                                         return (int)icudt;


  ;
  return 0;
}

_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  ac_cv_search_libraries_icudt=$ac_result; break

fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      done
      if test ${ac_cv_search_libraries_icudt+y}
then :

else $as_nop
  ac_cv_search_libraries_icudt=no
fi

            LIBS=$ac_func_search_libraries_save_LIBS


fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_libraries_icudt" >&5
printf "%s\n" "$ac_cv_search_libraries_icudt" >&6; }
  ac_result=$ac_cv_search_libraries_icudt
  if test "$ac_result" != no
then :
  test "$ac_result" = "none required" || LIBS="$ac_result $LIBS" HAVE_ICUDATA=1;LIBRARIES="$LIBRARIES icudata";
printf "%s\n" "#define HAVE_ICUI18N 1" >>confdefs.h

fi

    fi
  fi
fi

# compile/use zlib
if test -d zlib -o -d "`readlink zlib`"; then
  if test "$ENABLE_EXTERN_COMPILE" = "yes"; then
    cwd=`pwd`


  printf %s "compile zlib... " >&6

    result=1
    if test $result -eq 1; then
      (cd zlib; CC="$CC" CPPFLAGS="" CFLAGS="`if test "$ENABLE_DEBUG" = "yes"; then echo -- -O0 -g; fi`" CXXFLAGS="" AS="$AS" LD="$LD" LDFLAGS="" LIBS="$LIBS" AR="$AR" RANLIB="$RANLIB" WINDRES="$WINDRES" ./configure \
        --prefix=$cwd/extern \
        --static \
      ) 1>$tmpFile 2>&1
      if test $? -ne 0; then
        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: fail (configure)" >&5
printf "%s\n" "fail (configure)" >&6; }

  printf "%s\n" "--- error log -------------------------------------------------------------------------"
  cat $tmpFile | while read s; do printf "%s\n" "  $s"; done
  printf "%s\n" "---------------------------------------------------------------------------------------"

        result=0
      fi
    fi
    if test $result -eq 1; then
      (cd zlib; make clean; make -j$CPU_CORES) 1>$tmpFile 2>&1
      if test $? -ne 0; then
        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: fail (make)" >&5
printf "%s\n" "fail (make)" >&6; }

  printf "%s\n" "--- error log -------------------------------------------------------------------------"
  cat $tmpFile | while read s; do printf "%s\n" "  $s"; done
  printf "%s\n" "---------------------------------------------------------------------------------------"

        result=0
      fi
    fi
    if test $result -eq 1; then
      (cd zlib; make install PREFIX=$cwd/extern) 1>$tmpFile 2>&1
      if test $? -ne 0; then
        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: fail (install)" >&5
printf "%s\n" "fail (install)" >&6; }

  printf "%s\n" "--- error log -------------------------------------------------------------------------"
  cat $tmpFile | while read s; do printf "%s\n" "  $s"; done
  printf "%s\n" "---------------------------------------------------------------------------------------"

        result=0
      fi
    fi
    if test $result -eq 1; then
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
printf "%s\n" "done" >&6; }
    fi
  else
    result=1
  fi

  if test $result -eq 1; then
    if test $ENABLE_LINK_DYNAMIC = "yes"; then
      LIBRARIES="$LIBRARIES z"
    else
      STATIC_LIBRARIES="$STATIC_LIBRARIES z"
    fi
    HAVE_Z=1

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

  fi
else

  if test $ENABLE_LINK_DYNAMIC = "yes"; then


    ac_result=""
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing zlibVersion" >&5
printf %s "checking for library containing zlibVersion... " >&6; }
if test ${ac_cv_search_libraries_zlibVersion+y}
then :
  printf %s "(cached) " >&6
else $as_nop

            ac_func_search_libraries_save_LIBS=$LIBS

      for ac_library in z ""; do
        if test -z "$ac_library"; then
          ac_result="none required"
        else
          ac_result=-l$ac_library
          LIBS="-l$ac_library $ac_func_search_libraries_save_LIBS"
        fi

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
`echo |sed 's/ /\n/g'|while read s; do if test -n "$s"; then echo $s|sed 's/\(.*\)/#include <\\1>/g'; fi; done`
int
main (void)
{
`if test -z ""; then echo "extern void zlibVersion();"; fi`
                                         return (int)zlibVersion;


  ;
  return 0;
}

_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  ac_cv_search_libraries_zlibVersion=$ac_result; break

fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      done
      if test ${ac_cv_search_libraries_zlibVersion+y}
then :

else $as_nop
  ac_cv_search_libraries_zlibVersion=no
fi

            LIBS=$ac_func_search_libraries_save_LIBS


fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_libraries_zlibVersion" >&5
printf "%s\n" "$ac_cv_search_libraries_zlibVersion" >&6; }
  ac_result=$ac_cv_search_libraries_zlibVersion
  if test "$ac_result" != no
then :
  test "$ac_result" = "none required" || LIBS="$ac_result $LIBS" HAVE_Z=1;LIBRARIES="z $LIBRARIES";
printf "%s\n" "#define HAVE_Z 1" >>confdefs.h

fi

  else
    if test -z "$HAVE_Z"; then


    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for static library containing zlibVersion" >&5
printf %s "checking for static library containing zlibVersion... " >&6; }
if test ${ac_cv_search_static_zlibVersion+y}
then :
  printf %s "(cached) " >&6
else $as_nop

            ac_func_search_static_libraries_save_CFLAGS="$CFLAGS"
      ac_func_search_static_libraries_save_LIBS="$LIBS"

            CFLAGS="$CFLAGS"
      ac_libraries=""
      for ac_library in z; do
        if test -n "$ac_libraries"; then
          ac_libraries="$ac_libraries -l$ac_library"
        else
          ac_libraries="-l$ac_library"
        fi
      done
      LIBS="-Wl,-Bstatic $ac_libraries -Wl,-Bdynamic $ac_func_search_static_libraries_save_LIBS"
      if test -z "$ac_libraries"; then
        ac_result="none required"
      else
        ac_result=$ac_libraries
      fi
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
`echo |sed 's/ /\n/g'|while read s; do if test -n "$s"; then echo $s|sed 's/\(.*\)/#include <\\1>/g'; fi; done`
int
main (void)
{
`if test -z ""; then echo "extern void zlibVersion();"; fi`
                                       return (int)zlibVersion;


  ;
  return 0;
}

_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  ac_cv_search_static_zlibVersion=$ac_result; break

fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if test ${ac_cv_search_static_zlibVersion+y}
then :

else $as_nop
  ac_cv_search_static_zlibVersion=no
fi

            LIBS=$ac_func_search_static_libraries_save_LIBS
      CFLAGS=$ac_func_search_static_libraries_save_CFLAGS


fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_static_zlibVersion" >&5
printf "%s\n" "$ac_cv_search_static_zlibVersion" >&6; }
  ac_result=$ac_cv_search_static_zlibVersion
  if test "$ac_result" != no
then :
  test "$ac_result" = "none required" || LIBS="$ac_result $LIBS" HAVE_Z=1;STATIC_LIBRARIES="$STATIC_LIBRARIES z";
printf "%s\n" "#define HAVE_Z 1" >>confdefs.h

fi

    fi
    if test -z "$HAVE_Z"; then


    ac_result=""
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing zlibVersion" >&5
printf %s "checking for library containing zlibVersion... " >&6; }
if test ${ac_cv_search_libraries_zlibVersion+y}
then :
  printf %s "(cached) " >&6
else $as_nop

            ac_func_search_libraries_save_LIBS=$LIBS

      for ac_library in z ""; do
        if test -z "$ac_library"; then
          ac_result="none required"
        else
          ac_result=-l$ac_library
          LIBS="-l$ac_library $ac_func_search_libraries_save_LIBS"
        fi

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
`echo |sed 's/ /\n/g'|while read s; do if test -n "$s"; then echo $s|sed 's/\(.*\)/#include <\\1>/g'; fi; done`
int
main (void)
{
`if test -z ""; then echo "extern void zlibVersion();"; fi`
                                         return (int)zlibVersion;


  ;
  return 0;
}

_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  ac_cv_search_libraries_zlibVersion=$ac_result; break

fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      done
      if test ${ac_cv_search_libraries_zlibVersion+y}
then :

else $as_nop
  ac_cv_search_libraries_zlibVersion=no
fi

            LIBS=$ac_func_search_libraries_save_LIBS


fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_libraries_zlibVersion" >&5
printf "%s\n" "$ac_cv_search_libraries_zlibVersion" >&6; }
  ac_result=$ac_cv_search_libraries_zlibVersion
  if test "$ac_result" != no
then :
  test "$ac_result" = "none required" || LIBS="$ac_result $LIBS" HAVE_Z=1;LIBRARIES="z $LIBRARIES";
printf "%s\n" "#define HAVE_Z 1" >>confdefs.h

fi

    fi
  fi
fi

if test -z "$HAVE_Z"; then
  if test ! \( -d zlib -o -d "`readlink zlib`" \); then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: zlib not compiled: zlib package missing" >&5
printf "%s\n" "$as_me: WARNING: zlib not compiled: zlib package missing" >&2;}
  fi
fi

# compile/use bz2
if test $ENABLE_BZ2 = "yes"; then
  if test -d bzip2 -o -d "`readlink bzip2`"; then
    if test "$ENABLE_EXTERN_COMPILE" = "yes"; then
      cwd=`pwd`


  printf %s "compile bzip2... " >&6

      result=1
      if test $result -eq 1; then
        if test "$build" == "$host"; then
          (cd bzip2; make clean; make -j$CPU_CORES libbz2.a) 1>$tmpFile 2>&1
          if test $? -ne 0; then
            { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: fail (make)" >&5
printf "%s\n" "fail (make)" >&6; }

  printf "%s\n" "--- error log -------------------------------------------------------------------------"
  cat $tmpFile | while read s; do printf "%s\n" "  $s"; done
  printf "%s\n" "---------------------------------------------------------------------------------------"

            result=0
          fi
        else
          (cd bzip2; make clean; make -j$CPU_CORES CC="$CC" CPPFLAGS="" CFLAGS="" CXXFLAGS="" AS="$AS" LD="$LD" LDFLAGS="" LIBS="$LIBS" AR="$AR" RANLIB="$RANLIB" WINDRES="$WINDRES" libbz2.a) 1>$tmpFile 2>&1
          if test $? -ne 0; then
            { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: fail (make)" >&5
printf "%s\n" "fail (make)" >&6; }

  printf "%s\n" "--- error log -------------------------------------------------------------------------"
  cat $tmpFile | while read s; do printf "%s\n" "  $s"; done
  printf "%s\n" "---------------------------------------------------------------------------------------"

            result=0
          fi
        fi
      fi
      if test $result -eq 1; then
        # Note: do not call 'install', it does build additional tools
        (cd bzip2; \
         install -d $cwd/extern/include; \
         install -m 644 bzlib.h $cwd/extern/include; \
         install -d $cwd/extern/lib; \
         install -m 644 libbz2.a $cwd/extern/lib; \
        ) 1>$tmpFile 2>&1
        if test $? -ne 0; then
          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: fail (make)" >&5
printf "%s\n" "fail (make)" >&6; }

  printf "%s\n" "--- error log -------------------------------------------------------------------------"
  cat $tmpFile | while read s; do printf "%s\n" "  $s"; done
  printf "%s\n" "---------------------------------------------------------------------------------------"

          result=0
        fi
      fi
      if test $result -eq 1; then
        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
printf "%s\n" "done" >&6; }
      fi
    else
      result=1
    fi

    if test $result -eq 1; then
      if test $ENABLE_LINK_DYNAMIC = "yes"; then
        LIBRARIES="$LIBRARIES bz2"
      else
        STATIC_LIBRARIES="$STATIC_LIBRARIES bz2"
      fi
      HAVE_BZ2=1

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

    fi
  else

    if test $ENABLE_LINK_DYNAMIC = "yes"; then


    ac_result=""
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing BZ2_bzCompressInit" >&5
printf %s "checking for library containing BZ2_bzCompressInit... " >&6; }
if test ${ac_cv_search_libraries_BZ2_bzCompressInit+y}
then :
  printf %s "(cached) " >&6
else $as_nop

            ac_func_search_libraries_save_LIBS=$LIBS

      for ac_library in bz2 ""; do
        if test -z "$ac_library"; then
          ac_result="none required"
        else
          ac_result=-l$ac_library
          LIBS="-l$ac_library $ac_func_search_libraries_save_LIBS"
        fi

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
`echo |sed 's/ /\n/g'|while read s; do if test -n "$s"; then echo $s|sed 's/\(.*\)/#include <\\1>/g'; fi; done`
int
main (void)
{
`if test -z ""; then echo "extern void BZ2_bzCompressInit();"; fi`
                                         return (int)BZ2_bzCompressInit;


  ;
  return 0;
}

_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  ac_cv_search_libraries_BZ2_bzCompressInit=$ac_result; break

fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      done
      if test ${ac_cv_search_libraries_BZ2_bzCompressInit+y}
then :

else $as_nop
  ac_cv_search_libraries_BZ2_bzCompressInit=no
fi

            LIBS=$ac_func_search_libraries_save_LIBS


fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_libraries_BZ2_bzCompressInit" >&5
printf "%s\n" "$ac_cv_search_libraries_BZ2_bzCompressInit" >&6; }
  ac_result=$ac_cv_search_libraries_BZ2_bzCompressInit
  if test "$ac_result" != no
then :
  test "$ac_result" = "none required" || LIBS="$ac_result $LIBS" HAVE_BZ2=1;LIBRARIES="bz2 $LIBRARIES";
printf "%s\n" "#define HAVE_BZ2 1" >>confdefs.h

fi

    else
      if test -z "$HAVE_BZ2"; then


    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for static library containing BZ2_bzCompressInit" >&5
printf %s "checking for static library containing BZ2_bzCompressInit... " >&6; }
if test ${ac_cv_search_static_BZ2_bzCompressInit+y}
then :
  printf %s "(cached) " >&6
else $as_nop

            ac_func_search_static_libraries_save_CFLAGS="$CFLAGS"
      ac_func_search_static_libraries_save_LIBS="$LIBS"

            CFLAGS="$CFLAGS"
      ac_libraries=""
      for ac_library in bz2; do
        if test -n "$ac_libraries"; then
          ac_libraries="$ac_libraries -l$ac_library"
        else
          ac_libraries="-l$ac_library"
        fi
      done
      LIBS="-Wl,-Bstatic $ac_libraries -Wl,-Bdynamic $ac_func_search_static_libraries_save_LIBS"
      if test -z "$ac_libraries"; then
        ac_result="none required"
      else
        ac_result=$ac_libraries
      fi
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
`echo |sed 's/ /\n/g'|while read s; do if test -n "$s"; then echo $s|sed 's/\(.*\)/#include <\\1>/g'; fi; done`
int
main (void)
{
`if test -z ""; then echo "extern void BZ2_bzCompressInit();"; fi`
                                       return (int)BZ2_bzCompressInit;


  ;
  return 0;
}

_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  ac_cv_search_static_BZ2_bzCompressInit=$ac_result; break

fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if test ${ac_cv_search_static_BZ2_bzCompressInit+y}
then :

else $as_nop
  ac_cv_search_static_BZ2_bzCompressInit=no
fi

            LIBS=$ac_func_search_static_libraries_save_LIBS
      CFLAGS=$ac_func_search_static_libraries_save_CFLAGS


fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_static_BZ2_bzCompressInit" >&5
printf "%s\n" "$ac_cv_search_static_BZ2_bzCompressInit" >&6; }
  ac_result=$ac_cv_search_static_BZ2_bzCompressInit
  if test "$ac_result" != no
then :
  test "$ac_result" = "none required" || LIBS="$ac_result $LIBS" HAVE_BZ2=1;STATIC_LIBRARIES="$STATIC_LIBRARIES bz2";
printf "%s\n" "#define HAVE_BZ2 1" >>confdefs.h

fi

      fi
      if test -z "$HAVE_BZ2"; then


    ac_result=""
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing BZ2_bzCompressInit" >&5
printf %s "checking for library containing BZ2_bzCompressInit... " >&6; }
if test ${ac_cv_search_libraries_BZ2_bzCompressInit+y}
then :
  printf %s "(cached) " >&6
else $as_nop

            ac_func_search_libraries_save_LIBS=$LIBS

      for ac_library in bz2 ""; do
        if test -z "$ac_library"; then
          ac_result="none required"
        else
          ac_result=-l$ac_library
          LIBS="-l$ac_library $ac_func_search_libraries_save_LIBS"
        fi

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
`echo |sed 's/ /\n/g'|while read s; do if test -n "$s"; then echo $s|sed 's/\(.*\)/#include <\\1>/g'; fi; done`
int
main (void)
{
`if test -z ""; then echo "extern void BZ2_bzCompressInit();"; fi`
                                         return (int)BZ2_bzCompressInit;


  ;
  return 0;
}

_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  ac_cv_search_libraries_BZ2_bzCompressInit=$ac_result; break

fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      done
      if test ${ac_cv_search_libraries_BZ2_bzCompressInit+y}
then :

else $as_nop
  ac_cv_search_libraries_BZ2_bzCompressInit=no
fi

            LIBS=$ac_func_search_libraries_save_LIBS


fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_libraries_BZ2_bzCompressInit" >&5
printf "%s\n" "$ac_cv_search_libraries_BZ2_bzCompressInit" >&6; }
  ac_result=$ac_cv_search_libraries_BZ2_bzCompressInit
  if test "$ac_result" != no
then :
  test "$ac_result" = "none required" || LIBS="$ac_result $LIBS" HAVE_BZ2=1;LIBRARIES="bz2 $LIBRARIES";
printf "%s\n" "#define HAVE_BZ2 1" >>confdefs.h

fi

      fi
    fi
  fi

    case $host_os in
    linux-*)
      ;;
    sunos | solaris*)
      ;;
    darwin*)
      ;;
    windows*|mingw*)
      ;;
  esac

  if test -z "$HAVE_BZ2"; then
    if test ! \( -d bzip2 -o -d "`readlink bzip2`" \); then
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: bzip2 not compiled: bzip2 package missing" >&5
printf "%s\n" "$as_me: WARNING: bzip2 not compiled: bzip2 package missing" >&2;}
    fi
  fi
fi

# compile/use lzma
if test $ENABLE_LZMA = "yes"; then
  if test -d xz -o -d "`readlink xz`"; then
    if test "$ENABLE_EXTERN_COMPILE" = "yes"; then
      cwd=`pwd`


  printf %s "compile xz utils... " >&6

      result=1
      if test $result -eq 1; then
        case $host_os in
          linux-*)
            ;;
          sunos | solaris*)
            ;;
          darwin*)
            ;;
          windows*|mingw*)
            # patch to disable usage of lib-command when RANLIB is set
            #   diff -u xz-5.0.4.org/m4/libtool.m4 xz-5.0.4/m4/libtool.m4 xz-5.0.4-libtool.patch
#TODO: windows cross-build
#            if test -d extern/xz-5.0.4; then
#              (cd extern/xz-5.0.4; $PATCH --batch -N -p1 < $SOURCE_DIR/misc/xz-5.0.4-libtool.patch) 1>$tmpFile 2>&1
#            else
#              AC_MSG_WARN([xz-5.0.4 not available - skipped libtool patch!])
#            fi
            ;;
        esac
        if test $? -ne 0; then
          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: fail (patch)" >&5
printf "%s\n" "fail (patch)" >&6; }

  printf "%s\n" "--- error log -------------------------------------------------------------------------"
  cat $tmpFile | while read s; do printf "%s\n" "  $s"; done
  printf "%s\n" "---------------------------------------------------------------------------------------"

          result=0
        fi
      fi
      if test $result -eq 1; then
        (cd xz; ./configure \
          --host=$host \
          --build=$build \
          --prefix=$cwd/extern \
          --disable-shared \
          --enable-static \
        ) 1>$tmpFile 2>&1
        if test $? -ne 0; then
          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: fail (configure)" >&5
printf "%s\n" "fail (configure)" >&6; }

  printf "%s\n" "--- error log -------------------------------------------------------------------------"
  cat $tmpFile | while read s; do printf "%s\n" "  $s"; done
  printf "%s\n" "---------------------------------------------------------------------------------------"

          result=0
        fi
      fi
      if test $result -eq 1; then
        (cd xz; make clean; make -j$CPU_CORES) 1>$tmpFile 2>&1
        if test $? -ne 0; then
          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: fail (make)" >&5
printf "%s\n" "fail (make)" >&6; }

  printf "%s\n" "--- error log -------------------------------------------------------------------------"
  cat $tmpFile | while read s; do printf "%s\n" "  $s"; done
  printf "%s\n" "---------------------------------------------------------------------------------------"

          result=0
        fi
      fi
      if test $result -eq 1; then
        (cd xz; make install) 1>$tmpFile 2>&1
        if test $? -ne 0; then
          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: fail (install)" >&5
printf "%s\n" "fail (install)" >&6; }

  printf "%s\n" "--- error log -------------------------------------------------------------------------"
  cat $tmpFile | while read s; do printf "%s\n" "  $s"; done
  printf "%s\n" "---------------------------------------------------------------------------------------"

          result=0
        fi
      fi
      if test $result -eq 1; then
        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
printf "%s\n" "done" >&6; }
      fi
    else
      result=1
    fi

    if test $result -eq 1; then
      if test $ENABLE_LINK_DYNAMIC = "yes"; then
        LIBRARIES="$LIBRARIES lzma"
      else
        STATIC_LIBRARIES="$STATIC_LIBRARIES lzma"
      fi
      HAVE_LZMA=1

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

    fi
  else

    if test $ENABLE_LINK_DYNAMIC = "yes"; then


    ac_result=""
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing lzma_easy_encoder" >&5
printf %s "checking for library containing lzma_easy_encoder... " >&6; }
if test ${ac_cv_search_libraries_lzma_easy_encoder+y}
then :
  printf %s "(cached) " >&6
else $as_nop

            ac_func_search_libraries_save_LIBS=$LIBS

      for ac_library in lzma ""; do
        if test -z "$ac_library"; then
          ac_result="none required"
        else
          ac_result=-l$ac_library
          LIBS="-l$ac_library $ac_func_search_libraries_save_LIBS"
        fi

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
`echo |sed 's/ /\n/g'|while read s; do if test -n "$s"; then echo $s|sed 's/\(.*\)/#include <\\1>/g'; fi; done`
int
main (void)
{
`if test -z ""; then echo "extern void lzma_easy_encoder();"; fi`
                                         return (int)lzma_easy_encoder;


  ;
  return 0;
}

_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  ac_cv_search_libraries_lzma_easy_encoder=$ac_result; break

fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      done
      if test ${ac_cv_search_libraries_lzma_easy_encoder+y}
then :

else $as_nop
  ac_cv_search_libraries_lzma_easy_encoder=no
fi

            LIBS=$ac_func_search_libraries_save_LIBS


fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_libraries_lzma_easy_encoder" >&5
printf "%s\n" "$ac_cv_search_libraries_lzma_easy_encoder" >&6; }
  ac_result=$ac_cv_search_libraries_lzma_easy_encoder
  if test "$ac_result" != no
then :
  test "$ac_result" = "none required" || LIBS="$ac_result $LIBS" HAVE_LZMA=1;LIBRARIES="lzma $LIBRARIES";
printf "%s\n" "#define HAVE_LZMA 1" >>confdefs.h

fi

    else
      if test -z "$HAVE_LZMA"; then


    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for static library containing lzma_easy_encoder" >&5
printf %s "checking for static library containing lzma_easy_encoder... " >&6; }
if test ${ac_cv_search_static_lzma_easy_encoder+y}
then :
  printf %s "(cached) " >&6
else $as_nop

            ac_func_search_static_libraries_save_CFLAGS="$CFLAGS"
      ac_func_search_static_libraries_save_LIBS="$LIBS"

            CFLAGS="$CFLAGS"
      ac_libraries=""
      for ac_library in lzma; do
        if test -n "$ac_libraries"; then
          ac_libraries="$ac_libraries -l$ac_library"
        else
          ac_libraries="-l$ac_library"
        fi
      done
      LIBS="-Wl,-Bstatic $ac_libraries -Wl,-Bdynamic $ac_func_search_static_libraries_save_LIBS"
      if test -z "$ac_libraries"; then
        ac_result="none required"
      else
        ac_result=$ac_libraries
      fi
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
`echo |sed 's/ /\n/g'|while read s; do if test -n "$s"; then echo $s|sed 's/\(.*\)/#include <\\1>/g'; fi; done`
int
main (void)
{
`if test -z ""; then echo "extern void lzma_easy_encoder();"; fi`
                                       return (int)lzma_easy_encoder;


  ;
  return 0;
}

_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  ac_cv_search_static_lzma_easy_encoder=$ac_result; break

fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if test ${ac_cv_search_static_lzma_easy_encoder+y}
then :

else $as_nop
  ac_cv_search_static_lzma_easy_encoder=no
fi

            LIBS=$ac_func_search_static_libraries_save_LIBS
      CFLAGS=$ac_func_search_static_libraries_save_CFLAGS


fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_static_lzma_easy_encoder" >&5
printf "%s\n" "$ac_cv_search_static_lzma_easy_encoder" >&6; }
  ac_result=$ac_cv_search_static_lzma_easy_encoder
  if test "$ac_result" != no
then :
  test "$ac_result" = "none required" || LIBS="$ac_result $LIBS" HAVE_LZMA=1;STATIC_LIBRARIES="$STATIC_LIBRARIES lzma";
printf "%s\n" "#define HAVE_LZMA 1" >>confdefs.h

fi

      fi
      if test -z "$HAVE_LZMA"; then


    ac_result=""
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing lzma_easy_encoder" >&5
printf %s "checking for library containing lzma_easy_encoder... " >&6; }
if test ${ac_cv_search_libraries_lzma_easy_encoder+y}
then :
  printf %s "(cached) " >&6
else $as_nop

            ac_func_search_libraries_save_LIBS=$LIBS

      for ac_library in lzma ""; do
        if test -z "$ac_library"; then
          ac_result="none required"
        else
          ac_result=-l$ac_library
          LIBS="-l$ac_library $ac_func_search_libraries_save_LIBS"
        fi

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
`echo |sed 's/ /\n/g'|while read s; do if test -n "$s"; then echo $s|sed 's/\(.*\)/#include <\\1>/g'; fi; done`
int
main (void)
{
`if test -z ""; then echo "extern void lzma_easy_encoder();"; fi`
                                         return (int)lzma_easy_encoder;


  ;
  return 0;
}

_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  ac_cv_search_libraries_lzma_easy_encoder=$ac_result; break

fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      done
      if test ${ac_cv_search_libraries_lzma_easy_encoder+y}
then :

else $as_nop
  ac_cv_search_libraries_lzma_easy_encoder=no
fi

            LIBS=$ac_func_search_libraries_save_LIBS


fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_libraries_lzma_easy_encoder" >&5
printf "%s\n" "$ac_cv_search_libraries_lzma_easy_encoder" >&6; }
  ac_result=$ac_cv_search_libraries_lzma_easy_encoder
  if test "$ac_result" != no
then :
  test "$ac_result" = "none required" || LIBS="$ac_result $LIBS" HAVE_LZMA=1;LIBRARIES="lzma $LIBRARIES";
printf "%s\n" "#define HAVE_LZMA 1" >>confdefs.h

fi

      fi
    fi
  fi

    case $host_os in
    linux-*)
      ;;
    sunos | solaris*)
      ;;
    darwin*)
      ;;
    windows*|mingw*)
      ;;
  esac

  if test -z "$HAVE_LZMA"; then
    if test ! \( -d xz -o -d "`readlink xz`" \); then
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: lzma not compiled: xz package missing" >&5
printf "%s\n" "$as_me: WARNING: lzma not compiled: xz package missing" >&2;}
    fi
  fi
fi

# compile/use lzo
if test $ENABLE_LZO = "yes"; then
  if test -d lzo -o -d "`readlink lzo`"; then
    if test "$ENABLE_EXTERN_COMPILE" = "yes"; then
      cwd=`pwd`


  printf %s "compile lzo... " >&6

      result=1
      if test $result -eq 1; then
        case $host_os in
          linux-*)
            ;;
          sunos | solaris*)
            ;;
          darwin*)
            ;;
          windows*|mingw*)
            # patch to fix missing --tag=CC for in libtool call
            #   diff -u extern/lzo-2.10.org/Makefile.in extern/lzo-2.10/Makefile.in  > misc/lzo-2.10-libtool.patch
#            (cd lzo; $PATCH --batch -N -p1 < $SOURCE_DIR/misc/lzo-2.10-libtool.patch) 1>$tmpFile 2>&1
            ;;
        esac
        if test $? -ne 0; then
          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: fail (patch)" >&5
printf "%s\n" "fail (patch)" >&6; }

  printf "%s\n" "--- error log -------------------------------------------------------------------------"
  cat $tmpFile | while read s; do printf "%s\n" "  $s"; done
  printf "%s\n" "---------------------------------------------------------------------------------------"

          result=0
        fi
      fi
      if test $result -eq 1; then
        install -d lzo
        (cd lzo; ./configure \
          --host=$host \
          --build=$build \
          --prefix=$cwd/extern \
        ) 1>$tmpFile 2>&1
        if test $? -ne 0; then
          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: fail (configure)" >&5
printf "%s\n" "fail (configure)" >&6; }

  printf "%s\n" "--- error log -------------------------------------------------------------------------"
  cat $tmpFile | while read s; do printf "%s\n" "  $s"; done
  printf "%s\n" "---------------------------------------------------------------------------------------"

          result=0
        fi
      fi
      if test $result -eq 1; then
        (cd lzo; make clean; make -j$CPU_CORES) 1>$tmpFile 2>&1
        if test $? -ne 0; then
          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: fail (make)" >&5
printf "%s\n" "fail (make)" >&6; }

  printf "%s\n" "--- error log -------------------------------------------------------------------------"
  cat $tmpFile | while read s; do printf "%s\n" "  $s"; done
  printf "%s\n" "---------------------------------------------------------------------------------------"

          result=0
        fi
      fi
      if test $result -eq 1; then
        (cd lzo; make install PREFIX=$cwd/extern) 1>$tmpFile 2>&1
        if test $? -ne 0; then
          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: fail (install)" >&5
printf "%s\n" "fail (install)" >&6; }

  printf "%s\n" "--- error log -------------------------------------------------------------------------"
  cat $tmpFile | while read s; do printf "%s\n" "  $s"; done
  printf "%s\n" "---------------------------------------------------------------------------------------"

          result=0
        fi
      fi
      if test $result -eq 1; then
        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
printf "%s\n" "done" >&6; }
      fi
    else
      result=1
    fi

    if test $result -eq 1; then
      if test $ENABLE_LINK_DYNAMIC = "yes"; then
        LIBRARIES="$LIBRARIES lzo2"
      else
        STATIC_LIBRARIES="$STATIC_LIBRARIES lzo2"
      fi
      HAVE_LZO=1

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

    fi
  else

    if test $ENABLE_LINK_DYNAMIC = "yes"; then


    ac_result=""
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing lzo1x_1_compress" >&5
printf %s "checking for library containing lzo1x_1_compress... " >&6; }
if test ${ac_cv_search_libraries_lzo1x_1_compress+y}
then :
  printf %s "(cached) " >&6
else $as_nop

            ac_func_search_libraries_save_LIBS=$LIBS

      for ac_library in lzo ""; do
        if test -z "$ac_library"; then
          ac_result="none required"
        else
          ac_result=-l$ac_library
          LIBS="-l$ac_library $ac_func_search_libraries_save_LIBS"
        fi

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
`echo |sed 's/ /\n/g'|while read s; do if test -n "$s"; then echo $s|sed 's/\(.*\)/#include <\\1>/g'; fi; done`
int
main (void)
{
`if test -z ""; then echo "extern void lzo1x_1_compress();"; fi`
                                         return (int)lzo1x_1_compress;


  ;
  return 0;
}

_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  ac_cv_search_libraries_lzo1x_1_compress=$ac_result; break

fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      done
      if test ${ac_cv_search_libraries_lzo1x_1_compress+y}
then :

else $as_nop
  ac_cv_search_libraries_lzo1x_1_compress=no
fi

            LIBS=$ac_func_search_libraries_save_LIBS


fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_libraries_lzo1x_1_compress" >&5
printf "%s\n" "$ac_cv_search_libraries_lzo1x_1_compress" >&6; }
  ac_result=$ac_cv_search_libraries_lzo1x_1_compress
  if test "$ac_result" != no
then :
  test "$ac_result" = "none required" || LIBS="$ac_result $LIBS" HAVE_LZO=1;LIBRARIES="lzo2 $LIBRARIES";
printf "%s\n" "#define HAVE_LZO 1" >>confdefs.h

fi

    else
      if test -z "$HAVE_LZO"; then


    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for static library containing lzo1x_1_compress" >&5
printf %s "checking for static library containing lzo1x_1_compress... " >&6; }
if test ${ac_cv_search_static_lzo1x_1_compress+y}
then :
  printf %s "(cached) " >&6
else $as_nop

            ac_func_search_static_libraries_save_CFLAGS="$CFLAGS"
      ac_func_search_static_libraries_save_LIBS="$LIBS"

            CFLAGS="$CFLAGS"
      ac_libraries=""
      for ac_library in lzo; do
        if test -n "$ac_libraries"; then
          ac_libraries="$ac_libraries -l$ac_library"
        else
          ac_libraries="-l$ac_library"
        fi
      done
      LIBS="-Wl,-Bstatic $ac_libraries -Wl,-Bdynamic $ac_func_search_static_libraries_save_LIBS"
      if test -z "$ac_libraries"; then
        ac_result="none required"
      else
        ac_result=$ac_libraries
      fi
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
`echo |sed 's/ /\n/g'|while read s; do if test -n "$s"; then echo $s|sed 's/\(.*\)/#include <\\1>/g'; fi; done`
int
main (void)
{
`if test -z ""; then echo "extern void lzo1x_1_compress();"; fi`
                                       return (int)lzo1x_1_compress;


  ;
  return 0;
}

_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  ac_cv_search_static_lzo1x_1_compress=$ac_result; break

fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if test ${ac_cv_search_static_lzo1x_1_compress+y}
then :

else $as_nop
  ac_cv_search_static_lzo1x_1_compress=no
fi

            LIBS=$ac_func_search_static_libraries_save_LIBS
      CFLAGS=$ac_func_search_static_libraries_save_CFLAGS


fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_static_lzo1x_1_compress" >&5
printf "%s\n" "$ac_cv_search_static_lzo1x_1_compress" >&6; }
  ac_result=$ac_cv_search_static_lzo1x_1_compress
  if test "$ac_result" != no
then :
  test "$ac_result" = "none required" || LIBS="$ac_result $LIBS" HAVE_LZO=1;STATIC_LIBRARIES="$STATIC_LIBRARIES lzo2";
printf "%s\n" "#define HAVE_LZO 1" >>confdefs.h

fi

      fi
      if test -z "$HAVE_LZO"; then


    ac_result=""
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing lzo1x_1_compress" >&5
printf %s "checking for library containing lzo1x_1_compress... " >&6; }
if test ${ac_cv_search_libraries_lzo1x_1_compress+y}
then :
  printf %s "(cached) " >&6
else $as_nop

            ac_func_search_libraries_save_LIBS=$LIBS

      for ac_library in lzo ""; do
        if test -z "$ac_library"; then
          ac_result="none required"
        else
          ac_result=-l$ac_library
          LIBS="-l$ac_library $ac_func_search_libraries_save_LIBS"
        fi

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
`echo |sed 's/ /\n/g'|while read s; do if test -n "$s"; then echo $s|sed 's/\(.*\)/#include <\\1>/g'; fi; done`
int
main (void)
{
`if test -z ""; then echo "extern void lzo1x_1_compress();"; fi`
                                         return (int)lzo1x_1_compress;


  ;
  return 0;
}

_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  ac_cv_search_libraries_lzo1x_1_compress=$ac_result; break

fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      done
      if test ${ac_cv_search_libraries_lzo1x_1_compress+y}
then :

else $as_nop
  ac_cv_search_libraries_lzo1x_1_compress=no
fi

            LIBS=$ac_func_search_libraries_save_LIBS


fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_libraries_lzo1x_1_compress" >&5
printf "%s\n" "$ac_cv_search_libraries_lzo1x_1_compress" >&6; }
  ac_result=$ac_cv_search_libraries_lzo1x_1_compress
  if test "$ac_result" != no
then :
  test "$ac_result" = "none required" || LIBS="$ac_result $LIBS" HAVE_LZO=1;LIBRARIES="lzo2 $LIBRARIES";
printf "%s\n" "#define HAVE_LZO 1" >>confdefs.h

fi

      fi
    fi
  fi

    case $host_os in
    linux-*)
      ;;
    sunos | solaris*)
      ;;
    darwin*)
      ;;
    windows*|mingw*)
      ;;
  esac

  if test -z "$HAVE_LZO"; then
    if test ! \( -d lzo -o -d "`readlink lzo`" \); then
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: lzo not compiled: lzo package missing" >&5
printf "%s\n" "$as_me: WARNING: lzo not compiled: lzo package missing" >&2;}
    fi
  fi
fi

# compile/use lz4
if test $ENABLE_LZ4 = "yes"; then
  if test -d lz4 -o -d "`readlink lz4`"; then
    if test "$ENABLE_EXTERN_COMPILE" = "yes"; then
      cwd=`pwd`


  printf %s "compile lz4... " >&6

      result=1
      if test $result -eq 1; then
        (cd lz4; make clean; make -j$CPU_CORES CC="$CC" CPPFLAGS="" CFLAGS="" CXXFLAGS="" AS="$AS" LD="$LD" LDFLAGS="" LIBS="$LIBS" AR="$AR" RANLIB="$RANLIB" WINDRES="$WINDRES" lib) 1>$tmpFile 2>&1
        if test $? -ne 0; then
          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: fail (make)" >&5
printf "%s\n" "fail (make)" >&6; }

  printf "%s\n" "--- error log -------------------------------------------------------------------------"
  cat $tmpFile | while read s; do printf "%s\n" "  $s"; done
  printf "%s\n" "---------------------------------------------------------------------------------------"

          result=0
        fi
      fi
      if test $result -eq 1; then
        # Note: do not call 'install', it does build additional tools
        # (cd lz4; make install PREFIX=$cwd/extern) 1>$tmpFile 2>&1
        (cd lz4; \
         install -d $cwd/extern/include; \
         install -m 644 lib/lz4.h lib/lz4frame.h lib/lz4hc.h lib/xxhash.h $cwd/extern/include; \
         install -d $cwd/extern/lib; \
         install -m 644 lib/liblz4.a $cwd/extern/lib; \
        ) 1>$tmpFile 2>&1
        if test $? -ne 0; then
          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: fail (make)" >&5
printf "%s\n" "fail (make)" >&6; }

  printf "%s\n" "--- error log -------------------------------------------------------------------------"
  cat $tmpFile | while read s; do printf "%s\n" "  $s"; done
  printf "%s\n" "---------------------------------------------------------------------------------------"

          result=0
        fi
        rm -f $cwd/extern/lib/liblz4*.so*
      fi
      if test $result -eq 1; then
        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
printf "%s\n" "done" >&6; }
      fi
    else
      result=1
    fi

    if test $result -eq 1; then
      if test $ENABLE_LINK_DYNAMIC = "yes"; then
        LIBRARIES="$LIBRARIES lz4"
      else
        STATIC_LIBRARIES="$STATIC_LIBRARIES lz4"
      fi
      HAVE_LZ4=1

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

    fi
  else

    if test $ENABLE_LINK_DYNAMIC = "yes"; then


    ac_result=""
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing LZ4_compress" >&5
printf %s "checking for library containing LZ4_compress... " >&6; }
if test ${ac_cv_search_libraries_LZ4_compress+y}
then :
  printf %s "(cached) " >&6
else $as_nop

            ac_func_search_libraries_save_LIBS=$LIBS

      for ac_library in lz4 ""; do
        if test -z "$ac_library"; then
          ac_result="none required"
        else
          ac_result=-l$ac_library
          LIBS="-l$ac_library $ac_func_search_libraries_save_LIBS"
        fi

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
`echo |sed 's/ /\n/g'|while read s; do if test -n "$s"; then echo $s|sed 's/\(.*\)/#include <\\1>/g'; fi; done`
int
main (void)
{
`if test -z ""; then echo "extern void LZ4_compress();"; fi`
                                         return (int)LZ4_compress;


  ;
  return 0;
}

_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  ac_cv_search_libraries_LZ4_compress=$ac_result; break

fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      done
      if test ${ac_cv_search_libraries_LZ4_compress+y}
then :

else $as_nop
  ac_cv_search_libraries_LZ4_compress=no
fi

            LIBS=$ac_func_search_libraries_save_LIBS


fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_libraries_LZ4_compress" >&5
printf "%s\n" "$ac_cv_search_libraries_LZ4_compress" >&6; }
  ac_result=$ac_cv_search_libraries_LZ4_compress
  if test "$ac_result" != no
then :
  test "$ac_result" = "none required" || LIBS="$ac_result $LIBS" HAVE_LZ4=1;LIBRARIES="lz4 $LIBRARIES";
printf "%s\n" "#define HAVE_LZ4 1" >>confdefs.h

fi

    else
      if test -z "$HAVE_LZ4"; then


    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for static library containing LZ4_compress" >&5
printf %s "checking for static library containing LZ4_compress... " >&6; }
if test ${ac_cv_search_static_LZ4_compress+y}
then :
  printf %s "(cached) " >&6
else $as_nop

            ac_func_search_static_libraries_save_CFLAGS="$CFLAGS"
      ac_func_search_static_libraries_save_LIBS="$LIBS"

            CFLAGS="$CFLAGS"
      ac_libraries=""
      for ac_library in lz4; do
        if test -n "$ac_libraries"; then
          ac_libraries="$ac_libraries -l$ac_library"
        else
          ac_libraries="-l$ac_library"
        fi
      done
      LIBS="-Wl,-Bstatic $ac_libraries -Wl,-Bdynamic $ac_func_search_static_libraries_save_LIBS"
      if test -z "$ac_libraries"; then
        ac_result="none required"
      else
        ac_result=$ac_libraries
      fi
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
`echo |sed 's/ /\n/g'|while read s; do if test -n "$s"; then echo $s|sed 's/\(.*\)/#include <\\1>/g'; fi; done`
int
main (void)
{
`if test -z ""; then echo "extern void LZ4_compress();"; fi`
                                       return (int)LZ4_compress;


  ;
  return 0;
}

_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  ac_cv_search_static_LZ4_compress=$ac_result; break

fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if test ${ac_cv_search_static_LZ4_compress+y}
then :

else $as_nop
  ac_cv_search_static_LZ4_compress=no
fi

            LIBS=$ac_func_search_static_libraries_save_LIBS
      CFLAGS=$ac_func_search_static_libraries_save_CFLAGS


fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_static_LZ4_compress" >&5
printf "%s\n" "$ac_cv_search_static_LZ4_compress" >&6; }
  ac_result=$ac_cv_search_static_LZ4_compress
  if test "$ac_result" != no
then :
  test "$ac_result" = "none required" || LIBS="$ac_result $LIBS" HAVE_LZ4=1;STATIC_LIBRARIES="$STATIC_LIBRARIES lz4";
printf "%s\n" "#define HAVE_LZ4 1" >>confdefs.h

fi

      fi
      if test -z "$HAVE_LZ4"; then


    ac_result=""
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing LZ4_compress" >&5
printf %s "checking for library containing LZ4_compress... " >&6; }
if test ${ac_cv_search_libraries_LZ4_compress+y}
then :
  printf %s "(cached) " >&6
else $as_nop

            ac_func_search_libraries_save_LIBS=$LIBS

      for ac_library in lz4 ""; do
        if test -z "$ac_library"; then
          ac_result="none required"
        else
          ac_result=-l$ac_library
          LIBS="-l$ac_library $ac_func_search_libraries_save_LIBS"
        fi

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
`echo |sed 's/ /\n/g'|while read s; do if test -n "$s"; then echo $s|sed 's/\(.*\)/#include <\\1>/g'; fi; done`
int
main (void)
{
`if test -z ""; then echo "extern void LZ4_compress();"; fi`
                                         return (int)LZ4_compress;


  ;
  return 0;
}

_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  ac_cv_search_libraries_LZ4_compress=$ac_result; break

fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      done
      if test ${ac_cv_search_libraries_LZ4_compress+y}
then :

else $as_nop
  ac_cv_search_libraries_LZ4_compress=no
fi

            LIBS=$ac_func_search_libraries_save_LIBS


fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_libraries_LZ4_compress" >&5
printf "%s\n" "$ac_cv_search_libraries_LZ4_compress" >&6; }
  ac_result=$ac_cv_search_libraries_LZ4_compress
  if test "$ac_result" != no
then :
  test "$ac_result" = "none required" || LIBS="$ac_result $LIBS" HAVE_LZ4=1;LIBRARIES="lz4 $LIBRARIES";
printf "%s\n" "#define HAVE_LZ4 1" >>confdefs.h

fi

      fi
    fi
  fi

    case $host_os in
    linux-*)
      ;;
    sunos | solaris*)
      ;;
    darwin*)
      ;;
    windows*|mingw*)
      ;;
  esac

  if test -z "$HAVE_LZ4"; then
    if test ! \( -d lz4 -o -d "`readlink lz4`" \); then
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: lz4 not compiled: lz4 package missing" >&5
printf "%s\n" "$as_me: WARNING: lz4 not compiled: lz4 package missing" >&2;}
    fi
  fi
fi

# compile/use zstd
if test $ENABLE_ZSTD = "yes"; then
  if test -d zstd -o -d "`readlink zstd`"; then
    if test "$ENABLE_EXTERN_COMPILE" = "yes"; then
      cwd=`pwd`


  printf %s "compile zstd... " >&6

      result=1
      if test $result -eq 1; then
        if test "$build" == "$host"; then
          (cd zstd; make clean; make -j$CPU_CORES -C lib) 1>$tmpFile 2>&1
          if test $? -ne 0; then
            { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: fail (make)" >&5
printf "%s\n" "fail (make)" >&6; }

  printf "%s\n" "--- error log -------------------------------------------------------------------------"
  cat $tmpFile | while read s; do printf "%s\n" "  $s"; done
  printf "%s\n" "---------------------------------------------------------------------------------------"

            result=0
          fi
        else
          # Note: do not set LDFLAGS
          (cd zstd; make clean; make -j$CPU_CORES -C lib CC="$CC" CPPFLAGS="" CFLAGS="" CXXFLAGS="" AS="$AS" LD="$LD" LIBS="$LIBS" AR="$AR" RANLIB="$RANLIB" WINDRES="$WINDRES") 1>$tmpFile 2>&1
          if test $? -ne 0; then
            { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: fail (make)" >&5
printf "%s\n" "fail (make)" >&6; }

  printf "%s\n" "--- error log -------------------------------------------------------------------------"
  cat $tmpFile | while read s; do printf "%s\n" "  $s"; done
  printf "%s\n" "---------------------------------------------------------------------------------------"

            result=0
          fi
        fi
      fi
      if test $result -eq 1; then
        (cd zstd; make -C lib install PREFIX=$cwd/extern) 1>$tmpFile 2>&1
        if test $? -ne 0; then
          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: fail (make)" >&5
printf "%s\n" "fail (make)" >&6; }

  printf "%s\n" "--- error log -------------------------------------------------------------------------"
  cat $tmpFile | while read s; do printf "%s\n" "  $s"; done
  printf "%s\n" "---------------------------------------------------------------------------------------"

          result=0
        fi
        rm -f $cwd/extern/lib/libzstd*.so*
      fi
      if test $result -eq 1; then
        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
printf "%s\n" "done" >&6; }
      fi
    else
      result=1
    fi

    if test $result -eq 1; then
      CC_DEFINES="$CC_DEFINES ZSTD_STATIC_LINKING_ONLY"
      if test $ENABLE_LINK_DYNAMIC = "yes"; then
        LIBRARIES="$LIBRARIES zstd"
      else
        STATIC_LIBRARIES="$STATIC_LIBRARIES zstd"
      fi
      HAVE_ZSTD=1

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

    fi
  else

    if test $ENABLE_LINK_DYNAMIC = "yes"; then


    ac_result=""
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing ZSTD_compress" >&5
printf %s "checking for library containing ZSTD_compress... " >&6; }
if test ${ac_cv_search_libraries_ZSTD_compress+y}
then :
  printf %s "(cached) " >&6
else $as_nop

            ac_func_search_libraries_save_LIBS=$LIBS

      for ac_library in zstd ""; do
        if test -z "$ac_library"; then
          ac_result="none required"
        else
          ac_result=-l$ac_library
          LIBS="-l$ac_library $ac_func_search_libraries_save_LIBS"
        fi

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
`echo |sed 's/ /\n/g'|while read s; do if test -n "$s"; then echo $s|sed 's/\(.*\)/#include <\\1>/g'; fi; done`
int
main (void)
{
`if test -z ""; then echo "extern void ZSTD_compress();"; fi`
                                         return (int)ZSTD_compress;


  ;
  return 0;
}

_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  ac_cv_search_libraries_ZSTD_compress=$ac_result; break

fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      done
      if test ${ac_cv_search_libraries_ZSTD_compress+y}
then :

else $as_nop
  ac_cv_search_libraries_ZSTD_compress=no
fi

            LIBS=$ac_func_search_libraries_save_LIBS


fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_libraries_ZSTD_compress" >&5
printf "%s\n" "$ac_cv_search_libraries_ZSTD_compress" >&6; }
  ac_result=$ac_cv_search_libraries_ZSTD_compress
  if test "$ac_result" != no
then :
  test "$ac_result" = "none required" || LIBS="$ac_result $LIBS" HAVE_ZSTD=1;LIBRARIES="zstd $LIBRARIES";
printf "%s\n" "#define HAVE_ZSTD 1" >>confdefs.h

fi

    else
      if test -z "$HAVE_ZSTD"; then


    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for static library containing ZSTD_compress" >&5
printf %s "checking for static library containing ZSTD_compress... " >&6; }
if test ${ac_cv_search_static_ZSTD_compress+y}
then :
  printf %s "(cached) " >&6
else $as_nop

            ac_func_search_static_libraries_save_CFLAGS="$CFLAGS"
      ac_func_search_static_libraries_save_LIBS="$LIBS"

            CFLAGS="$CFLAGS"
      ac_libraries=""
      for ac_library in zstd; do
        if test -n "$ac_libraries"; then
          ac_libraries="$ac_libraries -l$ac_library"
        else
          ac_libraries="-l$ac_library"
        fi
      done
      LIBS="-Wl,-Bstatic $ac_libraries -Wl,-Bdynamic $ac_func_search_static_libraries_save_LIBS"
      if test -z "$ac_libraries"; then
        ac_result="none required"
      else
        ac_result=$ac_libraries
      fi
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
`echo |sed 's/ /\n/g'|while read s; do if test -n "$s"; then echo $s|sed 's/\(.*\)/#include <\\1>/g'; fi; done`
int
main (void)
{
`if test -z ""; then echo "extern void ZSTD_compress();"; fi`
                                       return (int)ZSTD_compress;


  ;
  return 0;
}

_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  ac_cv_search_static_ZSTD_compress=$ac_result; break

fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if test ${ac_cv_search_static_ZSTD_compress+y}
then :

else $as_nop
  ac_cv_search_static_ZSTD_compress=no
fi

            LIBS=$ac_func_search_static_libraries_save_LIBS
      CFLAGS=$ac_func_search_static_libraries_save_CFLAGS


fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_static_ZSTD_compress" >&5
printf "%s\n" "$ac_cv_search_static_ZSTD_compress" >&6; }
  ac_result=$ac_cv_search_static_ZSTD_compress
  if test "$ac_result" != no
then :
  test "$ac_result" = "none required" || LIBS="$ac_result $LIBS" HAVE_ZSTD=1;CC_DEFINES="$CC_DEFINES ZSTD_STATIC_LINKING_ONLY";STATIC_LIBRARIES="$STATIC_LIBRARIES zstd";
printf "%s\n" "#define HAVE_ZSTD 1" >>confdefs.h

fi

      fi
      if test -z "$HAVE_ZSTD"; then


    ac_result=""
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing ZSTD_compress" >&5
printf %s "checking for library containing ZSTD_compress... " >&6; }
if test ${ac_cv_search_libraries_ZSTD_compress+y}
then :
  printf %s "(cached) " >&6
else $as_nop

            ac_func_search_libraries_save_LIBS=$LIBS

      for ac_library in zstd ""; do
        if test -z "$ac_library"; then
          ac_result="none required"
        else
          ac_result=-l$ac_library
          LIBS="-l$ac_library $ac_func_search_libraries_save_LIBS"
        fi

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
`echo |sed 's/ /\n/g'|while read s; do if test -n "$s"; then echo $s|sed 's/\(.*\)/#include <\\1>/g'; fi; done`
int
main (void)
{
`if test -z ""; then echo "extern void ZSTD_compress();"; fi`
                                         return (int)ZSTD_compress;


  ;
  return 0;
}

_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  ac_cv_search_libraries_ZSTD_compress=$ac_result; break

fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      done
      if test ${ac_cv_search_libraries_ZSTD_compress+y}
then :

else $as_nop
  ac_cv_search_libraries_ZSTD_compress=no
fi

            LIBS=$ac_func_search_libraries_save_LIBS


fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_libraries_ZSTD_compress" >&5
printf "%s\n" "$ac_cv_search_libraries_ZSTD_compress" >&6; }
  ac_result=$ac_cv_search_libraries_ZSTD_compress
  if test "$ac_result" != no
then :
  test "$ac_result" = "none required" || LIBS="$ac_result $LIBS" HAVE_ZSTD=1;LIBRARIES="zstd $LIBRARIES";
printf "%s\n" "#define HAVE_ZSTD 1" >>confdefs.h

fi

      fi
    fi
  fi

    case $host_os in
    linux-*)
      ;;
    sunos | solaris*)
      ;;
    darwin*)
      ;;
    windows*|mingw*)
      ;;
  esac

  if test -z "$HAVE_ZSTD"; then
    if test ! \( -d zstd -o -d "`readlink zstd`" \); then
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: zstd not compiled: zstd package missing" >&5
printf "%s\n" "$as_me: WARNING: zstd not compiled: zstd package missing" >&2;}
    fi
  fi
fi

# use xdelta3
if test $ENABLE_XDELTA3 = "yes"; then
  if test -d xdelta3 -o -d "`readlink xdelta3`"; then

    cwd=`pwd`

    # Note: no cross-compile; copy source only

  printf %s "create xdelta3... " >&6

    result=1
    if test $result -ne 1; then
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: fail" >&5
printf "%s\n" "fail" >&6; }
    fi
    if test $result -eq 1; then
      (cd xdelta3; \
       install -d $cwd/extern/sources; \
       install -d $cwd/extern/include; \
       install -m 644 xdelta3.c $cwd/extern/sources; \
       install -m 644 -t $cwd/extern/include \
         xdelta3.h \
         xdelta3-internal.h \
         xdelta3-list.h \
         xdelta3-hash.h \
         xdelta3-cfgs.h \
         xdelta3-decode.h; \
      ) 1>$tmpFile 2>&1
      (cd $cwd/extern/include; ln -sf ../sources/xdelta3.c)
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
printf "%s\n" "done" >&6; }
    fi

#    CC_INCLUDES="$CC_INCLUDES $cwd/xdelta3"
    HAVE_XDELTA3=1

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

  fi
fi

# compile/use gcrypt
if test $ENABLE_GCRYPT = "yes"; then
  if test \( -d libgpg-error -o -d "`readlink libgpg-error`" \) -a \( -d libgcrypt -o -d "`readlink libgcrypt`" \); then
    if test "$ENABLE_EXTERN_COMPILE" = "yes"; then
      cwd=`pwd`


  printf %s "compile libgpg-error... " >&6

      result1=1
      if test $result1 -eq 1; then
        (cd libgpg-error; ./configure \
          --host=$host \
          --build=$build \
          --prefix=$cwd/extern \
          --disable-shared \
          --enable-static \
        ) 1>$tmpFile 2>&1
        if test $? -ne 0; then
          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: fail (configure)" >&5
printf "%s\n" "fail (configure)" >&6; }

  printf "%s\n" "--- error log -------------------------------------------------------------------------"
  cat $tmpFile | while read s; do printf "%s\n" "  $s"; done
  printf "%s\n" "---------------------------------------------------------------------------------------"

          result1=0
        fi
      fi
      if test $result1 -eq 1; then
        (cd libgpg-error; make clean; make -j$CPU_CORES) 1>$tmpFile 2>&1
        if test $? -ne 0; then
          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: fail (make)" >&5
printf "%s\n" "fail (make)" >&6; }

  printf "%s\n" "--- error log -------------------------------------------------------------------------"
  cat $tmpFile | while read s; do printf "%s\n" "  $s"; done
  printf "%s\n" "---------------------------------------------------------------------------------------"

          result1=0
        fi
      fi
      if test $result1 -eq 1; then
        (cd libgpg-error; make install) 1>$tmpFile 2>&1
        if test $? -ne 0; then
          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: fail (install)" >&5
printf "%s\n" "fail (install)" >&6; }

  printf "%s\n" "--- error log -------------------------------------------------------------------------"
  cat $tmpFile | while read s; do printf "%s\n" "  $s"; done
  printf "%s\n" "---------------------------------------------------------------------------------------"

          result1=0
        fi
      fi
      if test $result1 -eq 1; then
        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
printf "%s\n" "done" >&6; }
      else
        as_fn_error $? "fail" "$LINENO" 5
      fi


  printf %s "compile libgcrypt... " >&6

      result2=1
      if test $result2 -eq 1; then
        case $host_os in
          linux-*)
            ;;
          sunos | solaris*)
            ;;
          darwin*)
            ;;
          windows*|mingw*)
            # patch to disable usage of lib-command when RANLIB is set
            #   diff -u libgcrypt-1.5.0.org/m4/libtool.m4 libgcrypt-1.5.0/m4/libtool.m4 >  libgcrypt-1.5.0-libtool.patch
            #   diff -u libgcrypt-1.5.0.org/aclocal.m4 libgcrypt-1.5.0/aclocal.m4       >> libgcrypt-1.5.0-libtool.patch
            #   diff -u libgcrypt-1.5.0.org/configure libgcrypt-1.5.0/configure         >> libgcrypt-1.5.0-libtool.patch
#TODO: windows cross-build
#            if test -d extern/libgcrypt-1.5.0; then
#              (cd extern/libgcrypt-1.5.0; $PATCH --batch -N -p1 < $SOURCE_DIR/misc/libgcrypt-1.5.0-libtool.patch) 1>$tmpFile 2>&1
#            else
#              AC_MSG_WARN([libgcrypt-1.5.0 not available - skipped libtool patch!])
#            fi
            ;;
        esac
        if test $? -ne 0; then
          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: fail (patch)" >&5
printf "%s\n" "fail (patch)" >&6; }

  printf "%s\n" "--- error log -------------------------------------------------------------------------"
  cat $tmpFile | while read s; do printf "%s\n" "  $s"; done
  printf "%s\n" "---------------------------------------------------------------------------------------"

          result2=0
        fi
      fi
      if test $result2 -eq 1; then
        case $host_cpu in
          *86*)
            (cd libgcrypt; LIBS="-L$cwd/extern/lib -lgpg-error" ./configure \
              --host=$host \
              --build=$build \
              --prefix=$cwd/extern \
              --with-libgpg-error-prefix=$cwd/extern \
              --enable-maintainer-mode \
              --disable-shared \
              --enable-static \
              `if test "$ENABLE_DEBUG" = "yes"; then echo --disable-optimization; fi` \
            ) 1>$tmpFile 2>&1
            ;;
          arm*)
#TODO: cipher
            (cd libgcrypt; LIBS="-L$cwd/extern/lib -lgpg-error" ./configure \
              --host=$build \
              --prefix=$cwd/extern \
              --with-libgpg-error-prefix=$cwd/extern \
              --enable-maintainer-mode \
--enable-ciphers="blowfish cast5 des twofish serpent camellia" \
              --disable-shared \
              --enable-static \
              `if test "$ENABLE_DEBUG" = "yes"; then echo --disable-optimization; fi` \
            ) 1>$tmpFile 2>&1
            ;;
        esac
        if test $? -ne 0; then
          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: fail (configure)" >&5
printf "%s\n" "fail (configure)" >&6; }

  printf "%s\n" "--- error log -------------------------------------------------------------------------"
  cat $tmpFile | while read s; do printf "%s\n" "  $s"; done
  printf "%s\n" "---------------------------------------------------------------------------------------"

          result2=0
        fi
      fi
      if test $result2 -eq 1; then
        (cd libgcrypt; make clean; make -j$CPU_CORES) 1>$tmpFile 2>&1
        if test $? -ne 0; then
          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: fail (make)" >&5
printf "%s\n" "fail (make)" >&6; }

  printf "%s\n" "--- error log -------------------------------------------------------------------------"
  cat $tmpFile | while read s; do printf "%s\n" "  $s"; done
  printf "%s\n" "---------------------------------------------------------------------------------------"

          result2=0
        fi
      fi
      if test $result2 -eq 1; then
        (cd libgcrypt; make install) 1>$tmpFile 2>&1
        if test $? -ne 0; then
          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: fail (install)" >&5
printf "%s\n" "fail (install)" >&6; }

  printf "%s\n" "--- error log -------------------------------------------------------------------------"
  cat $tmpFile | while read s; do printf "%s\n" "  $s"; done
  printf "%s\n" "---------------------------------------------------------------------------------------"

          result2=0
        fi
        case $host_os in
          linux-*)
            ;;
          sunos | solaris*)
            ;;
          darwin*)
            ;;
          windows*|mingw*)
            (cd extern/lib; ln -s libgcrypt.lib libgcrypt.a) 1>/dev/null 2>/dev/null
            ;;
        esac
      fi
      if test $result2 -eq 1; then
        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
printf "%s\n" "done" >&6; }
      fi
    else
      result1=1
      result2=1
    fi

    if test $result1 -eq 1 -a $result2 -eq 1; then
      CC_DEFINES="$CC_DEFINES GCRYPT_NO_DEPRECATED"
      if test $ENABLE_LINK_DYNAMIC = "yes"; then
        LIBRARIES="$LIBRARIES gcrypt gpg-error"
      else
        STATIC_LIBRARIES="$STATIC_LIBRARIES gcrypt gpg-error"
      fi
      HAVE_GCRYPT=1
      HAVE_GPG_ERROR=1

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

    fi
  else

    ac_fn_c_check_type "$LINENO" "gcry_cipher_hd_t" "ac_cv_type_gcry_cipher_hd_t" "#include <gcrypt.h>

"
if test "x$ac_cv_type_gcry_cipher_hd_t" = xyes
then :

                LIBRARIES="$LIBRARIES dl"
        if test $ENABLE_LINK_DYNAMIC = "yes"; then


    ac_result=""
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing gpg_strerror" >&5
printf %s "checking for library containing gpg_strerror... " >&6; }
if test ${ac_cv_search_libraries_gpg_strerror+y}
then :
  printf %s "(cached) " >&6
else $as_nop

            ac_func_search_libraries_save_LIBS=$LIBS

      for ac_library in gpg-error ""; do
        if test -z "$ac_library"; then
          ac_result="none required"
        else
          ac_result=-l$ac_library
          LIBS="-l$ac_library $ac_func_search_libraries_save_LIBS"
        fi

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
`echo |sed 's/ /\n/g'|while read s; do if test -n "$s"; then echo $s|sed 's/\(.*\)/#include <\\1>/g'; fi; done`
int
main (void)
{
`if test -z ""; then echo "extern void gpg_strerror();"; fi`
                                         return (int)gpg_strerror;


  ;
  return 0;
}

_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  ac_cv_search_libraries_gpg_strerror=$ac_result; break

fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      done
      if test ${ac_cv_search_libraries_gpg_strerror+y}
then :

else $as_nop
  ac_cv_search_libraries_gpg_strerror=no
fi

            LIBS=$ac_func_search_libraries_save_LIBS


fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_libraries_gpg_strerror" >&5
printf "%s\n" "$ac_cv_search_libraries_gpg_strerror" >&6; }
  ac_result=$ac_cv_search_libraries_gpg_strerror
  if test "$ac_result" != no
then :
  test "$ac_result" = "none required" || LIBS="$ac_result $LIBS" HAVE_GPG_ERROR=1;LIBRARIES="$LIBRARIES gpg-error";
printf "%s\n" "#define HAVE_GPG_ERROR 1" >>confdefs.h

fi



    ac_result=""
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing gcry_check_version" >&5
printf %s "checking for library containing gcry_check_version... " >&6; }
if test ${ac_cv_search_libraries_gcry_check_version+y}
then :
  printf %s "(cached) " >&6
else $as_nop

            ac_func_search_libraries_save_LIBS=$LIBS

      for ac_library in gcrypt ""; do
        if test -z "$ac_library"; then
          ac_result="none required"
        else
          ac_result=-l$ac_library
          LIBS="-l$ac_library $ac_func_search_libraries_save_LIBS"
        fi

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
`echo |sed 's/ /\n/g'|while read s; do if test -n "$s"; then echo $s|sed 's/\(.*\)/#include <\\1>/g'; fi; done`
int
main (void)
{
`if test -z ""; then echo "extern void gcry_check_version();"; fi`
                                         return (int)gcry_check_version;


  ;
  return 0;
}

_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  ac_cv_search_libraries_gcry_check_version=$ac_result; break

fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      done
      if test ${ac_cv_search_libraries_gcry_check_version+y}
then :

else $as_nop
  ac_cv_search_libraries_gcry_check_version=no
fi

            LIBS=$ac_func_search_libraries_save_LIBS


fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_libraries_gcry_check_version" >&5
printf "%s\n" "$ac_cv_search_libraries_gcry_check_version" >&6; }
  ac_result=$ac_cv_search_libraries_gcry_check_version
  if test "$ac_result" != no
then :
  test "$ac_result" = "none required" || LIBS="$ac_result $LIBS" HAVE_GCRYPT=1;LIBRARIES="$LIBRARIES gcrypt";
printf "%s\n" "#define HAVE_GCRYPT 1" >>confdefs.h

fi

        else
          if test -z "$HAVE_GPG_ERROR"; then


    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for static library containing gpg_strerror" >&5
printf %s "checking for static library containing gpg_strerror... " >&6; }
if test ${ac_cv_search_static_gpg_strerror+y}
then :
  printf %s "(cached) " >&6
else $as_nop

            ac_func_search_static_libraries_save_CFLAGS="$CFLAGS"
      ac_func_search_static_libraries_save_LIBS="$LIBS"

            CFLAGS="$CFLAGS"
      ac_libraries=""
      for ac_library in gpg-error; do
        if test -n "$ac_libraries"; then
          ac_libraries="$ac_libraries -l$ac_library"
        else
          ac_libraries="-l$ac_library"
        fi
      done
      LIBS="-Wl,-Bstatic $ac_libraries -Wl,-Bdynamic $ac_func_search_static_libraries_save_LIBS"
      if test -z "$ac_libraries"; then
        ac_result="none required"
      else
        ac_result=$ac_libraries
      fi
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
`echo |sed 's/ /\n/g'|while read s; do if test -n "$s"; then echo $s|sed 's/\(.*\)/#include <\\1>/g'; fi; done`
int
main (void)
{
`if test -z ""; then echo "extern void gpg_strerror();"; fi`
                                       return (int)gpg_strerror;


  ;
  return 0;
}

_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  ac_cv_search_static_gpg_strerror=$ac_result; break

fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if test ${ac_cv_search_static_gpg_strerror+y}
then :

else $as_nop
  ac_cv_search_static_gpg_strerror=no
fi

            LIBS=$ac_func_search_static_libraries_save_LIBS
      CFLAGS=$ac_func_search_static_libraries_save_CFLAGS


fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_static_gpg_strerror" >&5
printf "%s\n" "$ac_cv_search_static_gpg_strerror" >&6; }
  ac_result=$ac_cv_search_static_gpg_strerror
  if test "$ac_result" != no
then :
  test "$ac_result" = "none required" || LIBS="$ac_result $LIBS" HAVE_GPG_ERROR=1;STATIC_LIBRARIES="$STATIC_LIBRARIES gpg-error";
printf "%s\n" "#define HAVE_GPG_ERROR 1" >>confdefs.h

fi

          fi
          if test -z "$HAVE_GPG_ERROR"; then


    ac_result=""
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing gpg_strerror" >&5
printf %s "checking for library containing gpg_strerror... " >&6; }
if test ${ac_cv_search_libraries_gpg_strerror+y}
then :
  printf %s "(cached) " >&6
else $as_nop

            ac_func_search_libraries_save_LIBS=$LIBS

      for ac_library in gpg-error ""; do
        if test -z "$ac_library"; then
          ac_result="none required"
        else
          ac_result=-l$ac_library
          LIBS="-l$ac_library $ac_func_search_libraries_save_LIBS"
        fi

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
`echo |sed 's/ /\n/g'|while read s; do if test -n "$s"; then echo $s|sed 's/\(.*\)/#include <\\1>/g'; fi; done`
int
main (void)
{
`if test -z ""; then echo "extern void gpg_strerror();"; fi`
                                         return (int)gpg_strerror;


  ;
  return 0;
}

_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  ac_cv_search_libraries_gpg_strerror=$ac_result; break

fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      done
      if test ${ac_cv_search_libraries_gpg_strerror+y}
then :

else $as_nop
  ac_cv_search_libraries_gpg_strerror=no
fi

            LIBS=$ac_func_search_libraries_save_LIBS


fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_libraries_gpg_strerror" >&5
printf "%s\n" "$ac_cv_search_libraries_gpg_strerror" >&6; }
  ac_result=$ac_cv_search_libraries_gpg_strerror
  if test "$ac_result" != no
then :
  test "$ac_result" = "none required" || LIBS="$ac_result $LIBS" HAVE_GPG_ERROR=1;LIBRARIES="$LIBRARIES gpg-error";
printf "%s\n" "#define HAVE_GPG_ERROR 1" >>confdefs.h

fi

          fi
          if test -z "$HAVE_GCRYPT"; then


    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for static library containing gcry_check_version" >&5
printf %s "checking for static library containing gcry_check_version... " >&6; }
if test ${ac_cv_search_static_gcry_check_version+y}
then :
  printf %s "(cached) " >&6
else $as_nop

            ac_func_search_static_libraries_save_CFLAGS="$CFLAGS"
      ac_func_search_static_libraries_save_LIBS="$LIBS"

            CFLAGS="$CFLAGS"
      ac_libraries=""
      for ac_library in gcrypt; do
        if test -n "$ac_libraries"; then
          ac_libraries="$ac_libraries -l$ac_library"
        else
          ac_libraries="-l$ac_library"
        fi
      done
      LIBS="-Wl,-Bstatic $ac_libraries -Wl,-Bdynamic $ac_func_search_static_libraries_save_LIBS"
      if test -z "$ac_libraries"; then
        ac_result="none required"
      else
        ac_result=$ac_libraries
      fi
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
`echo |sed 's/ /\n/g'|while read s; do if test -n "$s"; then echo $s|sed 's/\(.*\)/#include <\\1>/g'; fi; done`
int
main (void)
{
`if test -z ""; then echo "extern void gcry_check_version();"; fi`
                                       return (int)gcry_check_version;


  ;
  return 0;
}

_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  ac_cv_search_static_gcry_check_version=$ac_result; break

fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if test ${ac_cv_search_static_gcry_check_version+y}
then :

else $as_nop
  ac_cv_search_static_gcry_check_version=no
fi

            LIBS=$ac_func_search_static_libraries_save_LIBS
      CFLAGS=$ac_func_search_static_libraries_save_CFLAGS


fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_static_gcry_check_version" >&5
printf "%s\n" "$ac_cv_search_static_gcry_check_version" >&6; }
  ac_result=$ac_cv_search_static_gcry_check_version
  if test "$ac_result" != no
then :
  test "$ac_result" = "none required" || LIBS="$ac_result $LIBS" HAVE_GCRYPT=1;STATIC_LIBRARIES="$STATIC_LIBRARIES gcrypt";
printf "%s\n" "#define HAVE_GCRYPT 1" >>confdefs.h

fi

          fi
          if test -z "$HAVE_GCRYPT"; then


    ac_result=""
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing gcry_check_version" >&5
printf %s "checking for library containing gcry_check_version... " >&6; }
if test ${ac_cv_search_libraries_gcry_check_version+y}
then :
  printf %s "(cached) " >&6
else $as_nop

            ac_func_search_libraries_save_LIBS=$LIBS

      for ac_library in gcrypt ""; do
        if test -z "$ac_library"; then
          ac_result="none required"
        else
          ac_result=-l$ac_library
          LIBS="-l$ac_library $ac_func_search_libraries_save_LIBS"
        fi

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
`echo |sed 's/ /\n/g'|while read s; do if test -n "$s"; then echo $s|sed 's/\(.*\)/#include <\\1>/g'; fi; done`
int
main (void)
{
`if test -z ""; then echo "extern void gcry_check_version();"; fi`
                                         return (int)gcry_check_version;


  ;
  return 0;
}

_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  ac_cv_search_libraries_gcry_check_version=$ac_result; break

fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      done
      if test ${ac_cv_search_libraries_gcry_check_version+y}
then :

else $as_nop
  ac_cv_search_libraries_gcry_check_version=no
fi

            LIBS=$ac_func_search_libraries_save_LIBS


fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_libraries_gcry_check_version" >&5
printf "%s\n" "$ac_cv_search_libraries_gcry_check_version" >&6; }
  ac_result=$ac_cv_search_libraries_gcry_check_version
  if test "$ac_result" != no
then :
  test "$ac_result" = "none required" || LIBS="$ac_result $LIBS" HAVE_GCRYPT=1;LIBRARIES="$LIBRARIES gcrypt";
printf "%s\n" "#define HAVE_GCRYPT 1" >>confdefs.h

fi

          fi
        fi

else $as_nop

        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: no or wrong version of gcrypt. gcrypt version >=1.2.4 needed. Disabled gcrypt support." >&5
printf "%s\n" "$as_me: WARNING: no or wrong version of gcrypt. gcrypt version >=1.2.4 needed. Disabled gcrypt support." >&2;};
        ENABLE_GCRYPT=no

fi

  fi

    case $host_os in
    linux-*)
      ;;
    sunos | solaris*)
      ;;
    darwin*)
      ;;
    windows*|mingw*)
      ;;
  esac

  if test -z "$HAVE_GCRYPT"; then
    if test ! \( -d libgpg-error -o -d "`readlink libgpg-error`" \); then
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: libgcrypt not compiled: libgpg-error package missing" >&5
printf "%s\n" "$as_me: WARNING: libgcrypt not compiled: libgpg-error package missing" >&2;}
    fi
    if test ! \( -d libgcrypt -o -d "`readlink libgcrypt`" \); then
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: libgcrypt not compiled: libgcrypt package missing" >&5
printf "%s\n" "$as_me: WARNING: libgcrypt not compiled: libgcrypt package missing" >&2;}
    fi
  fi
fi

# compile/use openssl
if test $ENABLE_SSH = "yes"; then
  if test -d openssl -o -d "`readlink openssl`"; then
    if test "$ENABLE_EXTERN_COMPILE" = "yes"; then
      cwd=`pwd`


  printf %s "compile openssl... " >&6

      result=1
      if test $result -eq 1; then
        case $host_os in
          linux-* | sunos | solaris* | darwin*)
            if test "$host_cpu" = "x86_64"; then
              (cd openssl; ./Configure \
                --prefix=$cwd/extern \
                no-shared \
                no-tests \
                linux-x86_64 \
                -Wa,--noexecstack \
              ) 1>$tmpFile 2>&1
              if test $? -ne 0; then
                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: fail (configure)" >&5
printf "%s\n" "fail (configure)" >&6; }

  printf "%s\n" "--- error log -------------------------------------------------------------------------"
  cat $tmpFile | while read s; do printf "%s\n" "  $s"; done
  printf "%s\n" "---------------------------------------------------------------------------------------"

                result=0
              fi
            else
              (cd openssl; ./Configure \
                --prefix=$cwd/extern \
                linux-generic32 \
                no-shared \
                no-tests \
                -Wa,--noexecstack \
              ) 1>$tmpFile 2>&1
              if test $? -ne 0; then
                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: fail (configure)" >&5
printf "%s\n" "fail (configure)" >&6; }

  printf "%s\n" "--- error log -------------------------------------------------------------------------"
  cat $tmpFile | while read s; do printf "%s\n" "  $s"; done
  printf "%s\n" "---------------------------------------------------------------------------------------"

                result=0
              fi
            fi
            ;;
          windows*|mingw*)
            if test "$host_cpu" = "x86_64"; then
              (cd openssl; CFLAGS="" LDFLAGS="" ./Configure \
                --prefix=$cwd/extern \
                --cross-compile-prefix=x86_64-w64-mingw32- \
                no-shared \
                no-tests \
                mingw64 \
              ) 1>$tmpFile 2>&1
            else
              (cd openssl; CFLAGS="" LDFLAGS="" ./Configure \
                --prefix=$cwd/extern \
                --cross-compile-prefix=x86_64-w64-mingw32- \
                no-shared \
                no-tests \
                mingw \
              ) 1>$tmpFile 2>&1
            fi
            if test $? -ne 0; then
              { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: fail (configure)" >&5
printf "%s\n" "fail (configure)" >&6; }

  printf "%s\n" "--- error log -------------------------------------------------------------------------"
  cat $tmpFile | while read s; do printf "%s\n" "  $s"; done
  printf "%s\n" "---------------------------------------------------------------------------------------"

              result=0
            fi
            ;;
        esac
      fi
      if test $result -eq 1; then
        (cd openssl; make clean; make -j$CPU_CORES) 1>$tmpFile 2>&1
        if test $? -ne 0; then
          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: fail (make)" >&5
printf "%s\n" "fail (make)" >&6; }

  printf "%s\n" "--- error log -------------------------------------------------------------------------"
  cat $tmpFile | while read s; do printf "%s\n" "  $s"; done
  printf "%s\n" "---------------------------------------------------------------------------------------"

          result=0
        fi
      fi
      if test $result -eq 1; then
        (cd openssl; make all install_sw) 1>$tmpFile 2>&1
        if test $? -ne 0; then
          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: fail (install)" >&5
printf "%s\n" "fail (install)" >&6; }

  printf "%s\n" "--- error log -------------------------------------------------------------------------"
  cat $tmpFile | while read s; do printf "%s\n" "  $s"; done
  printf "%s\n" "---------------------------------------------------------------------------------------"

          result=0
        fi
      fi
      if test $result -eq 1; then
        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
printf "%s\n" "done" >&6; }
      fi
    else
      result=1
    fi

    if test $result -eq 1; then
      if test $ENABLE_LINK_DYNAMIC = "yes"; then
        case $host_os in
          linux-* | sunos | solaris* | darwin*)
            LIBRARIES="$LIBRARIES ssl crypto"
            ;;
          windows*|mingw*)
            LIBRARIES="$LIBRARIES ssl crypto crypt32"
            ;;
        esac
      else
        case $host_os in
          linux-* | sunos | solaris* | darwin*)
            STATIC_LIBRARIES="$STATIC_LIBRARIES ssl crypto"
            ;;
          windows*|mingw*)
            STATIC_LIBRARIES="$STATIC_LIBRARIES ssl crypto crypt32"
            ;;
        esac
      fi
      HAVE_SSL=1

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

    fi
  fi

  if test -d libssh2 -o -d "`readlink libssh2`"; then
    if test "$ENABLE_EXTERN_COMPILE" = "yes"; then

  printf %s "compile libssh2... " >&6

      result=1
      if test $result -eq 1; then
        case $host_os in
          linux-*)
            ;;
          sunos | solaris*)
            ;;
          darwin*)
            ;;
          windows*|mingw*)
            # patch to disable usage of lib-command when RANLIB is set
            #   diff -u libssh2-1.4.2.org/m4/libtool.m4 libssh2-1.4.2/m4/libtool.m4 >  libssh2-1.4.2-libtool.patch
            #   diff -u libssh2-1.4.2.org/aclocal.m4 libssh2-1.4.2/aclocal.m4       >> libssh2-1.4.2-libtool.patch
            #   diff -u libssh2-1.4.2.org/configure libssh2-1.4.2/configure         >> libssh2-1.4.2-libtool.patch
#TODO: windows cross-build
#            if test -d extern/libssh2-1.4.2; then
#              (cd extern/libssh2-1.4.2; $PATCH --batch -N -p1 < $SOURCE_DIR/misc/libssh2-1.4.2-libtool.patch) 1>$tmpFile 2>&1
#            else
#              AC_MSG_WARN([libssh2-1.4.2 not available - skipped libtool patch!])
#            fi
            ;;
        esac
        if test $? -ne 0; then
          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: fail (patch)" >&5
printf "%s\n" "fail (patch)" >&6; }

  printf "%s\n" "--- error log -------------------------------------------------------------------------"
  cat $tmpFile | while read s; do printf "%s\n" "  $s"; done
  printf "%s\n" "---------------------------------------------------------------------------------------"

          result=0
        fi
      fi
      if test $result -eq 1; then
        (cd libssh2; PKG_CONFIG_PATH=$cwd/extern/lib/pkgconfig ./configure \
          --host=$host \
          --build=$build \
          --prefix=$cwd/extern \
          --with-libssl-prefix=$cwd/extern \
          --with-libgcrypt-prefix=$cwd/extern \
          --disable-shared --enable-static \
          --disable-examples-build \
          --enable-debug \
        ) 1>$tmpFile 2>&1
        if test $? -ne 0; then
          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: fail (configure)" >&5
printf "%s\n" "fail (configure)" >&6; }

  printf "%s\n" "--- error log -------------------------------------------------------------------------"
  cat $tmpFile | while read s; do printf "%s\n" "  $s"; done
  printf "%s\n" "---------------------------------------------------------------------------------------"

          result=0
        fi
      fi
      if test $result -eq 1; then
        (cd libssh2; make clean; make -j$CPU_CORES -C src) 1>$tmpFile 2>&1
        if test $? -ne 0; then
          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: fail (make)" >&5
printf "%s\n" "fail (make)" >&6; }

  printf "%s\n" "--- error log -------------------------------------------------------------------------"
  cat $tmpFile | while read s; do printf "%s\n" "  $s"; done
  printf "%s\n" "---------------------------------------------------------------------------------------"

          result=0
        fi
      fi
      if test $result -eq 1; then
        (cd libssh2; make install-exec install-data) 1>$tmpFile 2>&1
        if test $? -ne 0; then
          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: fail (install)" >&5
printf "%s\n" "fail (install)" >&6; }

  printf "%s\n" "--- error log -------------------------------------------------------------------------"
  cat $tmpFile | while read s; do printf "%s\n" "  $s"; done
  printf "%s\n" "---------------------------------------------------------------------------------------"

          result=0
        fi
        case $host_os in
          linux-*)
            ;;
          sunos | solaris*)
            ;;
          darwin*)
            ;;
          windows*|mingw*)
            (cd extern/lib; ln -s libssh2.lib libssh2.a) 1>/dev/null 2>/dev/null
            ;;
        esac
      fi
      if test $result -eq 1; then
        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
printf "%s\n" "done" >&6; }
      fi
    else
      result=1
    fi

    if test $result -eq 1; then
      if test $ENABLE_LINK_DYNAMIC = "yes"; then
        LIBRARIES="$LIBRARIES ssh2"
      else
        STATIC_LIBRARIES="$STATIC_LIBRARIES ssh2"
      fi
      HAVE_SSH2=1

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

    fi
  else

    if test $ENABLE_LINK_DYNAMIC = "yes"; then


    ac_result=""
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing libssh2_session_init_ex" >&5
printf %s "checking for library containing libssh2_session_init_ex... " >&6; }
if test ${ac_cv_search_libraries_libssh2_session_init_ex+y}
then :
  printf %s "(cached) " >&6
else $as_nop

            ac_func_search_libraries_save_LIBS=$LIBS

      for ac_library in ssh2 ""; do
        if test -z "$ac_library"; then
          ac_result="none required"
        else
          ac_result=-l$ac_library
          LIBS="-l$ac_library $ac_func_search_libraries_save_LIBS"
        fi

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
`echo |sed 's/ /\n/g'|while read s; do if test -n "$s"; then echo $s|sed 's/\(.*\)/#include <\\1>/g'; fi; done`
int
main (void)
{
`if test -z ""; then echo "extern void libssh2_session_init_ex();"; fi`
                                         return (int)libssh2_session_init_ex;


  ;
  return 0;
}

_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  ac_cv_search_libraries_libssh2_session_init_ex=$ac_result; break

fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      done
      if test ${ac_cv_search_libraries_libssh2_session_init_ex+y}
then :

else $as_nop
  ac_cv_search_libraries_libssh2_session_init_ex=no
fi

            LIBS=$ac_func_search_libraries_save_LIBS


fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_libraries_libssh2_session_init_ex" >&5
printf "%s\n" "$ac_cv_search_libraries_libssh2_session_init_ex" >&6; }
  ac_result=$ac_cv_search_libraries_libssh2_session_init_ex
  if test "$ac_result" != no
then :
  test "$ac_result" = "none required" || LIBS="$ac_result $LIBS" HAVE_SSH2=1;LIBRARIES="$LIBRARIES ssh2";
printf "%s\n" "#define HAVE_SSH2 1" >>confdefs.h

fi

    else
      if test -z "$HAVE_SSH2"; then


    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for static library containing libssh2_session_init_ex" >&5
printf %s "checking for static library containing libssh2_session_init_ex... " >&6; }
if test ${ac_cv_search_static_libssh2_session_init_ex+y}
then :
  printf %s "(cached) " >&6
else $as_nop

            ac_func_search_static_libraries_save_CFLAGS="$CFLAGS"
      ac_func_search_static_libraries_save_LIBS="$LIBS"

            CFLAGS="$CFLAGS"
      ac_libraries=""
      for ac_library in ssh2; do
        if test -n "$ac_libraries"; then
          ac_libraries="$ac_libraries -l$ac_library"
        else
          ac_libraries="-l$ac_library"
        fi
      done
      LIBS="-Wl,-Bstatic $ac_libraries -Wl,-Bdynamic $ac_func_search_static_libraries_save_LIBS"
      if test -z "$ac_libraries"; then
        ac_result="none required"
      else
        ac_result=$ac_libraries
      fi
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
`echo |sed 's/ /\n/g'|while read s; do if test -n "$s"; then echo $s|sed 's/\(.*\)/#include <\\1>/g'; fi; done`
int
main (void)
{
`if test -z ""; then echo "extern void libssh2_session_init_ex();"; fi`
                                       return (int)libssh2_session_init_ex;


  ;
  return 0;
}

_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  ac_cv_search_static_libssh2_session_init_ex=$ac_result; break

fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if test ${ac_cv_search_static_libssh2_session_init_ex+y}
then :

else $as_nop
  ac_cv_search_static_libssh2_session_init_ex=no
fi

            LIBS=$ac_func_search_static_libraries_save_LIBS
      CFLAGS=$ac_func_search_static_libraries_save_CFLAGS


fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_static_libssh2_session_init_ex" >&5
printf "%s\n" "$ac_cv_search_static_libssh2_session_init_ex" >&6; }
  ac_result=$ac_cv_search_static_libssh2_session_init_ex
  if test "$ac_result" != no
then :
  test "$ac_result" = "none required" || LIBS="$ac_result $LIBS" HAVE_SSH2=1;STATIC_LIBRARIES="$STATIC_LIBRARIES ssh2";
printf "%s\n" "#define HAVE_SSH2 1" >>confdefs.h

fi

      fi
      if test -z "$HAVE_SSH2"; then


    ac_result=""
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing libssh2_session_init_ex" >&5
printf %s "checking for library containing libssh2_session_init_ex... " >&6; }
if test ${ac_cv_search_libraries_libssh2_session_init_ex+y}
then :
  printf %s "(cached) " >&6
else $as_nop

            ac_func_search_libraries_save_LIBS=$LIBS

      for ac_library in ssh2 ""; do
        if test -z "$ac_library"; then
          ac_result="none required"
        else
          ac_result=-l$ac_library
          LIBS="-l$ac_library $ac_func_search_libraries_save_LIBS"
        fi

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
`echo |sed 's/ /\n/g'|while read s; do if test -n "$s"; then echo $s|sed 's/\(.*\)/#include <\\1>/g'; fi; done`
int
main (void)
{
`if test -z ""; then echo "extern void libssh2_session_init_ex();"; fi`
                                         return (int)libssh2_session_init_ex;


  ;
  return 0;
}

_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  ac_cv_search_libraries_libssh2_session_init_ex=$ac_result; break

fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      done
      if test ${ac_cv_search_libraries_libssh2_session_init_ex+y}
then :

else $as_nop
  ac_cv_search_libraries_libssh2_session_init_ex=no
fi

            LIBS=$ac_func_search_libraries_save_LIBS


fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_libraries_libssh2_session_init_ex" >&5
printf "%s\n" "$ac_cv_search_libraries_libssh2_session_init_ex" >&6; }
  ac_result=$ac_cv_search_libraries_libssh2_session_init_ex
  if test "$ac_result" != no
then :
  test "$ac_result" = "none required" || LIBS="$ac_result $LIBS" HAVE_SSH2=1;LIBRARIES="$LIBRARIES ssh2";
printf "%s\n" "#define HAVE_SSH2 1" >>confdefs.h

fi

      fi
    fi
  fi

    case $host_os in
    linux-* | sunos | solaris* | darwin*)
            if test $ENABLE_LINK_DYNAMIC = "yes"; then


    ac_result=""
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing MD5_Init" >&5
printf %s "checking for library containing MD5_Init... " >&6; }
if test ${ac_cv_search_libraries_MD5_Init+y}
then :
  printf %s "(cached) " >&6
else $as_nop

            ac_func_search_libraries_save_LIBS=$LIBS

      for ac_library in crypto ""; do
        if test -z "$ac_library"; then
          ac_result="none required"
        else
          ac_result=-l$ac_library
          LIBS="-l$ac_library $ac_func_search_libraries_save_LIBS"
        fi

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
`echo |sed 's/ /\n/g'|while read s; do if test -n "$s"; then echo $s|sed 's/\(.*\)/#include <\\1>/g'; fi; done`
int
main (void)
{
`if test -z ""; then echo "extern void MD5_Init();"; fi`
                                         return (int)MD5_Init;


  ;
  return 0;
}

_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  ac_cv_search_libraries_MD5_Init=$ac_result; break

fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      done
      if test ${ac_cv_search_libraries_MD5_Init+y}
then :

else $as_nop
  ac_cv_search_libraries_MD5_Init=no
fi

            LIBS=$ac_func_search_libraries_save_LIBS


fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_libraries_MD5_Init" >&5
printf "%s\n" "$ac_cv_search_libraries_MD5_Init" >&6; }
  ac_result=$ac_cv_search_libraries_MD5_Init
  if test "$ac_result" != no
then :
  test "$ac_result" = "none required" || LIBS="$ac_result $LIBS" HAVE_CRYPTO=1;LIBRARIES="$LIBRARIES crypto";
printf "%s\n" "#define HAVE_CRYPTO 1" >>confdefs.h

fi

      else
        if test -z "$HAVE_CRYPTO"; then


    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for static library containing MD5_Init" >&5
printf %s "checking for static library containing MD5_Init... " >&6; }
if test ${ac_cv_search_static_MD5_Init+y}
then :
  printf %s "(cached) " >&6
else $as_nop

            ac_func_search_static_libraries_save_CFLAGS="$CFLAGS"
      ac_func_search_static_libraries_save_LIBS="$LIBS"

            CFLAGS="$CFLAGS"
      ac_libraries=""
      for ac_library in crypto; do
        if test -n "$ac_libraries"; then
          ac_libraries="$ac_libraries -l$ac_library"
        else
          ac_libraries="-l$ac_library"
        fi
      done
      LIBS="-Wl,-Bstatic $ac_libraries -Wl,-Bdynamic $ac_func_search_static_libraries_save_LIBS"
      if test -z "$ac_libraries"; then
        ac_result="none required"
      else
        ac_result=$ac_libraries
      fi
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
`echo |sed 's/ /\n/g'|while read s; do if test -n "$s"; then echo $s|sed 's/\(.*\)/#include <\\1>/g'; fi; done`
int
main (void)
{
`if test -z ""; then echo "extern void MD5_Init();"; fi`
                                       return (int)MD5_Init;


  ;
  return 0;
}

_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  ac_cv_search_static_MD5_Init=$ac_result; break

fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if test ${ac_cv_search_static_MD5_Init+y}
then :

else $as_nop
  ac_cv_search_static_MD5_Init=no
fi

            LIBS=$ac_func_search_static_libraries_save_LIBS
      CFLAGS=$ac_func_search_static_libraries_save_CFLAGS


fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_static_MD5_Init" >&5
printf "%s\n" "$ac_cv_search_static_MD5_Init" >&6; }
  ac_result=$ac_cv_search_static_MD5_Init
  if test "$ac_result" != no
then :
  test "$ac_result" = "none required" || LIBS="$ac_result $LIBS" HAVE_CRYPTO=1;STATIC_LIBRARIES="$STATIC_LIBRARIES crypto";
printf "%s\n" "#define HAVE_CRYPTO 1" >>confdefs.h

fi

        fi
        if test -z "$HAVE_CRYPTO"; then


    ac_result=""
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing MD5_Init" >&5
printf %s "checking for library containing MD5_Init... " >&6; }
if test ${ac_cv_search_libraries_MD5_Init+y}
then :
  printf %s "(cached) " >&6
else $as_nop

            ac_func_search_libraries_save_LIBS=$LIBS

      for ac_library in crypto ""; do
        if test -z "$ac_library"; then
          ac_result="none required"
        else
          ac_result=-l$ac_library
          LIBS="-l$ac_library $ac_func_search_libraries_save_LIBS"
        fi

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
`echo |sed 's/ /\n/g'|while read s; do if test -n "$s"; then echo $s|sed 's/\(.*\)/#include <\\1>/g'; fi; done`
int
main (void)
{
`if test -z ""; then echo "extern void MD5_Init();"; fi`
                                         return (int)MD5_Init;


  ;
  return 0;
}

_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  ac_cv_search_libraries_MD5_Init=$ac_result; break

fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      done
      if test ${ac_cv_search_libraries_MD5_Init+y}
then :

else $as_nop
  ac_cv_search_libraries_MD5_Init=no
fi

            LIBS=$ac_func_search_libraries_save_LIBS


fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_libraries_MD5_Init" >&5
printf "%s\n" "$ac_cv_search_libraries_MD5_Init" >&6; }
  ac_result=$ac_cv_search_libraries_MD5_Init
  if test "$ac_result" != no
then :
  test "$ac_result" = "none required" || LIBS="$ac_result $LIBS" HAVE_CRYPTO=1;LIBRARIES="$LIBRARIES crypto";
printf "%s\n" "#define HAVE_CRYPTO 1" >>confdefs.h

fi

        fi
      fi
      ;;
    windows*|mingw*)
            if test $ENABLE_LINK_DYNAMIC = "yes"; then


    ac_result=""
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing CertGetCertificateContextProperty" >&5
printf %s "checking for library containing CertGetCertificateContextProperty... " >&6; }
if test ${ac_cv_search_libraries_CertGetCertificateContextProperty+y}
then :
  printf %s "(cached) " >&6
else $as_nop

            ac_func_search_libraries_save_LIBS=$LIBS

      for ac_library in crypt32 ""; do
        if test -z "$ac_library"; then
          ac_result="none required"
        else
          ac_result=-l$ac_library
          LIBS="-l$ac_library $ac_func_search_libraries_save_LIBS"
        fi

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
`echo windows.h wincrypt.h|sed 's/ /\n/g'|while read s; do if test -n "$s"; then echo $s|sed 's/\(.*\)/#include <\\1>/g'; fi; done`
int
main (void)
{
`if test -z "windows.h wincrypt.h"; then echo "extern void CertGetCertificateContextProperty();"; fi`
                                         return (int)CertGetCertificateContextProperty;


  ;
  return 0;
}

_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  ac_cv_search_libraries_CertGetCertificateContextProperty=$ac_result; break

fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      done
      if test ${ac_cv_search_libraries_CertGetCertificateContextProperty+y}
then :

else $as_nop
  ac_cv_search_libraries_CertGetCertificateContextProperty=no
fi

            LIBS=$ac_func_search_libraries_save_LIBS


fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_libraries_CertGetCertificateContextProperty" >&5
printf "%s\n" "$ac_cv_search_libraries_CertGetCertificateContextProperty" >&6; }
  ac_result=$ac_cv_search_libraries_CertGetCertificateContextProperty
  if test "$ac_result" != no
then :
  test "$ac_result" = "none required" || LIBS="$ac_result $LIBS" LIBRARIES="$LIBRARIES crypt32"
fi



    ac_result=""
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing MD5_Init" >&5
printf %s "checking for library containing MD5_Init... " >&6; }
if test ${ac_cv_search_libraries_MD5_Init+y}
then :
  printf %s "(cached) " >&6
else $as_nop

            ac_func_search_libraries_save_LIBS=$LIBS

      for ac_library in crypto ""; do
        if test -z "$ac_library"; then
          ac_result="none required"
        else
          ac_result=-l$ac_library
          LIBS="-l$ac_library $ac_func_search_libraries_save_LIBS"
        fi

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
`echo |sed 's/ /\n/g'|while read s; do if test -n "$s"; then echo $s|sed 's/\(.*\)/#include <\\1>/g'; fi; done`
int
main (void)
{
`if test -z ""; then echo "extern void MD5_Init();"; fi`
                                         return (int)MD5_Init;


  ;
  return 0;
}

_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  ac_cv_search_libraries_MD5_Init=$ac_result; break

fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      done
      if test ${ac_cv_search_libraries_MD5_Init+y}
then :

else $as_nop
  ac_cv_search_libraries_MD5_Init=no
fi

            LIBS=$ac_func_search_libraries_save_LIBS


fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_libraries_MD5_Init" >&5
printf "%s\n" "$ac_cv_search_libraries_MD5_Init" >&6; }
  ac_result=$ac_cv_search_libraries_MD5_Init
  if test "$ac_result" != no
then :
  test "$ac_result" = "none required" || LIBS="$ac_result $LIBS" HAVE_CRYPTO=1;LIBRARIES="$LIBRARIES crypto";
printf "%s\n" "#define HAVE_CRYPTO 1" >>confdefs.h

fi

      else


    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for static library containing CertGetCertificateContextProperty" >&5
printf %s "checking for static library containing CertGetCertificateContextProperty... " >&6; }
if test ${ac_cv_search_static_CertGetCertificateContextProperty+y}
then :
  printf %s "(cached) " >&6
else $as_nop

            ac_func_search_static_libraries_save_CFLAGS="$CFLAGS"
      ac_func_search_static_libraries_save_LIBS="$LIBS"

            CFLAGS="$CFLAGS"
      ac_libraries=""
      for ac_library in crypt32; do
        if test -n "$ac_libraries"; then
          ac_libraries="$ac_libraries -l$ac_library"
        else
          ac_libraries="-l$ac_library"
        fi
      done
      LIBS="-Wl,-Bstatic $ac_libraries -Wl,-Bdynamic $ac_func_search_static_libraries_save_LIBS"
      if test -z "$ac_libraries"; then
        ac_result="none required"
      else
        ac_result=$ac_libraries
      fi
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
`echo windows.h wincrypt.h|sed 's/ /\n/g'|while read s; do if test -n "$s"; then echo $s|sed 's/\(.*\)/#include <\\1>/g'; fi; done`
int
main (void)
{
`if test -z "windows.h wincrypt.h"; then echo "extern void CertGetCertificateContextProperty();"; fi`
                                       return (int)CertGetCertificateContextProperty;


  ;
  return 0;
}

_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  ac_cv_search_static_CertGetCertificateContextProperty=$ac_result; break

fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if test ${ac_cv_search_static_CertGetCertificateContextProperty+y}
then :

else $as_nop
  ac_cv_search_static_CertGetCertificateContextProperty=no
fi

            LIBS=$ac_func_search_static_libraries_save_LIBS
      CFLAGS=$ac_func_search_static_libraries_save_CFLAGS


fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_static_CertGetCertificateContextProperty" >&5
printf "%s\n" "$ac_cv_search_static_CertGetCertificateContextProperty" >&6; }
  ac_result=$ac_cv_search_static_CertGetCertificateContextProperty
  if test "$ac_result" != no
then :
  test "$ac_result" = "none required" || LIBS="$ac_result $LIBS" STATIC_LIBRARIES="$STATIC_LIBRARIES crypt32"
fi

        if test -z "$HAVE_CRYPTO"; then


    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for static library containing MD5_Init" >&5
printf %s "checking for static library containing MD5_Init... " >&6; }
if test ${ac_cv_search_static_MD5_Init+y}
then :
  printf %s "(cached) " >&6
else $as_nop

            ac_func_search_static_libraries_save_CFLAGS="$CFLAGS"
      ac_func_search_static_libraries_save_LIBS="$LIBS"

            CFLAGS="$CFLAGS"
      ac_libraries=""
      for ac_library in crypto; do
        if test -n "$ac_libraries"; then
          ac_libraries="$ac_libraries -l$ac_library"
        else
          ac_libraries="-l$ac_library"
        fi
      done
      LIBS="-Wl,-Bstatic $ac_libraries -Wl,-Bdynamic $ac_func_search_static_libraries_save_LIBS"
      if test -z "$ac_libraries"; then
        ac_result="none required"
      else
        ac_result=$ac_libraries
      fi
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
`echo |sed 's/ /\n/g'|while read s; do if test -n "$s"; then echo $s|sed 's/\(.*\)/#include <\\1>/g'; fi; done`
int
main (void)
{
`if test -z ""; then echo "extern void MD5_Init();"; fi`
                                       return (int)MD5_Init;


  ;
  return 0;
}

_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  ac_cv_search_static_MD5_Init=$ac_result; break

fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if test ${ac_cv_search_static_MD5_Init+y}
then :

else $as_nop
  ac_cv_search_static_MD5_Init=no
fi

            LIBS=$ac_func_search_static_libraries_save_LIBS
      CFLAGS=$ac_func_search_static_libraries_save_CFLAGS


fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_static_MD5_Init" >&5
printf "%s\n" "$ac_cv_search_static_MD5_Init" >&6; }
  ac_result=$ac_cv_search_static_MD5_Init
  if test "$ac_result" != no
then :
  test "$ac_result" = "none required" || LIBS="$ac_result $LIBS" HAVE_CRYPTO=1;STATIC_LIBRARIES="$STATIC_LIBRARIES crypto";
printf "%s\n" "#define HAVE_CRYPTO 1" >>confdefs.h

fi

        fi
        if test -z "$HAVE_CRYPTO"; then


    ac_result=""
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing MD5_Init" >&5
printf %s "checking for library containing MD5_Init... " >&6; }
if test ${ac_cv_search_libraries_MD5_Init+y}
then :
  printf %s "(cached) " >&6
else $as_nop

            ac_func_search_libraries_save_LIBS=$LIBS

      for ac_library in crypto ""; do
        if test -z "$ac_library"; then
          ac_result="none required"
        else
          ac_result=-l$ac_library
          LIBS="-l$ac_library $ac_func_search_libraries_save_LIBS"
        fi

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
`echo |sed 's/ /\n/g'|while read s; do if test -n "$s"; then echo $s|sed 's/\(.*\)/#include <\\1>/g'; fi; done`
int
main (void)
{
`if test -z ""; then echo "extern void MD5_Init();"; fi`
                                         return (int)MD5_Init;


  ;
  return 0;
}

_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  ac_cv_search_libraries_MD5_Init=$ac_result; break

fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      done
      if test ${ac_cv_search_libraries_MD5_Init+y}
then :

else $as_nop
  ac_cv_search_libraries_MD5_Init=no
fi

            LIBS=$ac_func_search_libraries_save_LIBS


fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_libraries_MD5_Init" >&5
printf "%s\n" "$ac_cv_search_libraries_MD5_Init" >&6; }
  ac_result=$ac_cv_search_libraries_MD5_Init
  if test "$ac_result" != no
then :
  test "$ac_result" = "none required" || LIBS="$ac_result $LIBS" HAVE_CRYPTO=1;LIBRARIES="$LIBRARIES crypto";
printf "%s\n" "#define HAVE_CRYPTO 1" >>confdefs.h

fi

        fi
      fi
      ;;
  esac

  if test -z "$HAVE_SSL"; then
    if test ! \( -d openssl -o -d "`readlink openssl`" \); then
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: openssl not compiled: openssl package missing" >&5
printf "%s\n" "$as_me: WARNING: openssl not compiled: openssl package missing" >&2;}
    fi
  fi
  if test -z "$HAVE_SSH2"; then
    if test ! \( -d libssh2 -o -d "`readlink libssh2`" \); then
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: libssh2 not compiled: libssh2 package missing" >&5
printf "%s\n" "$as_me: WARNING: libssh2 not compiled: libssh2 package missing" >&2;}
    fi
  fi
fi

# compile/use libidn2
if test \( $ENABLE_TLS = "yes" \) -o \( $ENABLE_CURL = "yes" \); then
  if test \( -d libidn2 -o -d "`readlink libidn2`" \) ; then
    if test "$ENABLE_EXTERN_COMPILE" = "yes"; then
      cwd=`pwd`


  printf %s "compile libidn2... " >&6

      result1=1
      if test $result -eq 1; then
        (cd libidn2; ./configure \
          --host=$host \
          --build=$build \
          --prefix=$cwd/extern \
          --disable-shared \
          --enable-static \
          --disable-doc \
          --with-included-libunistring \
        ) 1>$tmpFile 2>&1
        if test $? -ne 0; then
          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: fail (configure)" >&5
printf "%s\n" "fail (configure)" >&6; }

  printf "%s\n" "--- error log -------------------------------------------------------------------------"
  cat $tmpFile | while read s; do printf "%s\n" "  $s"; done
  printf "%s\n" "---------------------------------------------------------------------------------------"

          result=0
        fi
      fi
      if test $result -eq 1; then
        (cd libidn2; make clean; make -j$CPU_CORES) 1>$tmpFile 2>&1
        if test $? -ne 0; then
          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: fail (make)" >&5
printf "%s\n" "fail (make)" >&6; }

  printf "%s\n" "--- error log -------------------------------------------------------------------------"
  cat $tmpFile | while read s; do printf "%s\n" "  $s"; done
  printf "%s\n" "---------------------------------------------------------------------------------------"

          result=0
        fi
      fi
      if test $result -eq 1; then
        (cd libidn2; make install) 1>$tmpFile 2>&1
        if test $? -ne 0; then
          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: fail (install)" >&5
printf "%s\n" "fail (install)" >&6; }

  printf "%s\n" "--- error log -------------------------------------------------------------------------"
  cat $tmpFile | while read s; do printf "%s\n" "  $s"; done
  printf "%s\n" "---------------------------------------------------------------------------------------"

          result=0
        fi
      fi
      if test $result -eq 1; then
        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
printf "%s\n" "done" >&6; }
      fi
    else
      result=1
    fi

    if test $result -eq 1; then
      if test $ENABLE_LINK_DYNAMIC = "yes"; then
        LIBRARIES="$LIBRARIES idn2"
      else
        STATIC_LIBRARIES="$STATIC_LIBRARIES idn2"
      fi
      HAVE_IDN2=1

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

    fi
  else

    if test $ENABLE_LINK_DYNAMIC = "yes"; then


    ac_result=""
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing idn2_check_version" >&5
printf %s "checking for library containing idn2_check_version... " >&6; }
if test ${ac_cv_search_libraries_idn2_check_version+y}
then :
  printf %s "(cached) " >&6
else $as_nop

            ac_func_search_libraries_save_LIBS=$LIBS

      for ac_library in idn2 ""; do
        if test -z "$ac_library"; then
          ac_result="none required"
        else
          ac_result=-l$ac_library
          LIBS="-l$ac_library $ac_func_search_libraries_save_LIBS"
        fi

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
`echo |sed 's/ /\n/g'|while read s; do if test -n "$s"; then echo $s|sed 's/\(.*\)/#include <\\1>/g'; fi; done`
int
main (void)
{
`if test -z ""; then echo "extern void idn2_check_version();"; fi`
                                         return (int)idn2_check_version;


  ;
  return 0;
}

_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  ac_cv_search_libraries_idn2_check_version=$ac_result; break

fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      done
      if test ${ac_cv_search_libraries_idn2_check_version+y}
then :

else $as_nop
  ac_cv_search_libraries_idn2_check_version=no
fi

            LIBS=$ac_func_search_libraries_save_LIBS


fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_libraries_idn2_check_version" >&5
printf "%s\n" "$ac_cv_search_libraries_idn2_check_version" >&6; }
  ac_result=$ac_cv_search_libraries_idn2_check_version
  if test "$ac_result" != no
then :
  test "$ac_result" = "none required" || LIBS="$ac_result $LIBS" HAVE_IDN2=1;LIBRARIES="$LIBRARIES idn2";
printf "%s\n" "#define HAVE_IDN2 1" >>confdefs.h

fi

    else
      if test -z "$HAVE_IDN2"; then


    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for static library containing idn2_check_version" >&5
printf %s "checking for static library containing idn2_check_version... " >&6; }
if test ${ac_cv_search_static_idn2_check_version+y}
then :
  printf %s "(cached) " >&6
else $as_nop

            ac_func_search_static_libraries_save_CFLAGS="$CFLAGS"
      ac_func_search_static_libraries_save_LIBS="$LIBS"

            CFLAGS="$CFLAGS"
      ac_libraries=""
      for ac_library in idn2; do
        if test -n "$ac_libraries"; then
          ac_libraries="$ac_libraries -l$ac_library"
        else
          ac_libraries="-l$ac_library"
        fi
      done
      LIBS="-Wl,-Bstatic $ac_libraries -Wl,-Bdynamic $ac_func_search_static_libraries_save_LIBS"
      if test -z "$ac_libraries"; then
        ac_result="none required"
      else
        ac_result=$ac_libraries
      fi
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
`echo |sed 's/ /\n/g'|while read s; do if test -n "$s"; then echo $s|sed 's/\(.*\)/#include <\\1>/g'; fi; done`
int
main (void)
{
`if test -z ""; then echo "extern void idn2_check_version();"; fi`
                                       return (int)idn2_check_version;


  ;
  return 0;
}

_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  ac_cv_search_static_idn2_check_version=$ac_result; break

fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if test ${ac_cv_search_static_idn2_check_version+y}
then :

else $as_nop
  ac_cv_search_static_idn2_check_version=no
fi

            LIBS=$ac_func_search_static_libraries_save_LIBS
      CFLAGS=$ac_func_search_static_libraries_save_CFLAGS


fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_static_idn2_check_version" >&5
printf "%s\n" "$ac_cv_search_static_idn2_check_version" >&6; }
  ac_result=$ac_cv_search_static_idn2_check_version
  if test "$ac_result" != no
then :
  test "$ac_result" = "none required" || LIBS="$ac_result $LIBS" HAVE_IDN2=1;STATIC_LIBRARIES="$STATIC_LIBRARIES idn2";
printf "%s\n" "#define HAVE_IDN2 1" >>confdefs.h

fi

      fi
    fi
  fi

    case $host_os in
    linux-*)
      ;;
    sunos | solaris*)
      ;;
    darwin*)
      ;;
    windows*|mingw*)
      ;;
  esac
fi

# compile/use gnutls
if test $ENABLE_TLS = "yes"; then
  if test \( -d gmp -o -d "`readlink gmp`" \) -a \( -d nettle -o -d "`readlink nettle`" \) -a \( -d gnutls -o -d "`readlink gnutls`" \) -a "$HAVE_IDN2"; then
    if test "$ENABLE_EXTERN_COMPILE" = "yes"; then
      cwd=`pwd`

      if test -z "$HAVE_GCRYPT"; then
        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: gcrypt is missing. Compiling or linking gnutls may fail!" >&5
printf "%s\n" "$as_me: WARNING: gcrypt is missing. Compiling or linking gnutls may fail!" >&2;}
      fi


  printf %s "compile gmp... " >&6

      result1=1
      if test $result1 -eq 1; then
        # Note: clean is obviously not enough, try distclean
        (cd gmp; make distclean) 1>/dev/null 2>&1
        if test "$host_cpu" = "x86_64"; then
          case $host_os in
            linux-*)
              case $host_cpu in
                *86*)
                  (cd gmp; CFLAGS= ./configure \
                    --host=$host \
                    --build=$build \
                    --prefix=$cwd/extern \
                    --disable-shared \
                    --enable-static \
                    --enable-pic \
                    --enable-fat \
                    ABI=64 \
                  ) 1>$tmpFile 2>&1
                  ;;
                arm*)
                  (cd gmp; CFLAGS= ./configure \
                    --host=$host \
                    --build=$build \
                    --prefix=$cwd/extern \
                    --disable-shared \
                    --enable-static \
                    --enable-pic \
                    --enable-fat \
                  ) 1>$tmpFile 2>&1
                  ;;
              esac
              ;;
            sunos | solaris*)
              ;;
            darwin*)
              ;;
            windows*|mingw*)
              (cd gmp; CFLAGS= ./configure \
                --host=$host \
                --build=$build \
                --prefix=$cwd/extern \
                --disable-shared \
                --enable-static \
                --enable-pic \
                --enable-fat \
              ) 1>$tmpFile 2>&1
              ;;
          esac
        else
          (cd gmp; CFLAGS= ./configure \
            --host=$host \
            --prefix=$cwd/extern \
            --disable-shared \
            --enable-static \
            --enable-pic \
            --enable-fat \
            ABI=32 \
          ) 1>$tmpFile 2>&1
        fi
        if test $? -ne 0; then
          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: fail (configure)" >&5
printf "%s\n" "fail (configure)" >&6; }

  printf "%s\n" "--- error log -------------------------------------------------------------------------"
  cat $tmpFile | while read s; do printf "%s\n" "  $s"; done
  printf "%s\n" "---------------------------------------------------------------------------------------"

          result1=0
        fi
      fi
      if test $result1 -eq 1; then
        (cd gmp; make clean; make -j$CPU_CORES) 1>$tmpFile 2>&1
        if test $? -ne 0; then
          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: fail (make)" >&5
printf "%s\n" "fail (make)" >&6; }

  printf "%s\n" "--- error log -------------------------------------------------------------------------"
  cat $tmpFile | while read s; do printf "%s\n" "  $s"; done
  printf "%s\n" "---------------------------------------------------------------------------------------"

          result1=0
        fi
      fi
      if test $result1 -eq 1; then
        (cd gmp; make install) 1>$tmpFile 2>&1
        if test $? -ne 0; then
          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: fail (install)" >&5
printf "%s\n" "fail (install)" >&6; }

  printf "%s\n" "--- error log -------------------------------------------------------------------------"
  cat $tmpFile | while read s; do printf "%s\n" "  $s"; done
  printf "%s\n" "---------------------------------------------------------------------------------------"

          result1=0
        fi
      fi
      if test $result1 -eq 1; then
        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
printf "%s\n" "done" >&6; }
      fi


  printf %s "compile nettle... " >&6

      result2=1
      if test $result2 -eq 1; then
        (cd nettle; ./configure \
          --host=$host \
          --build=$build \
          --prefix=$cwd/extern \
          --with-include-path=$cwd/extern/include \
          --with-lib-path=$cwd/extern/lib \
          --disable-shared \
          --enable-static \
          --enable-fat \
        ) 1>$tmpFile 2>&1
        if test $? -ne 0; then
          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: fail (configure)" >&5
printf "%s\n" "fail (configure)" >&6; }

  printf "%s\n" "--- error log -------------------------------------------------------------------------"
  cat $tmpFile | while read s; do printf "%s\n" "  $s"; done
  printf "%s\n" "---------------------------------------------------------------------------------------"

          result2=0
        fi
      fi
      if test $result2 -eq 1; then
        (cd nettle; make clean; make -j$CPU_CORES) 1>$tmpFile 2>&1
        if test $? -ne 0; then
          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: fail (make)" >&5
printf "%s\n" "fail (make)" >&6; }

  printf "%s\n" "--- error log -------------------------------------------------------------------------"
  cat $tmpFile | while read s; do printf "%s\n" "  $s"; done
  printf "%s\n" "---------------------------------------------------------------------------------------"

          result2=0
        fi
      fi
      if test $result2 -eq 1; then
        (cd nettle; make install) 1>$tmpFile 2>&1
        if test $? -ne 0; then
          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: fail (install)" >&5
printf "%s\n" "fail (install)" >&6; }

  printf "%s\n" "--- error log -------------------------------------------------------------------------"
  cat $tmpFile | while read s; do printf "%s\n" "  $s"; done
  printf "%s\n" "---------------------------------------------------------------------------------------"

          result2=0
        fi
      fi
      if test $result2 -eq 1; then
        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
printf "%s\n" "done" >&6; }
      fi


  printf %s "compile gnutls... " >&6

      result3=1
      if test $result3 -eq 1; then
        (cd gnutls; LDFLAGS=-L$cwd/extern/lib PKG_CONFIG_PATH=$cwd/extern/lib/pkgconfig ./configure \
          --host=$host \
          --build=$build \
          --prefix=$cwd/extern \
          --with-libnettle-prefix=$cwd/extern \
          --with-included-libtasn1 \
          --with-included-unistring \
          --disable-shared \
          --enable-static \
          --without-p11-kit \
          --without-tpm \
          --disable-tools \
          --disable-doc \
        ) 1>$tmpFile 2>&1
        if test $? -ne 0; then
          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: fail (configure)" >&5
printf "%s\n" "fail (configure)" >&6; }

  printf "%s\n" "--- error log -------------------------------------------------------------------------"
  cat $tmpFile | while read s; do printf "%s\n" "  $s"; done
  printf "%s\n" "---------------------------------------------------------------------------------------"

          result3=0
        fi
      fi
      if test $result3 -eq 1; then
        (cd gnutls; make clean; make -j$CPU_CORES) 1>$tmpFile 2>&1
        if test $? -ne 0; then
          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: fail (make)" >&5
printf "%s\n" "fail (make)" >&6; }

  printf "%s\n" "--- error log -------------------------------------------------------------------------"
  cat $tmpFile | while read s; do printf "%s\n" "  $s"; done
  printf "%s\n" "---------------------------------------------------------------------------------------"

          result3=0
        fi
      fi
      if test $result3 -eq 1; then
        (cd gnutls; make install) 1>$tmpFile 2>&1
        if test $? -ne 0; then
          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: fail (install)" >&5
printf "%s\n" "fail (install)" >&6; }

  printf "%s\n" "--- error log -------------------------------------------------------------------------"
  cat $tmpFile | while read s; do printf "%s\n" "  $s"; done
  printf "%s\n" "---------------------------------------------------------------------------------------"

          result3=0
        fi
      fi
      if test $result3 -eq 1; then
        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
printf "%s\n" "done" >&6; }
      fi
    else
      result1=1
      result2=1
      result3=1
    fi

    if test $result1 -eq 1 -a $result2 -eq 1 -a $result3 -eq 1; then
      if test $ENABLE_LINK_DYNAMIC = "yes"; then
        LIBRARIES="$LIBRARIES gnutls nettle hogweed gmp"
      else
        STATIC_LIBRARIES="$STATIC_LIBRARIES gnutls nettle hogweed gmp"
      fi
      HAVE_GNU_TLS=1

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

    fi
  else
    ac_fn_c_check_type "$LINENO" "gnutls_session_t" "ac_cv_type_gnutls_session_t" "#include <gnutls/gnutls.h>
"
if test "x$ac_cv_type_gnutls_session_t" = xyes
then :

else $as_nop
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: no or wrong version of gnutls. gnutls version >=2.0.1 needed. Disabled TLS support." >&5
printf "%s\n" "$as_me: WARNING: no or wrong version of gnutls. gnutls version >=2.0.1 needed. Disabled TLS support." >&2;}; ENABLE_TLS=no
fi

    if test $ENABLE_LINK_DYNAMIC = "yes"; then


    ac_result=""
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing gnutls_global_init" >&5
printf %s "checking for library containing gnutls_global_init... " >&6; }
if test ${ac_cv_search_libraries_gnutls_global_init+y}
then :
  printf %s "(cached) " >&6
else $as_nop

            ac_func_search_libraries_save_LIBS=$LIBS

      for ac_library in gnutls ""; do
        if test -z "$ac_library"; then
          ac_result="none required"
        else
          ac_result=-l$ac_library
          LIBS="-l$ac_library $ac_func_search_libraries_save_LIBS"
        fi

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
`echo |sed 's/ /\n/g'|while read s; do if test -n "$s"; then echo $s|sed 's/\(.*\)/#include <\\1>/g'; fi; done`
int
main (void)
{
`if test -z ""; then echo "extern void gnutls_global_init();"; fi`
                                         return (int)gnutls_global_init;


  ;
  return 0;
}

_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  ac_cv_search_libraries_gnutls_global_init=$ac_result; break

fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      done
      if test ${ac_cv_search_libraries_gnutls_global_init+y}
then :

else $as_nop
  ac_cv_search_libraries_gnutls_global_init=no
fi

            LIBS=$ac_func_search_libraries_save_LIBS


fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_libraries_gnutls_global_init" >&5
printf "%s\n" "$ac_cv_search_libraries_gnutls_global_init" >&6; }
  ac_result=$ac_cv_search_libraries_gnutls_global_init
  if test "$ac_result" != no
then :
  test "$ac_result" = "none required" || LIBS="$ac_result $LIBS" HAVE_GNU_TLS=1;LIBRARIES="$LIBRARIES gnutls";
printf "%s\n" "#define HAVE_GNU_TLS 1" >>confdefs.h

fi



    ac_result=""
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing asn1_length_der" >&5
printf %s "checking for library containing asn1_length_der... " >&6; }
if test ${ac_cv_search_libraries_asn1_length_der+y}
then :
  printf %s "(cached) " >&6
else $as_nop

            ac_func_search_libraries_save_LIBS=$LIBS

      for ac_library in tasn1 ""; do
        if test -z "$ac_library"; then
          ac_result="none required"
        else
          ac_result=-l$ac_library
          LIBS="-l$ac_library $ac_func_search_libraries_save_LIBS"
        fi

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
`echo |sed 's/ /\n/g'|while read s; do if test -n "$s"; then echo $s|sed 's/\(.*\)/#include <\\1>/g'; fi; done`
int
main (void)
{
`if test -z ""; then echo "extern void asn1_length_der();"; fi`
                                         return (int)asn1_length_der;


  ;
  return 0;
}

_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  ac_cv_search_libraries_asn1_length_der=$ac_result; break

fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      done
      if test ${ac_cv_search_libraries_asn1_length_der+y}
then :

else $as_nop
  ac_cv_search_libraries_asn1_length_der=no
fi

            LIBS=$ac_func_search_libraries_save_LIBS


fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_libraries_asn1_length_der" >&5
printf "%s\n" "$ac_cv_search_libraries_asn1_length_der" >&6; }
  ac_result=$ac_cv_search_libraries_asn1_length_der
  if test "$ac_result" != no
then :
  test "$ac_result" = "none required" || LIBS="$ac_result $LIBS" HAVE_TASN1=1;LIBRARIES="$LIBRARIES tasn1";
printf "%s\n" "#define HAVE_TASN1 1" >>confdefs.h

fi

    else
      if test -z "$HAVE_GNU_TLS"; then


    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for static library containing gnutls_global_init" >&5
printf %s "checking for static library containing gnutls_global_init... " >&6; }
if test ${ac_cv_search_static_gnutls_global_init+y}
then :
  printf %s "(cached) " >&6
else $as_nop

            ac_func_search_static_libraries_save_CFLAGS="$CFLAGS"
      ac_func_search_static_libraries_save_LIBS="$LIBS"

            CFLAGS="$CFLAGS"
      ac_libraries=""
      for ac_library in gnutls; do
        if test -n "$ac_libraries"; then
          ac_libraries="$ac_libraries -l$ac_library"
        else
          ac_libraries="-l$ac_library"
        fi
      done
      LIBS="-Wl,-Bstatic $ac_libraries -Wl,-Bdynamic $ac_func_search_static_libraries_save_LIBS"
      if test -z "$ac_libraries"; then
        ac_result="none required"
      else
        ac_result=$ac_libraries
      fi
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
`echo |sed 's/ /\n/g'|while read s; do if test -n "$s"; then echo $s|sed 's/\(.*\)/#include <\\1>/g'; fi; done`
int
main (void)
{
`if test -z ""; then echo "extern void gnutls_global_init();"; fi`
                                       return (int)gnutls_global_init;


  ;
  return 0;
}

_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  ac_cv_search_static_gnutls_global_init=$ac_result; break

fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if test ${ac_cv_search_static_gnutls_global_init+y}
then :

else $as_nop
  ac_cv_search_static_gnutls_global_init=no
fi

            LIBS=$ac_func_search_static_libraries_save_LIBS
      CFLAGS=$ac_func_search_static_libraries_save_CFLAGS


fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_static_gnutls_global_init" >&5
printf "%s\n" "$ac_cv_search_static_gnutls_global_init" >&6; }
  ac_result=$ac_cv_search_static_gnutls_global_init
  if test "$ac_result" != no
then :
  test "$ac_result" = "none required" || LIBS="$ac_result $LIBS" HAVE_GNU_TLS=1;STATIC_LIBRARIES="$STATIC_LIBRARIES gnutls";
printf "%s\n" "#define HAVE_GNU_TLS 1" >>confdefs.h

fi

      fi
      if test -z "$HAVE_GNU_TLS"; then


    ac_result=""
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing gnutls_global_init" >&5
printf %s "checking for library containing gnutls_global_init... " >&6; }
if test ${ac_cv_search_libraries_gnutls_global_init+y}
then :
  printf %s "(cached) " >&6
else $as_nop

            ac_func_search_libraries_save_LIBS=$LIBS

      for ac_library in gnutls ""; do
        if test -z "$ac_library"; then
          ac_result="none required"
        else
          ac_result=-l$ac_library
          LIBS="-l$ac_library $ac_func_search_libraries_save_LIBS"
        fi

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
`echo |sed 's/ /\n/g'|while read s; do if test -n "$s"; then echo $s|sed 's/\(.*\)/#include <\\1>/g'; fi; done`
int
main (void)
{
`if test -z ""; then echo "extern void gnutls_global_init();"; fi`
                                         return (int)gnutls_global_init;


  ;
  return 0;
}

_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  ac_cv_search_libraries_gnutls_global_init=$ac_result; break

fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      done
      if test ${ac_cv_search_libraries_gnutls_global_init+y}
then :

else $as_nop
  ac_cv_search_libraries_gnutls_global_init=no
fi

            LIBS=$ac_func_search_libraries_save_LIBS


fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_libraries_gnutls_global_init" >&5
printf "%s\n" "$ac_cv_search_libraries_gnutls_global_init" >&6; }
  ac_result=$ac_cv_search_libraries_gnutls_global_init
  if test "$ac_result" != no
then :
  test "$ac_result" = "none required" || LIBS="$ac_result $LIBS" HAVE_GNU_TLS=1;LIBRARIES="$LIBRARIES gnutls";
printf "%s\n" "#define HAVE_GNU_TLS 1" >>confdefs.h

fi

      fi

      if test -z "$HAVE_TASN1"; then


    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for static library containing asn1_length_der" >&5
printf %s "checking for static library containing asn1_length_der... " >&6; }
if test ${ac_cv_search_static_asn1_length_der+y}
then :
  printf %s "(cached) " >&6
else $as_nop

            ac_func_search_static_libraries_save_CFLAGS="$CFLAGS"
      ac_func_search_static_libraries_save_LIBS="$LIBS"

            CFLAGS="$CFLAGS"
      ac_libraries=""
      for ac_library in tasn1; do
        if test -n "$ac_libraries"; then
          ac_libraries="$ac_libraries -l$ac_library"
        else
          ac_libraries="-l$ac_library"
        fi
      done
      LIBS="-Wl,-Bstatic $ac_libraries -Wl,-Bdynamic $ac_func_search_static_libraries_save_LIBS"
      if test -z "$ac_libraries"; then
        ac_result="none required"
      else
        ac_result=$ac_libraries
      fi
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
`echo |sed 's/ /\n/g'|while read s; do if test -n "$s"; then echo $s|sed 's/\(.*\)/#include <\\1>/g'; fi; done`
int
main (void)
{
`if test -z ""; then echo "extern void asn1_length_der();"; fi`
                                       return (int)asn1_length_der;


  ;
  return 0;
}

_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  ac_cv_search_static_asn1_length_der=$ac_result; break

fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if test ${ac_cv_search_static_asn1_length_der+y}
then :

else $as_nop
  ac_cv_search_static_asn1_length_der=no
fi

            LIBS=$ac_func_search_static_libraries_save_LIBS
      CFLAGS=$ac_func_search_static_libraries_save_CFLAGS


fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_static_asn1_length_der" >&5
printf "%s\n" "$ac_cv_search_static_asn1_length_der" >&6; }
  ac_result=$ac_cv_search_static_asn1_length_der
  if test "$ac_result" != no
then :
  test "$ac_result" = "none required" || LIBS="$ac_result $LIBS" HAVE_TASN1=1;STATIC_LIBRARIES="$STATIC_LIBRARIES tasn1";
printf "%s\n" "#define HAVE_TASN1 1" >>confdefs.h

fi

      fi
      if test -z "$HAVE_TASN1"; then


    ac_result=""
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing asn1_length_der" >&5
printf %s "checking for library containing asn1_length_der... " >&6; }
if test ${ac_cv_search_libraries_asn1_length_der+y}
then :
  printf %s "(cached) " >&6
else $as_nop

            ac_func_search_libraries_save_LIBS=$LIBS

      for ac_library in tasn1 ""; do
        if test -z "$ac_library"; then
          ac_result="none required"
        else
          ac_result=-l$ac_library
          LIBS="-l$ac_library $ac_func_search_libraries_save_LIBS"
        fi

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
`echo |sed 's/ /\n/g'|while read s; do if test -n "$s"; then echo $s|sed 's/\(.*\)/#include <\\1>/g'; fi; done`
int
main (void)
{
`if test -z ""; then echo "extern void asn1_length_der();"; fi`
                                         return (int)asn1_length_der;


  ;
  return 0;
}

_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  ac_cv_search_libraries_asn1_length_der=$ac_result; break

fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      done
      if test ${ac_cv_search_libraries_asn1_length_der+y}
then :

else $as_nop
  ac_cv_search_libraries_asn1_length_der=no
fi

            LIBS=$ac_func_search_libraries_save_LIBS


fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_libraries_asn1_length_der" >&5
printf "%s\n" "$ac_cv_search_libraries_asn1_length_der" >&6; }
  ac_result=$ac_cv_search_libraries_asn1_length_der
  if test "$ac_result" != no
then :
  test "$ac_result" = "none required" || LIBS="$ac_result $LIBS" HAVE_TASN1=1;LIBRARIES="$LIBRARIES tasn1";
printf "%s\n" "#define HAVE_TASN1 1" >>confdefs.h

fi

      fi
    fi
  fi

    case $host_os in
    linux-*)
      ;;
    sunos | solaris*)
      ;;
    darwin*)
      ;;
    windows*|mingw*)
      ;;
  esac

  if test -z "$HAVE_GNU_TLS"; then
    if test ! \( -d gmp -o -d "`readlink gmp`" \); then
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: gnutls not compiled: gmp package missing" >&5
printf "%s\n" "$as_me: WARNING: gnutls not compiled: gmp package missing" >&2;}
    fi
    if test ! \( -d nettle -o -d "`readlink nettle`" \); then
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: gnutls not compiled: nettle package missing" >&5
printf "%s\n" "$as_me: WARNING: gnutls not compiled: nettle package missing" >&2;}
    fi
    if test ! \( -d gnutls -o -d "`readlink gnutls`" \); then
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: gnutls not compiled: gnutls package missing" >&5
printf "%s\n" "$as_me: WARNING: gnutls not compiled: gnutls package missing" >&2;}
    fi
  fi
fi

# compile/use curl
if test $ENABLE_CURL = "yes"; then
#  if test \( -d c-ares -o -d "`readlink c-ares`" \) -a \( -d curl -o -d "`readlink curl`" \) -a \( -d mxml -o -d "`readlink mxml`" \) -a "$HAVE_GPG_ERROR" -a "$HAVE_IDN2"; then
  if test \( -d c-ares -o -d "`readlink c-ares`" \) -a \( -d curl -o -d "`readlink curl`" \) -a \( -d mxml -o -d "`readlink mxml`" \); then
    if test "$ENABLE_EXTERN_COMPILE" = "yes"; then

      cwd=`pwd`

      if test -z "$HAVE_Z"; then
        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: zlib is missing. Compiling or linking curl may fail!" >&5
printf "%s\n" "$as_me: WARNING: zlib is missing. Compiling or linking curl may fail!" >&2;}
      fi
      if test -z "$HAVE_ZSTD"; then
        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: zstd is missing. Compiling or linking curl may fail!" >&5
printf "%s\n" "$as_me: WARNING: zstd is missing. Compiling or linking curl may fail!" >&2;}
      fi
      if test -z "$HAVE_GNU_TLS"; then
        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: gnutls is missing. Compiling or linking curl may fail!" >&5
printf "%s\n" "$as_me: WARNING: gnutls is missing. Compiling or linking curl may fail!" >&2;}
      fi
      if test -z "$HAVE_SSL"; then
        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: libssl is missing. Compiling or linking curl may fail!" >&5
printf "%s\n" "$as_me: WARNING: libssl is missing. Compiling or linking curl may fail!" >&2;}
      fi
      if test -z "$HAVE_SSH2"; then
        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: libssh2 is missing. Compiling or linking curl may fail!" >&5
printf "%s\n" "$as_me: WARNING: libssh2 is missing. Compiling or linking curl may fail!" >&2;}
      fi
      if test -z "$HAVE_IDN2"; then
        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: libidn2 is missing. Compiling or linking curl may fail!" >&5
printf "%s\n" "$as_me: WARNING: libidn2 is missing. Compiling or linking curl may fail!" >&2;}
      fi


  printf %s "compile c-ares... " >&6

      result1=1
      if test $result1 -eq 1; then
        case $host_os in
          linux-*)
            ;;
          sunos | solaris*)
            ;;
          darwin*)
            ;;
          windows*|mingw*)
            # patch to disable usage of lib-command when RANLIB is set
            #   diff -u curl-7.28.1.org/m4/libtool.m4 curl-7.28.1/m4/libtool.m4 >  curl-7.28.1-libtool.patch
            #   diff -u curl-7.28.1.org/aclocal.m4 curl-7.28.1/aclocal.m4       >> curl-7.28.1-libtool.patch
            #   diff -u curl-7.28.1.org/Makefile.in curl-7.28.1/Makefile.in     >> curl-7.28.1-libtool.patch
            #   diff -u curl-7.28.1.org/configure curl-7.28.1/configure         >> curl-7.28.1-libtool.patch
#TODO: windows cross-build
#            if test -d extern/curl-7.28.1; then
#              (cd extern/curl-7.28.1; $PATCH --batch -N -p1 < $SOURCE_DIR/misc/curl-7.28.1-libtool.patch) 1>$tmpFile 2>&1
#            else
#              AC_MSG_WARN([curl-7.28.1 not available - skipped libtool patch!])
#            fi
            ;;
        esac
        if test $? -ne 0; then
          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: fail (patch)" >&5
printf "%s\n" "fail (patch)" >&6; }

  printf "%s\n" "--- error log -------------------------------------------------------------------------"
  cat $tmpFile | while read s; do printf "%s\n" "  $s"; done
  printf "%s\n" "---------------------------------------------------------------------------------------"

          result1=0
        fi
      fi
      if test $result1 -eq 1; then
        # Note: https://github.com/c-ares/c-ares/blob/cares-1_14_0/README.msvc#L133-L138
        install -d c-ares
        (cd c-ares; CPPFLAGS="-DCARES_STATICLIB" CFLAGS="" LDFLAGS="" ./configure \
          --host=$host \
          --build=$build \
          --prefix=$cwd/extern \
          --disable-shared \
          --enable-static \
          --disable-tests \
          `if test "$ENABLE_DEBUG" = "yes"; then echo --enable-debug; fi` \
        ) 1>$tmpFile 2>&1
        if test $? -ne 0; then
          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: fail (configure)" >&5
printf "%s\n" "fail (configure)" >&6; }

  printf "%s\n" "--- error log -------------------------------------------------------------------------"
  cat $tmpFile | while read s; do printf "%s\n" "  $s"; done
  printf "%s\n" "---------------------------------------------------------------------------------------"

          result1=0
        fi
      fi
      if test $result1 -eq 1; then
        (cd c-ares; make clean; make -j$CPU_CORES) 1>$tmpFile 2>&1
        if test $? -ne 0; then
          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: fail (make)" >&5
printf "%s\n" "fail (make)" >&6; }

  printf "%s\n" "--- error log -------------------------------------------------------------------------"
  cat $tmpFile | while read s; do printf "%s\n" "  $s"; done
  printf "%s\n" "---------------------------------------------------------------------------------------"

          result1=0
        fi
      fi
      if test $result1 -eq 1; then
        (cd c-ares; make install) 1>$tmpFile 2>&1
        if test $? -ne 0; then
          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: fail (install)" >&5
printf "%s\n" "fail (install)" >&6; }

  printf "%s\n" "--- error log -------------------------------------------------------------------------"
  cat $tmpFile | while read s; do printf "%s\n" "  $s"; done
  printf "%s\n" "---------------------------------------------------------------------------------------"

          result1=0
        fi
        case $host_os in
          linux-*)
            ;;
          sunos | solaris*)
            ;;
          darwin*)
            ;;
          windows*|mingw*)
            (cd extern/lib; ln -s libcares.lib libcares.a) 1>/dev/null 2>/dev/null
            ;;
        esac
      fi
      if test $result1 -eq 1; then
        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
printf "%s\n" "done" >&6; }
      fi


  printf %s "compile mxml... " >&6

      result2=1
      if test $result2 -eq 1; then
        case $host_os in
          linux-*)
            ;;
          sunos | solaris*)
            ;;
          darwin*)
            ;;
          windows*|mingw*)
            # patch to disable usage of lib-command when RANLIB is set
            #   diff -u curl-7.28.1.org/m4/libtool.m4 curl-7.28.1/m4/libtool.m4 >  curl-7.28.1-libtool.patch
            #   diff -u curl-7.28.1.org/aclocal.m4 curl-7.28.1/aclocal.m4       >> curl-7.28.1-libtool.patch
            #   diff -u curl-7.28.1.org/Makefile.in curl-7.28.1/Makefile.in     >> curl-7.28.1-libtool.patch
            #   diff -u curl-7.28.1.org/configure curl-7.28.1/configure         >> curl-7.28.1-libtool.patch
#TODO: windows cross-build
#            if test -d extern/curl-7.28.1; then
#              (cd extern/curl-7.28.1; $PATCH --batch -N -p1 < $SOURCE_DIR/misc/curl-7.28.1-libtool.patch) 1>$tmpFile 2>&1
#            else
#              AC_MSG_WARN([curl-7.28.1 not available - skipped libtool patch!])
#            fi
            ;;
        esac
        if test $? -ne 0; then
          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: fail (patch)" >&5
printf "%s\n" "fail (patch)" >&6; }

  printf "%s\n" "--- error log -------------------------------------------------------------------------"
  cat $tmpFile | while read s; do printf "%s\n" "  $s"; done
  printf "%s\n" "---------------------------------------------------------------------------------------"

          result2=0
        fi
      fi
      if test $result2 -eq 1; then
        (cd mxml; ./configure \
          --host=$host \
          --build=$build \
          --prefix=$cwd/extern \
          --disable-shared \
          --enable-static \
        ) 1>$tmpFile 2>&1
        if test $? -ne 0; then
          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: fail (configure)" >&5
printf "%s\n" "fail (configure)" >&6; }

  printf "%s\n" "--- error log -------------------------------------------------------------------------"
  cat $tmpFile | while read s; do printf "%s\n" "  $s"; done
  printf "%s\n" "---------------------------------------------------------------------------------------"

          result2=0
        fi
      fi
      if test $result2 -eq 1; then
        (cd mxml; make clean; make -j$CPU_CORES libmxml.a) 1>$tmpFile 2>&1
        if test $? -ne 0; then
          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: fail (make)" >&5
printf "%s\n" "fail (make)" >&6; }

  printf "%s\n" "--- error log -------------------------------------------------------------------------"
  cat $tmpFile | while read s; do printf "%s\n" "  $s"; done
  printf "%s\n" "---------------------------------------------------------------------------------------"

          result2=0
        fi
      fi
      if test $result2 -eq 1; then
        # Note: there is no target to install the library and header files only; do it manually
        (cd mxml; \
         make install-libmxml.a; \
         install -m 644 mxml.h $cwd/extern/include; \
         install -m 644 mxml.pc $cwd/extern/lib/pkgconfig; \
        ) 1>$tmpFile 2>&1
        if test $? -ne 0; then
          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: fail (install)" >&5
printf "%s\n" "fail (install)" >&6; }

  printf "%s\n" "--- error log -------------------------------------------------------------------------"
  cat $tmpFile | while read s; do printf "%s\n" "  $s"; done
  printf "%s\n" "---------------------------------------------------------------------------------------"

          result2=0
        fi
        case $host_os in
          linux-*)
            ;;
          sunos | solaris*)
            ;;
          darwin*)
            ;;
          windows*|mingw*)
            (cd extern/lib; ln -s libmxml.lib libmxml.a) 1>/dev/null 2>/dev/null
            ;;
        esac
      fi
      if test $result2 -eq 1; then
        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
printf "%s\n" "done" >&6; }
      fi


  printf %s "compile curl... " >&6

      result3=1
      if test $result3 -eq 1; then
        case $host_os in
          linux-*)
            ;;
          sunos | solaris*)
            ;;
          darwin*)
            ;;
          windows*|mingw*)
            # patch to disable usage of lib-command when RANLIB is set
            #   diff -u curl-7.28.1.org/m4/libtool.m4 curl-7.28.1/m4/libtool.m4 >  curl-7.28.1-libtool.patch
            #   diff -u curl-7.28.1.org/aclocal.m4 curl-7.28.1/aclocal.m4       >> curl-7.28.1-libtool.patch
            #   diff -u curl-7.28.1.org/Makefile.in curl-7.28.1/Makefile.in     >> curl-7.28.1-libtool.patch
            #   diff -u curl-7.28.1.org/configure curl-7.28.1/configure         >> curl-7.28.1-libtool.patch
#TODO: windows cross-build
#            if test -d extern/curl-7.28.1; then
#              (cd extern/curl-7.28.1; $PATCH --batch -N -p1 < $SOURCE_DIR/misc/curl-7.28.1-libtool.patch) 1>$tmpFile 2>&1
#            else
#              AC_MSG_WARN([curl-7.28.1 not available - skipped libtool patch!])
#            fi
            ;;
        esac
        if test $? -ne 0; then
          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: fail (patch)" >&5
printf "%s\n" "fail (patch)" >&6; }

  printf "%s\n" "--- error log -------------------------------------------------------------------------"
  cat $tmpFile | while read s; do printf "%s\n" "  $s"; done
  printf "%s\n" "---------------------------------------------------------------------------------------"

          result3=0
        fi
      fi
      if test $result3 -eq 1; then
        if test "$host" == "$build"; then
          # compile build
# TODO: temporary disabled brotli compression, psl
          (cd curl; PKG_CONFIG_PATH=$cwd/extern/lib/pkgconfig ./configure \
            --host=$host \
            --build=$build \
            --prefix=$cwd/extern \
            --disable-shared \
            --enable-static \
            --disable-ldap \
            --disable-rtsp \
            --without-librtmp \
            --enable-ares=$cwd/extern \
            --with-zlib=$cwd/extern \
            `if test $HAVE_ZSTD; then echo --with-zstd=$cwd/extern; else echo --without-zstd; fi` \
            `if test $HAVE_GNU_TLS; then echo --with-gnutls=$cwd/extern; fi` \
            `if test $HAVE_SSL; then echo --with-openssl=$cwd/extern --disable-openssl-auto-load-config; else echo --without-ssl; fi` \
            `if test $HAVE_SSH2; then echo --with-libssh2=$cwd/extern; fi` \
--without-brotli \
--without-libpsl \
            `if test "$ENABLE_DEBUG" = "yes"; then echo --enable-debug; fi` \
          ) 1>$tmpFile 2>&1
          if test $? -ne 0; then
            { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: fail (configure)" >&5
printf "%s\n" "fail (configure)" >&6; }

  printf "%s\n" "--- error log -------------------------------------------------------------------------"
  cat $tmpFile | while read s; do printf "%s\n" "  $s"; done
  printf "%s\n" "---------------------------------------------------------------------------------------"

            result3=0
          fi
        else
          # cross-compile host
          (cd curl; PKG_CONFIG_PATH=$cwd/extern/lib/pkgconfig CPPFLAGS="-DCARES_STATICLIB" LDFLAGS="" LIBS="-lcrypt32 -liphlpapi -lssp" ./configure \
            --host=$host \
            --build=$build \
            --prefix=$cwd/extern \
            --disable-shared \
            --enable-static \
            --disable-ldap \
            --disable-rtsp \
            --without-librtmp \
            --enable-ares=$cwd/extern \
            --with-zlib=$cwd/extern \
            `if test $HAVE_ZSTD; then echo --with-zstd=$cwd/extern; else echo --without-zstd; fi` \
            `if test $HAVE_GNU_TLS; then echo --with-gnutls=$cwd/extern; fi` \
            `if test $HAVE_SSL; then echo --with-openssl=$cwd/extern --disable-openssl-auto-load-config; else echo --without-ssl; fi` \
            `if test $HAVE_SSH2; then echo --with-libssh2=$cwd/extern; fi` \
            `if test "$ENABLE_DEBUG" = "yes"; then echo --enable-debug; fi` \
          ) 1>$tmpFile 2>&1
          if test $? -ne 0; then
            { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: fail (configure)" >&5
printf "%s\n" "fail (configure)" >&6; }

  printf "%s\n" "--- error log -------------------------------------------------------------------------"
  cat $tmpFile | while read s; do printf "%s\n" "  $s"; done
  printf "%s\n" "---------------------------------------------------------------------------------------"

            result3=0
          fi
        fi
      fi
      if test $result3 -eq 1; then
        (cd curl; make clean; make -j$CPU_CORES) 1>$tmpFile 2>&1
        if test $? -ne 0; then
          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: fail (make)" >&5
printf "%s\n" "fail (make)" >&6; }

  printf "%s\n" "--- error log -------------------------------------------------------------------------"
  cat $tmpFile | while read s; do printf "%s\n" "  $s"; done
  printf "%s\n" "---------------------------------------------------------------------------------------"

          result3=0
        fi
      fi
      if test $result3 -eq 1; then
        (cd curl; make install) 1>$tmpFile 2>&1
        if test $? -ne 0; then
          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: fail (install)" >&5
printf "%s\n" "fail (install)" >&6; }

  printf "%s\n" "--- error log -------------------------------------------------------------------------"
  cat $tmpFile | while read s; do printf "%s\n" "  $s"; done
  printf "%s\n" "---------------------------------------------------------------------------------------"

          result3=0
        fi
        case $host_os in
          linux-*)
            ;;
          sunos | solaris*)
            ;;
          darwin*)
            ;;
          windows*|mingw*)
            (cd extern/lib; ln -s libcurl.lib libcurl.a) 1>$tmpFile 2>&1
            ;;
        esac
      fi
      if test $result3 -eq 1; then
        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
printf "%s\n" "done" >&6; }
      fi
    else
      result1=1
      result2=1
      result3=1
    fi

    if test $result1 -eq 1 -a $result2 -eq 1 -a $result3 -eq 1; then
      CC_DEFINES="$CC_DEFINES CARES_STATICLIB CURL_STATICLIB"
      if test $ENABLE_LINK_DYNAMIC = "yes"; then
        LIBRARIES="$LIBRARIES curl cares mxml"
        if test "$host" != "$build"; then
          LIBRARIES="$LIBRARIES crypt32"
        fi
      else
        STATIC_LIBRARIES="$STATIC_LIBRARIES curl cares mxml"
        if test "$host" != "$build"; then
          STATIC_LIBRARIES="$STATIC_LIBRARIES crypt32"
        fi
      fi
      HAVE_FTP=1
      HAVE_CARES=1
      HAVE_MXML=1
      HAVE_CURL=1

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


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


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

    fi
  else
    if test $ENABLE_LINK_DYNAMIC = "yes"; then


    ac_result=""
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing curl_global_init" >&5
printf %s "checking for library containing curl_global_init... " >&6; }
if test ${ac_cv_search_libraries_curl_global_init+y}
then :
  printf %s "(cached) " >&6
else $as_nop

            ac_func_search_libraries_save_LIBS=$LIBS

      for ac_library in curl ""; do
        if test -z "$ac_library"; then
          ac_result="none required"
        else
          ac_result=-l$ac_library
          LIBS="-l$ac_library $ac_func_search_libraries_save_LIBS"
        fi

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
`echo |sed 's/ /\n/g'|while read s; do if test -n "$s"; then echo $s|sed 's/\(.*\)/#include <\\1>/g'; fi; done`
int
main (void)
{
`if test -z ""; then echo "extern void curl_global_init();"; fi`
                                         return (int)curl_global_init;


  ;
  return 0;
}

_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  ac_cv_search_libraries_curl_global_init=$ac_result; break

fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      done
      if test ${ac_cv_search_libraries_curl_global_init+y}
then :

else $as_nop
  ac_cv_search_libraries_curl_global_init=no
fi

            LIBS=$ac_func_search_libraries_save_LIBS


fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_libraries_curl_global_init" >&5
printf "%s\n" "$ac_cv_search_libraries_curl_global_init" >&6; }
  ac_result=$ac_cv_search_libraries_curl_global_init
  if test "$ac_result" != no
then :
  test "$ac_result" = "none required" || LIBS="$ac_result $LIBS" HAVE_CURL=1;LIBRARIES="$LIBRARIES curl";
printf "%s\n" "#define HAVE_CURL 1" >>confdefs.h

fi



    ac_result=""
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing ares_library_init" >&5
printf %s "checking for library containing ares_library_init... " >&6; }
if test ${ac_cv_search_libraries_ares_library_init+y}
then :
  printf %s "(cached) " >&6
else $as_nop

            ac_func_search_libraries_save_LIBS=$LIBS

      for ac_library in cares ""; do
        if test -z "$ac_library"; then
          ac_result="none required"
        else
          ac_result=-l$ac_library
          LIBS="-l$ac_library $ac_func_search_libraries_save_LIBS"
        fi

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
`echo |sed 's/ /\n/g'|while read s; do if test -n "$s"; then echo $s|sed 's/\(.*\)/#include <\\1>/g'; fi; done`
int
main (void)
{
`if test -z ""; then echo "extern void ares_library_init();"; fi`
                                         return (int)ares_library_init;


  ;
  return 0;
}

_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  ac_cv_search_libraries_ares_library_init=$ac_result; break

fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      done
      if test ${ac_cv_search_libraries_ares_library_init+y}
then :

else $as_nop
  ac_cv_search_libraries_ares_library_init=no
fi

            LIBS=$ac_func_search_libraries_save_LIBS


fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_libraries_ares_library_init" >&5
printf "%s\n" "$ac_cv_search_libraries_ares_library_init" >&6; }
  ac_result=$ac_cv_search_libraries_ares_library_init
  if test "$ac_result" != no
then :
  test "$ac_result" = "none required" || LIBS="$ac_result $LIBS" HAVE_CARES=1;LIBRARIES="$LIBRARIES cares";
printf "%s\n" "#define HAVE_CARES 1" >>confdefs.h

fi



    ac_result=""
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing mxmlNewXML" >&5
printf %s "checking for library containing mxmlNewXML... " >&6; }
if test ${ac_cv_search_libraries_mxmlNewXML+y}
then :
  printf %s "(cached) " >&6
else $as_nop

            ac_func_search_libraries_save_LIBS=$LIBS

      for ac_library in mxml ""; do
        if test -z "$ac_library"; then
          ac_result="none required"
        else
          ac_result=-l$ac_library
          LIBS="-l$ac_library $ac_func_search_libraries_save_LIBS"
        fi

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
`echo |sed 's/ /\n/g'|while read s; do if test -n "$s"; then echo $s|sed 's/\(.*\)/#include <\\1>/g'; fi; done`
int
main (void)
{
`if test -z ""; then echo "extern void mxmlNewXML();"; fi`
                                         return (int)mxmlNewXML;


  ;
  return 0;
}

_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  ac_cv_search_libraries_mxmlNewXML=$ac_result; break

fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      done
      if test ${ac_cv_search_libraries_mxmlNewXML+y}
then :

else $as_nop
  ac_cv_search_libraries_mxmlNewXML=no
fi

            LIBS=$ac_func_search_libraries_save_LIBS


fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_libraries_mxmlNewXML" >&5
printf "%s\n" "$ac_cv_search_libraries_mxmlNewXML" >&6; }
  ac_result=$ac_cv_search_libraries_mxmlNewXML
  if test "$ac_result" != no
then :
  test "$ac_result" = "none required" || LIBS="$ac_result $LIBS" HAVE_MXML=1;LIBRARIES="$LIBRARIES mxml";
printf "%s\n" "#define HAVE_MXML 1" >>confdefs.h

fi

    else
      if test -z "$HAVE_CURL"; then


    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for static library containing curl_global_init" >&5
printf %s "checking for static library containing curl_global_init... " >&6; }
if test ${ac_cv_search_static_curl_global_init+y}
then :
  printf %s "(cached) " >&6
else $as_nop

            ac_func_search_static_libraries_save_CFLAGS="$CFLAGS"
      ac_func_search_static_libraries_save_LIBS="$LIBS"

            CFLAGS="$CFLAGS"
      ac_libraries=""
      for ac_library in curl; do
        if test -n "$ac_libraries"; then
          ac_libraries="$ac_libraries -l$ac_library"
        else
          ac_libraries="-l$ac_library"
        fi
      done
      LIBS="-Wl,-Bstatic $ac_libraries -Wl,-Bdynamic $ac_func_search_static_libraries_save_LIBS"
      if test -z "$ac_libraries"; then
        ac_result="none required"
      else
        ac_result=$ac_libraries
      fi
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
`echo |sed 's/ /\n/g'|while read s; do if test -n "$s"; then echo $s|sed 's/\(.*\)/#include <\\1>/g'; fi; done`
int
main (void)
{
`if test -z ""; then echo "extern void curl_global_init();"; fi`
                                       return (int)curl_global_init;


  ;
  return 0;
}

_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  ac_cv_search_static_curl_global_init=$ac_result; break

fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if test ${ac_cv_search_static_curl_global_init+y}
then :

else $as_nop
  ac_cv_search_static_curl_global_init=no
fi

            LIBS=$ac_func_search_static_libraries_save_LIBS
      CFLAGS=$ac_func_search_static_libraries_save_CFLAGS


fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_static_curl_global_init" >&5
printf "%s\n" "$ac_cv_search_static_curl_global_init" >&6; }
  ac_result=$ac_cv_search_static_curl_global_init
  if test "$ac_result" != no
then :
  test "$ac_result" = "none required" || LIBS="$ac_result $LIBS" HAVE_CURL=1;STATIC_LIBRARIES="$STATIC_LIBRARIES curl";
printf "%s\n" "#define HAVE_CURL 1" >>confdefs.h

fi

      fi
      if test -z "$HAVE_CURL"; then


    ac_result=""
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing curl_global_init" >&5
printf %s "checking for library containing curl_global_init... " >&6; }
if test ${ac_cv_search_libraries_curl_global_init+y}
then :
  printf %s "(cached) " >&6
else $as_nop

            ac_func_search_libraries_save_LIBS=$LIBS

      for ac_library in curl ""; do
        if test -z "$ac_library"; then
          ac_result="none required"
        else
          ac_result=-l$ac_library
          LIBS="-l$ac_library $ac_func_search_libraries_save_LIBS"
        fi

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
`echo |sed 's/ /\n/g'|while read s; do if test -n "$s"; then echo $s|sed 's/\(.*\)/#include <\\1>/g'; fi; done`
int
main (void)
{
`if test -z ""; then echo "extern void curl_global_init();"; fi`
                                         return (int)curl_global_init;


  ;
  return 0;
}

_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  ac_cv_search_libraries_curl_global_init=$ac_result; break

fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      done
      if test ${ac_cv_search_libraries_curl_global_init+y}
then :

else $as_nop
  ac_cv_search_libraries_curl_global_init=no
fi

            LIBS=$ac_func_search_libraries_save_LIBS


fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_libraries_curl_global_init" >&5
printf "%s\n" "$ac_cv_search_libraries_curl_global_init" >&6; }
  ac_result=$ac_cv_search_libraries_curl_global_init
  if test "$ac_result" != no
then :
  test "$ac_result" = "none required" || LIBS="$ac_result $LIBS" HAVE_CURL=1;LIBRARIES="$LIBRARIES curl";
printf "%s\n" "#define HAVE_CURL 1" >>confdefs.h

fi

      fi
      if test -z "$HAVE_CARES"; then


    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for static library containing ares_library_init" >&5
printf %s "checking for static library containing ares_library_init... " >&6; }
if test ${ac_cv_search_static_ares_library_init+y}
then :
  printf %s "(cached) " >&6
else $as_nop

            ac_func_search_static_libraries_save_CFLAGS="$CFLAGS"
      ac_func_search_static_libraries_save_LIBS="$LIBS"

            CFLAGS="$CFLAGS"
      ac_libraries=""
      for ac_library in cares; do
        if test -n "$ac_libraries"; then
          ac_libraries="$ac_libraries -l$ac_library"
        else
          ac_libraries="-l$ac_library"
        fi
      done
      LIBS="-Wl,-Bstatic $ac_libraries -Wl,-Bdynamic $ac_func_search_static_libraries_save_LIBS"
      if test -z "$ac_libraries"; then
        ac_result="none required"
      else
        ac_result=$ac_libraries
      fi
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
`echo |sed 's/ /\n/g'|while read s; do if test -n "$s"; then echo $s|sed 's/\(.*\)/#include <\\1>/g'; fi; done`
int
main (void)
{
`if test -z ""; then echo "extern void ares_library_init();"; fi`
                                       return (int)ares_library_init;


  ;
  return 0;
}

_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  ac_cv_search_static_ares_library_init=$ac_result; break

fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if test ${ac_cv_search_static_ares_library_init+y}
then :

else $as_nop
  ac_cv_search_static_ares_library_init=no
fi

            LIBS=$ac_func_search_static_libraries_save_LIBS
      CFLAGS=$ac_func_search_static_libraries_save_CFLAGS


fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_static_ares_library_init" >&5
printf "%s\n" "$ac_cv_search_static_ares_library_init" >&6; }
  ac_result=$ac_cv_search_static_ares_library_init
  if test "$ac_result" != no
then :
  test "$ac_result" = "none required" || LIBS="$ac_result $LIBS" HAVE_CARES=1;STATIC_LIBRARIES="$STATIC_LIBRARIES cares";
printf "%s\n" "#define HAVE_CURL 1" >>confdefs.h

fi

      fi
      if test -z "$HAVE_CARES"; then


    ac_result=""
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing ares_library_init" >&5
printf %s "checking for library containing ares_library_init... " >&6; }
if test ${ac_cv_search_libraries_ares_library_init+y}
then :
  printf %s "(cached) " >&6
else $as_nop

            ac_func_search_libraries_save_LIBS=$LIBS

      for ac_library in cares ""; do
        if test -z "$ac_library"; then
          ac_result="none required"
        else
          ac_result=-l$ac_library
          LIBS="-l$ac_library $ac_func_search_libraries_save_LIBS"
        fi

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
`echo |sed 's/ /\n/g'|while read s; do if test -n "$s"; then echo $s|sed 's/\(.*\)/#include <\\1>/g'; fi; done`
int
main (void)
{
`if test -z ""; then echo "extern void ares_library_init();"; fi`
                                         return (int)ares_library_init;


  ;
  return 0;
}

_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  ac_cv_search_libraries_ares_library_init=$ac_result; break

fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      done
      if test ${ac_cv_search_libraries_ares_library_init+y}
then :

else $as_nop
  ac_cv_search_libraries_ares_library_init=no
fi

            LIBS=$ac_func_search_libraries_save_LIBS


fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_libraries_ares_library_init" >&5
printf "%s\n" "$ac_cv_search_libraries_ares_library_init" >&6; }
  ac_result=$ac_cv_search_libraries_ares_library_init
  if test "$ac_result" != no
then :
  test "$ac_result" = "none required" || LIBS="$ac_result $LIBS" HAVE_CARES=1;LIBRARIES="$LIBRARIES cares";
printf "%s\n" "#define HAVE_CURL 1" >>confdefs.h

fi

      fi
      if test -z "$HAVE_MXML"; then


    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for static library containing mxmlNewXML" >&5
printf %s "checking for static library containing mxmlNewXML... " >&6; }
if test ${ac_cv_search_static_mxmlNewXML+y}
then :
  printf %s "(cached) " >&6
else $as_nop

            ac_func_search_static_libraries_save_CFLAGS="$CFLAGS"
      ac_func_search_static_libraries_save_LIBS="$LIBS"

            CFLAGS="$CFLAGS"
      ac_libraries=""
      for ac_library in mxml; do
        if test -n "$ac_libraries"; then
          ac_libraries="$ac_libraries -l$ac_library"
        else
          ac_libraries="-l$ac_library"
        fi
      done
      LIBS="-Wl,-Bstatic $ac_libraries -Wl,-Bdynamic $ac_func_search_static_libraries_save_LIBS"
      if test -z "$ac_libraries"; then
        ac_result="none required"
      else
        ac_result=$ac_libraries
      fi
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
`echo |sed 's/ /\n/g'|while read s; do if test -n "$s"; then echo $s|sed 's/\(.*\)/#include <\\1>/g'; fi; done`
int
main (void)
{
`if test -z ""; then echo "extern void mxmlNewXML();"; fi`
                                       return (int)mxmlNewXML;


  ;
  return 0;
}

_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  ac_cv_search_static_mxmlNewXML=$ac_result; break

fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if test ${ac_cv_search_static_mxmlNewXML+y}
then :

else $as_nop
  ac_cv_search_static_mxmlNewXML=no
fi

            LIBS=$ac_func_search_static_libraries_save_LIBS
      CFLAGS=$ac_func_search_static_libraries_save_CFLAGS


fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_static_mxmlNewXML" >&5
printf "%s\n" "$ac_cv_search_static_mxmlNewXML" >&6; }
  ac_result=$ac_cv_search_static_mxmlNewXML
  if test "$ac_result" != no
then :
  test "$ac_result" = "none required" || LIBS="$ac_result $LIBS" HAVE_MXML=1;STATIC_LIBRARIES="$STATIC_LIBRARIES mxml";
printf "%s\n" "#define HAVE_MXML 1" >>confdefs.h

fi

      fi
      if test -z "$HAVE_MXML"; then


    ac_result=""
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing mxmlNewXML" >&5
printf %s "checking for library containing mxmlNewXML... " >&6; }
if test ${ac_cv_search_libraries_mxmlNewXML+y}
then :
  printf %s "(cached) " >&6
else $as_nop

            ac_func_search_libraries_save_LIBS=$LIBS

      for ac_library in mxml ""; do
        if test -z "$ac_library"; then
          ac_result="none required"
        else
          ac_result=-l$ac_library
          LIBS="-l$ac_library $ac_func_search_libraries_save_LIBS"
        fi

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
`echo |sed 's/ /\n/g'|while read s; do if test -n "$s"; then echo $s|sed 's/\(.*\)/#include <\\1>/g'; fi; done`
int
main (void)
{
`if test -z ""; then echo "extern void mxmlNewXML();"; fi`
                                         return (int)mxmlNewXML;


  ;
  return 0;
}

_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  ac_cv_search_libraries_mxmlNewXML=$ac_result; break

fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      done
      if test ${ac_cv_search_libraries_mxmlNewXML+y}
then :

else $as_nop
  ac_cv_search_libraries_mxmlNewXML=no
fi

            LIBS=$ac_func_search_libraries_save_LIBS


fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_libraries_mxmlNewXML" >&5
printf "%s\n" "$ac_cv_search_libraries_mxmlNewXML" >&6; }
  ac_result=$ac_cv_search_libraries_mxmlNewXML
  if test "$ac_result" != no
then :
  test "$ac_result" = "none required" || LIBS="$ac_result $LIBS" HAVE_MXML=1;LIBRARIES="$LIBRARIES mxml";
printf "%s\n" "#define HAVE_MXML 1" >>confdefs.h

fi

      fi
    fi
  fi

    case $host_os in
    linux-*)
      ;;
    sunos | solaris*)
      ;;
    darwin*)
      ;;
    windows*|mingw*)
      ;;
  esac

  if test -z "$HAVE_CURL"; then
    if test ! \( -d curl -o -d "`readlink curl`" \); then
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: curl not compiled: curl package missing" >&5
printf "%s\n" "$as_me: WARNING: curl not compiled: curl package missing" >&2;}
    fi
  fi
  if test -z "$HAVE_CARES"; then
    if test ! \( -d c-ares -o -d "`readlink c-ares`" \); then
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: curl not compiled: c-ares package missing" >&5
printf "%s\n" "$as_me: WARNING: curl not compiled: c-ares package missing" >&2;}
    fi
  fi
  if test -z "$HAVE_MXML"; then
    if test ! \( -d mxml -o -d "`readlink mxml`" \); then
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: curl not compiled: mxml package missing" >&5
printf "%s\n" "$as_me: WARNING: curl not compiled: mxml package missing" >&2;}
    fi
  fi
  if test -z "$HAVE_IDN2"; then
    if test ! \( -d libidn2 -o -d "`readlink libidn2`" \); then
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: curl not compiled: libidn2 package missing" >&5
printf "%s\n" "$as_me: WARNING: curl not compiled: libidn2 package missing" >&2;}
    fi
  fi

  if test "$HAVE_CURL" -a "$HAVE_CARES" -a "$HAVE_MXML" -a "$HAVE_IDN2"; then
        if test $ENABLE_LINK_DYNAMIC = "yes"; then


    ac_result=""
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing SSL_new" >&5
printf %s "checking for library containing SSL_new... " >&6; }
if test ${ac_cv_search_libraries_SSL_new+y}
then :
  printf %s "(cached) " >&6
else $as_nop

            ac_func_search_libraries_save_LIBS=$LIBS

      for ac_library in ssl ""; do
        if test -z "$ac_library"; then
          ac_result="none required"
        else
          ac_result=-l$ac_library
          LIBS="-l$ac_library $ac_func_search_libraries_save_LIBS"
        fi

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
`echo |sed 's/ /\n/g'|while read s; do if test -n "$s"; then echo $s|sed 's/\(.*\)/#include <\\1>/g'; fi; done`
int
main (void)
{
`if test -z ""; then echo "extern void SSL_new();"; fi`
                                         return (int)SSL_new;


  ;
  return 0;
}

_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  ac_cv_search_libraries_SSL_new=$ac_result; break

fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      done
      if test ${ac_cv_search_libraries_SSL_new+y}
then :

else $as_nop
  ac_cv_search_libraries_SSL_new=no
fi

            LIBS=$ac_func_search_libraries_save_LIBS


fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_libraries_SSL_new" >&5
printf "%s\n" "$ac_cv_search_libraries_SSL_new" >&6; }
  ac_result=$ac_cv_search_libraries_SSL_new
  if test "$ac_result" != no
then :
  test "$ac_result" = "none required" || LIBS="$ac_result $LIBS" HAVE_SSL=1;LIBRARIES="$LIBRARIES ssl"
else $as_nop
  as_fn_error $? "SSL library required for curl" "$LINENO" 5
fi

    else


    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for static library containing SSL_new" >&5
printf %s "checking for static library containing SSL_new... " >&6; }
if test ${ac_cv_search_static_SSL_new+y}
then :
  printf %s "(cached) " >&6
else $as_nop

            ac_func_search_static_libraries_save_CFLAGS="$CFLAGS"
      ac_func_search_static_libraries_save_LIBS="$LIBS"

            CFLAGS="$CFLAGS"
      ac_libraries=""
      for ac_library in ssl; do
        if test -n "$ac_libraries"; then
          ac_libraries="$ac_libraries -l$ac_library"
        else
          ac_libraries="-l$ac_library"
        fi
      done
      LIBS="-Wl,-Bstatic $ac_libraries -Wl,-Bdynamic $ac_func_search_static_libraries_save_LIBS"
      if test -z "$ac_libraries"; then
        ac_result="none required"
      else
        ac_result=$ac_libraries
      fi
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
`echo |sed 's/ /\n/g'|while read s; do if test -n "$s"; then echo $s|sed 's/\(.*\)/#include <\\1>/g'; fi; done`
int
main (void)
{
`if test -z ""; then echo "extern void SSL_new();"; fi`
                                       return (int)SSL_new;


  ;
  return 0;
}

_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  ac_cv_search_static_SSL_new=$ac_result; break

fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if test ${ac_cv_search_static_SSL_new+y}
then :

else $as_nop
  ac_cv_search_static_SSL_new=no
fi

            LIBS=$ac_func_search_static_libraries_save_LIBS
      CFLAGS=$ac_func_search_static_libraries_save_CFLAGS


fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_static_SSL_new" >&5
printf "%s\n" "$ac_cv_search_static_SSL_new" >&6; }
  ac_result=$ac_cv_search_static_SSL_new
  if test "$ac_result" != no
then :
  test "$ac_result" = "none required" || LIBS="$ac_result $LIBS" HAVE_SSL=1;STATIC_LIBRARIES="$STATIC_LIBRARIES ssl"
else $as_nop
  as_fn_error $? "static SSL library required for curl" "$LINENO" 5
fi

    fi
  fi
fi

# create sqlite3.c
if test -d sqlite -o -d "`readlink sqlite`"; then
  if test "$ENABLE_EXTERN_COMPILE" = "yes"; then

    cwd=`pwd`


  printf %s "create sqlite3.c... " >&6

    result=1
    if test $result -eq 1; then
      # Note: no cross-compile; create source only
      (cd sqlite; CFLAGS="-DSQLITE_ENABLE_UPDATE_DELETE_LIMIT" LDFLAGS="" ./configure \
        --build=$build \
        --disable-tcl \
        --enable-fts4\
      ) 1>$tmpFile 2>&1
      if test $? -ne 0; then
        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: fail (configure)" >&5
printf "%s\n" "fail (configure)" >&6; }

  printf "%s\n" "--- error log -------------------------------------------------------------------------"
  cat $tmpFile | while read s; do printf "%s\n" "  $s"; done
  printf "%s\n" "---------------------------------------------------------------------------------------"

        result=0
      fi
    fi
    if test $result -eq 1; then
      (cd sqlite; make clean; make sqlite3.c) 1>$tmpFile 2>&1
      if test $? -ne 0; then
        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: fail (make)" >&5
printf "%s\n" "fail (make)" >&6; }

  printf "%s\n" "--- error log -------------------------------------------------------------------------"
  cat $tmpFile | while read s; do printf "%s\n" "  $s"; done
  printf "%s\n" "---------------------------------------------------------------------------------------"

        result=0
      fi
    fi
    if test $result -eq 1; then
      (cd sqlite; \
       install -d $cwd/extern/sources; \
       install -d $cwd/extern/include; \
       install -m 644 sqlite3.c $cwd/extern/sources; \
       install -m 644 sqlite3.h $cwd/extern/include; \
      ) 1>$tmpFile 2>&1
    fi
    if test $result -eq 1; then
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
printf "%s\n" "done" >&6; }
    else
      as_fn_error $? "Cannot create sqlite3.c" "$LINENO" 5
    fi
  fi
fi

# compile MariaDB client
if test $ENABLE_MARIADB = "yes"; then
  if test \( -d zlib -o -d "`readlink zlib`" \) -a \( -d mariadb-connector-c -o -d "`readlink mariadb-connector-c`" \); then
    if test "$ENABLE_EXTERN_COMPILE" = "yes"; then
      cwd=`pwd`


  printf %s "compile MariaDB client... " >&6

      result=1
      if test $result -eq 1; then
        case $host_os in
          linux-*)
            ;;
          sunos | solaris*)
            ;;
          darwin*)
            ;;
          windows*|mingw*)
            # patch to fix compile with GNUTLS, fix signature mysql_load_plugin()
            #   diff -u -r mariadb-connector-c-3.1.13-src.org mariadb-connector-c-3.1.13-src > misc/mariadb-connector-c-3.1.13.patch
#TODO            (cd mariadb-connector-c; $PATCH --batch -N -p1 < $SOURCE_DIR/misc/mariadb-connector-c-3.1.13.patch) 1>$tmpFile 2>&1
            ;;
        esac
        if test $? -ne 0; then
          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: fail (patch)" >&5
printf "%s\n" "fail (patch)" >&6; }

  printf "%s\n" "--- error log -------------------------------------------------------------------------"
  cat $tmpFile | while read s; do printf "%s\n" "  $s"; done
  printf "%s\n" "---------------------------------------------------------------------------------------"

          result=0
        fi
      fi
      if test $result -eq 1; then
        case $host_os in
          linux-* | sunos | solaris* | darwin*)
            (cd mariadb-connector-c; PKG_CONFIG_PATH=$cwd/extern/lib/pkgconfig CC="$CC" CPPFLAGS="" CFLAGS="" CXXFLAGS="" AS="$AS" LD="$LD" LDFLAGS="" LIBS="$LIBS" AR="$AR" RANLIB="$RANLIB" WINDRES="$WINDRES" $CMAKE . \
              -DCMAKE_SYSTEM_NAME=$SYSTEM_NAME \
              -DCMAKE_INSTALL_PREFIX=$cwd/extern \
              -DWITH_EXTERNAL_ZLIB=ON \
              -DZLIB_INCLUDE_DIR=$cwd/extern/include \
              -DZLIB_LIBRARY=$cwd/extern/lib/libz.a \
              -DWITHSSL=`if test "$HAVE_SSL" = "yes"; then echo GNUTLS; else echo OFF; fi` \
              -DWITH_CURL=OFF \
              -DWITH_UNIT_TESTS=OFF \
              `if test "$ENABLE_DEBUG" = "yes"; then echo -DCMAKE_BUILD_TYPE=Debug; fi` \
            ) 1>$tmpFile 2>&1
            ;;
          windows*|mingw*)
            (cd mariadb-connector-c; PKG_CONFIG_PATH=$cwd/extern/lib/pkgconfig CC="$CC" CPPFLAGS="-D_WIN32_WINNT=0x0600 -D_POSIX_C_SOURCE" CFLAGS="-D_WIN32_WINNT=0x0600 -D_POSIX_C_SOURCE" CXXFLAGS="" AS="$AS" LD="$LD" LDFLAGS="" LIBS="$LIBS" AR="$AR" RANLIB="$RANLIB" WINDRES="$WINDRES" $CMAKE . \
              -DCMAKE_SYSTEM_NAME=$SYSTEM_NAME \
              -DCMAKE_SYSTEM_PROCESSOR=x86_64 \
              -DCMAKE_C_COMPILER=x86_64-w64-mingw32-gcc \
              -DCMAKE_RC_COMPILER=x86_64-w64-mingw32-windres \
              -DCMAKE_INSTALL_PREFIX=$cwd/extern \
              -DWITH_EXTERNAL_ZLIB=ON \
              -DZLIB_INCLUDE_DIR=$cwd/extern/include \
              -DZLIB_LIBRARY=$cwd/extern/lib/libz.a \
              -DWITH_SSL=`if test "$HAVE_SSL" = "yes"; then echo GNUTLS; else echo OFF; fi` \
              -DWITH_CURL=OFF \
              -DWITH_UNIT_TESTS=OFF \
              `if test "$ENABLE_DEBUG" = "yes"; then echo -DCMAKE_BUILD_TYPE=Debug; fi` \
            ) 1>$tmpFile 2>&1
            ;;
        esac
        if test $? -ne 0; then
          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: fail (configure)" >&5
printf "%s\n" "fail (configure)" >&6; }

  printf "%s\n" "--- error log -------------------------------------------------------------------------"
  cat $tmpFile | while read s; do printf "%s\n" "  $s"; done
  printf "%s\n" "---------------------------------------------------------------------------------------"

          result=0
        fi
      fi
      if test $result -eq 1; then
        (cd mariadb-connector-c; \
         make clean; \
         make -C libmariadb mariadbclient -j$CPU_CORES; \
        ) 1>$tmpFile 2>&1
        if test $? -ne 0; then
          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: fail (make)" >&5
printf "%s\n" "fail (make)" >&6; }

  printf "%s\n" "--- error log -------------------------------------------------------------------------"
  cat $tmpFile | while read s; do printf "%s\n" "  $s"; done
  printf "%s\n" "---------------------------------------------------------------------------------------"

          result=0
        fi
      fi
      if test $result -eq 1; then
        (cd mariadb-connector-c; \
         make -C include install PREFIX=$cwd/extern; \
         install -t $cwd/extern/lib libmariadb/libmariadbclient.a; \
        ) 1>$tmpFile 2>&1
        if test $? -ne 0; then
          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: fail (make)" >&5
printf "%s\n" "fail (make)" >&6; }

  printf "%s\n" "--- error log -------------------------------------------------------------------------"
  cat $tmpFile | while read s; do printf "%s\n" "  $s"; done
  printf "%s\n" "---------------------------------------------------------------------------------------"

          result=0
        fi
      fi
      if test $result -eq 1; then
        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
printf "%s\n" "done" >&6; }
      fi
    else
      result=1
    fi

    if test $result -eq 1; then
      if test $ENABLE_LINK_DYNAMIC = "yes"; then
        LIBRARIES="$LIBRARIES mariadbclient"
      else
        STATIC_LIBRARIES="$STATIC_LIBRARIES mariadbclient"
      fi
      HAVE_MARIADB=1

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

    fi
  else

    if test $ENABLE_LINK_DYNAMIC = "yes"; then


    ac_result=""
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing mysql_init" >&5
printf %s "checking for library containing mysql_init... " >&6; }
if test ${ac_cv_search_libraries_mysql_init+y}
then :
  printf %s "(cached) " >&6
else $as_nop

            ac_func_search_libraries_save_LIBS=$LIBS

      for ac_library in mariadb ""; do
        if test -z "$ac_library"; then
          ac_result="none required"
        else
          ac_result=-l$ac_library
          LIBS="-l$ac_library $ac_func_search_libraries_save_LIBS"
        fi

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
`echo |sed 's/ /\n/g'|while read s; do if test -n "$s"; then echo $s|sed 's/\(.*\)/#include <\\1>/g'; fi; done`
int
main (void)
{
`if test -z ""; then echo "extern void mysql_init();"; fi`
                                         return (int)mysql_init;


  ;
  return 0;
}

_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  ac_cv_search_libraries_mysql_init=$ac_result; break

fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      done
      if test ${ac_cv_search_libraries_mysql_init+y}
then :

else $as_nop
  ac_cv_search_libraries_mysql_init=no
fi

            LIBS=$ac_func_search_libraries_save_LIBS


fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_libraries_mysql_init" >&5
printf "%s\n" "$ac_cv_search_libraries_mysql_init" >&6; }
  ac_result=$ac_cv_search_libraries_mysql_init
  if test "$ac_result" != no
then :
  test "$ac_result" = "none required" || LIBS="$ac_result $LIBS" HAVE_MARIADB=1;LIBRARIES="mariadbclient $LIBRARIES";
printf "%s\n" "#define HAVE_MARIADB 1" >>confdefs.h

fi

    else
      if test -z "$HAVE_MARIADB"; then


    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for static library containing mysql_init" >&5
printf %s "checking for static library containing mysql_init... " >&6; }
if test ${ac_cv_search_static_mysql_init+y}
then :
  printf %s "(cached) " >&6
else $as_nop

            ac_func_search_static_libraries_save_CFLAGS="$CFLAGS"
      ac_func_search_static_libraries_save_LIBS="$LIBS"

            CFLAGS="$CFLAGS"
      ac_libraries=""
      for ac_library in mariadb; do
        if test -n "$ac_libraries"; then
          ac_libraries="$ac_libraries -l$ac_library"
        else
          ac_libraries="-l$ac_library"
        fi
      done
      LIBS="-Wl,-Bstatic $ac_libraries -Wl,-Bdynamic $ac_func_search_static_libraries_save_LIBS"
      if test -z "$ac_libraries"; then
        ac_result="none required"
      else
        ac_result=$ac_libraries
      fi
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
`echo |sed 's/ /\n/g'|while read s; do if test -n "$s"; then echo $s|sed 's/\(.*\)/#include <\\1>/g'; fi; done`
int
main (void)
{
`if test -z ""; then echo "extern void mysql_init();"; fi`
                                       return (int)mysql_init;


  ;
  return 0;
}

_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  ac_cv_search_static_mysql_init=$ac_result; break

fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if test ${ac_cv_search_static_mysql_init+y}
then :

else $as_nop
  ac_cv_search_static_mysql_init=no
fi

            LIBS=$ac_func_search_static_libraries_save_LIBS
      CFLAGS=$ac_func_search_static_libraries_save_CFLAGS


fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_static_mysql_init" >&5
printf "%s\n" "$ac_cv_search_static_mysql_init" >&6; }
  ac_result=$ac_cv_search_static_mysql_init
  if test "$ac_result" != no
then :
  test "$ac_result" = "none required" || LIBS="$ac_result $LIBS" HAVE_MARIADB=1;STATIC_LIBRARIES="$STATIC_LIBRARIES mariadbclient";
printf "%s\n" "#define HAVE_MARIADB 1" >>confdefs.h

fi

      fi
      if test -z "$HAVE_MARIADB"; then


    ac_result=""
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing mysql_init" >&5
printf %s "checking for library containing mysql_init... " >&6; }
if test ${ac_cv_search_libraries_mysql_init+y}
then :
  printf %s "(cached) " >&6
else $as_nop

            ac_func_search_libraries_save_LIBS=$LIBS

      for ac_library in mariadb ""; do
        if test -z "$ac_library"; then
          ac_result="none required"
        else
          ac_result=-l$ac_library
          LIBS="-l$ac_library $ac_func_search_libraries_save_LIBS"
        fi

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
`echo |sed 's/ /\n/g'|while read s; do if test -n "$s"; then echo $s|sed 's/\(.*\)/#include <\\1>/g'; fi; done`
int
main (void)
{
`if test -z ""; then echo "extern void mysql_init();"; fi`
                                         return (int)mysql_init;


  ;
  return 0;
}

_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  ac_cv_search_libraries_mysql_init=$ac_result; break

fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      done
      if test ${ac_cv_search_libraries_mysql_init+y}
then :

else $as_nop
  ac_cv_search_libraries_mysql_init=no
fi

            LIBS=$ac_func_search_libraries_save_LIBS


fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_libraries_mysql_init" >&5
printf "%s\n" "$ac_cv_search_libraries_mysql_init" >&6; }
  ac_result=$ac_cv_search_libraries_mysql_init
  if test "$ac_result" != no
then :
  test "$ac_result" = "none required" || LIBS="$ac_result $LIBS" HAVE_MARIADB=1;LIBRARIES="mariadbclient $LIBRARIES";
printf "%s\n" "#define HAVE_MARIADB 1" >>confdefs.h

fi

      fi
    fi
  fi

    case $host_os in
    linux-*)
      ;;
    sunos | solaris*)
      ;;
    darwin*)
      ;;
    windows*|mingw*)
      ;;
  esac

  if test -z "$HAVE_MARIADB"; then
    if test ! \( -d zlib -o -d "`readlink zlib`" \); then
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: MariaDB client not compiled: zlib package missing" >&5
printf "%s\n" "$as_me: WARNING: MariaDB client not compiled: zlib package missing" >&2;}
    fi
    if test ! \( -d mariadb-connector-c -o -d "`readlink mariadb-connector-c`" \); then
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: MariaDB client not compiled: MariaDB client package missing" >&5
printf "%s\n" "$as_me: WARNING: MariaDB client not compiled: MariaDB client package missing" >&2;}
    fi
  fi
fi

# compile PostgreSQL client
if test $ENABLE_POSTGRESQL = "yes"; then
  if test -d postgresql -o -d "`readlink postgresql`"; then
    if test "$ENABLE_EXTERN_COMPILE" = "yes"; then
      cwd=`pwd`


  printf %s "compile PostgreSQL connector... " >&6

      result=1
      if test $result -eq 1; then
        case $host_os in
          linux-* | sunos | solaris* | darwin*)
            (cd postgresql; PKG_CONFIG_PATH=$cwd/extern/lib/pkgconfig CC="$CC" CPPFLAGS="" CFLAGS="" CXXFLAGS="" AS="$AS" LD="$LD" LDFLAGS="" LIBS="-lpthread" AR="$AR" RANLIB="$RANLIB" WINDRES="$WINDRES" ./configure \
              --host=$host \
              --build=$build \
              --prefix=$cwd/extern \
              --with-includes=$cwd/extern/include \
              --with-libraries=$cwd/extern/lib \
              `if test "$HAVE_SSL"; then echo --with-openssl; else echo --without-openssl; fi` \
              --without-readline \
              `if test "$ENABLE_DEBUG" = "yes"; then echo --enable-debug; fi` \
            ) 1>$tmpFile 2>&1
            ;;
          windows*|mingw*)
            (cd postgresql; PKG_CONFIG_PATH=$cwd/extern/lib/pkgconfig CC="$CC" CPPFLAGS="" CFLAGS="" CXXFLAGS="" AS="$AS" LD="$LD" LDFLAGS="" LIBS="-lpthread -lcrypt32 -lwsock32 -lws2_32" AR="$AR" RANLIB="$RANLIB" WINDRES="$WINDRES" ./configure \
              --host=$host \
              --build=$build \
              --prefix=$cwd/extern \
              --with-includes=$cwd/extern/include \
              --with-libraries=$cwd/extern/lib \
              `if test "$HAVE_SSL"; then echo --with-openssl; else echo --without-openssl; fi` \
              --without-readline \
              `if test "$ENABLE_DEBUG" = "yes"; then echo --enable-debug; fi` \
            ) 1>$tmpFile 2>&1
            ;;
        esac
        if test $? -ne 0; then
          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: fail (configure)" >&5
printf "%s\n" "fail (configure)" >&6; }

  printf "%s\n" "--- error log -------------------------------------------------------------------------"
  cat $tmpFile | while read s; do printf "%s\n" "  $s"; done
  printf "%s\n" "---------------------------------------------------------------------------------------"

          result=0
        fi
      fi
      if test $result -eq 1; then
        (cd postgresql; \
         make -C src/common           MAKELEVEL=0 -j$CPU_CORES; \
         make -C src/port             MAKELEVEL=0 -j$CPU_CORES; \
         make -C src/interfaces/libpq MAKELEVEL=0 -j$CPU_CORES; \
         make -C src/interfaces/ecpg  MAKELEVEL=0 -j$CPU_CORES; \
        ) 1>$tmpFile 2>&1
        if test $? -ne 0; then
          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: fail (make)" >&5
printf "%s\n" "fail (make)" >&6; }

  printf "%s\n" "--- error log -------------------------------------------------------------------------"
  cat $tmpFile | while read s; do printf "%s\n" "  $s"; done
  printf "%s\n" "---------------------------------------------------------------------------------------"

          result=0
        fi
      fi
      if test $result -eq 1; then
        (cd postgresql; \
         make -C src/include          MAKELEVEL=0 install PREFIX=$cwd/extern; \
         make -C src/common           MAKELEVEL=0 install PREFIX=$cwd/extern; \
         make -C src/port             MAKELEVEL=0 install PREFIX=$cwd/extern; \
         make -C src/interfaces/libpq MAKELEVEL=0 install PREFIX=$cwd/extern; \
         make -C src/interfaces/ecpg  MAKELEVEL=0 install PREFIX=$cwd/extern; \
        ) 1>$tmpFile 2>&1
        if test $? -ne 0; then
          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: fail (install)" >&5
printf "%s\n" "fail (install)" >&6; }

  printf "%s\n" "--- error log -------------------------------------------------------------------------"
  cat $tmpFile | while read s; do printf "%s\n" "  $s"; done
  printf "%s\n" "---------------------------------------------------------------------------------------"

          result=0
        fi
      fi
      if test $result -eq 1; then
        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
printf "%s\n" "done" >&6; }
      fi
    else
      result=1
    fi

    if test $result -eq 1; then
      if test $ENABLE_LINK_DYNAMIC = "yes"; then
        LIBRARIES="$LIBRARIES pq pgport pgcommon pgcommon_shlib pgtypes"
      else
        STATIC_LIBRARIES="$STATIC_LIBRARIES pq pgport pgcommon pgcommon_shlib pgtypes"
      fi
      HAVE_POSTGRESQL=1

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

    fi
  else

    if test $ENABLE_LINK_DYNAMIC = "yes"; then


    ac_result=""
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing pq_init" >&5
printf %s "checking for library containing pq_init... " >&6; }
if test ${ac_cv_search_libraries_pq_init+y}
then :
  printf %s "(cached) " >&6
else $as_nop

            ac_func_search_libraries_save_LIBS=$LIBS

      for ac_library in pq ""; do
        if test -z "$ac_library"; then
          ac_result="none required"
        else
          ac_result=-l$ac_library
          LIBS="-l$ac_library $ac_func_search_libraries_save_LIBS"
        fi

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
`echo |sed 's/ /\n/g'|while read s; do if test -n "$s"; then echo $s|sed 's/\(.*\)/#include <\\1>/g'; fi; done`
int
main (void)
{
`if test -z ""; then echo "extern void pq_init();"; fi`
                                         return (int)pq_init;


  ;
  return 0;
}

_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  ac_cv_search_libraries_pq_init=$ac_result; break

fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      done
      if test ${ac_cv_search_libraries_pq_init+y}
then :

else $as_nop
  ac_cv_search_libraries_pq_init=no
fi

            LIBS=$ac_func_search_libraries_save_LIBS


fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_libraries_pq_init" >&5
printf "%s\n" "$ac_cv_search_libraries_pq_init" >&6; }
  ac_result=$ac_cv_search_libraries_pq_init
  if test "$ac_result" != no
then :
  test "$ac_result" = "none required" || LIBS="$ac_result $LIBS" HAVE_POSTGRESQL=1;LIBRARIES="pq $LIBRARIES";
printf "%s\n" "#define HAVE_POSTGRESQL 1" >>confdefs.h

fi



    ac_result=""
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing pg_printf" >&5
printf %s "checking for library containing pg_printf... " >&6; }
if test ${ac_cv_search_libraries_pg_printf+y}
then :
  printf %s "(cached) " >&6
else $as_nop

            ac_func_search_libraries_save_LIBS=$LIBS

      for ac_library in pgport ""; do
        if test -z "$ac_library"; then
          ac_result="none required"
        else
          ac_result=-l$ac_library
          LIBS="-l$ac_library $ac_func_search_libraries_save_LIBS"
        fi

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
`echo |sed 's/ /\n/g'|while read s; do if test -n "$s"; then echo $s|sed 's/\(.*\)/#include <\\1>/g'; fi; done`
int
main (void)
{
`if test -z ""; then echo "extern void pg_printf();"; fi`
                                         return (int)pg_printf;


  ;
  return 0;
}

_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  ac_cv_search_libraries_pg_printf=$ac_result; break

fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      done
      if test ${ac_cv_search_libraries_pg_printf+y}
then :

else $as_nop
  ac_cv_search_libraries_pg_printf=no
fi

            LIBS=$ac_func_search_libraries_save_LIBS


fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_libraries_pg_printf" >&5
printf "%s\n" "$ac_cv_search_libraries_pg_printf" >&6; }
  ac_result=$ac_cv_search_libraries_pg_printf
  if test "$ac_result" != no
then :
  test "$ac_result" = "none required" || LIBS="$ac_result $LIBS" HAVE_POSTGRESQL=1;LIBRARIES="pgport $LIBRARIES";
printf "%s\n" "#define HAVE_POSTGRESQL 1" >>confdefs.h

fi



    ac_result=""
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing scram_HMAC_init" >&5
printf %s "checking for library containing scram_HMAC_init... " >&6; }
if test ${ac_cv_search_libraries_scram_HMAC_init+y}
then :
  printf %s "(cached) " >&6
else $as_nop

            ac_func_search_libraries_save_LIBS=$LIBS

      for ac_library in pgcommon ""; do
        if test -z "$ac_library"; then
          ac_result="none required"
        else
          ac_result=-l$ac_library
          LIBS="-l$ac_library $ac_func_search_libraries_save_LIBS"
        fi

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
`echo |sed 's/ /\n/g'|while read s; do if test -n "$s"; then echo $s|sed 's/\(.*\)/#include <\\1>/g'; fi; done`
int
main (void)
{
`if test -z ""; then echo "extern void scram_HMAC_init();"; fi`
                                         return (int)scram_HMAC_init;


  ;
  return 0;
}

_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  ac_cv_search_libraries_scram_HMAC_init=$ac_result; break

fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      done
      if test ${ac_cv_search_libraries_scram_HMAC_init+y}
then :

else $as_nop
  ac_cv_search_libraries_scram_HMAC_init=no
fi

            LIBS=$ac_func_search_libraries_save_LIBS


fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_libraries_scram_HMAC_init" >&5
printf "%s\n" "$ac_cv_search_libraries_scram_HMAC_init" >&6; }
  ac_result=$ac_cv_search_libraries_scram_HMAC_init
  if test "$ac_result" != no
then :
  test "$ac_result" = "none required" || LIBS="$ac_result $LIBS" HAVE_POSTGRESQL=1;LIBRARIES="pgcommon $LIBRARIES";
printf "%s\n" "#define HAVE_POSTGRESQL 1" >>confdefs.h

fi



    ac_result=""
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing pg_encoding_to_char" >&5
printf %s "checking for library containing pg_encoding_to_char... " >&6; }
if test ${ac_cv_search_libraries_pg_encoding_to_char+y}
then :
  printf %s "(cached) " >&6
else $as_nop

            ac_func_search_libraries_save_LIBS=$LIBS

      for ac_library in pgcommon_shlib ""; do
        if test -z "$ac_library"; then
          ac_result="none required"
        else
          ac_result=-l$ac_library
          LIBS="-l$ac_library $ac_func_search_libraries_save_LIBS"
        fi

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
`echo |sed 's/ /\n/g'|while read s; do if test -n "$s"; then echo $s|sed 's/\(.*\)/#include <\\1>/g'; fi; done`
int
main (void)
{
`if test -z ""; then echo "extern void pg_encoding_to_char();"; fi`
                                         return (int)pg_encoding_to_char;


  ;
  return 0;
}

_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  ac_cv_search_libraries_pg_encoding_to_char=$ac_result; break

fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      done
      if test ${ac_cv_search_libraries_pg_encoding_to_char+y}
then :

else $as_nop
  ac_cv_search_libraries_pg_encoding_to_char=no
fi

            LIBS=$ac_func_search_libraries_save_LIBS


fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_libraries_pg_encoding_to_char" >&5
printf "%s\n" "$ac_cv_search_libraries_pg_encoding_to_char" >&6; }
  ac_result=$ac_cv_search_libraries_pg_encoding_to_char
  if test "$ac_result" != no
then :
  test "$ac_result" = "none required" || LIBS="$ac_result $LIBS" HAVE_POSTGRESQL=1;LIBRARIES="pgcommon_shlib $LIBRARIES";
printf "%s\n" "#define HAVE_POSTGRESQL 1" >>confdefs.h

fi



    ac_result=""
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing PGTYPESnumeric_to_long" >&5
printf %s "checking for library containing PGTYPESnumeric_to_long... " >&6; }
if test ${ac_cv_search_libraries_PGTYPESnumeric_to_long+y}
then :
  printf %s "(cached) " >&6
else $as_nop

            ac_func_search_libraries_save_LIBS=$LIBS

      for ac_library in pgtypes ""; do
        if test -z "$ac_library"; then
          ac_result="none required"
        else
          ac_result=-l$ac_library
          LIBS="-l$ac_library $ac_func_search_libraries_save_LIBS"
        fi

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
`echo |sed 's/ /\n/g'|while read s; do if test -n "$s"; then echo $s|sed 's/\(.*\)/#include <\\1>/g'; fi; done`
int
main (void)
{
`if test -z ""; then echo "extern void PGTYPESnumeric_to_long();"; fi`
                                         return (int)PGTYPESnumeric_to_long;


  ;
  return 0;
}

_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  ac_cv_search_libraries_PGTYPESnumeric_to_long=$ac_result; break

fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      done
      if test ${ac_cv_search_libraries_PGTYPESnumeric_to_long+y}
then :

else $as_nop
  ac_cv_search_libraries_PGTYPESnumeric_to_long=no
fi

            LIBS=$ac_func_search_libraries_save_LIBS


fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_libraries_PGTYPESnumeric_to_long" >&5
printf "%s\n" "$ac_cv_search_libraries_PGTYPESnumeric_to_long" >&6; }
  ac_result=$ac_cv_search_libraries_PGTYPESnumeric_to_long
  if test "$ac_result" != no
then :
  test "$ac_result" = "none required" || LIBS="$ac_result $LIBS" HAVE_POSTGRESQL=1;LIBRARIES="pgtypes $LIBRARIES";
printf "%s\n" "#define HAVE_POSTGRESQL 1" >>confdefs.h

fi

    else
      if test -z "$HAVE_POSTGRESQL"; then


    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for static library containing pq_init" >&5
printf %s "checking for static library containing pq_init... " >&6; }
if test ${ac_cv_search_static_pq_init+y}
then :
  printf %s "(cached) " >&6
else $as_nop

            ac_func_search_static_libraries_save_CFLAGS="$CFLAGS"
      ac_func_search_static_libraries_save_LIBS="$LIBS"

            CFLAGS="$CFLAGS"
      ac_libraries=""
      for ac_library in pq; do
        if test -n "$ac_libraries"; then
          ac_libraries="$ac_libraries -l$ac_library"
        else
          ac_libraries="-l$ac_library"
        fi
      done
      LIBS="-Wl,-Bstatic $ac_libraries -Wl,-Bdynamic $ac_func_search_static_libraries_save_LIBS"
      if test -z "$ac_libraries"; then
        ac_result="none required"
      else
        ac_result=$ac_libraries
      fi
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
`echo |sed 's/ /\n/g'|while read s; do if test -n "$s"; then echo $s|sed 's/\(.*\)/#include <\\1>/g'; fi; done`
int
main (void)
{
`if test -z ""; then echo "extern void pq_init();"; fi`
                                       return (int)pq_init;


  ;
  return 0;
}

_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  ac_cv_search_static_pq_init=$ac_result; break

fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if test ${ac_cv_search_static_pq_init+y}
then :

else $as_nop
  ac_cv_search_static_pq_init=no
fi

            LIBS=$ac_func_search_static_libraries_save_LIBS
      CFLAGS=$ac_func_search_static_libraries_save_CFLAGS


fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_static_pq_init" >&5
printf "%s\n" "$ac_cv_search_static_pq_init" >&6; }
  ac_result=$ac_cv_search_static_pq_init
  if test "$ac_result" != no
then :
  test "$ac_result" = "none required" || LIBS="$ac_result $LIBS" HAVE_POSTGRESQL=1;STATIC_LIBRARIES="$STATIC_LIBRARIES pq";
printf "%s\n" "#define HAVE_POSTGRESQL 1" >>confdefs.h

fi



    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for static library containing pg_printf" >&5
printf %s "checking for static library containing pg_printf... " >&6; }
if test ${ac_cv_search_static_pg_printf+y}
then :
  printf %s "(cached) " >&6
else $as_nop

            ac_func_search_static_libraries_save_CFLAGS="$CFLAGS"
      ac_func_search_static_libraries_save_LIBS="$LIBS"

            CFLAGS="$CFLAGS"
      ac_libraries=""
      for ac_library in pgport; do
        if test -n "$ac_libraries"; then
          ac_libraries="$ac_libraries -l$ac_library"
        else
          ac_libraries="-l$ac_library"
        fi
      done
      LIBS="-Wl,-Bstatic $ac_libraries -Wl,-Bdynamic $ac_func_search_static_libraries_save_LIBS"
      if test -z "$ac_libraries"; then
        ac_result="none required"
      else
        ac_result=$ac_libraries
      fi
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
`echo |sed 's/ /\n/g'|while read s; do if test -n "$s"; then echo $s|sed 's/\(.*\)/#include <\\1>/g'; fi; done`
int
main (void)
{
`if test -z ""; then echo "extern void pg_printf();"; fi`
                                       return (int)pg_printf;


  ;
  return 0;
}

_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  ac_cv_search_static_pg_printf=$ac_result; break

fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if test ${ac_cv_search_static_pg_printf+y}
then :

else $as_nop
  ac_cv_search_static_pg_printf=no
fi

            LIBS=$ac_func_search_static_libraries_save_LIBS
      CFLAGS=$ac_func_search_static_libraries_save_CFLAGS


fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_static_pg_printf" >&5
printf "%s\n" "$ac_cv_search_static_pg_printf" >&6; }
  ac_result=$ac_cv_search_static_pg_printf
  if test "$ac_result" != no
then :
  test "$ac_result" = "none required" || LIBS="$ac_result $LIBS" HAVE_POSTGRESQL=1;LIBRARIES="pgport $LIBRARIES";
printf "%s\n" "#define HAVE_POSTGRESQL 1" >>confdefs.h

fi



    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for static library containing scram_HMAC_init" >&5
printf %s "checking for static library containing scram_HMAC_init... " >&6; }
if test ${ac_cv_search_static_scram_HMAC_init+y}
then :
  printf %s "(cached) " >&6
else $as_nop

            ac_func_search_static_libraries_save_CFLAGS="$CFLAGS"
      ac_func_search_static_libraries_save_LIBS="$LIBS"

            CFLAGS="$CFLAGS"
      ac_libraries=""
      for ac_library in pgcommon; do
        if test -n "$ac_libraries"; then
          ac_libraries="$ac_libraries -l$ac_library"
        else
          ac_libraries="-l$ac_library"
        fi
      done
      LIBS="-Wl,-Bstatic $ac_libraries -Wl,-Bdynamic $ac_func_search_static_libraries_save_LIBS"
      if test -z "$ac_libraries"; then
        ac_result="none required"
      else
        ac_result=$ac_libraries
      fi
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
`echo |sed 's/ /\n/g'|while read s; do if test -n "$s"; then echo $s|sed 's/\(.*\)/#include <\\1>/g'; fi; done`
int
main (void)
{
`if test -z ""; then echo "extern void scram_HMAC_init();"; fi`
                                       return (int)scram_HMAC_init;


  ;
  return 0;
}

_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  ac_cv_search_static_scram_HMAC_init=$ac_result; break

fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if test ${ac_cv_search_static_scram_HMAC_init+y}
then :

else $as_nop
  ac_cv_search_static_scram_HMAC_init=no
fi

            LIBS=$ac_func_search_static_libraries_save_LIBS
      CFLAGS=$ac_func_search_static_libraries_save_CFLAGS


fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_static_scram_HMAC_init" >&5
printf "%s\n" "$ac_cv_search_static_scram_HMAC_init" >&6; }
  ac_result=$ac_cv_search_static_scram_HMAC_init
  if test "$ac_result" != no
then :
  test "$ac_result" = "none required" || LIBS="$ac_result $LIBS" HAVE_POSTGRESQL=1;LIBRARIES="pgcommon $LIBRARIES";
printf "%s\n" "#define HAVE_POSTGRESQL 1" >>confdefs.h

fi



    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for static library containing pg_encoding_to_char" >&5
printf %s "checking for static library containing pg_encoding_to_char... " >&6; }
if test ${ac_cv_search_static_pg_encoding_to_char+y}
then :
  printf %s "(cached) " >&6
else $as_nop

            ac_func_search_static_libraries_save_CFLAGS="$CFLAGS"
      ac_func_search_static_libraries_save_LIBS="$LIBS"

            CFLAGS="$CFLAGS"
      ac_libraries=""
      for ac_library in pgcommon_shlib; do
        if test -n "$ac_libraries"; then
          ac_libraries="$ac_libraries -l$ac_library"
        else
          ac_libraries="-l$ac_library"
        fi
      done
      LIBS="-Wl,-Bstatic $ac_libraries -Wl,-Bdynamic $ac_func_search_static_libraries_save_LIBS"
      if test -z "$ac_libraries"; then
        ac_result="none required"
      else
        ac_result=$ac_libraries
      fi
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
`echo |sed 's/ /\n/g'|while read s; do if test -n "$s"; then echo $s|sed 's/\(.*\)/#include <\\1>/g'; fi; done`
int
main (void)
{
`if test -z ""; then echo "extern void pg_encoding_to_char();"; fi`
                                       return (int)pg_encoding_to_char;


  ;
  return 0;
}

_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  ac_cv_search_static_pg_encoding_to_char=$ac_result; break

fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if test ${ac_cv_search_static_pg_encoding_to_char+y}
then :

else $as_nop
  ac_cv_search_static_pg_encoding_to_char=no
fi

            LIBS=$ac_func_search_static_libraries_save_LIBS
      CFLAGS=$ac_func_search_static_libraries_save_CFLAGS


fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_static_pg_encoding_to_char" >&5
printf "%s\n" "$ac_cv_search_static_pg_encoding_to_char" >&6; }
  ac_result=$ac_cv_search_static_pg_encoding_to_char
  if test "$ac_result" != no
then :
  test "$ac_result" = "none required" || LIBS="$ac_result $LIBS" HAVE_POSTGRESQL=1;LIBRARIES="pgcommon_shlib $LIBRARIES";
printf "%s\n" "#define HAVE_POSTGRESQL 1" >>confdefs.h

fi



    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for static library containing PGTYPESnumeric_to_long" >&5
printf %s "checking for static library containing PGTYPESnumeric_to_long... " >&6; }
if test ${ac_cv_search_static_PGTYPESnumeric_to_long+y}
then :
  printf %s "(cached) " >&6
else $as_nop

            ac_func_search_static_libraries_save_CFLAGS="$CFLAGS"
      ac_func_search_static_libraries_save_LIBS="$LIBS"

            CFLAGS="$CFLAGS"
      ac_libraries=""
      for ac_library in pgtypes; do
        if test -n "$ac_libraries"; then
          ac_libraries="$ac_libraries -l$ac_library"
        else
          ac_libraries="-l$ac_library"
        fi
      done
      LIBS="-Wl,-Bstatic $ac_libraries -Wl,-Bdynamic $ac_func_search_static_libraries_save_LIBS"
      if test -z "$ac_libraries"; then
        ac_result="none required"
      else
        ac_result=$ac_libraries
      fi
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
`echo |sed 's/ /\n/g'|while read s; do if test -n "$s"; then echo $s|sed 's/\(.*\)/#include <\\1>/g'; fi; done`
int
main (void)
{
`if test -z ""; then echo "extern void PGTYPESnumeric_to_long();"; fi`
                                       return (int)PGTYPESnumeric_to_long;


  ;
  return 0;
}

_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  ac_cv_search_static_PGTYPESnumeric_to_long=$ac_result; break

fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if test ${ac_cv_search_static_PGTYPESnumeric_to_long+y}
then :

else $as_nop
  ac_cv_search_static_PGTYPESnumeric_to_long=no
fi

            LIBS=$ac_func_search_static_libraries_save_LIBS
      CFLAGS=$ac_func_search_static_libraries_save_CFLAGS


fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_static_PGTYPESnumeric_to_long" >&5
printf "%s\n" "$ac_cv_search_static_PGTYPESnumeric_to_long" >&6; }
  ac_result=$ac_cv_search_static_PGTYPESnumeric_to_long
  if test "$ac_result" != no
then :
  test "$ac_result" = "none required" || LIBS="$ac_result $LIBS" HAVE_POSTGRESQL=1;STATIC_LIBRARIES="$STATIC_LIBRARIES pgtypes";
printf "%s\n" "#define HAVE_POSTGRESQL 1" >>confdefs.h

fi

      fi
      if test -z "$HAVE_POSTGRESQL"; then


    ac_result=""
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing pq_init" >&5
printf %s "checking for library containing pq_init... " >&6; }
if test ${ac_cv_search_libraries_pq_init+y}
then :
  printf %s "(cached) " >&6
else $as_nop

            ac_func_search_libraries_save_LIBS=$LIBS

      for ac_library in pq ""; do
        if test -z "$ac_library"; then
          ac_result="none required"
        else
          ac_result=-l$ac_library
          LIBS="-l$ac_library $ac_func_search_libraries_save_LIBS"
        fi

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
`echo |sed 's/ /\n/g'|while read s; do if test -n "$s"; then echo $s|sed 's/\(.*\)/#include <\\1>/g'; fi; done`
int
main (void)
{
`if test -z ""; then echo "extern void pq_init();"; fi`
                                         return (int)pq_init;


  ;
  return 0;
}

_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  ac_cv_search_libraries_pq_init=$ac_result; break

fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      done
      if test ${ac_cv_search_libraries_pq_init+y}
then :

else $as_nop
  ac_cv_search_libraries_pq_init=no
fi

            LIBS=$ac_func_search_libraries_save_LIBS


fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_libraries_pq_init" >&5
printf "%s\n" "$ac_cv_search_libraries_pq_init" >&6; }
  ac_result=$ac_cv_search_libraries_pq_init
  if test "$ac_result" != no
then :
  test "$ac_result" = "none required" || LIBS="$ac_result $LIBS" HAVE_POSTGRESQL=1;LIBRARIES="pq $LIBRARIES";
printf "%s\n" "#define HAVE_POSTGRESQL 1" >>confdefs.h

fi



    ac_result=""
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing pg_printf" >&5
printf %s "checking for library containing pg_printf... " >&6; }
if test ${ac_cv_search_libraries_pg_printf+y}
then :
  printf %s "(cached) " >&6
else $as_nop

            ac_func_search_libraries_save_LIBS=$LIBS

      for ac_library in pgport ""; do
        if test -z "$ac_library"; then
          ac_result="none required"
        else
          ac_result=-l$ac_library
          LIBS="-l$ac_library $ac_func_search_libraries_save_LIBS"
        fi

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
`echo |sed 's/ /\n/g'|while read s; do if test -n "$s"; then echo $s|sed 's/\(.*\)/#include <\\1>/g'; fi; done`
int
main (void)
{
`if test -z ""; then echo "extern void pg_printf();"; fi`
                                         return (int)pg_printf;


  ;
  return 0;
}

_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  ac_cv_search_libraries_pg_printf=$ac_result; break

fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      done
      if test ${ac_cv_search_libraries_pg_printf+y}
then :

else $as_nop
  ac_cv_search_libraries_pg_printf=no
fi

            LIBS=$ac_func_search_libraries_save_LIBS


fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_libraries_pg_printf" >&5
printf "%s\n" "$ac_cv_search_libraries_pg_printf" >&6; }
  ac_result=$ac_cv_search_libraries_pg_printf
  if test "$ac_result" != no
then :
  test "$ac_result" = "none required" || LIBS="$ac_result $LIBS" HAVE_POSTGRESQL=1;LIBRARIES="pgport $LIBRARIES";
printf "%s\n" "#define HAVE_POSTGRESQL 1" >>confdefs.h

fi



    ac_result=""
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing scram_HMAC_init" >&5
printf %s "checking for library containing scram_HMAC_init... " >&6; }
if test ${ac_cv_search_libraries_scram_HMAC_init+y}
then :
  printf %s "(cached) " >&6
else $as_nop

            ac_func_search_libraries_save_LIBS=$LIBS

      for ac_library in pgcommon ""; do
        if test -z "$ac_library"; then
          ac_result="none required"
        else
          ac_result=-l$ac_library
          LIBS="-l$ac_library $ac_func_search_libraries_save_LIBS"
        fi

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
`echo |sed 's/ /\n/g'|while read s; do if test -n "$s"; then echo $s|sed 's/\(.*\)/#include <\\1>/g'; fi; done`
int
main (void)
{
`if test -z ""; then echo "extern void scram_HMAC_init();"; fi`
                                         return (int)scram_HMAC_init;


  ;
  return 0;
}

_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  ac_cv_search_libraries_scram_HMAC_init=$ac_result; break

fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      done
      if test ${ac_cv_search_libraries_scram_HMAC_init+y}
then :

else $as_nop
  ac_cv_search_libraries_scram_HMAC_init=no
fi

            LIBS=$ac_func_search_libraries_save_LIBS


fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_libraries_scram_HMAC_init" >&5
printf "%s\n" "$ac_cv_search_libraries_scram_HMAC_init" >&6; }
  ac_result=$ac_cv_search_libraries_scram_HMAC_init
  if test "$ac_result" != no
then :
  test "$ac_result" = "none required" || LIBS="$ac_result $LIBS" HAVE_POSTGRESQL=1;LIBRARIES="pgcommon $LIBRARIES";
printf "%s\n" "#define HAVE_POSTGRESQL 1" >>confdefs.h

fi



    ac_result=""
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing pg_encoding_to_char" >&5
printf %s "checking for library containing pg_encoding_to_char... " >&6; }
if test ${ac_cv_search_libraries_pg_encoding_to_char+y}
then :
  printf %s "(cached) " >&6
else $as_nop

            ac_func_search_libraries_save_LIBS=$LIBS

      for ac_library in pgcommon_shlib ""; do
        if test -z "$ac_library"; then
          ac_result="none required"
        else
          ac_result=-l$ac_library
          LIBS="-l$ac_library $ac_func_search_libraries_save_LIBS"
        fi

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
`echo |sed 's/ /\n/g'|while read s; do if test -n "$s"; then echo $s|sed 's/\(.*\)/#include <\\1>/g'; fi; done`
int
main (void)
{
`if test -z ""; then echo "extern void pg_encoding_to_char();"; fi`
                                         return (int)pg_encoding_to_char;


  ;
  return 0;
}

_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  ac_cv_search_libraries_pg_encoding_to_char=$ac_result; break

fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      done
      if test ${ac_cv_search_libraries_pg_encoding_to_char+y}
then :

else $as_nop
  ac_cv_search_libraries_pg_encoding_to_char=no
fi

            LIBS=$ac_func_search_libraries_save_LIBS


fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_libraries_pg_encoding_to_char" >&5
printf "%s\n" "$ac_cv_search_libraries_pg_encoding_to_char" >&6; }
  ac_result=$ac_cv_search_libraries_pg_encoding_to_char
  if test "$ac_result" != no
then :
  test "$ac_result" = "none required" || LIBS="$ac_result $LIBS" HAVE_POSTGRESQL=1;LIBRARIES="pgcommon_shlib $LIBRARIES";
printf "%s\n" "#define HAVE_POSTGRESQL 1" >>confdefs.h

fi



    ac_result=""
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing PGTYPESnumeric_to_long" >&5
printf %s "checking for library containing PGTYPESnumeric_to_long... " >&6; }
if test ${ac_cv_search_libraries_PGTYPESnumeric_to_long+y}
then :
  printf %s "(cached) " >&6
else $as_nop

            ac_func_search_libraries_save_LIBS=$LIBS

      for ac_library in pgtypes ""; do
        if test -z "$ac_library"; then
          ac_result="none required"
        else
          ac_result=-l$ac_library
          LIBS="-l$ac_library $ac_func_search_libraries_save_LIBS"
        fi

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
`echo |sed 's/ /\n/g'|while read s; do if test -n "$s"; then echo $s|sed 's/\(.*\)/#include <\\1>/g'; fi; done`
int
main (void)
{
`if test -z ""; then echo "extern void PGTYPESnumeric_to_long();"; fi`
                                         return (int)PGTYPESnumeric_to_long;


  ;
  return 0;
}

_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  ac_cv_search_libraries_PGTYPESnumeric_to_long=$ac_result; break

fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      done
      if test ${ac_cv_search_libraries_PGTYPESnumeric_to_long+y}
then :

else $as_nop
  ac_cv_search_libraries_PGTYPESnumeric_to_long=no
fi

            LIBS=$ac_func_search_libraries_save_LIBS


fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_libraries_PGTYPESnumeric_to_long" >&5
printf "%s\n" "$ac_cv_search_libraries_PGTYPESnumeric_to_long" >&6; }
  ac_result=$ac_cv_search_libraries_PGTYPESnumeric_to_long
  if test "$ac_result" != no
then :
  test "$ac_result" = "none required" || LIBS="$ac_result $LIBS" HAVE_POSTGRESQL=1;LIBRARIES="pgtypes $LIBRARIES";
printf "%s\n" "#define HAVE_POSTGRESQL 1" >>confdefs.h

fi

      fi
    fi
  fi

    case $host_os in
    linux-*)
      ;;
    sunos | solaris*)
      ;;
    darwin*)
      ;;
    windows*|mingw*)
      ;;
  esac

  if test -z "$HAVE_POSTGRESQL"; then
    if test ! \( -d postgresql -o -d "`readlink postgresql`" \); then
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: PostgreSQL not compiled: PostgreSQL package missing" >&5
printf "%s\n" "$as_me: WARNING: PostgreSQL not compiled: PostgreSQL package missing" >&2;}
    fi
  fi
fi

# compile/use cdio
if test $ENABLE_ISO9660 = "yes"; then
  if test \( -d libiconv -o -d "`readlink libiconv`" \) -a \( -d libcdio -o -d "`readlink libcdio`" \); then
    if test "$ENABLE_EXTERN_COMPILE" = "yes"; then
      cwd=`pwd`


  printf %s "compile libiconv... " >&6

      result1=1
      if test $result1 -eq 1; then
        (cd libiconv; CFLAGS="-fPIC" LDFLAGS="" ./configure \
          --host=$host \
          --build=$build \
          --prefix=$cwd/extern \
          --disable-shared \
          --enable-static \
          --with-pic \
        ) 1>$tmpFile 2>&1
        if test $? -ne 0; then
          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: fail (configure)" >&5
printf "%s\n" "fail (configure)" >&6; }

  printf "%s\n" "--- error log -------------------------------------------------------------------------"
  cat libiconv/config.log | while read s; do printf "%s\n" "  $s"; done
  printf "%s\n" "---------------------------------------------------------------------------------------"


  printf "%s\n" "--- error log -------------------------------------------------------------------------"
  cat $tmpFile | while read s; do printf "%s\n" "  $s"; done
  printf "%s\n" "---------------------------------------------------------------------------------------"

          result1=0
        fi
      fi
      if test $result1 -eq 1; then
        (cd libiconv; make clean; make) 1>$tmpFile 2>&1
        if test $? -ne 0; then
          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: fail (make)" >&5
printf "%s\n" "fail (make)" >&6; }

  printf "%s\n" "--- error log -------------------------------------------------------------------------"
  cat libiconv/config.log | while read s; do printf "%s\n" "  $s"; done
  printf "%s\n" "---------------------------------------------------------------------------------------"


  printf "%s\n" "--- error log -------------------------------------------------------------------------"
  cat $tmpFile | while read s; do printf "%s\n" "  $s"; done
  printf "%s\n" "---------------------------------------------------------------------------------------"

          result1=0
        fi
      fi
      if test $result1 -eq 1; then
        (cd libiconv; make install PREFIX=$cwd/extern) 1>$tmpFile 2>&1
        if test $? -ne 0; then
          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: fail (install)" >&5
printf "%s\n" "fail (install)" >&6; }

  printf "%s\n" "--- error log -------------------------------------------------------------------------"
  cat libiconv/config.log | while read s; do printf "%s\n" "  $s"; done
  printf "%s\n" "---------------------------------------------------------------------------------------"


  printf "%s\n" "--- error log -------------------------------------------------------------------------"
  cat $tmpFile | while read s; do printf "%s\n" "  $s"; done
  printf "%s\n" "---------------------------------------------------------------------------------------"

          result1=0
        fi
      fi
      if test $result1 -eq 1; then
        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
printf "%s\n" "done" >&6; }
      fi


  printf %s "compile libcdio... " >&6

      result2=1
      if test $result2 -eq 1; then
        case $host_os in
          linux-*)
            ;;
          sunos | solaris*)
            ;;
          darwin*)
            ;;
          windows*|mingw*)
            ;;
        esac
        if test $result2 -ne 1; then
          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: fail (patch)" >&5
printf "%s\n" "fail (patch)" >&6; }

  printf "%s\n" "--- error log -------------------------------------------------------------------------"
  cat $tmpFile | while read s; do printf "%s\n" "  $s"; done
  printf "%s\n" "---------------------------------------------------------------------------------------"

        fi
      fi
      if test $result2 -eq 1; then
        if test "$ENABLE_DEBUG" = "yes"; then
          (cd libcdio; CFLAGS="-g -O0" CXXFLAGS="-g -O0" LDFLAGS="" ./configure \
            --host=$host \
            --build=$build \
            --prefix=$cwd/extern \
            --with-libiconv-prefix=$cwd/extern \
            --disable-cxx \
            --enable-static=iso9660 \
            --disable-shared \
            --without-cd-drive \
            --without-cd-info \
            --without-cdda-player \
            --without-iso-info \
            --without-iso-read \
          ) 1>$tmpFile 2>&1
        else
          (cd libcdio; ./configure \
            --host=$host \
            --prefix=$cwd/extern \
            --disable-cxx \
            --enable-static=iso9660 \
            --disable-shared \
            --without-cd-drive \
            --without-cd-info \
            --without-cdda-player \
            --without-iso-info \
            --without-iso-read \
          ) 1>$tmpFile 2>&1
        fi
        if test $? -ne 0; then
          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: fail (configure)" >&5
printf "%s\n" "fail (configure)" >&6; }

  printf "%s\n" "--- error log -------------------------------------------------------------------------"
  cat $tmpFile | while read s; do printf "%s\n" "  $s"; done
  printf "%s\n" "---------------------------------------------------------------------------------------"

          result2=0
        fi
      fi
      if test $result2 -eq 1; then
        (cd libcdio; make clean; make -j$CPU_CORES) 1>$tmpFile 2>&1
        if test $? -ne 0; then
          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: fail (make)" >&5
printf "%s\n" "fail (make)" >&6; }

  printf "%s\n" "--- error log -------------------------------------------------------------------------"
  cat $tmpFile | while read s; do printf "%s\n" "  $s"; done
  printf "%s\n" "---------------------------------------------------------------------------------------"

          result2=0
        fi
      fi
      if test $result2 -eq 1; then
        (cd libcdio; make install PREFIX=$cwd/extern) 1>$tmpFile 2>&1
        if test $? -ne 0; then
          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: fail (install)" >&5
printf "%s\n" "fail (install)" >&6; }

  printf "%s\n" "--- error log -------------------------------------------------------------------------"
  cat $tmpFile | while read s; do printf "%s\n" "  $s"; done
  printf "%s\n" "---------------------------------------------------------------------------------------"

          result2=0
        fi
      fi
      if test $result2 -eq 1; then
        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
printf "%s\n" "done" >&6; }
      fi
    else
      result1=1
      result2=1
    fi

    if test $result1 -eq 1 -a $result2 -eq 1; then
      if test $ENABLE_LINK_DYNAMIC = "yes"; then
        LIBRARIES="$LIBRARIES iso9660 cdio iconv"
      else
        STATIC_LIBRARIES="$STATIC_LIBRARIES iso9660 cdio iconv"
      fi
      HAVE_ISO9660=1

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

    fi
  else

    if test $ENABLE_LINK_DYNAMIC = "yes"; then


    ac_result=""
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing iso9660_open" >&5
printf %s "checking for library containing iso9660_open... " >&6; }
if test ${ac_cv_search_libraries_iso9660_open+y}
then :
  printf %s "(cached) " >&6
else $as_nop

            ac_func_search_libraries_save_LIBS=$LIBS

      for ac_library in iso9660 ""; do
        if test -z "$ac_library"; then
          ac_result="none required"
        else
          ac_result=-l$ac_library
          LIBS="-l$ac_library $ac_func_search_libraries_save_LIBS"
        fi

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
`echo |sed 's/ /\n/g'|while read s; do if test -n "$s"; then echo $s|sed 's/\(.*\)/#include <\\1>/g'; fi; done`
int
main (void)
{
`if test -z ""; then echo "extern void iso9660_open();"; fi`
                                         return (int)iso9660_open;


  ;
  return 0;
}

_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  ac_cv_search_libraries_iso9660_open=$ac_result; break

fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      done
      if test ${ac_cv_search_libraries_iso9660_open+y}
then :

else $as_nop
  ac_cv_search_libraries_iso9660_open=no
fi

            LIBS=$ac_func_search_libraries_save_LIBS


fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_libraries_iso9660_open" >&5
printf "%s\n" "$ac_cv_search_libraries_iso9660_open" >&6; }
  ac_result=$ac_cv_search_libraries_iso9660_open
  if test "$ac_result" != no
then :
  test "$ac_result" = "none required" || LIBS="$ac_result $LIBS" HAVE_ISO9660=1;LIBRARIES="$LIBRARIES iso9660 cdio";
printf "%s\n" "#define HAVE_ISO9660 1" >>confdefs.h

fi

    else
      if test -z "$HAVE_ISO9660"; then


    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for static library containing iso9660_open" >&5
printf %s "checking for static library containing iso9660_open... " >&6; }
if test ${ac_cv_search_static_iso9660_open+y}
then :
  printf %s "(cached) " >&6
else $as_nop

            ac_func_search_static_libraries_save_CFLAGS="$CFLAGS"
      ac_func_search_static_libraries_save_LIBS="$LIBS"

            CFLAGS="$CFLAGS"
      ac_libraries=""
      for ac_library in iso9660; do
        if test -n "$ac_libraries"; then
          ac_libraries="$ac_libraries -l$ac_library"
        else
          ac_libraries="-l$ac_library"
        fi
      done
      LIBS="-Wl,-Bstatic $ac_libraries -Wl,-Bdynamic $ac_func_search_static_libraries_save_LIBS"
      if test -z "$ac_libraries"; then
        ac_result="none required"
      else
        ac_result=$ac_libraries
      fi
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
`echo |sed 's/ /\n/g'|while read s; do if test -n "$s"; then echo $s|sed 's/\(.*\)/#include <\\1>/g'; fi; done`
int
main (void)
{
`if test -z ""; then echo "extern void iso9660_open();"; fi`
                                       return (int)iso9660_open;


  ;
  return 0;
}

_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  ac_cv_search_static_iso9660_open=$ac_result; break

fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if test ${ac_cv_search_static_iso9660_open+y}
then :

else $as_nop
  ac_cv_search_static_iso9660_open=no
fi

            LIBS=$ac_func_search_static_libraries_save_LIBS
      CFLAGS=$ac_func_search_static_libraries_save_CFLAGS


fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_static_iso9660_open" >&5
printf "%s\n" "$ac_cv_search_static_iso9660_open" >&6; }
  ac_result=$ac_cv_search_static_iso9660_open
  if test "$ac_result" != no
then :
  test "$ac_result" = "none required" || LIBS="$ac_result $LIBS" HAVE_ISO9660=1;STATIC_LIBRARIES="$STATIC_LIBRARIES iso9660 cdio";
printf "%s\n" "#define HAVE_ISO9660 1" >>confdefs.h

fi

      fi
      if test -z "$HAVE_ISO9660"; then


    ac_result=""
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing iso9660_open" >&5
printf %s "checking for library containing iso9660_open... " >&6; }
if test ${ac_cv_search_libraries_iso9660_open+y}
then :
  printf %s "(cached) " >&6
else $as_nop

            ac_func_search_libraries_save_LIBS=$LIBS

      for ac_library in iso9660 ""; do
        if test -z "$ac_library"; then
          ac_result="none required"
        else
          ac_result=-l$ac_library
          LIBS="-l$ac_library $ac_func_search_libraries_save_LIBS"
        fi

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
`echo |sed 's/ /\n/g'|while read s; do if test -n "$s"; then echo $s|sed 's/\(.*\)/#include <\\1>/g'; fi; done`
int
main (void)
{
`if test -z ""; then echo "extern void iso9660_open();"; fi`
                                         return (int)iso9660_open;


  ;
  return 0;
}

_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  ac_cv_search_libraries_iso9660_open=$ac_result; break

fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      done
      if test ${ac_cv_search_libraries_iso9660_open+y}
then :

else $as_nop
  ac_cv_search_libraries_iso9660_open=no
fi

            LIBS=$ac_func_search_libraries_save_LIBS


fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_libraries_iso9660_open" >&5
printf "%s\n" "$ac_cv_search_libraries_iso9660_open" >&6; }
  ac_result=$ac_cv_search_libraries_iso9660_open
  if test "$ac_result" != no
then :
  test "$ac_result" = "none required" || LIBS="$ac_result $LIBS" HAVE_ISO9660=1;LIBRARIES="$LIBRARIES iso9660 cdio";
printf "%s\n" "#define HAVE_ISO9660 1" >>confdefs.h

fi

      fi
    fi
  fi

    case $host_os in
    linux-*)
      ;;
    sunos | solaris*)
      ;;
    darwin*)
      ;;
    windows*|mingw*)
      ;;
  esac

  if test -z "$HAVE_ISO9660"; then
    if test ! \( -d libcdio -o -d "`readlink libcdio`" \); then
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: libcdio not compiled: libcdio package missing" >&5
printf "%s\n" "$as_me: WARNING: libcdio not compiled: libcdio package missing" >&2;}
    fi
  fi
fi

# compile/use libsmb2
if test $ENABLE_SMBCLIENT = "yes"; then
  if test -d libsmb2 -o -d "`readlink libsmb2`"; then
    if test "$ENABLE_EXTERN_COMPILE" = "yes"; then
      cwd=`pwd`


  printf %s "compile libkrb5... " >&6

      result1=1
      if test $result1 -eq 1; then
        case $host_os in
          linux-*)
            ;;
          sunos | solaris*)
            ;;
          darwin*)
            ;;
          windows*|mingw*)
            ;;
        esac
        if test $result1 -ne 1; then
          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: fail (patch)" >&5
printf "%s\n" "fail (patch)" >&6; }

  printf "%s\n" "--- error log -------------------------------------------------------------------------"
  cat $tmpFile | while read s; do printf "%s\n" "  $s"; done
  printf "%s\n" "---------------------------------------------------------------------------------------"

        fi
      fi
      case $host_os in
        linux-*| sunos | solaris* | darwin*)
          if test $result1 -eq 1; then
            (cd krb5/src; CFLAGS="-fPIC" LDFLAGS="" ./configure \
              --prefix=$cwd/extern \
              --host=$host \
              --build=$build \
              --enable-static \
              --disable-shared \
            ) 1>$tmpFile 2>&1
            if test $? -ne 0; then
              { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: fail (configure)" >&5
printf "%s\n" "fail (configure)" >&6; }

  printf "%s\n" "--- error log -------------------------------------------------------------------------"
  cat krb5/src/config.log | while read s; do printf "%s\n" "  $s"; done
  printf "%s\n" "---------------------------------------------------------------------------------------"


  printf "%s\n" "--- error log -------------------------------------------------------------------------"
  cat $tmpFile | while read s; do printf "%s\n" "  $s"; done
  printf "%s\n" "---------------------------------------------------------------------------------------"

              result1=0
            fi
          fi
          if test $result1 -eq 1; then
            # Note: build only lib: tests do not compile with static libraries
            (   cd krb5/src \
             && make clean \
             && make -j$CPU_CORES -C util \
             && make -j$CPU_CORES -C include \
             && make -j$CPU_CORES -C lib \
            ) 1>$tmpFile 2>&1
            if test $? -ne 0; then
              { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: fail (make)" >&5
printf "%s\n" "fail (make)" >&6; }

  printf "%s\n" "--- error log -------------------------------------------------------------------------"
  cat krb5/src/config.log | while read s; do printf "%s\n" "  $s"; done
  printf "%s\n" "---------------------------------------------------------------------------------------"


  printf "%s\n" "--- error log -------------------------------------------------------------------------"
  cat $tmpFile | while read s; do printf "%s\n" "  $s"; done
  printf "%s\n" "---------------------------------------------------------------------------------------"

              result1=0
            fi
          fi
          if test $result1 -eq 1; then
            # Note: work-around partial build: create required install directories
            $INSTALL -d $cwd/extern/include/krb5
            $INSTALL -d $cwd/extern/include/gssapi
            $INSTALL -d $cwd/extern/include/gssrpc
            $INSTALL -d $cwd/extern/include/kadm5
            $INSTALL -d $cwd/extern/sbin
            $INSTALL -d $cwd/extern/bin/compute_et
            $INSTALL -d $cwd/extern/share/man/man1
            (cd krb5/src;  make -C util install PREFIX=$cwd/extern && make -C include install PREFIX=$cwd/extern && make -C lib install PREFIX=$cwd/extern) 1>$tmpFile 2>&1
            if test $? -ne 0; then
              { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: fail (install)" >&5
printf "%s\n" "fail (install)" >&6; }

  printf "%s\n" "--- error log -------------------------------------------------------------------------"
  cat krb5/src/config.log | while read s; do printf "%s\n" "  $s"; done
  printf "%s\n" "---------------------------------------------------------------------------------------"


  printf "%s\n" "--- error log -------------------------------------------------------------------------"
  cat $tmpFile | while read s; do printf "%s\n" "  $s"; done
  printf "%s\n" "---------------------------------------------------------------------------------------"

              result1=0
            fi
          fi
          if test $result1 -eq 1; then
            { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
printf "%s\n" "done" >&6; }
          fi
          ;;
        windows*|mingw*)
          # not supported on Windows
# TODO
          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: skipped" >&5
printf "%s\n" "skipped" >&6; }
          ;;
      esac


  printf %s "compile libsmb2... " >&6

      result2=1
      if test $result2 -eq 1; then
        case $host_os in
          linux-*)
            ;;
          sunos | solaris*)
            ;;
          darwin*)
            ;;
          windows*|mingw*)
            ;;
        esac
        if test $result2 -ne 1; then
          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: fail (patch)" >&5
printf "%s\n" "fail (patch)" >&6; }

  printf "%s\n" "--- error log -------------------------------------------------------------------------"
  cat $tmpFile | while read s; do printf "%s\n" "  $s"; done
  printf "%s\n" "---------------------------------------------------------------------------------------"

        fi
      fi
      if test $result2 -eq 1; then
        case $host_os in
          linux-* | sunos | solaris* | darwin*)
            # Note: use configure, because with cmake the external Kerberos libraries are not used
            if test "$ENABLE_DEBUG" = "yes"; then
              (cd libsmb2; sh -x ./bootstrap && CFLAGS="-g -O0 -I$cwd/extern/include" CXXFLAGS="-g -O0" LDFLAGS="" ./configure \
                --prefix=$cwd/extern \
                --host=$host \
                --build=$build \
                --enable-static \
                --disable-shared \
                --disable-werror \
              ) 1>$tmpFile 2>&1
            else
              (cd libsmb2; sh -x ./bootstrap && CFLAGS="-I$cwd/extern/include" CXXFLAGS="" ./configure \
                --prefix=$cwd/extern \
                --host=$host \
                --build=$build \
                --enable-static \
                --disable-shared \
                --disable-werror \
              ) 1>$tmpFile 2>&1
            fi
            if test $? -ne 0; then
              { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: fail (configure)" >&5
printf "%s\n" "fail (configure)" >&6; }

  printf "%s\n" "--- error log -------------------------------------------------------------------------"
  cat $tmpFile | while read s; do printf "%s\n" "  $s"; done
  printf "%s\n" "---------------------------------------------------------------------------------------"

              result2=0
            fi
            ;;
          windows*|mingw*)
            if test "$ENABLE_DEBUG" = "yes"; then
              (cd libsmb2; cmake \
                -DCMAKE_BUILD_TYPE=Debug \
                -DCMAKE_SYSTEM_NAME=Windows \
                -DCMAKE_C_COMPILER=x86_64-w64-mingw32-gcc \
                -DCMAKE_RC_COMPILER=x86_64-w64-mingw32-windres \
                -DCMAKE_FIND_ROOT_PATH=/usr/x86_64-w64-mingw32 \
                -DCMAKE_FIND_ROOT_PATH_MODE_PROGRAM=NEVER \
                -DCMAKE_FIND_ROOT_PATH_MODE_LIBRARY=ONLY \
                -DCMAKE_FIND_ROOT_PATH_MODE_INCLUDE=ONLY \
                -DCMAKE_C_FLAGS="-D_WIN32_WINNT=0x0600" \
                -DCMAKE_INSTALL_PREFIX=$cwd/extern \
                \
                -DOPENSSL_INCLUDE_DIR=$cwd/extern/include \
                -DBUILD_SHARED_LIBS=OFF
              ) 1>$tmpFile 2>&1
            else
              (cd libsmb2; cmake \
                -DCMAKE_BUILD_TYPE=Release \
                -DCMAKE_SYSTEM_NAME=Windows \
                -DCMAKE_C_COMPILER=x86_64-w64-mingw32-gcc \
                -DCMAKE_RC_COMPILER=x86_64-w64-mingw32-windres \
                -DCMAKE_FIND_ROOT_PATH=/usr/x86_64-w64-mingw32 \
                -DCMAKE_FIND_ROOT_PATH_MODE_PROGRAM=NEVER \
                -DCMAKE_FIND_ROOT_PATH_MODE_LIBRARY=ONLY \
                -DCMAKE_FIND_ROOT_PATH_MODE_INCLUDE=ONLY \
                -DCMAKE_C_FLAGS="-D_WIN32_WINNT=0x0600" \
                -DCMAKE_INSTALL_PREFIX=$cwd/extern \
                \
                -DOPENSSL_INCLUDE_DIR=$cwd/extern/include \
                -DBUILD_SHARED_LIBS=OFF
              ) 1>$tmpFile 2>&1
            fi
            if test $? -ne 0; then
              { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: fail (configure)" >&5
printf "%s\n" "fail (configure)" >&6; }

  printf "%s\n" "--- error log -------------------------------------------------------------------------"
  cat $tmpFile | while read s; do printf "%s\n" "  $s"; done
  printf "%s\n" "---------------------------------------------------------------------------------------"

              result2=0
            fi
            ;;
        esac
      fi
      if test $result2 -eq 1; then
        (cd libsmb2; \
         make clean; \
         make -C include -j$CPU_CORES; \
         make -C lib -j$CPU_CORES; \
        ) 1>$tmpFile 2>&1
        if test $? -ne 0; then
          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: fail (make)" >&5
printf "%s\n" "fail (make)" >&6; }

  printf "%s\n" "--- error log -------------------------------------------------------------------------"
  cat $tmpFile | while read s; do printf "%s\n" "  $s"; done
  printf "%s\n" "---------------------------------------------------------------------------------------"

          result2=0
        fi
      fi
      if test $result2 -eq 1; then
        (cd libsmb2; \
         make -C include install PREFIX=$cwd/extern; \
         make -C lib install PREFIX=$cwd/extern; \
        ) 1>$tmpFile 2>&1
        if test $? -ne 0; then
          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: fail (install)" >&5
printf "%s\n" "fail (install)" >&6; }

  printf "%s\n" "--- error log -------------------------------------------------------------------------"
  cat $tmpFile | while read s; do printf "%s\n" "  $s"; done
  printf "%s\n" "---------------------------------------------------------------------------------------"

          result2=0
        fi
      fi
      if test $result2 -eq 1; then
        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
printf "%s\n" "done" >&6; }
      fi
    else
      result1=1
      result2=1
    fi

    if test $result1 -eq 1 -a $result2 -eq 1; then
      if test $ENABLE_LINK_DYNAMIC = "yes"; then
        case $host_os in
          linux-* | sunos | solaris* | darwin*)
            LIBRARIES="$LIBRARIES smb2 krb5support k5crypto com_err gssapi_krb5 krb5"
            ;;
          windows*|mingw*)
            LIBRARIES="$LIBRARIES smb2"
            ;;
        esac
      else
        case $host_os in
          linux-* | sunos | solaris* | darwin*)
            STATIC_LIBRARIES="$STATIC_LIBRARIES smb2 krb5support k5crypto com_err gssapi_krb5 krb5"
            ;;
          windows*|mingw*)
            STATIC_LIBRARIES="$STATIC_LIBRARIES smb2"
            ;;
        esac
      fi
      HAVE_SMB2=1

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

    fi
  else

    if test $ENABLE_LINK_DYNAMIC = "yes"; then


    ac_result=""
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing smb2_init_context" >&5
printf %s "checking for library containing smb2_init_context... " >&6; }
if test ${ac_cv_search_libraries_smb2_init_context+y}
then :
  printf %s "(cached) " >&6
else $as_nop

            ac_func_search_libraries_save_LIBS=$LIBS

      for ac_library in smb2 ""; do
        if test -z "$ac_library"; then
          ac_result="none required"
        else
          ac_result=-l$ac_library
          LIBS="-l$ac_library $ac_func_search_libraries_save_LIBS"
        fi

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
`echo |sed 's/ /\n/g'|while read s; do if test -n "$s"; then echo $s|sed 's/\(.*\)/#include <\\1>/g'; fi; done`
int
main (void)
{
`if test -z ""; then echo "extern void smb2_init_context();"; fi`
                                         return (int)smb2_init_context;


  ;
  return 0;
}

_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  ac_cv_search_libraries_smb2_init_context=$ac_result; break

fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      done
      if test ${ac_cv_search_libraries_smb2_init_context+y}
then :

else $as_nop
  ac_cv_search_libraries_smb2_init_context=no
fi

            LIBS=$ac_func_search_libraries_save_LIBS


fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_libraries_smb2_init_context" >&5
printf "%s\n" "$ac_cv_search_libraries_smb2_init_context" >&6; }
  ac_result=$ac_cv_search_libraries_smb2_init_context
  if test "$ac_result" != no
then :
  test "$ac_result" = "none required" || LIBS="$ac_result $LIBS" HAVE_SMB2=1;LIBRARIES="$LIBRARIES smb2 krb5support k5crypto com_err gssapi_krb5 krb5";
printf "%s\n" "#define HAVE_SMB2 1" >>confdefs.h

fi

    else
      if test -z "$HAVE_SMB2"; then


    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for static library containing smb2_init_context" >&5
printf %s "checking for static library containing smb2_init_context... " >&6; }
if test ${ac_cv_search_static_smb2_init_context+y}
then :
  printf %s "(cached) " >&6
else $as_nop

            ac_func_search_static_libraries_save_CFLAGS="$CFLAGS"
      ac_func_search_static_libraries_save_LIBS="$LIBS"

            CFLAGS="$CFLAGS"
      ac_libraries=""
      for ac_library in smb2; do
        if test -n "$ac_libraries"; then
          ac_libraries="$ac_libraries -l$ac_library"
        else
          ac_libraries="-l$ac_library"
        fi
      done
      LIBS="-Wl,-Bstatic $ac_libraries -Wl,-Bdynamic $ac_func_search_static_libraries_save_LIBS"
      if test -z "$ac_libraries"; then
        ac_result="none required"
      else
        ac_result=$ac_libraries
      fi
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
`echo |sed 's/ /\n/g'|while read s; do if test -n "$s"; then echo $s|sed 's/\(.*\)/#include <\\1>/g'; fi; done`
int
main (void)
{
`if test -z ""; then echo "extern void smb2_init_context();"; fi`
                                       return (int)smb2_init_context;


  ;
  return 0;
}

_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  ac_cv_search_static_smb2_init_context=$ac_result; break

fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if test ${ac_cv_search_static_smb2_init_context+y}
then :

else $as_nop
  ac_cv_search_static_smb2_init_context=no
fi

            LIBS=$ac_func_search_static_libraries_save_LIBS
      CFLAGS=$ac_func_search_static_libraries_save_CFLAGS


fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_static_smb2_init_context" >&5
printf "%s\n" "$ac_cv_search_static_smb2_init_context" >&6; }
  ac_result=$ac_cv_search_static_smb2_init_context
  if test "$ac_result" != no
then :
  test "$ac_result" = "none required" || LIBS="$ac_result $LIBS" HAVE_SMB2=1;STATIC_LIBRARIES="$STATIC_LIBRARIES smb2 krb5support k5crypto com_err gssapi_krb5 krb5";
printf "%s\n" "#define HAVE_SMB2 1" >>confdefs.h

fi

      fi
      if test -z "$HAVE_SMB2"; then


    ac_result=""
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing smb2_init_context" >&5
printf %s "checking for library containing smb2_init_context... " >&6; }
if test ${ac_cv_search_libraries_smb2_init_context+y}
then :
  printf %s "(cached) " >&6
else $as_nop

            ac_func_search_libraries_save_LIBS=$LIBS

      for ac_library in smb2 ""; do
        if test -z "$ac_library"; then
          ac_result="none required"
        else
          ac_result=-l$ac_library
          LIBS="-l$ac_library $ac_func_search_libraries_save_LIBS"
        fi

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
`echo |sed 's/ /\n/g'|while read s; do if test -n "$s"; then echo $s|sed 's/\(.*\)/#include <\\1>/g'; fi; done`
int
main (void)
{
`if test -z ""; then echo "extern void smb2_init_context();"; fi`
                                         return (int)smb2_init_context;


  ;
  return 0;
}

_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  ac_cv_search_libraries_smb2_init_context=$ac_result; break

fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      done
      if test ${ac_cv_search_libraries_smb2_init_context+y}
then :

else $as_nop
  ac_cv_search_libraries_smb2_init_context=no
fi

            LIBS=$ac_func_search_libraries_save_LIBS


fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_libraries_smb2_init_context" >&5
printf "%s\n" "$ac_cv_search_libraries_smb2_init_context" >&6; }
  ac_result=$ac_cv_search_libraries_smb2_init_context
  if test "$ac_result" != no
then :
  test "$ac_result" = "none required" || LIBS="$ac_result $LIBS" HAVE_SMB2=1;LIBRARIES="$LIBRARIES smb2 krb5support k5crypto com_err gssapi_krb5 krb5";
printf "%s\n" "#define HAVE_SMB2 1" >>confdefs.h

fi

      fi
    fi
  fi

    case $host_os in
    linux-*)
      ;;
    sunos | solaris*)
      ;;
    darwin*)
      ;;
    windows*|mingw*)
      ;;
  esac

  if test -z "$HAVE_SMB2"; then
    if test ! \( -d krb5 -o -d "`readlink krb5`" \); then
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: libsmb2 not compiled: krb5 package missing" >&5
printf "%s\n" "$as_me: WARNING: libsmb2 not compiled: krb5 package missing" >&2;}
    fi
    if test ! \( -d libsmb2 -o -d "`readlink libsmb2`" \); then
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: libsmb2 not compiled: libsmb2 package missing" >&5
printf "%s\n" "$as_me: WARNING: libsmb2 not compiled: libsmb2 package missing" >&2;}
    fi
  fi
fi

# compile/use pcre
if test $ENABLE_PCRE = "yes"; then
  if test -d pcre -o -d "`readlink pcre`"; then
    if test "$ENABLE_EXTERN_COMPILE" = "yes"; then
      cwd=`pwd`


  printf %s "compile pcre... " >&6

      result=1
      if test $result -eq 1; then
        case $host_os in
          linux-*)
            ;;
          sunos | solaris*)
            ;;
          darwin*)
            ;;
          windows*|mingw*)
            # patch to disable usage of lib-command when RANLIB is set
            #   diff -u pcre-8.32.org/m4/libtool.m4 pcre-8.32/m4/libtool.m4 >  pcre-8.32-libtool.patch
            #   diff -u pcre-8.32.org/aclocal.m4 pcre-8.32/aclocal.m4       >> pcre-8.32-libtool.patch
            #   diff -u pcre-8.32.org/Makefile.in pcre-8.32/Makefile.in     >> pcre-8.32-libtool.patch
            #   diff -u pcre-8.32.org/configure pcre-8.32/configure         >> pcre-8.32-libtool.patch
#TODO: windows cross-build
#            if test -d extern/pcre-8.32; then
#              (cd extern/pcre-8.32; $PATCH --batch -N -p1 < $SOURCE_DIR/misc/pcre-8.32-libtool.patch) 1>$tmpFile 2>&1
#            else
#              AC_MSG_WARN([pcre-8.32 not available - skipped libtool patch!])
#            fi
            ;;
        esac
        if test $? -ne 0; then
          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: fail (patch)" >&5
printf "%s\n" "fail (patch)" >&6; }

  printf "%s\n" "--- error log -------------------------------------------------------------------------"
  cat $tmpFile | while read s; do printf "%s\n" "  $s"; done
  printf "%s\n" "---------------------------------------------------------------------------------------"

          result=0
        fi
      fi
      if test $result -eq 1; then
        (cd pcre; ./configure \
          --host=$host \
          --build=$build \
          --prefix=$cwd/extern \
          --disable-shared \
          --enable-static \
          --enable-utf8 \
        ) 1>$tmpFile 2>&1
        if test $? -ne 0; then
          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: fail (configure)" >&5
printf "%s\n" "fail (configure)" >&6; }

  printf "%s\n" "--- error log -------------------------------------------------------------------------"
  cat $tmpFile | while read s; do printf "%s\n" "  $s"; done
  printf "%s\n" "---------------------------------------------------------------------------------------"

          result=0
        fi
      fi
      if test $result -eq 1; then
        (cd pcre; make clean; make -j$CPU_CORES) 1>$tmpFile 2>&1
        if test $? -ne 0; then
          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: fail (make)" >&5
printf "%s\n" "fail (make)" >&6; }

  printf "%s\n" "--- error log -------------------------------------------------------------------------"
  cat $tmpFile | while read s; do printf "%s\n" "  $s"; done
  printf "%s\n" "---------------------------------------------------------------------------------------"

          result=0
        fi
      fi
      if test $result -eq 1; then
        (cd pcre; make install PREFIX=$cwd/extern) 1>$tmpFile 2>&1
        if test $? -ne 0; then
          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: fail (install)" >&5
printf "%s\n" "fail (install)" >&6; }

  printf "%s\n" "--- error log -------------------------------------------------------------------------"
  cat $tmpFile | while read s; do printf "%s\n" "  $s"; done
  printf "%s\n" "---------------------------------------------------------------------------------------"

          result=0
        fi
        case $host_os in
          linux-*)
            ;;
          sunos | solaris*)
            ;;
          darwin*)
            ;;
          windows*|mingw*)
            (cd extern/lib; ln -s libpcre.lib libpcre.a) 1>/dev/null 2>/dev/null
            (cd extern/lib; ln -s libpcreposix.lib libpcreposix.a) 1>/dev/null 2>/dev/null
            ;;
        esac
      fi
      if test $result -eq 1; then
        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
printf "%s\n" "done" >&6; }
      fi
    else
      result=1
    fi

    if test $result -eq 1; then
      CC_DEFINES="$CC_DEFINES PCRE_STATIC"
      if test $ENABLE_LINK_DYNAMIC = "yes"; then
        LIBRARIES="$LIBRARIES pcre pcreposix"
      else
        STATIC_LIBRARIES="$STATIC_LIBRARIES pcre pcreposix"
      fi
      HAVE_PCRE=1

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

    fi
  else

    if test $ENABLE_LINK_DYNAMIC = "yes"; then


    ac_result=""
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing pcre" >&5
printf %s "checking for library containing pcre... " >&6; }
if test ${ac_cv_search_libraries_pcre+y}
then :
  printf %s "(cached) " >&6
else $as_nop

            ac_func_search_libraries_save_LIBS=$LIBS

      for ac_library in pcre_compile ""; do
        if test -z "$ac_library"; then
          ac_result="none required"
        else
          ac_result=-l$ac_library
          LIBS="-l$ac_library $ac_func_search_libraries_save_LIBS"
        fi

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
`echo |sed 's/ /\n/g'|while read s; do if test -n "$s"; then echo $s|sed 's/\(.*\)/#include <\\1>/g'; fi; done`
int
main (void)
{
`if test -z ""; then echo "extern void pcre();"; fi`
                                         return (int)pcre;


  ;
  return 0;
}

_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  ac_cv_search_libraries_pcre=$ac_result; break

fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      done
      if test ${ac_cv_search_libraries_pcre+y}
then :

else $as_nop
  ac_cv_search_libraries_pcre=no
fi

            LIBS=$ac_func_search_libraries_save_LIBS


fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_libraries_pcre" >&5
printf "%s\n" "$ac_cv_search_libraries_pcre" >&6; }
  ac_result=$ac_cv_search_libraries_pcre
  if test "$ac_result" != no
then :
  test "$ac_result" = "none required" || LIBS="$ac_result $LIBS" HAVE_PCRE=1;LIBRARIES="$LIBRARIES pcre";
printf "%s\n" "#define HAVE_PCRE 1" >>confdefs.h

fi

    else
      if test -z "$HAVE_PCRE"; then


    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for static library containing pcre" >&5
printf %s "checking for static library containing pcre... " >&6; }
if test ${ac_cv_search_static_pcre+y}
then :
  printf %s "(cached) " >&6
else $as_nop

            ac_func_search_static_libraries_save_CFLAGS="$CFLAGS"
      ac_func_search_static_libraries_save_LIBS="$LIBS"

            CFLAGS="$CFLAGS"
      ac_libraries=""
      for ac_library in pcre_compile; do
        if test -n "$ac_libraries"; then
          ac_libraries="$ac_libraries -l$ac_library"
        else
          ac_libraries="-l$ac_library"
        fi
      done
      LIBS="-Wl,-Bstatic $ac_libraries -Wl,-Bdynamic $ac_func_search_static_libraries_save_LIBS"
      if test -z "$ac_libraries"; then
        ac_result="none required"
      else
        ac_result=$ac_libraries
      fi
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
`echo |sed 's/ /\n/g'|while read s; do if test -n "$s"; then echo $s|sed 's/\(.*\)/#include <\\1>/g'; fi; done`
int
main (void)
{
`if test -z ""; then echo "extern void pcre();"; fi`
                                       return (int)pcre;


  ;
  return 0;
}

_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  ac_cv_search_static_pcre=$ac_result; break

fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if test ${ac_cv_search_static_pcre+y}
then :

else $as_nop
  ac_cv_search_static_pcre=no
fi

            LIBS=$ac_func_search_static_libraries_save_LIBS
      CFLAGS=$ac_func_search_static_libraries_save_CFLAGS


fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_static_pcre" >&5
printf "%s\n" "$ac_cv_search_static_pcre" >&6; }
  ac_result=$ac_cv_search_static_pcre
  if test "$ac_result" != no
then :
  test "$ac_result" = "none required" || LIBS="$ac_result $LIBS" HAVE_PCRE=1;CC_DEFINES="$CC_DEFINES PCRE_STATIC";STATIC_LIBRARIES="$STATIC_LIBRARIES pcre";
printf "%s\n" "#define HAVE_PCRE 1" >>confdefs.h

fi

      fi
      if test -z "$HAVE_PCRE"; then


    ac_result=""
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing pcre" >&5
printf %s "checking for library containing pcre... " >&6; }
if test ${ac_cv_search_libraries_pcre+y}
then :
  printf %s "(cached) " >&6
else $as_nop

            ac_func_search_libraries_save_LIBS=$LIBS

      for ac_library in pcre_compile ""; do
        if test -z "$ac_library"; then
          ac_result="none required"
        else
          ac_result=-l$ac_library
          LIBS="-l$ac_library $ac_func_search_libraries_save_LIBS"
        fi

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
`echo |sed 's/ /\n/g'|while read s; do if test -n "$s"; then echo $s|sed 's/\(.*\)/#include <\\1>/g'; fi; done`
int
main (void)
{
`if test -z ""; then echo "extern void pcre();"; fi`
                                         return (int)pcre;


  ;
  return 0;
}

_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  ac_cv_search_libraries_pcre=$ac_result; break

fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      done
      if test ${ac_cv_search_libraries_pcre+y}
then :

else $as_nop
  ac_cv_search_libraries_pcre=no
fi

            LIBS=$ac_func_search_libraries_save_LIBS


fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_libraries_pcre" >&5
printf "%s\n" "$ac_cv_search_libraries_pcre" >&6; }
  ac_result=$ac_cv_search_libraries_pcre
  if test "$ac_result" != no
then :
  test "$ac_result" = "none required" || LIBS="$ac_result $LIBS" HAVE_PCRE=1;LIBRARIES="$LIBRARIES pcre";
printf "%s\n" "#define HAVE_PCRE 1" >>confdefs.h

fi

      fi
    fi
  fi

    case $host_os in
    linux-*)
      ;;
    sunos | solaris*)
      ;;
    darwin*)
      ;;
    windows*|mingw*)
      ;;
  esac

  if test -z "$HAVE_PCRE"; then
    if test ! \( -d pcre -o -d "`readlink pcre`" \); then
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: pcre not compiled: pcre package missing" >&5
printf "%s\n" "$as_me: WARNING: pcre not compiled: pcre package missing" >&2;}
    fi
  fi
fi

# compile/use PAR2 library
if test $ENABLE_PAR2 = "yes"; then
  if test -d par2cmdline -o -d "`readlink par2cmdline`"; then
    if test "$ENABLE_EXTERN_COMPILE" = "yes"; then
      cwd=`pwd`


  printf %s "compile PAR2... " >&6

      result=1
      if test $result -eq 1; then
        (cd par2cmdline; ./automake.sh) 1>$tmpFile 2>&1
        if test $? -ne 0; then
          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: fail (automake)" >&5
printf "%s\n" "fail (automake)" >&6; }

  printf "%s\n" "--- error log -------------------------------------------------------------------------"
  cat $tmpFile | while read s; do printf "%s\n" "  $s"; done
  printf "%s\n" "---------------------------------------------------------------------------------------"

          result=0
        fi
      fi
      if test $result -eq 1; then
        case $host_os in
          linux-* | sunos | solaris* | darwin*)
            (cd par2cmdline; CC="$CC" CPPFLAGS="" CFLAGS="" CXXFLAGS="" AS="$AS" LD="$LD" LDFLAGS="" LIBS="-lpthread" AR="$AR" RANLIB="$RANLIB" WINDRES="$WINDRES" ./configure \
              --host=$host \
              --build=$build \
              --prefix=$cwd/extern \
              --disable-openmp \
            ) 1>$tmpFile 2>&1
            ;;
          windows*|mingw*)
            (cd par2cmdline; CC="$CC" CPPFLAGS="" CFLAGS="" CXXFLAGS="" AS="$AS" LD="$LD" LDFLAGS="" LIBS="-lpthread -lcrypt32 -lwsock32 -lws2_32" AR="$AR" RANLIB="$RANLIB" WINDRES="$WINDRES" ./configure \
              --host=$host \
              --build=$build \
              --prefix=$cwd/extern \
              --disable-openmp \
            ) 1>$tmpFile 2>&1
            ;;
        esac
        if test $? -ne 0; then
          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: fail (configure)" >&5
printf "%s\n" "fail (configure)" >&6; }

  printf "%s\n" "--- error log -------------------------------------------------------------------------"
  cat $tmpFile | while read s; do printf "%s\n" "  $s"; done
  printf "%s\n" "---------------------------------------------------------------------------------------"

          result=0
        fi
      fi
      if test $result -eq 1; then
        (cd par2cmdline; \
         make -j$CPU_CORES; \
        ) 1>$tmpFile 2>&1
        if test $? -ne 0; then
          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: fail (make)" >&5
printf "%s\n" "fail (make)" >&6; }

  printf "%s\n" "--- error log -------------------------------------------------------------------------"
  cat $tmpFile | while read s; do printf "%s\n" "  $s"; done
  printf "%s\n" "---------------------------------------------------------------------------------------"

          result=0
        fi
      fi
      if test $result -eq 1; then
        (cd par2cmdline; \
         cp src/libpar2.h $cwd/extern/include; \
         cp libpar2.a $cwd/extern/lib; \
        ) 1>$tmpFile 2>&1
        if test $? -ne 0; then
          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: fail (install)" >&5
printf "%s\n" "fail (install)" >&6; }

  printf "%s\n" "--- error log -------------------------------------------------------------------------"
  cat $tmpFile | while read s; do printf "%s\n" "  $s"; done
  printf "%s\n" "---------------------------------------------------------------------------------------"

          result=0
        fi
      fi
      if test $result -eq 1; then
        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
printf "%s\n" "done" >&6; }
      fi
    else
      result=1
    fi

    if test $result -eq 1; then
      if test $ENABLE_LINK_DYNAMIC = "yes"; then
        LIBRARIES="$LIBRARIES par2"
      else
        STATIC_LIBRARIES="$STATIC_LIBRARIES par2"
      fi
      HAVE_PAR2=1

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

    fi
  else

    if test $ENABLE_LINK_DYNAMIC = "yes"; then


    ac_result=""
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing par2create" >&5
printf %s "checking for library containing par2create... " >&6; }
if test ${ac_cv_search_libraries_par2create+y}
then :
  printf %s "(cached) " >&6
else $as_nop

            ac_func_search_libraries_save_LIBS=$LIBS

      for ac_library in par2 ""; do
        if test -z "$ac_library"; then
          ac_result="none required"
        else
          ac_result=-l$ac_library
          LIBS="-l$ac_library $ac_func_search_libraries_save_LIBS"
        fi

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
`echo |sed 's/ /\n/g'|while read s; do if test -n "$s"; then echo $s|sed 's/\(.*\)/#include <\\1>/g'; fi; done`
int
main (void)
{
`if test -z ""; then echo "extern void par2create();"; fi`
                                         return (int)par2create;


  ;
  return 0;
}

_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  ac_cv_search_libraries_par2create=$ac_result; break

fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      done
      if test ${ac_cv_search_libraries_par2create+y}
then :

else $as_nop
  ac_cv_search_libraries_par2create=no
fi

            LIBS=$ac_func_search_libraries_save_LIBS


fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_libraries_par2create" >&5
printf "%s\n" "$ac_cv_search_libraries_par2create" >&6; }
  ac_result=$ac_cv_search_libraries_par2create
  if test "$ac_result" != no
then :
  test "$ac_result" = "none required" || LIBS="$ac_result $LIBS" HAVE_PAR2=1;LIBRARIES="par2 $LIBRARIES";
printf "%s\n" "#define HAVE_PAR2 1" >>confdefs.h

fi

    else
      if test -z "$HAVE_PAR2"; then


    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for static library containing par2create" >&5
printf %s "checking for static library containing par2create... " >&6; }
if test ${ac_cv_search_static_par2create+y}
then :
  printf %s "(cached) " >&6
else $as_nop

            ac_func_search_static_libraries_save_CFLAGS="$CFLAGS"
      ac_func_search_static_libraries_save_LIBS="$LIBS"

            CFLAGS="$CFLAGS"
      ac_libraries=""
      for ac_library in par2; do
        if test -n "$ac_libraries"; then
          ac_libraries="$ac_libraries -l$ac_library"
        else
          ac_libraries="-l$ac_library"
        fi
      done
      LIBS="-Wl,-Bstatic $ac_libraries -Wl,-Bdynamic $ac_func_search_static_libraries_save_LIBS"
      if test -z "$ac_libraries"; then
        ac_result="none required"
      else
        ac_result=$ac_libraries
      fi
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
`echo |sed 's/ /\n/g'|while read s; do if test -n "$s"; then echo $s|sed 's/\(.*\)/#include <\\1>/g'; fi; done`
int
main (void)
{
`if test -z ""; then echo "extern void par2create();"; fi`
                                       return (int)par2create;


  ;
  return 0;
}

_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  ac_cv_search_static_par2create=$ac_result; break

fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if test ${ac_cv_search_static_par2create+y}
then :

else $as_nop
  ac_cv_search_static_par2create=no
fi

            LIBS=$ac_func_search_static_libraries_save_LIBS
      CFLAGS=$ac_func_search_static_libraries_save_CFLAGS


fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_static_par2create" >&5
printf "%s\n" "$ac_cv_search_static_par2create" >&6; }
  ac_result=$ac_cv_search_static_par2create
  if test "$ac_result" != no
then :
  test "$ac_result" = "none required" || LIBS="$ac_result $LIBS" HAVE_PAR2=1;STATIC_LIBRARIES="$STATIC_LIBRARIES par2";
printf "%s\n" "#define HAVE_PAR2 1" >>confdefs.h

fi

      fi
      if test -z "$HAVE_PAR2"; then


    ac_result=""
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing par2create" >&5
printf %s "checking for library containing par2create... " >&6; }
if test ${ac_cv_search_libraries_par2create+y}
then :
  printf %s "(cached) " >&6
else $as_nop

            ac_func_search_libraries_save_LIBS=$LIBS

      for ac_library in par2 ""; do
        if test -z "$ac_library"; then
          ac_result="none required"
        else
          ac_result=-l$ac_library
          LIBS="-l$ac_library $ac_func_search_libraries_save_LIBS"
        fi

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
`echo |sed 's/ /\n/g'|while read s; do if test -n "$s"; then echo $s|sed 's/\(.*\)/#include <\\1>/g'; fi; done`
int
main (void)
{
`if test -z ""; then echo "extern void par2create();"; fi`
                                         return (int)par2create;


  ;
  return 0;
}

_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  ac_cv_search_libraries_par2create=$ac_result; break

fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      done
      if test ${ac_cv_search_libraries_par2create+y}
then :

else $as_nop
  ac_cv_search_libraries_par2create=no
fi

            LIBS=$ac_func_search_libraries_save_LIBS


fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_libraries_par2create" >&5
printf "%s\n" "$ac_cv_search_libraries_par2create" >&6; }
  ac_result=$ac_cv_search_libraries_par2create
  if test "$ac_result" != no
then :
  test "$ac_result" = "none required" || LIBS="$ac_result $LIBS" HAVE_PAR2=1;LIBRARIES="par2 $LIBRARIES";
printf "%s\n" "#define HAVE_PAR2 1" >>confdefs.h

fi

      fi
    fi
  fi

    case $host_os in
    linux-*)
      ;;
    sunos | solaris*)
      ;;
    darwin*)
      ;;
    windows*|mingw*)
      ;;
  esac

  if test -z "$HAVE_PAR2"; then
    if test ! \( -d par2cmdline -o -d "`readlink par2cmdline`" \); then
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: PAR2 not compiled: PAR2 package missing" >&5
printf "%s\n" "$as_me: WARNING: PAR2 not compiled: PAR2 package missing" >&2;}
    fi
  fi
fi

# compile/use isofs library
if test $ENABLE_ISOFS = "yes"; then
  if test -d libisofs -o -d "`readlink libisofs`"; then
    if test "$ENABLE_EXTERN_COMPILE" = "yes"; then
      cwd=`pwd`


  printf %s "compile libisofs... " >&6

      result=1
      if test $result -eq 1; then
        (cd libisofs; ./bootstrap) 1>$tmpFile 2>&1
        if test $? -ne 0; then
          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: fail (automake)" >&5
printf "%s\n" "fail (automake)" >&6; }

  printf "%s\n" "--- error log -------------------------------------------------------------------------"
  cat $tmpFile | while read s; do printf "%s\n" "  $s"; done
  printf "%s\n" "---------------------------------------------------------------------------------------"

          result=0
        fi
      fi
      if test $result -eq 1; then
        case $host_os in
          linux-* | sunos | solaris* | darwin*)
            (cd libisofs; CC="$CC" CPPFLAGS="" CFLAGS="" CXXFLAGS="" AS="$AS" LD="$LD" LDFLAGS="" LIBS="-lpthread" AR="$AR" RANLIB="$RANLIB" WINDRES="$WINDRES" ./configure \
              --host=$host \
              --build=$build \
              --prefix=$cwd/extern \
            ) 1>$tmpFile 2>&1
            ;;
          windows*|mingw*)
            (cd libisofs; CC="$CC" CPPFLAGS="" CFLAGS="" CXXFLAGS="" AS="$AS" LD="$LD" LDFLAGS="" LIBS="-lpthread -lcrypt32 -lwsock32 -lws2_32" AR="$AR" RANLIB="$RANLIB" WINDRES="$WINDRES" ./configure \
              --host=$host \
              --build=$build \
              --prefix=$cwd/extern \
            ) 1>$tmpFile 2>&1
            ;;
        esac
        if test $? -ne 0; then
          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: fail (configure)" >&5
printf "%s\n" "fail (configure)" >&6; }

  printf "%s\n" "--- error log -------------------------------------------------------------------------"
  cat $tmpFile | while read s; do printf "%s\n" "  $s"; done
  printf "%s\n" "---------------------------------------------------------------------------------------"

          result=0
        fi
      fi
      if test $result -eq 1; then
        (cd libisofs; \
         make -j$CPU_CORES; \
        ) 1>$tmpFile 2>&1
        if test $? -ne 0; then
          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: fail (make)" >&5
printf "%s\n" "fail (make)" >&6; }

  printf "%s\n" "--- error log -------------------------------------------------------------------------"
  cat $tmpFile | while read s; do printf "%s\n" "  $s"; done
  printf "%s\n" "---------------------------------------------------------------------------------------"

          result=0
        fi
      fi
      if test $result -eq 1; then
        (cd libisofs; make install PREFIX=$cwd/extern) 1>$tmpFile 2>&1
        if test $? -ne 0; then
          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: fail (install)" >&5
printf "%s\n" "fail (install)" >&6; }

  printf "%s\n" "--- error log -------------------------------------------------------------------------"
  cat $tmpFile | while read s; do printf "%s\n" "  $s"; done
  printf "%s\n" "---------------------------------------------------------------------------------------"

          result=0
        fi
      fi
      if test $result -eq 1; then
        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
printf "%s\n" "done" >&6; }
      fi
    else
      result=1
    fi

    if test $result -eq 1; then
      if test $ENABLE_LINK_DYNAMIC = "yes"; then
        LIBRARIES="$LIBRARIES isofs"
      else
        STATIC_LIBRARIES="$STATIC_LIBRARIES isofs"
      fi
      HAVE_ISOFS=1

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

    fi
  else

    if test $ENABLE_LINK_DYNAMIC = "yes"; then


    ac_result=""
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing iso_image_new" >&5
printf %s "checking for library containing iso_image_new... " >&6; }
if test ${ac_cv_search_libraries_iso_image_new+y}
then :
  printf %s "(cached) " >&6
else $as_nop

            ac_func_search_libraries_save_LIBS=$LIBS

      for ac_library in isofs ""; do
        if test -z "$ac_library"; then
          ac_result="none required"
        else
          ac_result=-l$ac_library
          LIBS="-l$ac_library $ac_func_search_libraries_save_LIBS"
        fi

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
`echo |sed 's/ /\n/g'|while read s; do if test -n "$s"; then echo $s|sed 's/\(.*\)/#include <\\1>/g'; fi; done`
int
main (void)
{
`if test -z ""; then echo "extern void iso_image_new();"; fi`
                                         return (int)iso_image_new;


  ;
  return 0;
}

_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  ac_cv_search_libraries_iso_image_new=$ac_result; break

fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      done
      if test ${ac_cv_search_libraries_iso_image_new+y}
then :

else $as_nop
  ac_cv_search_libraries_iso_image_new=no
fi

            LIBS=$ac_func_search_libraries_save_LIBS


fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_libraries_iso_image_new" >&5
printf "%s\n" "$ac_cv_search_libraries_iso_image_new" >&6; }
  ac_result=$ac_cv_search_libraries_iso_image_new
  if test "$ac_result" != no
then :
  test "$ac_result" = "none required" || LIBS="$ac_result $LIBS" HAVE_ISOFS=1;LIBRARIES="isofs $LIBRARIES";
printf "%s\n" "#define HAVE_ISOFS 1" >>confdefs.h

fi

    else
      if test -z "$HAVE_ISOFS"; then


    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for static library containing iso_image_new" >&5
printf %s "checking for static library containing iso_image_new... " >&6; }
if test ${ac_cv_search_static_iso_image_new+y}
then :
  printf %s "(cached) " >&6
else $as_nop

            ac_func_search_static_libraries_save_CFLAGS="$CFLAGS"
      ac_func_search_static_libraries_save_LIBS="$LIBS"

            CFLAGS="$CFLAGS"
      ac_libraries=""
      for ac_library in isofs; do
        if test -n "$ac_libraries"; then
          ac_libraries="$ac_libraries -l$ac_library"
        else
          ac_libraries="-l$ac_library"
        fi
      done
      LIBS="-Wl,-Bstatic $ac_libraries -Wl,-Bdynamic $ac_func_search_static_libraries_save_LIBS"
      if test -z "$ac_libraries"; then
        ac_result="none required"
      else
        ac_result=$ac_libraries
      fi
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
`echo |sed 's/ /\n/g'|while read s; do if test -n "$s"; then echo $s|sed 's/\(.*\)/#include <\\1>/g'; fi; done`
int
main (void)
{
`if test -z ""; then echo "extern void iso_image_new();"; fi`
                                       return (int)iso_image_new;


  ;
  return 0;
}

_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  ac_cv_search_static_iso_image_new=$ac_result; break

fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if test ${ac_cv_search_static_iso_image_new+y}
then :

else $as_nop
  ac_cv_search_static_iso_image_new=no
fi

            LIBS=$ac_func_search_static_libraries_save_LIBS
      CFLAGS=$ac_func_search_static_libraries_save_CFLAGS


fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_static_iso_image_new" >&5
printf "%s\n" "$ac_cv_search_static_iso_image_new" >&6; }
  ac_result=$ac_cv_search_static_iso_image_new
  if test "$ac_result" != no
then :
  test "$ac_result" = "none required" || LIBS="$ac_result $LIBS" HAVE_ISOFS=1;STATIC_LIBRARIES="$STATIC_LIBRARIES isofs";
printf "%s\n" "#define HAVE_ISOFS 1" >>confdefs.h

fi

      fi
      if test -z "$HAVE_ISOFS"; then


    ac_result=""
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing iso_image_new" >&5
printf %s "checking for library containing iso_image_new... " >&6; }
if test ${ac_cv_search_libraries_iso_image_new+y}
then :
  printf %s "(cached) " >&6
else $as_nop

            ac_func_search_libraries_save_LIBS=$LIBS

      for ac_library in isofs ""; do
        if test -z "$ac_library"; then
          ac_result="none required"
        else
          ac_result=-l$ac_library
          LIBS="-l$ac_library $ac_func_search_libraries_save_LIBS"
        fi

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
`echo |sed 's/ /\n/g'|while read s; do if test -n "$s"; then echo $s|sed 's/\(.*\)/#include <\\1>/g'; fi; done`
int
main (void)
{
`if test -z ""; then echo "extern void iso_image_new();"; fi`
                                         return (int)iso_image_new;


  ;
  return 0;
}

_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  ac_cv_search_libraries_iso_image_new=$ac_result; break

fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      done
      if test ${ac_cv_search_libraries_iso_image_new+y}
then :

else $as_nop
  ac_cv_search_libraries_iso_image_new=no
fi

            LIBS=$ac_func_search_libraries_save_LIBS


fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_libraries_iso_image_new" >&5
printf "%s\n" "$ac_cv_search_libraries_iso_image_new" >&6; }
  ac_result=$ac_cv_search_libraries_iso_image_new
  if test "$ac_result" != no
then :
  test "$ac_result" = "none required" || LIBS="$ac_result $LIBS" HAVE_ISOFS=1;LIBRARIES="isofs $LIBRARIES";
printf "%s\n" "#define HAVE_ISOFS 1" >>confdefs.h

fi

      fi
    fi
  fi

    case $host_os in
    linux-*)
      ;;
    sunos | solaris*)
      ;;
    darwin*)
      ;;
    windows*|mingw*)
      ;;
  esac

  if test -z "$HAVE_ISOFS"; then
    if test ! \( -d libisofs -o -d "`readlink libisofs`" \); then
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: libisofs not compiled: libisofs package missing" >&5
printf "%s\n" "$as_me: WARNING: libisofs not compiled: libisofs package missing" >&2;}
    fi
  fi
fi

# compile/use xfsprogrs (libuuid liburcu libxfs)
if test $ENABLE_XFS = "yes"; then
  if test \( -d util-linux -o -d "`readlink util-linux`" \) -a \( -d userspace-rcu -o -d "`readlink userspace-rcu`" \) -a \( -d xfsprogs -o -d "`readlink xfsprogs`" \); then
    if test "$ENABLE_EXTERN_COMPILE" = "yes"; then
      cwd=`pwd`


  printf %s "compile libuuid... " >&6

      result1=1
      if test $result1 -eq 1; then
        (cd util-linux; ./autogen.sh) 1>$tmpFile 2>&1
        if test $? -ne 0; then
          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: fail (autogen)" >&5
printf "%s\n" "fail (autogen)" >&6; }

  printf "%s\n" "--- error log -------------------------------------------------------------------------"
  cat $tmpFile | while read s; do printf "%s\n" "  $s"; done
  printf "%s\n" "---------------------------------------------------------------------------------------"

          result1=0
        fi
      fi
      if test $result1 -eq 1; then
        case $host_os in
          linux-* | sunos | solaris* | darwin*)
            (cd util-linux; CC="$CC" CPPFLAGS="" CFLAGS="" CXXFLAGS="" AS="$AS" LD="$LD" LDFLAGS="" LIBS="-lpthread" AR="$AR" RANLIB="$RANLIB" WINDRES="$WINDRES" ./configure \
              --host=$host \
              --build=$build \
              --prefix=$cwd/extern \
              --disable-all-programs --enable-libuuid --enable-libblkid \
            ) 1>$tmpFile 2>&1
            ;;
          windows*|mingw*)
            ;;
        esac
        if test $? -ne 0; then
          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: fail (configure)" >&5
printf "%s\n" "fail (configure)" >&6; }

  printf "%s\n" "--- error log -------------------------------------------------------------------------"
  cat $tmpFile | while read s; do printf "%s\n" "  $s"; done
  printf "%s\n" "---------------------------------------------------------------------------------------"

          result1=0
        fi
      fi
      if test $result1 -eq 1; then
        (cd util-linux; \
         make -j$CPU_CORES; \
        ) 1>$tmpFile 2>&1
        if test $? -ne 0; then
          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: fail (make)" >&5
printf "%s\n" "fail (make)" >&6; }

  printf "%s\n" "--- error log -------------------------------------------------------------------------"
  cat $tmpFile | while read s; do printf "%s\n" "  $s"; done
  printf "%s\n" "---------------------------------------------------------------------------------------"

          result1=0
        fi
      fi
      if test $result1 -eq 1; then
        (cd util-linux; make install PREFIX=$cwd/extern) 1>$tmpFile 2>&1
        if test $? -ne 0; then
          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: fail (install)" >&5
printf "%s\n" "fail (install)" >&6; }

  printf "%s\n" "--- error log -------------------------------------------------------------------------"
  cat $tmpFile | while read s; do printf "%s\n" "  $s"; done
  printf "%s\n" "---------------------------------------------------------------------------------------"

          result1=0
        fi
      fi
      if test $result1 -eq 1; then
        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
printf "%s\n" "done" >&6; }
      fi


  printf %s "compile userspace-rcu... " >&6

      result2=1
      if test $result2 -eq 1; then
        case $host_os in
          linux-*)
            ;;
          sunos | solaris*)
            ;;
          darwin*)
            ;;
          windows*|mingw*)
            ;;
        esac
        if test $? -ne 0; then
          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: fail (patch)" >&5
printf "%s\n" "fail (patch)" >&6; }

  printf "%s\n" "--- error log -------------------------------------------------------------------------"
  cat $tmpFile | while read s; do printf "%s\n" "  $s"; done
  printf "%s\n" "---------------------------------------------------------------------------------------"

          result2=0
        fi
      fi
      if test $result2 -eq 1; then
        case $host_os in
          linux-* | sunos | solaris* | darwin*)
            (cd userspace-rcu; CC="$CC" CPPFLAGS="" CFLAGS="" CXXFLAGS="" AS="$AS" LD="$LD" LDFLAGS="" LIBS="-lpthread" AR="$AR" RANLIB="$RANLIB" WINDRES="$WINDRES" ./configure \
              --host=$host \
              --build=$build \
              --prefix=$cwd/extern \
            ) 1>$tmpFile 2>&1
            ;;
          windows*|mingw*)
            (cd userspace-rcu; CC="$CC" CPPFLAGS="" CFLAGS="" CXXFLAGS="" AS="$AS" LD="$LD" LDFLAGS="" LIBS="-lpthread -lcrypt32 -lwsock32 -lws2_32" AR="$AR" RANLIB="$RANLIB" WINDRES="$WINDRES" ./configure \
              --host=$host \
              --build=$build \
              --prefix=$cwd/extern \
            ) 1>$tmpFile 2>&1
            ;;
        esac
        if test $? -ne 0; then
          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: fail (configure)" >&5
printf "%s\n" "fail (configure)" >&6; }

  printf "%s\n" "--- error log -------------------------------------------------------------------------"
  cat $tmpFile | while read s; do printf "%s\n" "  $s"; done
  printf "%s\n" "---------------------------------------------------------------------------------------"

          result2=0
        fi
      fi
      if test $result2 -eq 1; then
        (cd userspace-rcu; \
         make -j$CPU_CORES; \
        ) 1>$tmpFile 2>&1
        if test $? -ne 0; then
          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: fail (make)" >&5
printf "%s\n" "fail (make)" >&6; }

  printf "%s\n" "--- error log -------------------------------------------------------------------------"
  cat $tmpFile | while read s; do printf "%s\n" "  $s"; done
  printf "%s\n" "---------------------------------------------------------------------------------------"

          result2=0
        fi
      fi
      if test $result2 -eq 1; then
        (cd userspace-rcu; \
         make install PREFIX=$cwd/extern; \
        ) 1>$tmpFile 2>&1
        if test $? -ne 0; then
          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: fail (install)" >&5
printf "%s\n" "fail (install)" >&6; }

  printf "%s\n" "--- error log -------------------------------------------------------------------------"
  cat $tmpFile | while read s; do printf "%s\n" "  $s"; done
  printf "%s\n" "---------------------------------------------------------------------------------------"

          result2=0
        fi
      fi
      if test $result2 -eq 1; then
        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
printf "%s\n" "done" >&6; }
      fi


  printf %s "compile xfsprogs... " >&6

      result3=1
      if test $result3 -eq 1; then
        case $host_os in
          linux-*)
            ;;
          sunos | solaris*)
            ;;
          darwin*)
            ;;
          windows*|mingw*)
            ;;
        esac
        if test $? -ne 0; then
          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: fail (patch)" >&5
printf "%s\n" "fail (patch)" >&6; }

  printf "%s\n" "--- error log -------------------------------------------------------------------------"
  cat $tmpFile | while read s; do printf "%s\n" "  $s"; done
  printf "%s\n" "---------------------------------------------------------------------------------------"

          result3=0
        fi
      fi
      if test $result3 -eq 1; then
        (cd xfsprogs; make configure) 1>$tmpFile 2>&1
        case $host_os in
          linux-* | sunos | solaris* | darwin*)
            (cd xfsprogs; CC="$CC" CPPFLAGS="" CFLAGS="-I$cwd/extern/include" CXXFLAGS="" AS="$AS" LD="$LD" LDFLAGS="" LIBS="" AR="$AR" RANLIB="$RANLIB" WINDRES="$WINDRES" ./configure \
              --host=$host \
              --build=$build \
              --prefix=$cwd/extern \
            ) 1>$tmpFile 2>&1
            ;;
          windows*|mingw*)
            (cd xfsprogs; CC="$CC" CPPFLAGS="" CFLAGS="-I$cwd/extern/include" CXXFLAGS="" AS="$AS" LD="$LD" LDFLAGS="" LIBS="-lpthread -lcrypt32 -lwsock32 -lws2_32" AR="$AR" RANLIB="$RANLIB" WINDRES="$WINDRES" ./configure \
              --host=$host \
              --build=$build \
              --prefix=$cwd/extern \
            ) 1>$tmpFile 2>&1
            ;;
        esac
        if test $? -ne 0; then
          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: fail (configure)" >&5
printf "%s\n" "fail (configure)" >&6; }

  printf "%s\n" "--- error log -------------------------------------------------------------------------"
  cat $tmpFile | while read s; do printf "%s\n" "  $s"; done
  printf "%s\n" "---------------------------------------------------------------------------------------"

          result3=0
        fi
      fi

      if test $result3 -eq 1; then
        (   cd xfsprogs \
         && make headers \
         && make -j$CPU_CORES -C include install-headers \
         && make -j$CPU_CORES -C libxfs install-headers \
         && make -j$CPU_CORES -C include \
         && make -j$CPU_CORES -C libfrog \
         && make -j$CPU_CORES -C libxfs \
        ) 1>$tmpFile 2>&1
        if test $? -ne 0; then
          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: fail (make)" >&5
printf "%s\n" "fail (make)" >&6; }

  printf "%s\n" "--- error log -------------------------------------------------------------------------"
  cat $tmpFile | while read s; do printf "%s\n" "  $s"; done
  printf "%s\n" "---------------------------------------------------------------------------------------"

          result3=0
        fi
      fi
      if test $result3 -eq 1; then
        (   cd xfsprogs \
         && make -j$CPU_CORES -C libfrog install-dev \
         && make -j$CPU_CORES -C libxfs install-dev \
        ) 1>$tmpFile 2>&1
        if test $? -ne 0; then
          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: fail (install)" >&5
printf "%s\n" "fail (install)" >&6; }

  printf "%s\n" "--- error log -------------------------------------------------------------------------"
  cat $tmpFile | while read s; do printf "%s\n" "  $s"; done
  printf "%s\n" "---------------------------------------------------------------------------------------"

          result3=0
        fi
      fi
      if test $result3 -eq 1; then
        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
printf "%s\n" "done" >&6; }
      fi
    else
      result1=1
      result2=1
      result3=1
    fi

    if test $result1 -eq 1 -a $result2 -eq 1 -a $result3 -eq 1; then
      if test $ENABLE_LINK_DYNAMIC = "yes"; then
        LIBRARIES="$LIBRARIES xfs frog urcu uuid blkid"
      else
        STATIC_LIBRARIES="$STATIC_LIBRARIES xfs frog urcu uuid blkid"
      fi
      HAVE_UUID=1
      HAVE_RCU=1
      HAVE_XFS=1

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

    fi
  else

# TODO: frog, rcu
    if test $ENABLE_LINK_DYNAMIC = "yes"; then


    ac_result=""
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing libxfs_init" >&5
printf %s "checking for library containing libxfs_init... " >&6; }
if test ${ac_cv_search_libraries_libxfs_init+y}
then :
  printf %s "(cached) " >&6
else $as_nop

            ac_func_search_libraries_save_LIBS=$LIBS

      for ac_library in xfs ""; do
        if test -z "$ac_library"; then
          ac_result="none required"
        else
          ac_result=-l$ac_library
          LIBS="-l$ac_library $ac_func_search_libraries_save_LIBS"
        fi

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
`echo |sed 's/ /\n/g'|while read s; do if test -n "$s"; then echo $s|sed 's/\(.*\)/#include <\\1>/g'; fi; done`
int
main (void)
{
`if test -z ""; then echo "extern void libxfs_init();"; fi`
                                         return (int)libxfs_init;


  ;
  return 0;
}

_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  ac_cv_search_libraries_libxfs_init=$ac_result; break

fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      done
      if test ${ac_cv_search_libraries_libxfs_init+y}
then :

else $as_nop
  ac_cv_search_libraries_libxfs_init=no
fi

            LIBS=$ac_func_search_libraries_save_LIBS


fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_libraries_libxfs_init" >&5
printf "%s\n" "$ac_cv_search_libraries_libxfs_init" >&6; }
  ac_result=$ac_cv_search_libraries_libxfs_init
  if test "$ac_result" != no
then :
  test "$ac_result" = "none required" || LIBS="$ac_result $LIBS" HAVE_XFSPROGS=1;LIBRARIES="xfs frog urcu uuid blkid $LIBRARIES";
printf "%s\n" "#define HAVE_XFS 1" >>confdefs.h

fi

    else
      if test -z "$HAVE_XFSPROGS"; then


    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for static library containing libxfs_init" >&5
printf %s "checking for static library containing libxfs_init... " >&6; }
if test ${ac_cv_search_static_libxfs_init+y}
then :
  printf %s "(cached) " >&6
else $as_nop

            ac_func_search_static_libraries_save_CFLAGS="$CFLAGS"
      ac_func_search_static_libraries_save_LIBS="$LIBS"

            CFLAGS="$CFLAGS"
      ac_libraries=""
      for ac_library in xfs; do
        if test -n "$ac_libraries"; then
          ac_libraries="$ac_libraries -l$ac_library"
        else
          ac_libraries="-l$ac_library"
        fi
      done
      LIBS="-Wl,-Bstatic $ac_libraries -Wl,-Bdynamic $ac_func_search_static_libraries_save_LIBS"
      if test -z "$ac_libraries"; then
        ac_result="none required"
      else
        ac_result=$ac_libraries
      fi
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
`echo |sed 's/ /\n/g'|while read s; do if test -n "$s"; then echo $s|sed 's/\(.*\)/#include <\\1>/g'; fi; done`
int
main (void)
{
`if test -z ""; then echo "extern void libxfs_init();"; fi`
                                       return (int)libxfs_init;


  ;
  return 0;
}

_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  ac_cv_search_static_libxfs_init=$ac_result; break

fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if test ${ac_cv_search_static_libxfs_init+y}
then :

else $as_nop
  ac_cv_search_static_libxfs_init=no
fi

            LIBS=$ac_func_search_static_libraries_save_LIBS
      CFLAGS=$ac_func_search_static_libraries_save_CFLAGS


fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_static_libxfs_init" >&5
printf "%s\n" "$ac_cv_search_static_libxfs_init" >&6; }
  ac_result=$ac_cv_search_static_libxfs_init
  if test "$ac_result" != no
then :
  test "$ac_result" = "none required" || LIBS="$ac_result $LIBS" HAVE_XFSPROGS=1;STATIC_LIBRARIES="$STATIC_LIBRARIES xfs frog urcu uuid blkid";
printf "%s\n" "#define HAVE_XFS 1" >>confdefs.h

fi

      fi
      if test -z "$HAVE_XFSPROGS"; then


    ac_result=""
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing libxfs_init" >&5
printf %s "checking for library containing libxfs_init... " >&6; }
if test ${ac_cv_search_libraries_libxfs_init+y}
then :
  printf %s "(cached) " >&6
else $as_nop

            ac_func_search_libraries_save_LIBS=$LIBS

      for ac_library in xfs ""; do
        if test -z "$ac_library"; then
          ac_result="none required"
        else
          ac_result=-l$ac_library
          LIBS="-l$ac_library $ac_func_search_libraries_save_LIBS"
        fi

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
`echo |sed 's/ /\n/g'|while read s; do if test -n "$s"; then echo $s|sed 's/\(.*\)/#include <\\1>/g'; fi; done`
int
main (void)
{
`if test -z ""; then echo "extern void libxfs_init();"; fi`
                                         return (int)libxfs_init;


  ;
  return 0;
}

_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  ac_cv_search_libraries_libxfs_init=$ac_result; break

fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      done
      if test ${ac_cv_search_libraries_libxfs_init+y}
then :

else $as_nop
  ac_cv_search_libraries_libxfs_init=no
fi

            LIBS=$ac_func_search_libraries_save_LIBS


fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_libraries_libxfs_init" >&5
printf "%s\n" "$ac_cv_search_libraries_libxfs_init" >&6; }
  ac_result=$ac_cv_search_libraries_libxfs_init
  if test "$ac_result" != no
then :
  test "$ac_result" = "none required" || LIBS="$ac_result $LIBS" HAVE_XFSPROGS=1;LIBRARIES="xfs frog urcu uuid blkid $LIBRARIES";
printf "%s\n" "#define HAVE_XFS 1" >>confdefs.h

fi

      fi
    fi
  fi

    case $host_os in
    linux-*)
      ;;
    sunos | solaris*)
      ;;
    darwin*)
      ;;
    windows*|mingw*)
      ;;
  esac

  if test -z "$HAVE_XFS"; then
    if test ! \( -d util-linux -o -d "`readlink util-linux`" \); then
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: util-linux not compiled: util-linux package missing" >&5
printf "%s\n" "$as_me: WARNING: util-linux not compiled: util-linux package missing" >&2;}
    fi
    if test ! \( -d userspace-rcu -o -d "`readlink userspace-rcu`" \); then
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: userspace-rcu not compiled: userspace-rcu package missing" >&5
printf "%s\n" "$as_me: WARNING: userspace-rcu not compiled: userspace-rcu package missing" >&2;}
    fi
    if test ! \( -d xfsprogs -o -d "`readlink xfsprogs`" \); then
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: xfsprogs not compiled: xfsprogs package missing" >&5
printf "%s\n" "$as_me: WARNING: xfsprogs not compiled: xfsprogs package missing" >&2;}
    fi
  fi
fi

# compile/use burn library
if test $ENABLE_BURN = "yes"; then
  if test -d libburn -o -d "`readlink libburn`"; then
    if test "$ENABLE_EXTERN_COMPILE" = "yes"; then
      cwd=`pwd`


  printf %s "compile libburn... " >&6

      result=1
      if test $result -eq 1; then
        (cd libburn; ./bootstrap) 1>$tmpFile 2>&1
        if test $? -ne 0; then
          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: fail (automake)" >&5
printf "%s\n" "fail (automake)" >&6; }

  printf "%s\n" "--- error log -------------------------------------------------------------------------"
  cat $tmpFile | while read s; do printf "%s\n" "  $s"; done
  printf "%s\n" "---------------------------------------------------------------------------------------"

          result=0
        fi
      fi
      if test $result -eq 1; then
        case $host_os in
          linux-* | sunos | solaris* | darwin*)
            (cd libburn; CC="$CC" CPPFLAGS="" CFLAGS="" CXXFLAGS="" AS="$AS" LD="$LD" LDFLAGS="" LIBS="-lpthread" AR="$AR" RANLIB="$RANLIB" WINDRES="$WINDRES" ./configure \
              --host=$host \
              --build=$build \
              --prefix=$cwd/extern \
            ) 1>$tmpFile 2>&1
            ;;
          windows*|mingw*)
            (cd libburn; CC="$CC" CPPFLAGS="" CFLAGS="" CXXFLAGS="" AS="$AS" LD="$LD" LDFLAGS="" LIBS="-lpthread -lcrypt32 -lwsock32 -lws2_32" AR="$AR" RANLIB="$RANLIB" WINDRES="$WINDRES" ./configure \
              --host=$host \
              --build=$build \
              --prefix=$cwd/extern \
            ) 1>$tmpFile 2>&1
            ;;
        esac
        if test $? -ne 0; then
          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: fail (configure)" >&5
printf "%s\n" "fail (configure)" >&6; }

  printf "%s\n" "--- error log -------------------------------------------------------------------------"
  cat $tmpFile | while read s; do printf "%s\n" "  $s"; done
  printf "%s\n" "---------------------------------------------------------------------------------------"

          result=0
        fi
      fi
      if test $result -eq 1; then
        (cd libburn; \
         make -j$CPU_CORES; \
        ) 1>$tmpFile 2>&1
        if test $? -ne 0; then
          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: fail (make)" >&5
printf "%s\n" "fail (make)" >&6; }

  printf "%s\n" "--- error log -------------------------------------------------------------------------"
  cat $tmpFile | while read s; do printf "%s\n" "  $s"; done
  printf "%s\n" "---------------------------------------------------------------------------------------"

          result=0
        fi
      fi
      if test $result -eq 1; then
        (cd libburn; make install PREFIX=$cwd/extern) 1>$tmpFile 2>&1
        if test $? -ne 0; then
          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: fail (install)" >&5
printf "%s\n" "fail (install)" >&6; }

  printf "%s\n" "--- error log -------------------------------------------------------------------------"
  cat $tmpFile | while read s; do printf "%s\n" "  $s"; done
  printf "%s\n" "---------------------------------------------------------------------------------------"

          result=0
        fi
      fi
      if test $result -eq 1; then
        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
printf "%s\n" "done" >&6; }
      fi
    else
      result=1
    fi

    if test $result -eq 1; then
      if test $ENABLE_LINK_DYNAMIC = "yes"; then
        LIBRARIES="$LIBRARIES burn"
      else
        STATIC_LIBRARIES="$STATIC_LIBRARIES burn"
      fi
      HAVE_BURN=1

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

    fi
  else

    if test $ENABLE_LINK_DYNAMIC = "yes"; then


    ac_result=""
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing burn_disc_write" >&5
printf %s "checking for library containing burn_disc_write... " >&6; }
if test ${ac_cv_search_libraries_burn_disc_write+y}
then :
  printf %s "(cached) " >&6
else $as_nop

            ac_func_search_libraries_save_LIBS=$LIBS

      for ac_library in burn ""; do
        if test -z "$ac_library"; then
          ac_result="none required"
        else
          ac_result=-l$ac_library
          LIBS="-l$ac_library $ac_func_search_libraries_save_LIBS"
        fi

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
`echo |sed 's/ /\n/g'|while read s; do if test -n "$s"; then echo $s|sed 's/\(.*\)/#include <\\1>/g'; fi; done`
int
main (void)
{
`if test -z ""; then echo "extern void burn_disc_write();"; fi`
                                         return (int)burn_disc_write;


  ;
  return 0;
}

_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  ac_cv_search_libraries_burn_disc_write=$ac_result; break

fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      done
      if test ${ac_cv_search_libraries_burn_disc_write+y}
then :

else $as_nop
  ac_cv_search_libraries_burn_disc_write=no
fi

            LIBS=$ac_func_search_libraries_save_LIBS


fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_libraries_burn_disc_write" >&5
printf "%s\n" "$ac_cv_search_libraries_burn_disc_write" >&6; }
  ac_result=$ac_cv_search_libraries_burn_disc_write
  if test "$ac_result" != no
then :
  test "$ac_result" = "none required" || LIBS="$ac_result $LIBS" HAVE_BURN=1;LIBRARIES="burn $LIBRARIES";
printf "%s\n" "#define HAVE_BURN 1" >>confdefs.h

fi

    else
      if test -z "$HAVE_BURN"; then


    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for static library containing burn_disc_write" >&5
printf %s "checking for static library containing burn_disc_write... " >&6; }
if test ${ac_cv_search_static_burn_disc_write+y}
then :
  printf %s "(cached) " >&6
else $as_nop

            ac_func_search_static_libraries_save_CFLAGS="$CFLAGS"
      ac_func_search_static_libraries_save_LIBS="$LIBS"

            CFLAGS="$CFLAGS"
      ac_libraries=""
      for ac_library in burn; do
        if test -n "$ac_libraries"; then
          ac_libraries="$ac_libraries -l$ac_library"
        else
          ac_libraries="-l$ac_library"
        fi
      done
      LIBS="-Wl,-Bstatic $ac_libraries -Wl,-Bdynamic $ac_func_search_static_libraries_save_LIBS"
      if test -z "$ac_libraries"; then
        ac_result="none required"
      else
        ac_result=$ac_libraries
      fi
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
`echo |sed 's/ /\n/g'|while read s; do if test -n "$s"; then echo $s|sed 's/\(.*\)/#include <\\1>/g'; fi; done`
int
main (void)
{
`if test -z ""; then echo "extern void burn_disc_write();"; fi`
                                       return (int)burn_disc_write;


  ;
  return 0;
}

_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  ac_cv_search_static_burn_disc_write=$ac_result; break

fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if test ${ac_cv_search_static_burn_disc_write+y}
then :

else $as_nop
  ac_cv_search_static_burn_disc_write=no
fi

            LIBS=$ac_func_search_static_libraries_save_LIBS
      CFLAGS=$ac_func_search_static_libraries_save_CFLAGS


fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_static_burn_disc_write" >&5
printf "%s\n" "$ac_cv_search_static_burn_disc_write" >&6; }
  ac_result=$ac_cv_search_static_burn_disc_write
  if test "$ac_result" != no
then :
  test "$ac_result" = "none required" || LIBS="$ac_result $LIBS" HAVE_BURN=1;STATIC_LIBRARIES="$STATIC_LIBRARIES burn";
printf "%s\n" "#define HAVE_BURN 1" >>confdefs.h

fi

      fi
      if test -z "$HAVE_BURN"; then


    ac_result=""
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing burn_disc_write" >&5
printf %s "checking for library containing burn_disc_write... " >&6; }
if test ${ac_cv_search_libraries_burn_disc_write+y}
then :
  printf %s "(cached) " >&6
else $as_nop

            ac_func_search_libraries_save_LIBS=$LIBS

      for ac_library in burn ""; do
        if test -z "$ac_library"; then
          ac_result="none required"
        else
          ac_result=-l$ac_library
          LIBS="-l$ac_library $ac_func_search_libraries_save_LIBS"
        fi

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
`echo |sed 's/ /\n/g'|while read s; do if test -n "$s"; then echo $s|sed 's/\(.*\)/#include <\\1>/g'; fi; done`
int
main (void)
{
`if test -z ""; then echo "extern void burn_disc_write();"; fi`
                                         return (int)burn_disc_write;


  ;
  return 0;
}

_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  ac_cv_search_libraries_burn_disc_write=$ac_result; break

fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      done
      if test ${ac_cv_search_libraries_burn_disc_write+y}
then :

else $as_nop
  ac_cv_search_libraries_burn_disc_write=no
fi

            LIBS=$ac_func_search_libraries_save_LIBS


fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_libraries_burn_disc_write" >&5
printf "%s\n" "$ac_cv_search_libraries_burn_disc_write" >&6; }
  ac_result=$ac_cv_search_libraries_burn_disc_write
  if test "$ac_result" != no
then :
  test "$ac_result" = "none required" || LIBS="$ac_result $LIBS" HAVE_BURN=1;LIBRARIES="burn $LIBRARIES";
printf "%s\n" "#define HAVE_BURN 1" >>confdefs.h

fi

      fi
    fi
  fi

    case $host_os in
    linux-*)
      ;;
    sunos | solaris*)
      ;;
    darwin*)
      ;;
    windows*|mingw*)
      ;;
  esac

  if test -z "$HAVE_BURN"; then
    if test ! \( -d libburn -o -d "`readlink libburn`" \); then
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: libburn not compiled: libburn package missing" >&5
printf "%s\n" "$as_me: WARNING: libburn not compiled: libburn package missing" >&2;}
    fi
  fi
fi

# compile/use libmount
if test $ENABLE_MOUNT = "yes"; then
  if test -d util-linux -o -d "`readlink util-linux`"; then
    if test "$ENABLE_EXTERN_COMPILE" = "yes"; then
      cwd=`pwd`


  printf %s "compile libmount... " >&6

      result=1
      if test $result -eq 1; then
        (cd util-linux; ./autogen.sh) 1>$tmpFile 2>&1
        if test $? -ne 0; then
          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: fail (autogen)" >&5
printf "%s\n" "fail (autogen)" >&6; }

  printf "%s\n" "--- error log -------------------------------------------------------------------------"
  cat $tmpFile | while read s; do printf "%s\n" "  $s"; done
  printf "%s\n" "---------------------------------------------------------------------------------------"

          result=0
        fi
      fi
      if test $result -eq 1; then
        case $host_os in
          linux-* | sunos | solaris* | darwin*)
            (cd util-linux; CC="$CC" CPPFLAGS="" CFLAGS="" CXXFLAGS="" AS="$AS" LD="$LD" LDFLAGS="" LIBS="-lpthread" AR="$AR" RANLIB="$RANLIB" WINDRES="$WINDRES" ./configure \
              --host=$host \
              --build=$build \
              --prefix=$cwd/extern \
              --disable-all-programs --enable-libmount --enable-libblkid \
            ) 1>$tmpFile 2>&1
            ;;
          windows*|mingw*)
            ;;
        esac
        if test $? -ne 0; then
          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: fail (configure)" >&5
printf "%s\n" "fail (configure)" >&6; }

  printf "%s\n" "--- error log -------------------------------------------------------------------------"
  cat $tmpFile | while read s; do printf "%s\n" "  $s"; done
  printf "%s\n" "---------------------------------------------------------------------------------------"

          result=0
        fi
      fi
      if test $result -eq 1; then
        (cd util-linux; \
         make -j$CPU_CORES; \
        ) 1>$tmpFile 2>&1
        if test $? -ne 0; then
          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: fail (make)" >&5
printf "%s\n" "fail (make)" >&6; }

  printf "%s\n" "--- error log -------------------------------------------------------------------------"
  cat $tmpFile | while read s; do printf "%s\n" "  $s"; done
  printf "%s\n" "---------------------------------------------------------------------------------------"

          result=0
        fi
      fi
      if test $result -eq 1; then
        (cd util-linux; make install PREFIX=$cwd/extern) 1>$tmpFile 2>&1
        if test $? -ne 0; then
          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: fail (install)" >&5
printf "%s\n" "fail (install)" >&6; }

  printf "%s\n" "--- error log -------------------------------------------------------------------------"
  cat $tmpFile | while read s; do printf "%s\n" "  $s"; done
  printf "%s\n" "---------------------------------------------------------------------------------------"

          result=0
        fi
      fi
      if test $result -eq 1; then
        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
printf "%s\n" "done" >&6; }
      fi
    else
      result=1
    fi

    if test $result -eq 1; then
      if test $ENABLE_LINK_DYNAMIC = "yes"; then
        LIBRARIES="$LIBRARIES mount blkid"
      else
        STATIC_LIBRARIES="$STATIC_LIBRARIES mount blkid"
      fi
      HAVE_MOUNT=1

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

    fi
  else

    if test $ENABLE_LINK_DYNAMIC = "yes"; then


    ac_result=""
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing mnt_new_table_from_file" >&5
printf %s "checking for library containing mnt_new_table_from_file... " >&6; }
if test ${ac_cv_search_libraries_mnt_new_table_from_file+y}
then :
  printf %s "(cached) " >&6
else $as_nop

            ac_func_search_libraries_save_LIBS=$LIBS

      for ac_library in mount ""; do
        if test -z "$ac_library"; then
          ac_result="none required"
        else
          ac_result=-l$ac_library
          LIBS="-l$ac_library $ac_func_search_libraries_save_LIBS"
        fi

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
`echo |sed 's/ /\n/g'|while read s; do if test -n "$s"; then echo $s|sed 's/\(.*\)/#include <\\1>/g'; fi; done`
int
main (void)
{
`if test -z ""; then echo "extern void mnt_new_table_from_file();"; fi`
                                         return (int)mnt_new_table_from_file;


  ;
  return 0;
}

_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  ac_cv_search_libraries_mnt_new_table_from_file=$ac_result; break

fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      done
      if test ${ac_cv_search_libraries_mnt_new_table_from_file+y}
then :

else $as_nop
  ac_cv_search_libraries_mnt_new_table_from_file=no
fi

            LIBS=$ac_func_search_libraries_save_LIBS


fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_libraries_mnt_new_table_from_file" >&5
printf "%s\n" "$ac_cv_search_libraries_mnt_new_table_from_file" >&6; }
  ac_result=$ac_cv_search_libraries_mnt_new_table_from_file
  if test "$ac_result" != no
then :
  test "$ac_result" = "none required" || LIBS="$ac_result $LIBS" HAVE_MOUNT=1;LIBRARIES="mount blkid $LIBRARIES";
printf "%s\n" "#define HAVE_MOUNT 1" >>confdefs.h

fi

    else
      if test -z "$HAVE_MOUNT"; then


    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for static library containing mnt_new_table_from_file" >&5
printf %s "checking for static library containing mnt_new_table_from_file... " >&6; }
if test ${ac_cv_search_static_mnt_new_table_from_file+y}
then :
  printf %s "(cached) " >&6
else $as_nop

            ac_func_search_static_libraries_save_CFLAGS="$CFLAGS"
      ac_func_search_static_libraries_save_LIBS="$LIBS"

            CFLAGS="$CFLAGS"
      ac_libraries=""
      for ac_library in mount; do
        if test -n "$ac_libraries"; then
          ac_libraries="$ac_libraries -l$ac_library"
        else
          ac_libraries="-l$ac_library"
        fi
      done
      LIBS="-Wl,-Bstatic $ac_libraries -Wl,-Bdynamic $ac_func_search_static_libraries_save_LIBS"
      if test -z "$ac_libraries"; then
        ac_result="none required"
      else
        ac_result=$ac_libraries
      fi
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
`echo |sed 's/ /\n/g'|while read s; do if test -n "$s"; then echo $s|sed 's/\(.*\)/#include <\\1>/g'; fi; done`
int
main (void)
{
`if test -z ""; then echo "extern void mnt_new_table_from_file();"; fi`
                                       return (int)mnt_new_table_from_file;


  ;
  return 0;
}

_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  ac_cv_search_static_mnt_new_table_from_file=$ac_result; break

fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if test ${ac_cv_search_static_mnt_new_table_from_file+y}
then :

else $as_nop
  ac_cv_search_static_mnt_new_table_from_file=no
fi

            LIBS=$ac_func_search_static_libraries_save_LIBS
      CFLAGS=$ac_func_search_static_libraries_save_CFLAGS


fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_static_mnt_new_table_from_file" >&5
printf "%s\n" "$ac_cv_search_static_mnt_new_table_from_file" >&6; }
  ac_result=$ac_cv_search_static_mnt_new_table_from_file
  if test "$ac_result" != no
then :
  test "$ac_result" = "none required" || LIBS="$ac_result $LIBS" HAVE_MOUNT=1;STATIC_LIBRARIES="$STATIC_LIBRARIES mount blkid";
printf "%s\n" "#define HAVE_MOUNT 1" >>confdefs.h

fi

      fi
      if test -z "$HAVE_MOUNT"; then


    ac_result=""
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing mnt_new_table_from_file" >&5
printf %s "checking for library containing mnt_new_table_from_file... " >&6; }
if test ${ac_cv_search_libraries_mnt_new_table_from_file+y}
then :
  printf %s "(cached) " >&6
else $as_nop

            ac_func_search_libraries_save_LIBS=$LIBS

      for ac_library in mount ""; do
        if test -z "$ac_library"; then
          ac_result="none required"
        else
          ac_result=-l$ac_library
          LIBS="-l$ac_library $ac_func_search_libraries_save_LIBS"
        fi

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
`echo |sed 's/ /\n/g'|while read s; do if test -n "$s"; then echo $s|sed 's/\(.*\)/#include <\\1>/g'; fi; done`
int
main (void)
{
`if test -z ""; then echo "extern void mnt_new_table_from_file();"; fi`
                                         return (int)mnt_new_table_from_file;


  ;
  return 0;
}

_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  ac_cv_search_libraries_mnt_new_table_from_file=$ac_result; break

fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      done
      if test ${ac_cv_search_libraries_mnt_new_table_from_file+y}
then :

else $as_nop
  ac_cv_search_libraries_mnt_new_table_from_file=no
fi

            LIBS=$ac_func_search_libraries_save_LIBS


fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_libraries_mnt_new_table_from_file" >&5
printf "%s\n" "$ac_cv_search_libraries_mnt_new_table_from_file" >&6; }
  ac_result=$ac_cv_search_libraries_mnt_new_table_from_file
  if test "$ac_result" != no
then :
  test "$ac_result" = "none required" || LIBS="$ac_result $LIBS" HAVE_MOUNT=1;LIBRARIES="mount blkid $LIBRARIES";
printf "%s\n" "#define HAVE_MOUNT 1" >>confdefs.h

fi

      fi
    fi
  fi

    case $host_os in
    linux-*)
      ;;
    sunos | solaris*)
      ;;
    darwin*)
      ;;
    windows*|mingw*)
      ;;
  esac

  if test -z "$HAVE_MOUNT"; then
    if test ! \( -d util-linux -o -d "`readlink util-linux`" \); then
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: libmount not compiled: util-linux package missing" >&5
printf "%s\n" "$as_me: WARNING: libmount not compiled: util-linux package missing" >&2;}
    fi
  fi
fi

# compile pthreads-w32
case $host_os in
  linux-*)
    ;;
  sunos | solaris*)
    ;;
  darwin*)
    ;;
  windows*|mingw*)
    if test $ENABLE_PTHREADS_W32 = "yes"; then
      if test -d pthreads-w32 -o -d "`readlink pthreads-w32`"; then
        if test "$ENABLE_EXTERN_COMPILE" = "yes"; then
          cwd=`pwd`


  printf %s "compile pthreads-w32... " >&6

          result=1
          if test $result -eq 1; then
            # patch to fix warnings:
            #   diff -u pthreads-w32-2-9-1-release.org pthreads-w32-2-9-1-release > pthreads-w32-2-9-1-release.patch
#TODO            (cd pthreads-w32; $PATCH --batch -N -p1 < $SOURCE_DIR/misc/pthreads-w32-2-9-1-release.patch) 1>$tmpFile 2>&1
            if test $? -ne 0; then
              { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: fail (patch)" >&5
printf "%s\n" "fail (patch)" >&6; }

  printf "%s\n" "--- error log -------------------------------------------------------------------------"
  cat $tmpFile | while read s; do printf "%s\n" "  $s"; done
  printf "%s\n" "---------------------------------------------------------------------------------------"

              result=0
            fi
          fi
          if test $result -eq 1; then
            if test "$ENABLE_DEBUG" = "yes"; then
              (cd pthreads-w32; make clean; make CROSS="$host-" GC-static-debug) 1>$tmpFile 2>&1
            else
              (cd pthreads-w32; make clean; make CROSS="$host-" GC-static) 1>$tmpFile 2>&1
            fi
            if test $? -ne 0; then
              { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: fail (make)" >&5
printf "%s\n" "fail (make)" >&6; }

  printf "%s\n" "--- error log -------------------------------------------------------------------------"
  cat $tmpFile | while read s; do printf "%s\n" "  $s"; done
  printf "%s\n" "---------------------------------------------------------------------------------------"

              result=0
            fi
          fi
          if test $result -eq 1; then
            (cd pthreads-w32; install -m 644 pthread.h sched.h semaphore.h $cwd/extern/include) 1>/dev/null
            (cd pthreads-w32; install -m 644 libpthreadGC2.a $cwd/extern/lib) 1>/dev/null
          fi
          if test $result -eq 1; then
            { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
printf "%s\n" "done" >&6; }
          fi
        else
          result=1
        fi

        if test $result -eq 1; then
          CC_DEFINES="$CC_DEFINES PTW32_STATIC_LIB"
          if test $ENABLE_LINK_DYNAMIC = "yes"; then
            LIBRARIES="$LIBRARIES pthreadGC2"
          else
            STATIC_LIBRARIES="$STATIC_LIBRARIES pthreadGC2"
          fi
          HAVE_PTHREADS_W32=1

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

        fi
      fi
    fi
    ;;
esac

# compile/use binutils
if test $ENABLE_BFD = "yes"; then
  if test -d binutils -o -d "`readlink binutils`"; then
    if test "$ENABLE_EXTERN_COMPILE" = "yes"; then
      cwd=`pwd`


  printf %s "compile bfd... " >&6

      result=1
      if test $result -eq 1; then
        # patch to fix memory leak
        #   diff -u binutils-2.32.org/bfd/dwarf2.c binutils-2.32/bfd/dwarf2.c > ../misc/binutils-2.32-dwarf2-leak.patch
#TODO        (cd extern/binutils-2.32; $PATCH --batch -N -p1 < $SOURCE_DIR/misc/binutils-2.32-dwarf2-leak.patch) 1>$tmpFile 2>&1
        if test $? -ne 0; then
          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: fail (patch)" >&5
printf "%s\n" "fail (patch)" >&6; }

  printf "%s\n" "--- error log -------------------------------------------------------------------------"
  cat $tmpFile | while read s; do printf "%s\n" "  $s"; done
  printf "%s\n" "---------------------------------------------------------------------------------------"

          result=0
        fi
        # Note: - fix distlean
        #       - use cpu+os to avoid "unknown" in name which cause
        #         using of wrong tool names by binutils build!
        (cd binutils; make distclean; find . -type f -name config.cache | xargs rm) 1>/dev/null 2>&1
#            --host=$build_cpu-$build_os

        if test "$ENABLE_DEBUG" = "yes"; then
          (cd binutils; CC="" CFLAGS="-g -O0" CXXFLAGS="-g -O0" LD="" LDFLAGS="" ./configure \
            --host=$host \
            --build=$build \
            --prefix=$cwd/extern \
            --disable-host-shared \
            --disable-ld \
          ) 1>$tmpFile 2>&1
        else
          (cd binutils; CC="" CFLAGS="" CXXFLAGS="" LD="" LDFLAGS="" ./configure \
            --host=$host \
            --build=$build \
            --prefix=$cwd/extern \
            --disable-host-shared \
            --disable-ld \
          ) 1>$tmpFile 2>&1
        fi
        if test $? -ne 0; then
          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: fail (configure)" >&5
printf "%s\n" "fail (configure)" >&6; }

  printf "%s\n" "--- error log -------------------------------------------------------------------------"
  cat $tmpFile | while read s; do printf "%s\n" "  $s"; done
  printf "%s\n" "---------------------------------------------------------------------------------------"

          result=0
        fi
      fi
      if test $result -eq 1; then
        (cd binutils; make clean; make -j$CPU_CORES) 1>$tmpFile 2>&1
        if test $? -ne 0; then
          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: fail (make)" >&5
printf "%s\n" "fail (make)" >&6; }

  printf "%s\n" "--- error log -------------------------------------------------------------------------"
  cat $tmpFile | while read s; do printf "%s\n" "  $s"; done
  printf "%s\n" "---------------------------------------------------------------------------------------"

          result=0
        fi
      fi
      if test $result -eq 1; then
        (cd binutils; make install PREFIX=$cwd/extern) 1>$tmpFile 2>&1
        if test $? -ne 0; then
          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: fail (install)" >&5
printf "%s\n" "fail (install)" >&6; }

  printf "%s\n" "--- error log -------------------------------------------------------------------------"
  cat $tmpFile | while read s; do printf "%s\n" "  $s"; done
  printf "%s\n" "---------------------------------------------------------------------------------------"

          result=0
        fi

        # fix incomplete install: does not install all header files?
        install -d $cwd/extern/include
        install -m 644 binutils/include/libiberty.h binutils/include/demangle.h $cwd/extern/include
        install -d $cwd/extern/lib
        install -m 644 binutils/libiberty/libiberty.a $cwd/extern/lib
      fi
      if test $result -eq 1; then
        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
printf "%s\n" "done" >&6; }
      fi
    else
      result=1
    fi

    if test $result -eq 1; then
      # PACKAGE required to make bfd.h happy
      CC_DEFINES="$CC_DEFINES PACKAGE"
      CC_INCLUDES="$CC_INCLUDES $cwd/extern/include"
      if test $ENABLE_LINK_DYNAMIC = "yes"; then
        LIBRARIES="$LIBRARIES bfd sframe iberty z"
      else
        STATIC_LIBRARIES="$STATIC_LIBRARIES bfd sframe iberty z"
      fi
      HAVE_BFD=1

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


      for ac_prog in dump_syms
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_DUMP_SYMS+y}
then :
  printf %s "(cached) " >&6
else $as_nop
  case $DUMP_SYMS in
  [\\/]* | ?:[\\/]*)
  ac_cv_path_DUMP_SYMS="$DUMP_SYMS" # 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_DUMP_SYMS="$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
fi
DUMP_SYMS=$ac_cv_path_DUMP_SYMS
if test -n "$DUMP_SYMS"; then
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMP_SYMS" >&5
printf "%s\n" "$DUMP_SYMS" >&6; }
else
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; }
fi


  test -n "$DUMP_SYMS" && break
done

    fi
  else

    if test $ENABLE_LINK_DYNAMIC = "yes"; then


    ac_result=""
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing bfd_init" >&5
printf %s "checking for library containing bfd_init... " >&6; }
if test ${ac_cv_search_libraries_bfd_init+y}
then :
  printf %s "(cached) " >&6
else $as_nop

            ac_func_search_libraries_save_LIBS=$LIBS

      for ac_library in bfd ""; do
        if test -z "$ac_library"; then
          ac_result="none required"
        else
          ac_result=-l$ac_library
          LIBS="-l$ac_library $ac_func_search_libraries_save_LIBS"
        fi

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
`echo |sed 's/ /\n/g'|while read s; do if test -n "$s"; then echo $s|sed 's/\(.*\)/#include <\\1>/g'; fi; done`
int
main (void)
{
`if test -z ""; then echo "extern void bfd_init();"; fi`
                                         return (int)bfd_init;


  ;
  return 0;
}

_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  ac_cv_search_libraries_bfd_init=$ac_result; break

fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      done
      if test ${ac_cv_search_libraries_bfd_init+y}
then :

else $as_nop
  ac_cv_search_libraries_bfd_init=no
fi

            LIBS=$ac_func_search_libraries_save_LIBS


fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_libraries_bfd_init" >&5
printf "%s\n" "$ac_cv_search_libraries_bfd_init" >&6; }
  ac_result=$ac_cv_search_libraries_bfd_init
  if test "$ac_result" != no
then :
  test "$ac_result" = "none required" || LIBS="$ac_result $LIBS" HAVE_BFD=1;LIBRARIES="$LIBRARIES bfd iberty z";
printf "%s\n" "#define HAVE_BFD 1" >>confdefs.h

fi

    else
      if test -z "$HAVE_BFD"; then


    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for static library containing bfd_init" >&5
printf %s "checking for static library containing bfd_init... " >&6; }
if test ${ac_cv_search_static_bfd_init+y}
then :
  printf %s "(cached) " >&6
else $as_nop

            ac_func_search_static_libraries_save_CFLAGS="$CFLAGS"
      ac_func_search_static_libraries_save_LIBS="$LIBS"

            CFLAGS="$CFLAGS"
      ac_libraries=""
      for ac_library in bfd; do
        if test -n "$ac_libraries"; then
          ac_libraries="$ac_libraries -l$ac_library"
        else
          ac_libraries="-l$ac_library"
        fi
      done
      LIBS="-Wl,-Bstatic $ac_libraries -Wl,-Bdynamic $ac_func_search_static_libraries_save_LIBS"
      if test -z "$ac_libraries"; then
        ac_result="none required"
      else
        ac_result=$ac_libraries
      fi
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
`echo |sed 's/ /\n/g'|while read s; do if test -n "$s"; then echo $s|sed 's/\(.*\)/#include <\\1>/g'; fi; done`
int
main (void)
{
`if test -z ""; then echo "extern void bfd_init();"; fi`
                                       return (int)bfd_init;


  ;
  return 0;
}

_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  ac_cv_search_static_bfd_init=$ac_result; break

fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if test ${ac_cv_search_static_bfd_init+y}
then :

else $as_nop
  ac_cv_search_static_bfd_init=no
fi

            LIBS=$ac_func_search_static_libraries_save_LIBS
      CFLAGS=$ac_func_search_static_libraries_save_CFLAGS


fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_static_bfd_init" >&5
printf "%s\n" "$ac_cv_search_static_bfd_init" >&6; }
  ac_result=$ac_cv_search_static_bfd_init
  if test "$ac_result" != no
then :
  test "$ac_result" = "none required" || LIBS="$ac_result $LIBS" HAVE_BFD=1;STATIC_LIBRARIES="$STATIC_LIBRARIES bfd iberty z";
printf "%s\n" "#define HAVE_BFD 1" >>confdefs.h

fi

      fi
      if test -z "$HAVE_BFD"; then


    ac_result=""
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing bfd_init" >&5
printf %s "checking for library containing bfd_init... " >&6; }
if test ${ac_cv_search_libraries_bfd_init+y}
then :
  printf %s "(cached) " >&6
else $as_nop

            ac_func_search_libraries_save_LIBS=$LIBS

      for ac_library in bfd ""; do
        if test -z "$ac_library"; then
          ac_result="none required"
        else
          ac_result=-l$ac_library
          LIBS="-l$ac_library $ac_func_search_libraries_save_LIBS"
        fi

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
`echo |sed 's/ /\n/g'|while read s; do if test -n "$s"; then echo $s|sed 's/\(.*\)/#include <\\1>/g'; fi; done`
int
main (void)
{
`if test -z ""; then echo "extern void bfd_init();"; fi`
                                         return (int)bfd_init;


  ;
  return 0;
}

_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  ac_cv_search_libraries_bfd_init=$ac_result; break

fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      done
      if test ${ac_cv_search_libraries_bfd_init+y}
then :

else $as_nop
  ac_cv_search_libraries_bfd_init=no
fi

            LIBS=$ac_func_search_libraries_save_LIBS


fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_libraries_bfd_init" >&5
printf "%s\n" "$ac_cv_search_libraries_bfd_init" >&6; }
  ac_result=$ac_cv_search_libraries_bfd_init
  if test "$ac_result" != no
then :
  test "$ac_result" = "none required" || LIBS="$ac_result $LIBS" HAVE_BFD=1;LIBRARIES="$LIBRARIES bfd iberty z";
printf "%s\n" "#define HAVE_BFD 1" >>confdefs.h

fi

      fi
    fi
  fi

  if test -z "$HAVE_BFD"; then
    if test ! \( -d binutils -o -d "`readlink binutils`" \); then
      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: libbfd not compiled: binutils package missing" >&5
printf "%s\n" "$as_me: WARNING: libbfd not compiled: binutils package missing" >&2;}
    fi
  fi
fi

# check mandatory extern software for full version
# Check whether --enable-extern-check was given.
if test ${enable_extern_check+y}
then :
  enableval=$enable_extern_check;
   if test $HAVE_ICU
then :

else $as_nop
  as_fn_error $? "icu missing" "$LINENO" 5
fi
   if test $HAVE_BZ2
then :

else $as_nop
  as_fn_error $? "bzip2 missing" "$LINENO" 5
fi
   if test $HAVE_LZMA
then :

else $as_nop
  as_fn_error $? "lzma missing" "$LINENO" 5
fi
   if test $HAVE_LZO
then :

else $as_nop
  as_fn_error $? "lzo missing" "$LINENO" 5
fi
   if test $HAVE_LZ4
then :

else $as_nop
  as_fn_error $? "lz4 missing" "$LINENO" 5
fi
   if test $HAVE_ZSTD
then :

else $as_nop
  as_fn_error $? "zstd missing" "$LINENO" 5
fi
   if test $HAVE_XDELTA3
then :

else $as_nop
  as_fn_error $? "xdelta3 missing" "$LINENO" 5
fi
   if test $HAVE_GCRYPT
then :

else $as_nop
  as_fn_error $? "gcrypt missing" "$LINENO" 5
fi
   if test $HAVE_FTP
then :

else $as_nop
  as_fn_error $? "ftp missing" "$LINENO" 5
fi
   if test $HAVE_CARES
then :

else $as_nop
  as_fn_error $? "c-ares missing" "$LINENO" 5
fi
   if test $HAVE_CURL
then :

else $as_nop
  as_fn_error $? "curl missing" "$LINENO" 5
fi
   if test $HAVE_MXML
then :

else $as_nop
  as_fn_error $? "mxml missing" "$LINENO" 5
fi
   if test $HAVE_SSL
then :

else $as_nop
  as_fn_error $? "ssl missing" "$LINENO" 5
fi
   if test $HAVE_SSH2
then :

else $as_nop
  as_fn_error $? "ssh2 missing" "$LINENO" 5
fi
   if test $HAVE_GNU_TLS
then :

else $as_nop
  as_fn_error $? "GNU TLS missing" "$LINENO" 5
fi
   if test $HAVE_MARIADB
then :

else $as_nop
  as_fn_error $? "MariaDB missing" "$LINENO" 5
fi
   if test $HAVE_POSTGRESQL
then :

else $as_nop
  as_fn_error $? "PostgreSQL missing" "$LINENO" 5
fi
   if test $HAVE_ISO9660
then :

else $as_nop
  as_fn_error $? "ISO9660 missing" "$LINENO" 5
fi
   if test $HAVE_SMB2
then :

else $as_nop
  as_fn_error $? "smb2 missing" "$LINENO" 5
fi
   if test $HAVE_PCRE
then :

else $as_nop
  as_fn_error $? "PCRE missing" "$LINENO" 5
fi
   if test $HAVE_PAR2
then :

else $as_nop
  as_fn_error $? "PAR2 missing" "$LINENO" 5
fi
   if test $HAVE_ISOFS
then :

else $as_nop
  as_fn_error $? "isofs missing" "$LINENO" 5
fi
   if test $HAVE_XFS
then :

else $as_nop
  as_fn_error $? "xfs missing" "$LINENO" 5
fi
   if test $HAVE_BURN
then :

else $as_nop
  as_fn_error $? "burn missing" "$LINENO" 5
fi
   if test $HAVE_MOUNT
then :

else $as_nop
  as_fn_error $? "mount missing" "$LINENO" 5
fi


fi



# set toolchain settings for tests (Note: do not move ) at the end!)

  CPPFLAGS="$CPP_FLAGS"
  CFLAGS="$CC_FLAGS -v"
  CXXFLAGS="$CXX_FLAGS -v"
  for z in $CC_DEFINES ""; do
    if test -n "$z"; then
      CPPFLAGS="$CPPFLAGS -D$z"
      CFLAGS="$CFLAGS -D$z"
    fi
  done
  for z in $CC_INCLUDES ""; do
    if test -n "$z"; then
      CPPFLAGS="$CPPFLAGS -I$z"
      CFLAGS="$CFLAGS -I$z"
    fi
  done
  LDFLAGS="$LD_FLAGS"
  for z in $LIBRARY_PATHS ""; do
    if test -n "$z"; then
      LDFLAGS="$LDFLAGS -L$z"
    fi
  done
  LIBS=""
  for z in $STATIC_LIBRARIES ""; do
    if test -n "$z"; then
      LIBS="$LIBS -l$z"
    fi
  done
  for z in $LIBRARIES ""; do
    if test -n "$z"; then
      LIBS="$LIBS -l$z"
    fi
  done
  for z in $STATIC_LIBRARIES ""; do
    if test -n "$z"; then
      LIBS="$LIBS -l$z"
    fi
  done
  for z in $LIBRARIES ""; do
    if test -n "$z"; then
      LIBS="$LIBS -l$z"
    fi
  done

  # some host tests need dynamic libraries
  export LD_LIBRARY_PATH=`pwd`/extern/lib


# headers
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
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" "bfd.h" "ac_cv_header_bfd_h" "$ac_includes_default"
if test "x$ac_cv_header_bfd_h" = xyes
then :
  printf "%s\n" "#define HAVE_BFD_H 1" >>confdefs.h

fi
ac_fn_c_check_header_compile "$LINENO" "blkid/blkid.h" "ac_cv_header_blkid_blkid_h" "$ac_includes_default"
if test "x$ac_cv_header_blkid_blkid_h" = xyes
then :
  printf "%s\n" "#define HAVE_BLKID_BLKID_H 1" >>confdefs.h

fi
ac_fn_c_check_header_compile "$LINENO" "demangle.h" "ac_cv_header_demangle_h" "$ac_includes_default"
if test "x$ac_cv_header_demangle_h" = xyes
then :
  printf "%s\n" "#define HAVE_DEMANGLE_H 1" >>confdefs.h

fi
ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
if test "x$ac_cv_header_dlfcn_h" = xyes
then :
  printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h

fi
ac_fn_c_check_header_compile "$LINENO" "elf.h" "ac_cv_header_elf_h" "$ac_includes_default"
if test "x$ac_cv_header_elf_h" = xyes
then :
  printf "%s\n" "#define HAVE_ELF_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" "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" "icu.h" "ac_cv_header_icu_h" "$ac_includes_default"
if test "x$ac_cv_header_icu_h" = xyes
then :
  printf "%s\n" "#define HAVE_ICU_H 1" >>confdefs.h

fi
ac_fn_c_check_header_compile "$LINENO" "libiberty/demangle.h" "ac_cv_header_libiberty_demangle_h" "$ac_includes_default"
if test "x$ac_cv_header_libiberty_demangle_h" = xyes
then :
  printf "%s\n" "#define HAVE_LIBIBERTY_DEMANGLE_H 1" >>confdefs.h

fi
ac_fn_c_check_header_compile "$LINENO" "libintl.h" "ac_cv_header_libintl_h" "$ac_includes_default"
if test "x$ac_cv_header_libintl_h" = xyes
then :
  printf "%s\n" "#define HAVE_LIBINTL_H 1" >>confdefs.h

fi
ac_fn_c_check_header_compile "$LINENO" "libmount/libmount.h" "ac_cv_header_libmount_libmount_h" "$ac_includes_default"
if test "x$ac_cv_header_libmount_libmount_h" = xyes
then :
  printf "%s\n" "#define HAVE_LIBMOUNT_LIBMOUNT_H 1" >>confdefs.h

fi
ac_fn_c_check_header_compile "$LINENO" "libpq-fe.h" "ac_cv_header_libpq_fe_h" "$ac_includes_default"
if test "x$ac_cv_header_libpq_fe_h" = xyes
then :
  printf "%s\n" "#define HAVE_LIBPQ_FE_H 1" >>confdefs.h

fi
ac_fn_c_check_header_compile "$LINENO" "link.h" "ac_cv_header_link_h" "$ac_includes_default"
if test "x$ac_cv_header_link_h" = xyes
then :
  printf "%s\n" "#define HAVE_LINK_H 1" >>confdefs.h

fi
ac_fn_c_check_header_compile "$LINENO" "linux/fs.h" "ac_cv_header_linux_fs_h" "$ac_includes_default"
if test "x$ac_cv_header_linux_fs_h" = xyes
then :
  printf "%s\n" "#define HAVE_LINUX_FS_H 1" >>confdefs.h

fi
ac_fn_c_check_header_compile "$LINENO" "linux/tcp.h" "ac_cv_header_linux_tcp_h" "$ac_includes_default"
if test "x$ac_cv_header_linux_tcp_h" = xyes
then :
  printf "%s\n" "#define HAVE_LINUX_TCP_H 1" >>confdefs.h

fi
ac_fn_c_check_header_compile "$LINENO" "mntent.h" "ac_cv_header_mntent_h" "$ac_includes_default"
if test "x$ac_cv_header_mntent_h" = xyes
then :
  printf "%s\n" "#define HAVE_MNTENT_H 1" >>confdefs.h

fi
ac_fn_c_check_header_compile "$LINENO" "mariadb/mysql.h" "ac_cv_header_mariadb_mysql_h" "$ac_includes_default"
if test "x$ac_cv_header_mariadb_mysql_h" = xyes
then :
  printf "%s\n" "#define HAVE_MARIADB_MYSQL_H 1" >>confdefs.h

fi
ac_fn_c_check_header_compile "$LINENO" "mariadb/errmsg.h" "ac_cv_header_mariadb_errmsg_h" "$ac_includes_default"
if test "x$ac_cv_header_mariadb_errmsg_h" = xyes
then :
  printf "%s\n" "#define HAVE_MARIADB_ERRMSG_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" "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" "poll.h" "ac_cv_header_poll_h" "$ac_includes_default"
if test "x$ac_cv_header_poll_h" = xyes
then :
  printf "%s\n" "#define HAVE_POLL_H 1" >>confdefs.h

fi
ac_fn_c_check_header_compile "$LINENO" "regex.h" "ac_cv_header_regex_h" "$ac_includes_default"
if test "x$ac_cv_header_regex_h" = xyes
then :
  printf "%s\n" "#define HAVE_REGEX_H 1" >>confdefs.h

fi
ac_fn_c_check_header_compile "$LINENO" "stdbool.h" "ac_cv_header_stdbool_h" "$ac_includes_default"
if test "x$ac_cv_header_stdbool_h" = xyes
then :
  printf "%s\n" "#define HAVE_STDBOOL_H 1" >>confdefs.h

fi
ac_fn_c_check_header_compile "$LINENO" "sys/inotify.h" "ac_cv_header_sys_inotify_h" "$ac_includes_default"
if test "x$ac_cv_header_sys_inotify_h" = xyes
then :
  printf "%s\n" "#define HAVE_SYS_INOTIFY_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/mount.h" "ac_cv_header_sys_mount_h" "$ac_includes_default"
if test "x$ac_cv_header_sys_mount_h" = xyes
then :
  printf "%s\n" "#define HAVE_SYS_MOUNT_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/statfs.h" "ac_cv_header_sys_statfs_h" "$ac_includes_default"
if test "x$ac_cv_header_sys_statfs_h" = xyes
then :
  printf "%s\n" "#define HAVE_SYS_STATFS_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/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default"
if test "x$ac_cv_header_sys_sysmacros_h" = xyes
then :
  printf "%s\n" "#define HAVE_SYS_SYSMACROS_H 1" >>confdefs.h

fi
ac_fn_c_check_header_compile "$LINENO" "sys/utsname.h" "ac_cv_header_sys_utsname_h" "$ac_includes_default"
if test "x$ac_cv_header_sys_utsname_h" = xyes
then :
  printf "%s\n" "#define HAVE_SYS_UTSNAME_H 1" >>confdefs.h

fi
ac_fn_c_check_header_compile "$LINENO" "sys/vfs.h" "ac_cv_header_sys_vfs_h" "$ac_includes_default"
if test "x$ac_cv_header_sys_vfs_h" = xyes
then :
  printf "%s\n" "#define HAVE_SYS_VFS_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" "sys/xattr.h" "ac_cv_header_sys_xattr_h" "$ac_includes_default"
if test "x$ac_cv_header_sys_xattr_h" = xyes
then :
  printf "%s\n" "#define HAVE_SYS_XATTR_H 1" >>confdefs.h

fi
ac_fn_c_check_header_compile "$LINENO" "systemd/sd-daemon.h" "ac_cv_header_systemd_sd_daemon_h" "$ac_includes_default"
if test "x$ac_cv_header_systemd_sd_daemon_h" = xyes
then :
  printf "%s\n" "#define HAVE_SYSTEMD_SD_DAEMON_H 1" >>confdefs.h

fi
ac_fn_c_check_header_compile "$LINENO" "systemd/sd-id128.h" "ac_cv_header_systemd_sd_id128_h" "$ac_includes_default"
if test "x$ac_cv_header_systemd_sd_id128_h" = xyes
then :
  printf "%s\n" "#define HAVE_SYSTEMD_SD_ID128_H 1" >>confdefs.h

fi
ac_fn_c_check_header_compile "$LINENO" "termios.h" "ac_cv_header_termios_h" "$ac_includes_default"
if test "x$ac_cv_header_termios_h" = xyes
then :
  printf "%s\n" "#define HAVE_TERMIOS_H 1" >>confdefs.h

fi
ac_fn_c_check_header_compile "$LINENO" "unicode/utypes.h" "ac_cv_header_unicode_utypes_h" "$ac_includes_default"
if test "x$ac_cv_header_unicode_utypes_h" = xyes
then :
  printf "%s\n" "#define HAVE_UNICODE_UTYPES_H 1" >>confdefs.h

fi
ac_fn_c_check_header_compile "$LINENO" "unicode/uregex.h" "ac_cv_header_unicode_uregex_h" "$ac_includes_default"
if test "x$ac_cv_header_unicode_uregex_h" = xyes
then :
  printf "%s\n" "#define HAVE_UNICODE_UREGEX_H 1" >>confdefs.h

fi
ac_fn_c_check_header_compile "$LINENO" "unicode/ustring.h" "ac_cv_header_unicode_ustring_h" "$ac_includes_default"
if test "x$ac_cv_header_unicode_ustring_h" = xyes
then :
  printf "%s\n" "#define HAVE_UNICODE_USTRING_H 1" >>confdefs.h

fi
ac_fn_c_check_header_compile "$LINENO" "unicode/ucol.h" "ac_cv_header_unicode_ucol_h" "$ac_includes_default"
if test "x$ac_cv_header_unicode_ucol_h" = xyes
then :
  printf "%s\n" "#define HAVE_UNICODE_UCOL_H 1" >>confdefs.h

fi
ac_fn_c_check_header_compile "$LINENO" "uuid/uuid.h" "ac_cv_header_uuid_uuid_h" "$ac_includes_default"
if test "x$ac_cv_header_uuid_uuid_h" = xyes
then :
  printf "%s\n" "#define HAVE_UUID_UUID_H 1" >>confdefs.h

fi
ac_fn_c_check_header_compile "$LINENO" "valgrind/callgrind.h" "ac_cv_header_valgrind_callgrind_h" "$ac_includes_default"
if test "x$ac_cv_header_valgrind_callgrind_h" = xyes
then :
  printf "%s\n" "#define HAVE_VALGRIND_CALLGRIND_H 1" >>confdefs.h

fi




  ac_ext=cpp
ac_cpp='$CXXCPP $CPPFLAGS'
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu

  ac_fn_cxx_check_header_compile "$LINENO" "libpar2.h" "ac_cv_header_libpar2_h" "$ac_includes_default"
if test "x$ac_cv_header_libpar2_h" = xyes
then :

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

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_fn_c_check_header_compile "$LINENO" "sqlite3.h" "ac_cv_header_sqlite3_h" "$ac_includes_default"
if test "x$ac_cv_header_sqlite3_h" = xyes
then :

else $as_nop
  as_fn_error $? "mandatory sqlite3.h is not available" "$LINENO" 5
fi


# defines, constants, types, variables
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" "ulong" "ac_cv_type_ulong" "$ac_includes_default"
if test "x$ac_cv_type_ulong" = xyes
then :

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

fi

ac_fn_c_check_type "$LINENO" "long long int" "ac_cv_type_long_long_int" "$ac_includes_default"
if test "x$ac_cv_type_long_long_int" = xyes
then :

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

fi

cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <limits.h>
int
main (void)
{
long long int x=LLONG_MIN;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :

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

fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <limits.h>
int
main (void)
{
long long int x=LLONG_MAX;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :

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

fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <limits.h>
int
main (void)
{
unsigned long long int x=ULLONG_MAX;
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :

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

fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext

  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if variable attribute __thread is supported" >&5
printf %s "checking if variable attribute __thread is supported... " >&6; }
if test ${ac_cv_variable_attribute___thread+y}
then :
  printf %s "(cached) " >&6
else $as_nop

      ac_supported=no
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
__thread int x;
int
main (void)
{

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

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

elif :
then :

fi
      ac_cv_variable_attribute___thread=$ac_supported


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


  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for needed large files defines" >&5
printf %s "checking for needed large files defines... " >&6; }
if test ${ac_cv_largefile_defines+y}
then :
  printf %s "(cached) " >&6
else $as_nop

if false; then
      cat << \EOF > conftest.c
#include <stdlib.h>
#include <stdio.h>
#include <sys/types.h>
#include <unistd.h>
int main(void) { printf("%p",fopen64); return 0; }
EOF
      ${CC} ${CFLAGS} -Wall -Werror -c conftest.c -o conftest.o 1>/dev/null 2>/dev/null; rc=$?
      if test $rc -eq 0; then
        ac_cv_largefile_defines=""
      else
        ${CC} ${CFLAGS} -Wall -Werror -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -c conftest.c -o conftest.o 1>/dev/null 2>/dev/null; rc=$?
        if test $rc -eq 0; then
          ac_cv_largefile_defines="_FILE_OFFSET_BITS=64 _LARGEFILE_SOURCE _LARGEFILE64_SOURCE"
        else
          ac_cv_largefile_defines=""
        fi
      fi
      rm -f conftest.c conftest.o
fi
      ac_cv_largefile_defines="_FILE_OFFSET_BITS=64 _LARGEFILE_SOURCE _LARGEFILE64_SOURCE"

      CC_DEFINES="$CC_DEFINES $ac_cv_largefile_defines"


fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_largefile_defines" >&5
printf "%s\n" "$ac_cv_largefile_defines" >&6; }
# 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 long" >&5
printf %s "checking size of unsigned long... " >&6; }
if test ${ac_cv_sizeof_unsigned_long+y}
then :
  printf %s "(cached) " >&6
else $as_nop
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long"        "$ac_includes_default"
then :

else $as_nop
  if test "$ac_cv_type_unsigned_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 (unsigned long)
See \`config.log' for more details" "$LINENO" 5; }
   else
     ac_cv_sizeof_unsigned_long=0
   fi
fi

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



printf "%s\n" "#define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_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 unsigned long long" >&5
printf %s "checking size of unsigned long long... " >&6; }
if test ${ac_cv_sizeof_unsigned_long_long+y}
then :
  printf %s "(cached) " >&6
else $as_nop
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long long))" "ac_cv_sizeof_unsigned_long_long"        "$ac_includes_default"
then :

else $as_nop
  if test "$ac_cv_type_unsigned_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 (unsigned long long)
See \`config.log' for more details" "$LINENO" 5; }
   else
     ac_cv_sizeof_unsigned_long_long=0
   fi
fi

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



printf "%s\n" "#define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_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 void *" >&5
printf %s "checking size of void *... " >&6; }
if test ${ac_cv_sizeof_void_p+y}
then :
  printf %s "(cached) " >&6
else $as_nop
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p"        "$ac_includes_default"
then :

else $as_nop
  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
fi

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 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 $as_nop
  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t"        "$ac_includes_default"
then :

else $as_nop
  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
fi

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



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if static_assert() is supported" >&5
printf %s "checking if static_assert() is supported... " >&6; }
if test ${ac_cv_static_assert+y}
then :
  printf %s "(cached) " >&6
else $as_nop

      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
`echo |sed 's/ /\n/g'|while read s; do if test -n "$s"; then echo $s|sed 's/\(.*\)/#include <\\1>/g'; fi; done`
int
main (void)
{
`if test -z ""; then echo "#include <assert.h>"; fi`
                                       static_assert(1 == 1,"test");


  ;
  return 0;
}

_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  ac_cv_static_assert=yes
else $as_nop
  ac_cv_static_assert=no

fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext


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

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

fi


if test $ENABLE_LINK_DYNAMIC = "yes"; then


    ac_result=""
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing uuid_generate" >&5
printf %s "checking for library containing uuid_generate... " >&6; }
if test ${ac_cv_search_libraries_uuid_generate+y}
then :
  printf %s "(cached) " >&6
else $as_nop

            ac_func_search_libraries_save_LIBS=$LIBS

      for ac_library in uuid ""; do
        if test -z "$ac_library"; then
          ac_result="none required"
        else
          ac_result=-l$ac_library
          LIBS="-l$ac_library $ac_func_search_libraries_save_LIBS"
        fi

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
`echo uuid/uuid.h|sed 's/ /\n/g'|while read s; do if test -n "$s"; then echo $s|sed 's/\(.*\)/#include <\\1>/g'; fi; done`
int
main (void)
{
`if test -z "uuid/uuid.h"; then echo "extern void uuid_generate();"; fi`
                                         return (int)uuid_generate;


  ;
  return 0;
}

_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  ac_cv_search_libraries_uuid_generate=$ac_result; break

fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      done
      if test ${ac_cv_search_libraries_uuid_generate+y}
then :

else $as_nop
  ac_cv_search_libraries_uuid_generate=no
fi

            LIBS=$ac_func_search_libraries_save_LIBS


fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_libraries_uuid_generate" >&5
printf "%s\n" "$ac_cv_search_libraries_uuid_generate" >&6; }
  ac_result=$ac_cv_search_libraries_uuid_generate
  if test "$ac_result" != no
then :
  test "$ac_result" = "none required" || LIBS="$ac_result $LIBS" LIBRARIES="$LIBRARIES uuid"
fi

else


    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for static library containing uuid_generate" >&5
printf %s "checking for static library containing uuid_generate... " >&6; }
if test ${ac_cv_search_static_uuid_generate+y}
then :
  printf %s "(cached) " >&6
else $as_nop

            ac_func_search_static_libraries_save_CFLAGS="$CFLAGS"
      ac_func_search_static_libraries_save_LIBS="$LIBS"

            CFLAGS="$CFLAGS"
      ac_libraries=""
      for ac_library in uuid; do
        if test -n "$ac_libraries"; then
          ac_libraries="$ac_libraries -l$ac_library"
        else
          ac_libraries="-l$ac_library"
        fi
      done
      LIBS="-Wl,-Bstatic $ac_libraries -Wl,-Bdynamic $ac_func_search_static_libraries_save_LIBS"
      if test -z "$ac_libraries"; then
        ac_result="none required"
      else
        ac_result=$ac_libraries
      fi
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
`echo uuid/uuid.h|sed 's/ /\n/g'|while read s; do if test -n "$s"; then echo $s|sed 's/\(.*\)/#include <\\1>/g'; fi; done`
int
main (void)
{
`if test -z "uuid/uuid.h"; then echo "extern void uuid_generate();"; fi`
                                       return (int)uuid_generate;


  ;
  return 0;
}

_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  ac_cv_search_static_uuid_generate=$ac_result; break

fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if test ${ac_cv_search_static_uuid_generate+y}
then :

else $as_nop
  ac_cv_search_static_uuid_generate=no
fi

            LIBS=$ac_func_search_static_libraries_save_LIBS
      CFLAGS=$ac_func_search_static_libraries_save_CFLAGS


fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_static_uuid_generate" >&5
printf "%s\n" "$ac_cv_search_static_uuid_generate" >&6; }
  ac_result=$ac_cv_search_static_uuid_generate
  if test "$ac_result" != no
then :
  test "$ac_result" = "none required" || LIBS="$ac_result $LIBS" STATIC_LIBRARIES="$STATIC_LIBRARIES uuid"
fi

fi
case $host_os in
  linux-*)
    if test $ENABLE_LINK_DYNAMIC = "yes"; then


    ac_result=""
  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing idn_free" >&5
printf %s "checking for library containing idn_free... " >&6; }
if test ${ac_cv_search_libraries_idn_free+y}
then :
  printf %s "(cached) " >&6
else $as_nop

            ac_func_search_libraries_save_LIBS=$LIBS

      for ac_library in idn2 ""; do
        if test -z "$ac_library"; then
          ac_result="none required"
        else
          ac_result=-l$ac_library
          LIBS="-l$ac_library $ac_func_search_libraries_save_LIBS"
        fi

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
`echo idn-free.h|sed 's/ /\n/g'|while read s; do if test -n "$s"; then echo $s|sed 's/\(.*\)/#include <\\1>/g'; fi; done`
int
main (void)
{
`if test -z "idn-free.h"; then echo "extern void idn_free();"; fi`
                                         return (int)idn_free;


  ;
  return 0;
}

_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  ac_cv_search_libraries_idn_free=$ac_result; break

fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      done
      if test ${ac_cv_search_libraries_idn_free+y}
then :

else $as_nop
  ac_cv_search_libraries_idn_free=no
fi

            LIBS=$ac_func_search_libraries_save_LIBS


fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_libraries_idn_free" >&5
printf "%s\n" "$ac_cv_search_libraries_idn_free" >&6; }
  ac_result=$ac_cv_search_libraries_idn_free
  if test "$ac_result" != no
then :
  test "$ac_result" = "none required" || LIBS="$ac_result $LIBS" LIBRARIES="$LIBRARIES idn2"
fi

    else


    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for static library containing idn_free" >&5
printf %s "checking for static library containing idn_free... " >&6; }
if test ${ac_cv_search_static_idn_free+y}
then :
  printf %s "(cached) " >&6
else $as_nop

            ac_func_search_static_libraries_save_CFLAGS="$CFLAGS"
      ac_func_search_static_libraries_save_LIBS="$LIBS"

            CFLAGS="$CFLAGS"
      ac_libraries=""
      for ac_library in idn2; do
        if test -n "$ac_libraries"; then
          ac_libraries="$ac_libraries -l$ac_library"
        else
          ac_libraries="-l$ac_library"
        fi
      done
      LIBS="-Wl,-Bstatic $ac_libraries -Wl,-Bdynamic $ac_func_search_static_libraries_save_LIBS"
      if test -z "$ac_libraries"; then
        ac_result="none required"
      else
        ac_result=$ac_libraries
      fi
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
`echo idn-free.h|sed 's/ /\n/g'|while read s; do if test -n "$s"; then echo $s|sed 's/\(.*\)/#include <\\1>/g'; fi; done`
int
main (void)
{
`if test -z "idn-free.h"; then echo "extern void idn_free();"; fi`
                                       return (int)idn_free;


  ;
  return 0;
}

_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  ac_cv_search_static_idn_free=$ac_result; break

fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      if test ${ac_cv_search_static_idn_free+y}
then :

else $as_nop
  ac_cv_search_static_idn_free=no
fi

            LIBS=$ac_func_search_static_libraries_save_LIBS
      CFLAGS=$ac_func_search_static_libraries_save_CFLAGS


fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_static_idn_free" >&5
printf "%s\n" "$ac_cv_search_static_idn_free" >&6; }
  ac_result=$ac_cv_search_static_idn_free
  if test "$ac_result" != no
then :
  test "$ac_result" = "none required" || LIBS="$ac_result $LIBS" STATIC_LIBRARIES="$STATIC_LIBRARIES idn2"
fi

    fi
    ;;
  sunos | solaris*)
    ;;
  darwin*)
    ;;
  windows*|mingw*)
    ;;
esac


# set toolchain settings for tests (Note: do not move ) at the end!)

  CPPFLAGS="$CPP_FLAGS"
  CFLAGS="$CC_FLAGS -v"
  CXXFLAGS="$CXX_FLAGS -v"
  for z in $CC_DEFINES ""; do
    if test -n "$z"; then
      CPPFLAGS="$CPPFLAGS -D$z"
      CFLAGS="$CFLAGS -D$z"
    fi
  done
  for z in $CC_INCLUDES ""; do
    if test -n "$z"; then
      CPPFLAGS="$CPPFLAGS -I$z"
      CFLAGS="$CFLAGS -I$z"
    fi
  done
  LDFLAGS="$LD_FLAGS"
  for z in $LIBRARY_PATHS ""; do
    if test -n "$z"; then
      LDFLAGS="$LDFLAGS -L$z"
    fi
  done
  LIBS=""
  for z in $STATIC_LIBRARIES ""; do
    if test -n "$z"; then
      LIBS="$LIBS -l$z"
    fi
  done
  for z in $LIBRARIES ""; do
    if test -n "$z"; then
      LIBS="$LIBS -l$z"
    fi
  done
  for z in $STATIC_LIBRARIES ""; do
    if test -n "$z"; then
      LIBS="$LIBS -l$z"
    fi
  done
  for z in $LIBRARIES ""; do
    if test -n "$z"; then
      LIBS="$LIBS -l$z"
    fi
  done

  # some host tests need dynamic libraries
  export LD_LIBRARY_PATH=`pwd`/extern/lib


# check required defines


  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for needed pthread defines" >&5
printf %s "checking for needed pthread defines... " >&6; }
if test ${ac_cv_extended_pthread_defines+y}
then :
  printf %s "(cached) " >&6
else $as_nop

      cat << \EOF > conftest.c
#include <stdlib.h>
#include <stdio.h>
#include <pthread.h>
int main(void) { printf("%p",pthread_mutexattr_settype); return 0; }
EOF
      ${CC} ${CFLAGS} -Wall -Werror -c conftest.c -o conftest.o 1>/dev/null 2>/dev/null; rc=$?
      if test $rc -eq 0; then
        ac_cv_extended_pthread_defines=""
      else
        ${CC} ${CFLAGS} -Wall -Werror -D_GNU_SOURCE -c conftest.c -o conftest.o 1>/dev/null 2>/dev/null; rc=$?
        if test $rc -eq 0; then
          ac_cv_extended_pthread_defines="_GNU_SOURCE"
        else
          ac_cv_extended_pthread_defines=""
        fi
      fi
      rm -f conftest.c conftest.o
      CC_DEFINES="$CC_DEFINES $ac_cv_extended_pthread_defines"


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

# check constants


  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if constant SIGBUS is available" >&5
printf %s "checking if constant SIGBUS is available... " >&6; }
if test ${ac_cv_const_SIGBUS+y}
then :
  printf %s "(cached) " >&6
else $as_nop

      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
`echo signal.h|sed 's/ /\n/g'|while read s; do if test -n "$s"; then echo $s|sed 's/\(.*\)/#include <\\1>/g'; fi; done`
int
main (void)
{
int i = (int)SIGBUS;
                                          return 0;


  ;
  return 0;
}

_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  ac_cv_const_SIGBUS=yes;
printf "%s\n" "#define HAVE_SIGBUS 1" >>confdefs.h

else $as_nop
  ac_cv_const_SIGBUS=no;

fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext


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


  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if constant SIGQUIT is available" >&5
printf %s "checking if constant SIGQUIT is available... " >&6; }
if test ${ac_cv_const_SIGQUIT+y}
then :
  printf %s "(cached) " >&6
else $as_nop

      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
`echo signal.h|sed 's/ /\n/g'|while read s; do if test -n "$s"; then echo $s|sed 's/\(.*\)/#include <\\1>/g'; fi; done`
int
main (void)
{
int i = (int)SIGQUIT;
                                          return 0;


  ;
  return 0;
}

_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  ac_cv_const_SIGQUIT=yes;
printf "%s\n" "#define HAVE_SIGQUIT 1" >>confdefs.h

else $as_nop
  ac_cv_const_SIGQUIT=no;

fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext


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


  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if constant SIGALRM is available" >&5
printf %s "checking if constant SIGALRM is available... " >&6; }
if test ${ac_cv_const_SIGALRM+y}
then :
  printf %s "(cached) " >&6
else $as_nop

      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
`echo signal.h|sed 's/ /\n/g'|while read s; do if test -n "$s"; then echo $s|sed 's/\(.*\)/#include <\\1>/g'; fi; done`
int
main (void)
{
int i = (int)SIGALRM;
                                          return 0;


  ;
  return 0;
}

_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  ac_cv_const_SIGALRM=yes;
printf "%s\n" "#define HAVE_SIGALRM 1" >>confdefs.h

else $as_nop
  ac_cv_const_SIGALRM=no;

fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext


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


  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if constant SIGUSR1 is available" >&5
printf %s "checking if constant SIGUSR1 is available... " >&6; }
if test ${ac_cv_const_SIGUSR1+y}
then :
  printf %s "(cached) " >&6
else $as_nop

      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
`echo signal.h|sed 's/ /\n/g'|while read s; do if test -n "$s"; then echo $s|sed 's/\(.*\)/#include <\\1>/g'; fi; done`
int
main (void)
{
int i = (int)SIGUSR1;
                                          return 0;


  ;
  return 0;
}

_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  ac_cv_const_SIGUSR1=yes;
printf "%s\n" "#define HAVE_SIGUSR1 1" >>confdefs.h

else $as_nop
  ac_cv_const_SIGUSR1=no;

fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext


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


  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if constant S_IRUSR is available" >&5
printf %s "checking if constant S_IRUSR is available... " >&6; }
if test ${ac_cv_const_S_IRUSR+y}
then :
  printf %s "(cached) " >&6
else $as_nop

      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
`echo sys/stat.h|sed 's/ /\n/g'|while read s; do if test -n "$s"; then echo $s|sed 's/\(.*\)/#include <\\1>/g'; fi; done`
int
main (void)
{
int i = (int)S_IRUSR;
                                          return 0;


  ;
  return 0;
}

_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  ac_cv_const_S_IRUSR=yes;
printf "%s\n" "#define HAVE_S_IRUSR 1" >>confdefs.h

else $as_nop
  ac_cv_const_S_IRUSR=no;

fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext


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


  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if constant S_IWUSR is available" >&5
printf %s "checking if constant S_IWUSR is available... " >&6; }
if test ${ac_cv_const_S_IWUSR+y}
then :
  printf %s "(cached) " >&6
else $as_nop

      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
`echo sys/stat.h|sed 's/ /\n/g'|while read s; do if test -n "$s"; then echo $s|sed 's/\(.*\)/#include <\\1>/g'; fi; done`
int
main (void)
{
int i = (int)S_IWUSR;
                                          return 0;


  ;
  return 0;
}

_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  ac_cv_const_S_IWUSR=yes;
printf "%s\n" "#define HAVE_S_IWUSR 1" >>confdefs.h

else $as_nop
  ac_cv_const_S_IWUSR=no;

fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext


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


  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if constant S_IXUSR is available" >&5
printf %s "checking if constant S_IXUSR is available... " >&6; }
if test ${ac_cv_const_S_IXUSR+y}
then :
  printf %s "(cached) " >&6
else $as_nop

      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
`echo sys/stat.h|sed 's/ /\n/g'|while read s; do if test -n "$s"; then echo $s|sed 's/\(.*\)/#include <\\1>/g'; fi; done`
int
main (void)
{
int i = (int)S_IXUSR;
                                          return 0;


  ;
  return 0;
}

_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  ac_cv_const_S_IXUSR=yes;
printf "%s\n" "#define HAVE_S_IXUSR 1" >>confdefs.h

else $as_nop
  ac_cv_const_S_IXUSR=no;

fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext


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


  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if constant S_IRGRP is available" >&5
printf %s "checking if constant S_IRGRP is available... " >&6; }
if test ${ac_cv_const_S_IRGRP+y}
then :
  printf %s "(cached) " >&6
else $as_nop

      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
`echo sys/stat.h|sed 's/ /\n/g'|while read s; do if test -n "$s"; then echo $s|sed 's/\(.*\)/#include <\\1>/g'; fi; done`
int
main (void)
{
int i = (int)S_IRGRP;
                                          return 0;


  ;
  return 0;
}

_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  ac_cv_const_S_IRGRP=yes;
printf "%s\n" "#define HAVE_S_IRGRP 1" >>confdefs.h

else $as_nop
  ac_cv_const_S_IRGRP=no;

fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext


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


  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if constant S_IWGRP is available" >&5
printf %s "checking if constant S_IWGRP is available... " >&6; }
if test ${ac_cv_const_S_IWGRP+y}
then :
  printf %s "(cached) " >&6
else $as_nop

      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
`echo sys/stat.h|sed 's/ /\n/g'|while read s; do if test -n "$s"; then echo $s|sed 's/\(.*\)/#include <\\1>/g'; fi; done`
int
main (void)
{
int i = (int)S_IWGRP;
                                          return 0;


  ;
  return 0;
}

_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  ac_cv_const_S_IWGRP=yes;
printf "%s\n" "#define HAVE_S_IWGRP 1" >>confdefs.h

else $as_nop
  ac_cv_const_S_IWGRP=no;

fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext


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


  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if constant S_IXGRP is available" >&5
printf %s "checking if constant S_IXGRP is available... " >&6; }
if test ${ac_cv_const_S_IXGRP+y}
then :
  printf %s "(cached) " >&6
else $as_nop

      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
`echo sys/stat.h|sed 's/ /\n/g'|while read s; do if test -n "$s"; then echo $s|sed 's/\(.*\)/#include <\\1>/g'; fi; done`
int
main (void)
{
int i = (int)S_IXGRP;
                                          return 0;


  ;
  return 0;
}

_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  ac_cv_const_S_IXGRP=yes;
printf "%s\n" "#define HAVE_S_IXGRP 1" >>confdefs.h

else $as_nop
  ac_cv_const_S_IXGRP=no;

fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext


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


  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if constant S_IROTH is available" >&5
printf %s "checking if constant S_IROTH is available... " >&6; }
if test ${ac_cv_const_S_IROTH+y}
then :
  printf %s "(cached) " >&6
else $as_nop

      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
`echo sys/stat.h|sed 's/ /\n/g'|while read s; do if test -n "$s"; then echo $s|sed 's/\(.*\)/#include <\\1>/g'; fi; done`
int
main (void)
{
int i = (int)S_IROTH;
                                          return 0;


  ;
  return 0;
}

_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  ac_cv_const_S_IROTH=yes;
printf "%s\n" "#define HAVE_S_IROTH 1" >>confdefs.h

else $as_nop
  ac_cv_const_S_IROTH=no;

fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext


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


  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if constant S_IWOTH is available" >&5
printf %s "checking if constant S_IWOTH is available... " >&6; }
if test ${ac_cv_const_S_IWOTH+y}
then :
  printf %s "(cached) " >&6
else $as_nop

      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
`echo sys/stat.h|sed 's/ /\n/g'|while read s; do if test -n "$s"; then echo $s|sed 's/\(.*\)/#include <\\1>/g'; fi; done`
int
main (void)
{
int i = (int)S_IWOTH;
                                          return 0;


  ;
  return 0;
}

_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  ac_cv_const_S_IWOTH=yes;
printf "%s\n" "#define HAVE_S_IWOTH 1" >>confdefs.h

else $as_nop
  ac_cv_const_S_IWOTH=no;

fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext


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


  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if constant S_IXOTH is available" >&5
printf %s "checking if constant S_IXOTH is available... " >&6; }
if test ${ac_cv_const_S_IXOTH+y}
then :
  printf %s "(cached) " >&6
else $as_nop

      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
`echo sys/stat.h|sed 's/ /\n/g'|while read s; do if test -n "$s"; then echo $s|sed 's/\(.*\)/#include <\\1>/g'; fi; done`
int
main (void)
{
int i = (int)S_IXOTH;
                                          return 0;


  ;
  return 0;
}

_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  ac_cv_const_S_IXOTH=yes;
printf "%s\n" "#define HAVE_S_IXOTH 1" >>confdefs.h

else $as_nop
  ac_cv_const_S_IXOTH=no;

fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext


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


  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if constant S_ISUID is available" >&5
printf %s "checking if constant S_ISUID is available... " >&6; }
if test ${ac_cv_const_S_ISUID+y}
then :
  printf %s "(cached) " >&6
else $as_nop

      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
`echo sys/stat.h|sed 's/ /\n/g'|while read s; do if test -n "$s"; then echo $s|sed 's/\(.*\)/#include <\\1>/g'; fi; done`
int
main (void)
{
int i = (int)S_ISUID;
                                          return 0;


  ;
  return 0;
}

_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  ac_cv_const_S_ISUID=yes;
printf "%s\n" "#define HAVE_S_ISUID 1" >>confdefs.h

else $as_nop
  ac_cv_const_S_ISUID=no;

fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext


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


  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if constant S_ISGID is available" >&5
printf %s "checking if constant S_ISGID is available... " >&6; }
if test ${ac_cv_const_S_ISGID+y}
then :
  printf %s "(cached) " >&6
else $as_nop

      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
`echo sys/stat.h|sed 's/ /\n/g'|while read s; do if test -n "$s"; then echo $s|sed 's/\(.*\)/#include <\\1>/g'; fi; done`
int
main (void)
{
int i = (int)S_ISGID;
                                          return 0;


  ;
  return 0;
}

_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  ac_cv_const_S_ISGID=yes;
printf "%s\n" "#define HAVE_S_ISGID 1" >>confdefs.h

else $as_nop
  ac_cv_const_S_ISGID=no;

fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext


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


  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if constant S_ISVTX is available" >&5
printf %s "checking if constant S_ISVTX is available... " >&6; }
if test ${ac_cv_const_S_ISVTX+y}
then :
  printf %s "(cached) " >&6
else $as_nop

      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
`echo sys/stat.h|sed 's/ /\n/g'|while read s; do if test -n "$s"; then echo $s|sed 's/\(.*\)/#include <\\1>/g'; fi; done`
int
main (void)
{
int i = (int)S_ISVTX;
                                          return 0;


  ;
  return 0;
}

_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  ac_cv_const_S_ISVTX=yes;
printf "%s\n" "#define HAVE_S_ISVTX 1" >>confdefs.h

else $as_nop
  ac_cv_const_S_ISVTX=no;

fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext


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


  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if constant FS_IOC_GETFLAGS is available" >&5
printf %s "checking if constant FS_IOC_GETFLAGS is available... " >&6; }
if test ${ac_cv_const_FS_IOC_GETFLAGS+y}
then :
  printf %s "(cached) " >&6
else $as_nop

      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
`echo linux/fs.h|sed 's/ /\n/g'|while read s; do if test -n "$s"; then echo $s|sed 's/\(.*\)/#include <\\1>/g'; fi; done`
int
main (void)
{
int i = (int)FS_IOC_GETFLAGS;
                                          return 0;


  ;
  return 0;
}

_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  ac_cv_const_FS_IOC_GETFLAGS=yes;
printf "%s\n" "#define HAVE_FS_IOC_GETFLAGS 1" >>confdefs.h

else $as_nop
  ac_cv_const_FS_IOC_GETFLAGS=no;

fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext


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


  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if constant FS_COMPR_FL is available" >&5
printf %s "checking if constant FS_COMPR_FL is available... " >&6; }
if test ${ac_cv_const_FS_COMPR_FL+y}
then :
  printf %s "(cached) " >&6
else $as_nop

      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
`echo linux/fs.h|sed 's/ /\n/g'|while read s; do if test -n "$s"; then echo $s|sed 's/\(.*\)/#include <\\1>/g'; fi; done`
int
main (void)
{
int i = (int)FS_COMPR_FL;
                                          return 0;


  ;
  return 0;
}

_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  ac_cv_const_FS_COMPR_FL=yes;
printf "%s\n" "#define HAVE_FS_COMPR_FL 1" >>confdefs.h

else $as_nop
  ac_cv_const_FS_COMPR_FL=no;

fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext


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


  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if constant FS_NOCOMP_FL is available" >&5
printf %s "checking if constant FS_NOCOMP_FL is available... " >&6; }
if test ${ac_cv_const_FS_NOCOMP_FL+y}
then :
  printf %s "(cached) " >&6
else $as_nop

      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
`echo linux/fs.h|sed 's/ /\n/g'|while read s; do if test -n "$s"; then echo $s|sed 's/\(.*\)/#include <\\1>/g'; fi; done`
int
main (void)
{
int i = (int)FS_NOCOMP_FL;
                                          return 0;


  ;
  return 0;
}

_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  ac_cv_const_FS_NOCOMP_FL=yes;
printf "%s\n" "#define HAVE_FS_NOCOMP_FL 1" >>confdefs.h

else $as_nop
  ac_cv_const_FS_NOCOMP_FL=no;

fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext


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


  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if constant FS_IMMUTABLE_FL is available" >&5
printf %s "checking if constant FS_IMMUTABLE_FL is available... " >&6; }
if test ${ac_cv_const_FS_IMMUTABLE_FL+y}
then :
  printf %s "(cached) " >&6
else $as_nop

      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
`echo linux/fs.h|sed 's/ /\n/g'|while read s; do if test -n "$s"; then echo $s|sed 's/\(.*\)/#include <\\1>/g'; fi; done`
int
main (void)
{
int i = (int)FS_IMMUTABLE_FL;
                                          return 0;


  ;
  return 0;
}

_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  ac_cv_const_FS_IMMUTABLE_FL=yes;
printf "%s\n" "#define HAVE_FS_IMMUTABLE_FL 1" >>confdefs.h

else $as_nop
  ac_cv_const_FS_IMMUTABLE_FL=no;

fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext


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


  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if constant FS_APPEND_FL is available" >&5
printf %s "checking if constant FS_APPEND_FL is available... " >&6; }
if test ${ac_cv_const_FS_APPEND_FL+y}
then :
  printf %s "(cached) " >&6
else $as_nop

      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
`echo linux/fs.h|sed 's/ /\n/g'|while read s; do if test -n "$s"; then echo $s|sed 's/\(.*\)/#include <\\1>/g'; fi; done`
int
main (void)
{
int i = (int)FS_APPEND_FL;
                                          return 0;


  ;
  return 0;
}

_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  ac_cv_const_FS_APPEND_FL=yes;
printf "%s\n" "#define HAVE_FS_APPEND_FL 1" >>confdefs.h

else $as_nop
  ac_cv_const_FS_APPEND_FL=no;

fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext


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


  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if constant FS_NODUMP_FL is available" >&5
printf %s "checking if constant FS_NODUMP_FL is available... " >&6; }
if test ${ac_cv_const_FS_NODUMP_FL+y}
then :
  printf %s "(cached) " >&6
else $as_nop

      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
`echo linux/fs.h|sed 's/ /\n/g'|while read s; do if test -n "$s"; then echo $s|sed 's/\(.*\)/#include <\\1>/g'; fi; done`
int
main (void)
{
int i = (int)FS_NODUMP_FL;
                                          return 0;


  ;
  return 0;
}

_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  ac_cv_const_FS_NODUMP_FL=yes;
printf "%s\n" "#define HAVE_FS_NODUMP_FL 1" >>confdefs.h

else $as_nop
  ac_cv_const_FS_NODUMP_FL=no;

fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext


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


  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if constant BLKSSZGET is available" >&5
printf %s "checking if constant BLKSSZGET is available... " >&6; }
if test ${ac_cv_const_BLKSSZGET+y}
then :
  printf %s "(cached) " >&6
else $as_nop

      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
`echo sys/mount.h|sed 's/ /\n/g'|while read s; do if test -n "$s"; then echo $s|sed 's/\(.*\)/#include <\\1>/g'; fi; done`
int
main (void)
{
int i = (int)BLKSSZGET;
                                          return 0;


  ;
  return 0;
}

_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  ac_cv_const_BLKSSZGET=yes;
printf "%s\n" "#define HAVE_BLKSSZGET 1" >>confdefs.h

else $as_nop
  ac_cv_const_BLKSSZGET=no;

fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext


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


  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if constant BLKGETSIZE is available" >&5
printf %s "checking if constant BLKGETSIZE is available... " >&6; }
if test ${ac_cv_const_BLKGETSIZE+y}
then :
  printf %s "(cached) " >&6
else $as_nop

      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
`echo sys/mount.h|sed 's/ /\n/g'|while read s; do if test -n "$s"; then echo $s|sed 's/\(.*\)/#include <\\1>/g'; fi; done`
int
main (void)
{
int i = (int)BLKGETSIZE;
                                          return 0;


  ;
  return 0;
}

_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  ac_cv_const_BLKGETSIZE=yes;
printf "%s\n" "#define HAVE_BLKGETSIZE 1" >>confdefs.h

else $as_nop
  ac_cv_const_BLKGETSIZE=no;

fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext


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


  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if constant O_LARGEFILE is available" >&5
printf %s "checking if constant O_LARGEFILE is available... " >&6; }
if test ${ac_cv_const_O_LARGEFILE+y}
then :
  printf %s "(cached) " >&6
else $as_nop

      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
`echo sys/types.h sys/stat.h fcntl.h|sed 's/ /\n/g'|while read s; do if test -n "$s"; then echo $s|sed 's/\(.*\)/#include <\\1>/g'; fi; done`
int
main (void)
{
int i = (int)O_LARGEFILE;
                                          return 0;


  ;
  return 0;
}

_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  ac_cv_const_O_LARGEFILE=yes;
printf "%s\n" "#define HAVE_O_LARGEFILE 1" >>confdefs.h

else $as_nop
  ac_cv_const_O_LARGEFILE=no;

fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext


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


  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if constant O_DIRECTORY is available" >&5
printf %s "checking if constant O_DIRECTORY is available... " >&6; }
if test ${ac_cv_const_O_DIRECTORY+y}
then :
  printf %s "(cached) " >&6
else $as_nop

      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
`echo sys/types.h sys/stat.h fcntl.h|sed 's/ /\n/g'|while read s; do if test -n "$s"; then echo $s|sed 's/\(.*\)/#include <\\1>/g'; fi; done`
int
main (void)
{
int i = (int)O_DIRECTORY;
                                          return 0;


  ;
  return 0;
}

_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  ac_cv_const_O_DIRECTORY=yes;
printf "%s\n" "#define HAVE_O_DIRECTORY 1" >>confdefs.h

else $as_nop
  ac_cv_const_O_DIRECTORY=no;

fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext


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


  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if constant O_NOATIME is available" >&5
printf %s "checking if constant O_NOATIME is available... " >&6; }
if test ${ac_cv_const_O_NOATIME+y}
then :
  printf %s "(cached) " >&6
else $as_nop

      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
`echo sys/types.h sys/stat.h fcntl.h|sed 's/ /\n/g'|while read s; do if test -n "$s"; then echo $s|sed 's/\(.*\)/#include <\\1>/g'; fi; done`
int
main (void)
{
int i = (int)O_NOATIME;
                                          return 0;


  ;
  return 0;
}

_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  ac_cv_const_O_NOATIME=yes;
printf "%s\n" "#define HAVE_O_NOATIME 1" >>confdefs.h

else $as_nop
  ac_cv_const_O_NOATIME=no;

fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext


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


  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if constant O_NOCTTY is available" >&5
printf %s "checking if constant O_NOCTTY is available... " >&6; }
if test ${ac_cv_const_O_NOCTTY+y}
then :
  printf %s "(cached) " >&6
else $as_nop

      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
`echo sys/types.h sys/stat.h fcntl.h|sed 's/ /\n/g'|while read s; do if test -n "$s"; then echo $s|sed 's/\(.*\)/#include <\\1>/g'; fi; done`
int
main (void)
{
int i = (int)O_NOCTTY;
                                          return 0;


  ;
  return 0;
}

_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  ac_cv_const_O_NOCTTY=yes;
printf "%s\n" "#define HAVE_O_NOCTTY 1" >>confdefs.h

else $as_nop
  ac_cv_const_O_NOCTTY=no;

fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext


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


  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if constant O_NONBLOCK is available" >&5
printf %s "checking if constant O_NONBLOCK is available... " >&6; }
if test ${ac_cv_const_O_NONBLOCK+y}
then :
  printf %s "(cached) " >&6
else $as_nop

      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
`echo sys/types.h sys/stat.h fcntl.h|sed 's/ /\n/g'|while read s; do if test -n "$s"; then echo $s|sed 's/\(.*\)/#include <\\1>/g'; fi; done`
int
main (void)
{
int i = (int)O_NONBLOCK;
                                          return 0;


  ;
  return 0;
}

_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  ac_cv_const_O_NONBLOCK=yes;
printf "%s\n" "#define HAVE_O_NONBLOCK 1" >>confdefs.h

else $as_nop
  ac_cv_const_O_NONBLOCK=no;

fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext


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


  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if constant MSG_NOSIGNAL is available" >&5
printf %s "checking if constant MSG_NOSIGNAL is available... " >&6; }
if test ${ac_cv_const_MSG_NOSIGNAL+y}
then :
  printf %s "(cached) " >&6
else $as_nop

      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
`echo sys/types.h sys/socket.h|sed 's/ /\n/g'|while read s; do if test -n "$s"; then echo $s|sed 's/\(.*\)/#include <\\1>/g'; fi; done`
int
main (void)
{
int i = (int)MSG_NOSIGNAL;
                                          return 0;


  ;
  return 0;
}

_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  ac_cv_const_MSG_NOSIGNAL=yes;
printf "%s\n" "#define HAVE_MSG_NOSIGNAL 1" >>confdefs.h

else $as_nop
  ac_cv_const_MSG_NOSIGNAL=no;

fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext


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


  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if constant TCP_NODELAY is available" >&5
printf %s "checking if constant TCP_NODELAY is available... " >&6; }
if test ${ac_cv_const_TCP_NODELAY+y}
then :
  printf %s "(cached) " >&6
else $as_nop

      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
`echo netinet/tcp.h|sed 's/ /\n/g'|while read s; do if test -n "$s"; then echo $s|sed 's/\(.*\)/#include <\\1>/g'; fi; done`
int
main (void)
{
int i = (int)TCP_NODELAY;
                                          return 0;


  ;
  return 0;
}

_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  ac_cv_const_TCP_NODELAY=yes;
printf "%s\n" "#define HAVE_TCP_NODELAY 1" >>confdefs.h

else $as_nop
  ac_cv_const_TCP_NODELAY=no;

fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext


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



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if constant SIGPIPE is available" >&5
printf %s "checking if constant SIGPIPE is available... " >&6; }
if test ${ac_cv_const_SIGPIPE+y}
then :
  printf %s "(cached) " >&6
else $as_nop

      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
`echo signal.h|sed 's/ /\n/g'|while read s; do if test -n "$s"; then echo $s|sed 's/\(.*\)/#include <\\1>/g'; fi; done`
int
main (void)
{
int i = (int)SIGPIPE;
                                          return 0;


  ;
  return 0;
}

_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  ac_cv_const_SIGPIPE=yes;
printf "%s\n" "#define HAVE_SIGPIPE 1" >>confdefs.h

else $as_nop
  ac_cv_const_SIGPIPE=no;

fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext


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



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if constant _SC_GETPW_R_SIZE_MAX is available" >&5
printf %s "checking if constant _SC_GETPW_R_SIZE_MAX is available... " >&6; }
if test ${ac_cv_const__SC_GETPW_R_SIZE_MAX+y}
then :
  printf %s "(cached) " >&6
else $as_nop

      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
`echo unistd.h limits.h|sed 's/ /\n/g'|while read s; do if test -n "$s"; then echo $s|sed 's/\(.*\)/#include <\\1>/g'; fi; done`
int
main (void)
{
int i = (int)_SC_GETPW_R_SIZE_MAX;
                                          return 0;


  ;
  return 0;
}

_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  ac_cv_const__SC_GETPW_R_SIZE_MAX=yes;
printf "%s\n" "#define HAVE__SC_GETPW_R_SIZE_MAX 1" >>confdefs.h

else $as_nop
  ac_cv_const__SC_GETPW_R_SIZE_MAX=no;

fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext


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


  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if constant _SC_NPROCESSORS_CONF is available" >&5
printf %s "checking if constant _SC_NPROCESSORS_CONF is available... " >&6; }
if test ${ac_cv_const__SC_NPROCESSORS_CONF+y}
then :
  printf %s "(cached) " >&6
else $as_nop

      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
`echo unistd.h limits.h|sed 's/ /\n/g'|while read s; do if test -n "$s"; then echo $s|sed 's/\(.*\)/#include <\\1>/g'; fi; done`
int
main (void)
{
int i = (int)_SC_NPROCESSORS_CONF;
                                          return 0;


  ;
  return 0;
}

_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  ac_cv_const__SC_NPROCESSORS_CONF=yes;
printf "%s\n" "#define HAVE__SC_NPROCESSORS_CONF 1" >>confdefs.h

else $as_nop
  ac_cv_const__SC_NPROCESSORS_CONF=no;

fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext


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

if test $HAVE_SSH2; then


  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if constant CRYPTO_LOCK is available" >&5
printf %s "checking if constant CRYPTO_LOCK is available... " >&6; }
if test ${ac_cv_const_CRYPTO_LOCK+y}
then :
  printf %s "(cached) " >&6
else $as_nop

      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
`echo openssl/crypto.h|sed 's/ /\n/g'|while read s; do if test -n "$s"; then echo $s|sed 's/\(.*\)/#include <\\1>/g'; fi; done`
int
main (void)
{
int i = (int)CRYPTO_LOCK;
                                          return 0;


  ;
  return 0;
}

_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  ac_cv_const_CRYPTO_LOCK=yes;
else $as_nop
  ac_cv_const_CRYPTO_LOCK=no; as_fn_error $? "constant CRYPTO_LOCK is not available" "$LINENO" 5

fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext


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



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if constant IN_EXCL_UNLINK is available" >&5
printf %s "checking if constant IN_EXCL_UNLINK is available... " >&6; }
if test ${ac_cv_const_IN_EXCL_UNLINK+y}
then :
  printf %s "(cached) " >&6
else $as_nop

      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
`echo sys/inotify.h|sed 's/ /\n/g'|while read s; do if test -n "$s"; then echo $s|sed 's/\(.*\)/#include <\\1>/g'; fi; done`
int
main (void)
{
int i = (int)IN_EXCL_UNLINK;
                                          return 0;


  ;
  return 0;
}

_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  ac_cv_const_IN_EXCL_UNLINK=yes;
printf "%s\n" "#define HAVE_IN_EXCL_UNLINK 1" >>confdefs.h

else $as_nop
  ac_cv_const_IN_EXCL_UNLINK=no;

fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext


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



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if constant CURLINFO_CONTENT_LENGTH_DOWNLOAD_T is available" >&5
printf %s "checking if constant CURLINFO_CONTENT_LENGTH_DOWNLOAD_T is available... " >&6; }
if test ${ac_cv_const_CURLINFO_CONTENT_LENGTH_DOWNLOAD_T+y}
then :
  printf %s "(cached) " >&6
else $as_nop

      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
`echo curl/curl.h|sed 's/ /\n/g'|while read s; do if test -n "$s"; then echo $s|sed 's/\(.*\)/#include <\\1>/g'; fi; done`
int
main (void)
{
int i = (int)CURLINFO_CONTENT_LENGTH_DOWNLOAD_T;
                                          return 0;


  ;
  return 0;
}

_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  ac_cv_const_CURLINFO_CONTENT_LENGTH_DOWNLOAD_T=yes;
printf "%s\n" "#define HAVE_CURLINFO_CONTENT_LENGTH_DOWNLOAD_T 1" >>confdefs.h

else $as_nop
  ac_cv_const_CURLINFO_CONTENT_LENGTH_DOWNLOAD_T=no;

fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext


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



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if constant AFS_SUPER_MAGIC is available" >&5
printf %s "checking if constant AFS_SUPER_MAGIC is available... " >&6; }
if test ${ac_cv_const_AFS_SUPER_MAGIC+y}
then :
  printf %s "(cached) " >&6
else $as_nop

      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
`echo linux/magic.h|sed 's/ /\n/g'|while read s; do if test -n "$s"; then echo $s|sed 's/\(.*\)/#include <\\1>/g'; fi; done`
int
main (void)
{
int i = (int)AFS_SUPER_MAGIC;
                                          return 0;


  ;
  return 0;
}

_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  ac_cv_const_AFS_SUPER_MAGIC=yes;
printf "%s\n" "#define HAVE_AFS_SUPER_MAGIC 1" >>confdefs.h

else $as_nop
  ac_cv_const_AFS_SUPER_MAGIC=no;

fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext


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


  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if constant CODA_SUPER_MAGIC is available" >&5
printf %s "checking if constant CODA_SUPER_MAGIC is available... " >&6; }
if test ${ac_cv_const_CODA_SUPER_MAGIC+y}
then :
  printf %s "(cached) " >&6
else $as_nop

      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
`echo linux/magic.h|sed 's/ /\n/g'|while read s; do if test -n "$s"; then echo $s|sed 's/\(.*\)/#include <\\1>/g'; fi; done`
int
main (void)
{
int i = (int)CODA_SUPER_MAGIC;
                                          return 0;


  ;
  return 0;
}

_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  ac_cv_const_CODA_SUPER_MAGIC=yes;
printf "%s\n" "#define HAVE_CODA_SUPER_MAGIC 1" >>confdefs.h

else $as_nop
  ac_cv_const_CODA_SUPER_MAGIC=no;

fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext


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


  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if constant NFS_SUPER_MAGIC is available" >&5
printf %s "checking if constant NFS_SUPER_MAGIC is available... " >&6; }
if test ${ac_cv_const_NFS_SUPER_MAGIC+y}
then :
  printf %s "(cached) " >&6
else $as_nop

      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
`echo linux/magic.h|sed 's/ /\n/g'|while read s; do if test -n "$s"; then echo $s|sed 's/\(.*\)/#include <\\1>/g'; fi; done`
int
main (void)
{
int i = (int)NFS_SUPER_MAGIC;
                                          return 0;


  ;
  return 0;
}

_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  ac_cv_const_NFS_SUPER_MAGIC=yes;
printf "%s\n" "#define HAVE_NFS_SUPER_MAGIC 1" >>confdefs.h

else $as_nop
  ac_cv_const_NFS_SUPER_MAGIC=no;

fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext


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


  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if constant SMB_SUPER_MAGIC is available" >&5
printf %s "checking if constant SMB_SUPER_MAGIC is available... " >&6; }
if test ${ac_cv_const_SMB_SUPER_MAGIC+y}
then :
  printf %s "(cached) " >&6
else $as_nop

      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
`echo linux/magic.h|sed 's/ /\n/g'|while read s; do if test -n "$s"; then echo $s|sed 's/\(.*\)/#include <\\1>/g'; fi; done`
int
main (void)
{
int i = (int)SMB_SUPER_MAGIC;
                                          return 0;


  ;
  return 0;
}

_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  ac_cv_const_SMB_SUPER_MAGIC=yes;
printf "%s\n" "#define HAVE_SMB_SUPER_MAGIC 1" >>confdefs.h

else $as_nop
  ac_cv_const_SMB_SUPER_MAGIC=no;

fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext


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

# check types
ac_fn_c_check_type "$LINENO" "struct stat64" "ac_cv_type_struct_stat64" "#include <sys/stat.h>
"
if test "x$ac_cv_type_struct_stat64" = xyes
then :

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

fi

ac_fn_c_check_type "$LINENO" "struct __stat64" "ac_cv_type_struct___stat64" "#include <sys/stat.h>
"
if test "x$ac_cv_type_struct___stat64" = xyes
then :

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

fi

ac_fn_c_check_type "$LINENO" "struct _stati64" "ac_cv_type_struct__stati64" "#include <sys/stat.h>
"
if test "x$ac_cv_type_struct__stati64" = xyes
then :

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

fi


ac_fn_c_check_type "$LINENO" "sigset_t" "ac_cv_type_sigset_t" "#include <signal.h>
"
if test "x$ac_cv_type_sigset_t" = xyes
then :

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

fi

ac_fn_c_check_type "$LINENO" "siginfo_t" "ac_cv_type_siginfo_t" "#include <signal.h>
"
if test "x$ac_cv_type_siginfo_t" = xyes
then :

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

fi




  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if struct stat.st_atim.tv_nsec is available" >&5
printf %s "checking if struct stat.st_atim.tv_nsec is available... " >&6; }
if { as_var=ac_cv_member_`echo struct stat_st_atim.tv_nsec|tr -c -d a-zA-Z0-9_`; eval test \${$as_var+y}; }
then :
  printf %s "(cached) " >&6
else $as_nop

      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
`echo sys/types.h sys/stat.h fcntl.h|sed 's/ /\n/g'|while read s; do if test -n "$s"; then echo $s|sed 's/\(.*\)/#include <\\1>/g'; fi; done`
int
main (void)
{
int i = &((struct stat*)0)->st_atim.tv_nsec;
                                          return 0;


  ;
  return 0;
}

_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  eval "ac_cv_member_`echo struct stat_st_atim.tv_nsec|tr -c -d a-zA-Z0-9_`=yes";
printf "%s\n" "#define HAVE_STAT_ATIM_TV_NSEC 1" >>confdefs.h

else $as_nop
  eval "ac_cv_member_`echo struct stat_st_atim.tv_nsec|tr -c -d a-zA-Z0-9_`=no";

fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext


fi
eval ac_res=\$ac_cv_member_`echo struct stat_st_atim.tv_nsec|tr -c -d a-zA-Z0-9_`
	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
printf "%s\n" "$ac_res" >&6; }


  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if struct stat.st_mtim.tv_nsec is available" >&5
printf %s "checking if struct stat.st_mtim.tv_nsec is available... " >&6; }
if { as_var=ac_cv_member_`echo struct stat_st_mtim.tv_nsec|tr -c -d a-zA-Z0-9_`; eval test \${$as_var+y}; }
then :
  printf %s "(cached) " >&6
else $as_nop

      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
`echo sys/types.h sys/stat.h fcntl.h|sed 's/ /\n/g'|while read s; do if test -n "$s"; then echo $s|sed 's/\(.*\)/#include <\\1>/g'; fi; done`
int
main (void)
{
int i = &((struct stat*)0)->st_mtim.tv_nsec;
                                          return 0;


  ;
  return 0;
}

_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  eval "ac_cv_member_`echo struct stat_st_mtim.tv_nsec|tr -c -d a-zA-Z0-9_`=yes";
printf "%s\n" "#define HAVE_STAT_MTIM_TV_NSEC 1" >>confdefs.h

else $as_nop
  eval "ac_cv_member_`echo struct stat_st_mtim.tv_nsec|tr -c -d a-zA-Z0-9_`=no";

fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext


fi
eval ac_res=\$ac_cv_member_`echo struct stat_st_mtim.tv_nsec|tr -c -d a-zA-Z0-9_`
	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
printf "%s\n" "$ac_res" >&6; }


  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if struct stat.st_ctim.tv_nsec is available" >&5
printf %s "checking if struct stat.st_ctim.tv_nsec is available... " >&6; }
if { as_var=ac_cv_member_`echo struct stat_st_ctim.tv_nsec|tr -c -d a-zA-Z0-9_`; eval test \${$as_var+y}; }
then :
  printf %s "(cached) " >&6
else $as_nop

      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
`echo sys/types.h sys/stat.h fcntl.h|sed 's/ /\n/g'|while read s; do if test -n "$s"; then echo $s|sed 's/\(.*\)/#include <\\1>/g'; fi; done`
int
main (void)
{
int i = &((struct stat*)0)->st_ctim.tv_nsec;
                                          return 0;


  ;
  return 0;
}

_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
  eval "ac_cv_member_`echo struct stat_st_ctim.tv_nsec|tr -c -d a-zA-Z0-9_`=yes";
printf "%s\n" "#define HAVE_STAT_CTIM_TV_NSEC 1" >>confdefs.h

else $as_nop
  eval "ac_cv_member_`echo struct stat_st_ctim.tv_nsec|tr -c -d a-zA-Z0-9_`=no";

fi
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext


fi
eval ac_res=\$ac_cv_member_`echo struct stat_st_ctim.tv_nsec|tr -c -d a-zA-Z0-9_`
	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
printf "%s\n" "$ac_res" >&6; }

# check functions


  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_attr_setname" >&5
printf %s "checking for pthread_attr_setname... " >&6; }
if test ${ac_cv_func_pthread_attr_setname+y}
then :
  printf %s "(cached) " >&6
else $as_nop

      ac_cv_func_pthread_attr_setname="no"
      echo > conftest.log

      for ac_headers in  ""; do
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <stdint.h>
                                         `echo $ac_headers|sed 's/+/\n/g'|while read s; do if test -n "$s"; then echo $s|sed 's/\(.*\)/#include <\\1>/g'; fi; done`

int
main (void)
{
`if test -z "$ac_headers"; then echo "extern void pthread_attr_setname();"; fi`
                                         #ifdef pthread_attr_setname
                                         #else
                                           return (intptr_t)pthread_attr_setname;
                                         #endif


  ;
  return 0;
}

_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  ac_cv_func_pthread_attr_setname=yes; break

fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      done


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

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

elif :
then :

fi



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_setname_np" >&5
printf %s "checking for pthread_setname_np... " >&6; }
if test ${ac_cv_func_pthread_setname_np+y}
then :
  printf %s "(cached) " >&6
else $as_nop

      ac_cv_func_pthread_setname_np="no"
      echo > conftest.log

      for ac_headers in  ""; do
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <stdint.h>
                                         `echo $ac_headers|sed 's/+/\n/g'|while read s; do if test -n "$s"; then echo $s|sed 's/\(.*\)/#include <\\1>/g'; fi; done`

int
main (void)
{
`if test -z "$ac_headers"; then echo "extern void pthread_setname_np();"; fi`
                                         #ifdef pthread_setname_np
                                         #else
                                           return (intptr_t)pthread_setname_np;
                                         #endif


  ;
  return 0;
}

_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  ac_cv_func_pthread_setname_np=yes; break

fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      done


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

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

elif :
then :

fi



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_setschedprio" >&5
printf %s "checking for pthread_setschedprio... " >&6; }
if test ${ac_cv_func_pthread_setschedprio+y}
then :
  printf %s "(cached) " >&6
else $as_nop

      ac_cv_func_pthread_setschedprio="no"
      echo > conftest.log

      for ac_headers in  ""; do
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <stdint.h>
                                         `echo $ac_headers|sed 's/+/\n/g'|while read s; do if test -n "$s"; then echo $s|sed 's/\(.*\)/#include <\\1>/g'; fi; done`

int
main (void)
{
`if test -z "$ac_headers"; then echo "extern void pthread_setschedprio();"; fi`
                                         #ifdef pthread_setschedprio
                                         #else
                                           return (intptr_t)pthread_setschedprio;
                                         #endif


  ;
  return 0;
}

_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  ac_cv_func_pthread_setschedprio=yes; break

fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      done


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

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

elif :
then :

fi




  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyaddr" >&5
printf %s "checking for gethostbyaddr... " >&6; }
if test ${ac_cv_func_gethostbyaddr+y}
then :
  printf %s "(cached) " >&6
else $as_nop

      ac_cv_func_gethostbyaddr="no"
      echo > conftest.log

      for ac_headers in winsock2.h ""; do
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <stdint.h>
                                         `echo $ac_headers|sed 's/+/\n/g'|while read s; do if test -n "$s"; then echo $s|sed 's/\(.*\)/#include <\\1>/g'; fi; done`

int
main (void)
{
`if test -z "$ac_headers"; then echo "extern void gethostbyaddr();"; fi`
                                         #ifdef gethostbyaddr
                                         #else
                                           return (intptr_t)gethostbyaddr;
                                         #endif


  ;
  return 0;
}

_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  ac_cv_func_gethostbyaddr=yes; break

fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      done


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

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

elif :
then :

fi



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyaddr_r" >&5
printf %s "checking for gethostbyaddr_r... " >&6; }
if test ${ac_cv_func_gethostbyaddr_r+y}
then :
  printf %s "(cached) " >&6
else $as_nop

      ac_cv_func_gethostbyaddr_r="no"
      echo > conftest.log

      for ac_headers in winsock2.h ""; do
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <stdint.h>
                                         `echo $ac_headers|sed 's/+/\n/g'|while read s; do if test -n "$s"; then echo $s|sed 's/\(.*\)/#include <\\1>/g'; fi; done`

int
main (void)
{
`if test -z "$ac_headers"; then echo "extern void gethostbyaddr_r();"; fi`
                                         #ifdef gethostbyaddr_r
                                         #else
                                           return (intptr_t)gethostbyaddr_r;
                                         #endif


  ;
  return 0;
}

_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  ac_cv_func_gethostbyaddr_r=yes; break

fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      done


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

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

elif :
then :

fi



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyname" >&5
printf %s "checking for gethostbyname... " >&6; }
if test ${ac_cv_func_gethostbyname+y}
then :
  printf %s "(cached) " >&6
else $as_nop

      ac_cv_func_gethostbyname="no"
      echo > conftest.log

      for ac_headers in winsock2.h ""; do
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <stdint.h>
                                         `echo $ac_headers|sed 's/+/\n/g'|while read s; do if test -n "$s"; then echo $s|sed 's/\(.*\)/#include <\\1>/g'; fi; done`

int
main (void)
{
`if test -z "$ac_headers"; then echo "extern void gethostbyname();"; fi`
                                         #ifdef gethostbyname
                                         #else
                                           return (intptr_t)gethostbyname;
                                         #endif


  ;
  return 0;
}

_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  ac_cv_func_gethostbyname=yes; break

fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      done


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

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

elif :
then :

fi



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyname_r" >&5
printf %s "checking for gethostbyname_r... " >&6; }
if test ${ac_cv_func_gethostbyname_r+y}
then :
  printf %s "(cached) " >&6
else $as_nop

      ac_cv_func_gethostbyname_r="no"
      echo > conftest.log

      for ac_headers in winsock2.h ""; do
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <stdint.h>
                                         `echo $ac_headers|sed 's/+/\n/g'|while read s; do if test -n "$s"; then echo $s|sed 's/\(.*\)/#include <\\1>/g'; fi; done`

int
main (void)
{
`if test -z "$ac_headers"; then echo "extern void gethostbyname_r();"; fi`
                                         #ifdef gethostbyname_r
                                         #else
                                           return (intptr_t)gethostbyname_r;
                                         #endif


  ;
  return 0;
}

_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  ac_cv_func_gethostbyname_r=yes; break

fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      done


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

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

elif :
then :

fi




  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for getlogin" >&5
printf %s "checking for getlogin... " >&6; }
if test ${ac_cv_func_getlogin+y}
then :
  printf %s "(cached) " >&6
else $as_nop

      ac_cv_func_getlogin="no"
      echo > conftest.log

      for ac_headers in  ""; do
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <stdint.h>
                                         `echo $ac_headers|sed 's/+/\n/g'|while read s; do if test -n "$s"; then echo $s|sed 's/\(.*\)/#include <\\1>/g'; fi; done`

int
main (void)
{
`if test -z "$ac_headers"; then echo "extern void getlogin();"; fi`
                                         #ifdef getlogin
                                         #else
                                           return (intptr_t)getlogin;
                                         #endif


  ;
  return 0;
}

_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  ac_cv_func_getlogin=yes; break

fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      done


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

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

elif :
then :

fi



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for getlogin_r" >&5
printf %s "checking for getlogin_r... " >&6; }
if test ${ac_cv_func_getlogin_r+y}
then :
  printf %s "(cached) " >&6
else $as_nop

      ac_cv_func_getlogin_r="no"
      echo > conftest.log

      for ac_headers in  ""; do
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <stdint.h>
                                         `echo $ac_headers|sed 's/+/\n/g'|while read s; do if test -n "$s"; then echo $s|sed 's/\(.*\)/#include <\\1>/g'; fi; done`

int
main (void)
{
`if test -z "$ac_headers"; then echo "extern void getlogin_r();"; fi`
                                         #ifdef getlogin_r
                                         #else
                                           return (intptr_t)getlogin_r;
                                         #endif


  ;
  return 0;
}

_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  ac_cv_func_getlogin_r=yes; break

fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      done


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

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

elif :
then :

fi




  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for chmod" >&5
printf %s "checking for chmod... " >&6; }
if test ${ac_cv_func_chmod+y}
then :
  printf %s "(cached) " >&6
else $as_nop

      ac_cv_func_chmod="no"
      echo > conftest.log

      for ac_headers in  ""; do
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <stdint.h>
                                         `echo $ac_headers|sed 's/+/\n/g'|while read s; do if test -n "$s"; then echo $s|sed 's/\(.*\)/#include <\\1>/g'; fi; done`

int
main (void)
{
`if test -z "$ac_headers"; then echo "extern void chmod();"; fi`
                                         #ifdef chmod
                                         #else
                                           return (intptr_t)chmod;
                                         #endif


  ;
  return 0;
}

_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  ac_cv_func_chmod=yes; break

fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      done


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

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

elif :
then :

fi



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for chown" >&5
printf %s "checking for chown... " >&6; }
if test ${ac_cv_func_chown+y}
then :
  printf %s "(cached) " >&6
else $as_nop

      ac_cv_func_chown="no"
      echo > conftest.log

      for ac_headers in  ""; do
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <stdint.h>
                                         `echo $ac_headers|sed 's/+/\n/g'|while read s; do if test -n "$s"; then echo $s|sed 's/\(.*\)/#include <\\1>/g'; fi; done`

int
main (void)
{
`if test -z "$ac_headers"; then echo "extern void chown();"; fi`
                                         #ifdef chown
                                         #else
                                           return (intptr_t)chown;
                                         #endif


  ;
  return 0;
}

_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  ac_cv_func_chown=yes; break

fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      done


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

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

elif :
then :

fi



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for lseek64" >&5
printf %s "checking for lseek64... " >&6; }
if test ${ac_cv_func_lseek64+y}
then :
  printf %s "(cached) " >&6
else $as_nop

      ac_cv_func_lseek64="no"
      echo > conftest.log

      for ac_headers in  ""; do
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <stdint.h>
                                         `echo $ac_headers|sed 's/+/\n/g'|while read s; do if test -n "$s"; then echo $s|sed 's/\(.*\)/#include <\\1>/g'; fi; done`

int
main (void)
{
`if test -z "$ac_headers"; then echo "extern void lseek64();"; fi`
                                         #ifdef lseek64
                                         #else
                                           return (intptr_t)lseek64;
                                         #endif


  ;
  return 0;
}

_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  ac_cv_func_lseek64=yes; break

fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      done


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

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

elif :
then :

fi



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for lseek" >&5
printf %s "checking for lseek... " >&6; }
if test ${ac_cv_func_lseek+y}
then :
  printf %s "(cached) " >&6
else $as_nop

      ac_cv_func_lseek="no"
      echo > conftest.log

      for ac_headers in  ""; do
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <stdint.h>
                                         `echo $ac_headers|sed 's/+/\n/g'|while read s; do if test -n "$s"; then echo $s|sed 's/\(.*\)/#include <\\1>/g'; fi; done`

int
main (void)
{
`if test -z "$ac_headers"; then echo "extern void lseek();"; fi`
                                         #ifdef lseek
                                         #else
                                           return (intptr_t)lseek;
                                         #endif


  ;
  return 0;
}

_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  ac_cv_func_lseek=yes; break

fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      done


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

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

elif :
then :

fi



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ftruncate64" >&5
printf %s "checking for ftruncate64... " >&6; }
if test ${ac_cv_func_ftruncate64+y}
then :
  printf %s "(cached) " >&6
else $as_nop

      ac_cv_func_ftruncate64="no"
      echo > conftest.log

      for ac_headers in  ""; do
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <stdint.h>
                                         `echo $ac_headers|sed 's/+/\n/g'|while read s; do if test -n "$s"; then echo $s|sed 's/\(.*\)/#include <\\1>/g'; fi; done`

int
main (void)
{
`if test -z "$ac_headers"; then echo "extern void ftruncate64();"; fi`
                                         #ifdef ftruncate64
                                         #else
                                           return (intptr_t)ftruncate64;
                                         #endif


  ;
  return 0;
}

_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  ac_cv_func_ftruncate64=yes; break

fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      done


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

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

elif :
then :

fi



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ftruncate" >&5
printf %s "checking for ftruncate... " >&6; }
if test ${ac_cv_func_ftruncate+y}
then :
  printf %s "(cached) " >&6
else $as_nop

      ac_cv_func_ftruncate="no"
      echo > conftest.log

      for ac_headers in  ""; do
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <stdint.h>
                                         `echo $ac_headers|sed 's/+/\n/g'|while read s; do if test -n "$s"; then echo $s|sed 's/\(.*\)/#include <\\1>/g'; fi; done`

int
main (void)
{
`if test -z "$ac_headers"; then echo "extern void ftruncate();"; fi`
                                         #ifdef ftruncate
                                         #else
                                           return (intptr_t)ftruncate;
                                         #endif


  ;
  return 0;
}

_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  ac_cv_func_ftruncate=yes; break

fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      done


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

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

elif :
then :

fi



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fdatasync" >&5
printf %s "checking for fdatasync... " >&6; }
if test ${ac_cv_func_fdatasync+y}
then :
  printf %s "(cached) " >&6
else $as_nop

      ac_cv_func_fdatasync="no"
      echo > conftest.log

      for ac_headers in  ""; do
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <stdint.h>
                                         `echo $ac_headers|sed 's/+/\n/g'|while read s; do if test -n "$s"; then echo $s|sed 's/\(.*\)/#include <\\1>/g'; fi; done`

int
main (void)
{
`if test -z "$ac_headers"; then echo "extern void fdatasync();"; fi`
                                         #ifdef fdatasync
                                         #else
                                           return (intptr_t)fdatasync;
                                         #endif


  ;
  return 0;
}

_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  ac_cv_func_fdatasync=yes; break

fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      done


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

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

elif :
then :

fi



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fopen" >&5
printf %s "checking for fopen... " >&6; }
if test ${ac_cv_func_fopen+y}
then :
  printf %s "(cached) " >&6
else $as_nop

      ac_cv_func_fopen="no"
      echo > conftest.log

      for ac_headers in  ""; do
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <stdint.h>
                                         `echo $ac_headers|sed 's/+/\n/g'|while read s; do if test -n "$s"; then echo $s|sed 's/\(.*\)/#include <\\1>/g'; fi; done`

int
main (void)
{
`if test -z "$ac_headers"; then echo "extern void fopen();"; fi`
                                         #ifdef fopen
                                         #else
                                           return (intptr_t)fopen;
                                         #endif


  ;
  return 0;
}

_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  ac_cv_func_fopen=yes; break

fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      done


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

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

elif :
then :

fi



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fopen64" >&5
printf %s "checking for fopen64... " >&6; }
if test ${ac_cv_func_fopen64+y}
then :
  printf %s "(cached) " >&6
else $as_nop

      ac_cv_func_fopen64="no"
      echo > conftest.log

      for ac_headers in  ""; do
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <stdint.h>
                                         `echo $ac_headers|sed 's/+/\n/g'|while read s; do if test -n "$s"; then echo $s|sed 's/\(.*\)/#include <\\1>/g'; fi; done`

int
main (void)
{
`if test -z "$ac_headers"; then echo "extern void fopen64();"; fi`
                                         #ifdef fopen64
                                         #else
                                           return (intptr_t)fopen64;
                                         #endif


  ;
  return 0;
}

_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  ac_cv_func_fopen64=yes; break

fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      done


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

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

elif :
then :

fi



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fseeko" >&5
printf %s "checking for fseeko... " >&6; }
if test ${ac_cv_func_fseeko+y}
then :
  printf %s "(cached) " >&6
else $as_nop

      ac_cv_func_fseeko="no"
      echo > conftest.log

      for ac_headers in  ""; do
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <stdint.h>
                                         `echo $ac_headers|sed 's/+/\n/g'|while read s; do if test -n "$s"; then echo $s|sed 's/\(.*\)/#include <\\1>/g'; fi; done`

int
main (void)
{
`if test -z "$ac_headers"; then echo "extern void fseeko();"; fi`
                                         #ifdef fseeko
                                         #else
                                           return (intptr_t)fseeko;
                                         #endif


  ;
  return 0;
}

_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  ac_cv_func_fseeko=yes; break

fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      done


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

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

elif :
then :

fi



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _fseeki64" >&5
printf %s "checking for _fseeki64... " >&6; }
if test ${ac_cv_func__fseeki64+y}
then :
  printf %s "(cached) " >&6
else $as_nop

      ac_cv_func__fseeki64="no"
      echo > conftest.log

      for ac_headers in  ""; do
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <stdint.h>
                                         `echo $ac_headers|sed 's/+/\n/g'|while read s; do if test -n "$s"; then echo $s|sed 's/\(.*\)/#include <\\1>/g'; fi; done`

int
main (void)
{
`if test -z "$ac_headers"; then echo "extern void _fseeki64();"; fi`
                                         #ifdef _fseeki64
                                         #else
                                           return (intptr_t)_fseeki64;
                                         #endif


  ;
  return 0;
}

_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  ac_cv_func__fseeki64=yes; break

fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      done


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

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

elif :
then :

fi



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fseeko64" >&5
printf %s "checking for fseeko64... " >&6; }
if test ${ac_cv_func_fseeko64+y}
then :
  printf %s "(cached) " >&6
else $as_nop

      ac_cv_func_fseeko64="no"
      echo > conftest.log

      for ac_headers in  ""; do
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <stdint.h>
                                         `echo $ac_headers|sed 's/+/\n/g'|while read s; do if test -n "$s"; then echo $s|sed 's/\(.*\)/#include <\\1>/g'; fi; done`

int
main (void)
{
`if test -z "$ac_headers"; then echo "extern void fseeko64();"; fi`
                                         #ifdef fseeko64
                                         #else
                                           return (intptr_t)fseeko64;
                                         #endif


  ;
  return 0;
}

_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  ac_cv_func_fseeko64=yes; break

fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      done


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

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

elif :
then :

fi



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ftello" >&5
printf %s "checking for ftello... " >&6; }
if test ${ac_cv_func_ftello+y}
then :
  printf %s "(cached) " >&6
else $as_nop

      ac_cv_func_ftello="no"
      echo > conftest.log

      for ac_headers in  ""; do
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <stdint.h>
                                         `echo $ac_headers|sed 's/+/\n/g'|while read s; do if test -n "$s"; then echo $s|sed 's/\(.*\)/#include <\\1>/g'; fi; done`

int
main (void)
{
`if test -z "$ac_headers"; then echo "extern void ftello();"; fi`
                                         #ifdef ftello
                                         #else
                                           return (intptr_t)ftello;
                                         #endif


  ;
  return 0;
}

_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  ac_cv_func_ftello=yes; break

fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      done


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

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

elif :
then :

fi



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _ftelli64" >&5
printf %s "checking for _ftelli64... " >&6; }
if test ${ac_cv_func__ftelli64+y}
then :
  printf %s "(cached) " >&6
else $as_nop

      ac_cv_func__ftelli64="no"
      echo > conftest.log

      for ac_headers in  ""; do
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <stdint.h>
                                         `echo $ac_headers|sed 's/+/\n/g'|while read s; do if test -n "$s"; then echo $s|sed 's/\(.*\)/#include <\\1>/g'; fi; done`

int
main (void)
{
`if test -z "$ac_headers"; then echo "extern void _ftelli64();"; fi`
                                         #ifdef _ftelli64
                                         #else
                                           return (intptr_t)_ftelli64;
                                         #endif


  ;
  return 0;
}

_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  ac_cv_func__ftelli64=yes; break

fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      done


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

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

elif :
then :

fi



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ftello64" >&5
printf %s "checking for ftello64... " >&6; }
if test ${ac_cv_func_ftello64+y}
then :
  printf %s "(cached) " >&6
else $as_nop

      ac_cv_func_ftello64="no"
      echo > conftest.log

      for ac_headers in  ""; do
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <stdint.h>
                                         `echo $ac_headers|sed 's/+/\n/g'|while read s; do if test -n "$s"; then echo $s|sed 's/\(.*\)/#include <\\1>/g'; fi; done`

int
main (void)
{
`if test -z "$ac_headers"; then echo "extern void ftello64();"; fi`
                                         #ifdef ftello64
                                         #else
                                           return (intptr_t)ftello64;
                                         #endif


  ;
  return 0;
}

_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  ac_cv_func_ftello64=yes; break

fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      done


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

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

elif :
then :

fi



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for getgrgid_r" >&5
printf %s "checking for getgrgid_r... " >&6; }
if test ${ac_cv_func_getgrgid_r+y}
then :
  printf %s "(cached) " >&6
else $as_nop

      ac_cv_func_getgrgid_r="no"
      echo > conftest.log

      for ac_headers in  ""; do
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <stdint.h>
                                         `echo $ac_headers|sed 's/+/\n/g'|while read s; do if test -n "$s"; then echo $s|sed 's/\(.*\)/#include <\\1>/g'; fi; done`

int
main (void)
{
`if test -z "$ac_headers"; then echo "extern void getgrgid_r();"; fi`
                                         #ifdef getgrgid_r
                                         #else
                                           return (intptr_t)getgrgid_r;
                                         #endif


  ;
  return 0;
}

_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  ac_cv_func_getgrgid_r=yes; break

fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      done


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

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

elif :
then :

fi



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for getgrnam_r" >&5
printf %s "checking for getgrnam_r... " >&6; }
if test ${ac_cv_func_getgrnam_r+y}
then :
  printf %s "(cached) " >&6
else $as_nop

      ac_cv_func_getgrnam_r="no"
      echo > conftest.log

      for ac_headers in  ""; do
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <stdint.h>
                                         `echo $ac_headers|sed 's/+/\n/g'|while read s; do if test -n "$s"; then echo $s|sed 's/\(.*\)/#include <\\1>/g'; fi; done`

int
main (void)
{
`if test -z "$ac_headers"; then echo "extern void getgrnam_r();"; fi`
                                         #ifdef getgrnam_r
                                         #else
                                           return (intptr_t)getgrnam_r;
                                         #endif


  ;
  return 0;
}

_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  ac_cv_func_getgrnam_r=yes; break

fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      done


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

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

elif :
then :

fi



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for getpwnam_r" >&5
printf %s "checking for getpwnam_r... " >&6; }
if test ${ac_cv_func_getpwnam_r+y}
then :
  printf %s "(cached) " >&6
else $as_nop

      ac_cv_func_getpwnam_r="no"
      echo > conftest.log

      for ac_headers in  ""; do
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <stdint.h>
                                         `echo $ac_headers|sed 's/+/\n/g'|while read s; do if test -n "$s"; then echo $s|sed 's/\(.*\)/#include <\\1>/g'; fi; done`

int
main (void)
{
`if test -z "$ac_headers"; then echo "extern void getpwnam_r();"; fi`
                                         #ifdef getpwnam_r
                                         #else
                                           return (intptr_t)getpwnam_r;
                                         #endif


  ;
  return 0;
}

_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  ac_cv_func_getpwnam_r=yes; break

fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      done


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

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

elif :
then :

fi



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for getpwuid_r" >&5
printf %s "checking for getpwuid_r... " >&6; }
if test ${ac_cv_func_getpwuid_r+y}
then :
  printf %s "(cached) " >&6
else $as_nop

      ac_cv_func_getpwuid_r="no"
      echo > conftest.log

      for ac_headers in  ""; do
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <stdint.h>
                                         `echo $ac_headers|sed 's/+/\n/g'|while read s; do if test -n "$s"; then echo $s|sed 's/\(.*\)/#include <\\1>/g'; fi; done`

int
main (void)
{
`if test -z "$ac_headers"; then echo "extern void getpwuid_r();"; fi`
                                         #ifdef getpwuid_r
                                         #else
                                           return (intptr_t)getpwuid_r;
                                         #endif


  ;
  return 0;
}

_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  ac_cv_func_getpwuid_r=yes; break

fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      done


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

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

elif :
then :

fi



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for get_current_dir_name" >&5
printf %s "checking for get_current_dir_name... " >&6; }
if test ${ac_cv_func_get_current_dir_name+y}
then :
  printf %s "(cached) " >&6
else $as_nop

      ac_cv_func_get_current_dir_name="no"
      echo > conftest.log

      for ac_headers in  ""; do
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <stdint.h>
                                         `echo $ac_headers|sed 's/+/\n/g'|while read s; do if test -n "$s"; then echo $s|sed 's/\(.*\)/#include <\\1>/g'; fi; done`

int
main (void)
{
`if test -z "$ac_headers"; then echo "extern void get_current_dir_name();"; fi`
                                         #ifdef get_current_dir_name
                                         #else
                                           return (intptr_t)get_current_dir_name;
                                         #endif


  ;
  return 0;
}

_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  ac_cv_func_get_current_dir_name=yes; break

fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      done


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

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

elif :
then :

fi



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ioctl" >&5
printf %s "checking for ioctl... " >&6; }
if test ${ac_cv_func_ioctl+y}
then :
  printf %s "(cached) " >&6
else $as_nop

      ac_cv_func_ioctl="no"
      echo > conftest.log

      for ac_headers in  ""; do
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <stdint.h>
                                         `echo $ac_headers|sed 's/+/\n/g'|while read s; do if test -n "$s"; then echo $s|sed 's/\(.*\)/#include <\\1>/g'; fi; done`

int
main (void)
{
`if test -z "$ac_headers"; then echo "extern void ioctl();"; fi`
                                         #ifdef ioctl
                                         #else
                                           return (intptr_t)ioctl;
                                         #endif


  ;
  return 0;
}

_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  ac_cv_func_ioctl=yes; break

fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      done


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

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

elif :
then :

fi



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for lchmod" >&5
printf %s "checking for lchmod... " >&6; }
if test ${ac_cv_func_lchmod+y}
then :
  printf %s "(cached) " >&6
else $as_nop

      ac_cv_func_lchmod="no"
      echo > conftest.log

      for ac_headers in  ""; do
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <stdint.h>
                                         `echo $ac_headers|sed 's/+/\n/g'|while read s; do if test -n "$s"; then echo $s|sed 's/\(.*\)/#include <\\1>/g'; fi; done`

int
main (void)
{
`if test -z "$ac_headers"; then echo "extern void lchmod();"; fi`
                                         #ifdef lchmod
                                         #else
                                           return (intptr_t)lchmod;
                                         #endif


  ;
  return 0;
}

_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  ac_cv_func_lchmod=yes; break

fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      done


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

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

elif :
then :

fi



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for link" >&5
printf %s "checking for link... " >&6; }
if test ${ac_cv_func_link+y}
then :
  printf %s "(cached) " >&6
else $as_nop

      ac_cv_func_link="no"
      echo > conftest.log

      for ac_headers in  ""; do
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <stdint.h>
                                         `echo $ac_headers|sed 's/+/\n/g'|while read s; do if test -n "$s"; then echo $s|sed 's/\(.*\)/#include <\\1>/g'; fi; done`

int
main (void)
{
`if test -z "$ac_headers"; then echo "extern void link();"; fi`
                                         #ifdef link
                                         #else
                                           return (intptr_t)link;
                                         #endif


  ;
  return 0;
}

_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  ac_cv_func_link=yes; break

fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      done


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

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

elif :
then :

fi



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for lstat64" >&5
printf %s "checking for lstat64... " >&6; }
if test ${ac_cv_func_lstat64+y}
then :
  printf %s "(cached) " >&6
else $as_nop

      ac_cv_func_lstat64="no"
      echo > conftest.log

      for ac_headers in  ""; do
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <stdint.h>
                                         `echo $ac_headers|sed 's/+/\n/g'|while read s; do if test -n "$s"; then echo $s|sed 's/\(.*\)/#include <\\1>/g'; fi; done`

int
main (void)
{
`if test -z "$ac_headers"; then echo "extern void lstat64();"; fi`
                                         #ifdef lstat64
                                         #else
                                           return (intptr_t)lstat64;
                                         #endif


  ;
  return 0;
}

_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  ac_cv_func_lstat64=yes; break

fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      done


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

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

elif :
then :

fi



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for lstat" >&5
printf %s "checking for lstat... " >&6; }
if test ${ac_cv_func_lstat+y}
then :
  printf %s "(cached) " >&6
else $as_nop

      ac_cv_func_lstat="no"
      echo > conftest.log

      for ac_headers in  ""; do
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <stdint.h>
                                         `echo $ac_headers|sed 's/+/\n/g'|while read s; do if test -n "$s"; then echo $s|sed 's/\(.*\)/#include <\\1>/g'; fi; done`

int
main (void)
{
`if test -z "$ac_headers"; then echo "extern void lstat();"; fi`
                                         #ifdef lstat
                                         #else
                                           return (intptr_t)lstat;
                                         #endif


  ;
  return 0;
}

_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  ac_cv_func_lstat=yes; break

fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      done


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

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

elif :
then :

fi



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for major" >&5
printf %s "checking for major... " >&6; }
if test ${ac_cv_func_major+y}
then :
  printf %s "(cached) " >&6
else $as_nop

      ac_cv_func_major="no"
      echo > conftest.log

      for ac_headers in sys/sysmacros.h ""; do
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <stdint.h>
                                         `echo $ac_headers|sed 's/+/\n/g'|while read s; do if test -n "$s"; then echo $s|sed 's/\(.*\)/#include <\\1>/g'; fi; done`

int
main (void)
{
`if test -z "$ac_headers"; then echo "extern void major();"; fi`
                                         #ifdef major
                                         #else
                                           return (intptr_t)major;
                                         #endif


  ;
  return 0;
}

_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  ac_cv_func_major=yes; break

fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      done


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

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

elif :
then :

fi



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for makedev" >&5
printf %s "checking for makedev... " >&6; }
if test ${ac_cv_func_makedev+y}
then :
  printf %s "(cached) " >&6
else $as_nop

      ac_cv_func_makedev="no"
      echo > conftest.log

      for ac_headers in sys/sysmacros.h ""; do
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <stdint.h>
                                         `echo $ac_headers|sed 's/+/\n/g'|while read s; do if test -n "$s"; then echo $s|sed 's/\(.*\)/#include <\\1>/g'; fi; done`

int
main (void)
{
`if test -z "$ac_headers"; then echo "extern void makedev();"; fi`
                                         #ifdef makedev
                                         #else
                                           return (intptr_t)makedev;
                                         #endif


  ;
  return 0;
}

_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  ac_cv_func_makedev=yes; break

fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      done


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

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

elif :
then :

fi



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for minor" >&5
printf %s "checking for minor... " >&6; }
if test ${ac_cv_func_minor+y}
then :
  printf %s "(cached) " >&6
else $as_nop

      ac_cv_func_minor="no"
      echo > conftest.log

      for ac_headers in sys/sysmacros.h ""; do
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <stdint.h>
                                         `echo $ac_headers|sed 's/+/\n/g'|while read s; do if test -n "$s"; then echo $s|sed 's/\(.*\)/#include <\\1>/g'; fi; done`

int
main (void)
{
`if test -z "$ac_headers"; then echo "extern void minor();"; fi`
                                         #ifdef minor
                                         #else
                                           return (intptr_t)minor;
                                         #endif


  ;
  return 0;
}

_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  ac_cv_func_minor=yes; break

fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      done


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

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

elif :
then :

fi



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for mknod" >&5
printf %s "checking for mknod... " >&6; }
if test ${ac_cv_func_mknod+y}
then :
  printf %s "(cached) " >&6
else $as_nop

      ac_cv_func_mknod="no"
      echo > conftest.log

      for ac_headers in  ""; do
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <stdint.h>
                                         `echo $ac_headers|sed 's/+/\n/g'|while read s; do if test -n "$s"; then echo $s|sed 's/\(.*\)/#include <\\1>/g'; fi; done`

int
main (void)
{
`if test -z "$ac_headers"; then echo "extern void mknod();"; fi`
                                         #ifdef mknod
                                         #else
                                           return (intptr_t)mknod;
                                         #endif


  ;
  return 0;
}

_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  ac_cv_func_mknod=yes; break

fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      done


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

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

elif :
then :

fi



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for posix_fadvise" >&5
printf %s "checking for posix_fadvise... " >&6; }
if test ${ac_cv_func_posix_fadvise+y}
then :
  printf %s "(cached) " >&6
else $as_nop

      ac_cv_func_posix_fadvise="no"
      echo > conftest.log

      for ac_headers in  ""; do
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <stdint.h>
                                         `echo $ac_headers|sed 's/+/\n/g'|while read s; do if test -n "$s"; then echo $s|sed 's/\(.*\)/#include <\\1>/g'; fi; done`

int
main (void)
{
`if test -z "$ac_headers"; then echo "extern void posix_fadvise();"; fi`
                                         #ifdef posix_fadvise
                                         #else
                                           return (intptr_t)posix_fadvise;
                                         #endif


  ;
  return 0;
}

_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  ac_cv_func_posix_fadvise=yes; break

fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      done


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

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

elif :
then :

fi



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for readlink" >&5
printf %s "checking for readlink... " >&6; }
if test ${ac_cv_func_readlink+y}
then :
  printf %s "(cached) " >&6
else $as_nop

      ac_cv_func_readlink="no"
      echo > conftest.log

      for ac_headers in  ""; do
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <stdint.h>
                                         `echo $ac_headers|sed 's/+/\n/g'|while read s; do if test -n "$s"; then echo $s|sed 's/\(.*\)/#include <\\1>/g'; fi; done`

int
main (void)
{
`if test -z "$ac_headers"; then echo "extern void readlink();"; fi`
                                         #ifdef readlink
                                         #else
                                           return (intptr_t)readlink;
                                         #endif


  ;
  return 0;
}

_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  ac_cv_func_readlink=yes; break

fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      done


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

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

elif :
then :

fi



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sigaction" >&5
printf %s "checking for sigaction... " >&6; }
if test ${ac_cv_func_sigaction+y}
then :
  printf %s "(cached) " >&6
else $as_nop

      ac_cv_func_sigaction="no"
      echo > conftest.log

      for ac_headers in  ""; do
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <stdint.h>
                                         `echo $ac_headers|sed 's/+/\n/g'|while read s; do if test -n "$s"; then echo $s|sed 's/\(.*\)/#include <\\1>/g'; fi; done`

int
main (void)
{
`if test -z "$ac_headers"; then echo "extern void sigaction();"; fi`
                                         #ifdef sigaction
                                         #else
                                           return (intptr_t)sigaction;
                                         #endif


  ;
  return 0;
}

_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  ac_cv_func_sigaction=yes; break

fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      done


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

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

elif :
then :

fi



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stat64" >&5
printf %s "checking for stat64... " >&6; }
if test ${ac_cv_func_stat64+y}
then :
  printf %s "(cached) " >&6
else $as_nop

      ac_cv_func_stat64="no"
      echo > conftest.log

      for ac_headers in  ""; do
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <stdint.h>
                                         `echo $ac_headers|sed 's/+/\n/g'|while read s; do if test -n "$s"; then echo $s|sed 's/\(.*\)/#include <\\1>/g'; fi; done`

int
main (void)
{
`if test -z "$ac_headers"; then echo "extern void stat64();"; fi`
                                         #ifdef stat64
                                         #else
                                           return (intptr_t)stat64;
                                         #endif


  ;
  return 0;
}

_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  ac_cv_func_stat64=yes; break

fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      done


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

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

elif :
then :

fi



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stat" >&5
printf %s "checking for stat... " >&6; }
if test ${ac_cv_func_stat+y}
then :
  printf %s "(cached) " >&6
else $as_nop

      ac_cv_func_stat="no"
      echo > conftest.log

      for ac_headers in  ""; do
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <stdint.h>
                                         `echo $ac_headers|sed 's/+/\n/g'|while read s; do if test -n "$s"; then echo $s|sed 's/\(.*\)/#include <\\1>/g'; fi; done`

int
main (void)
{
`if test -z "$ac_headers"; then echo "extern void stat();"; fi`
                                         #ifdef stat
                                         #else
                                           return (intptr_t)stat;
                                         #endif


  ;
  return 0;
}

_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  ac_cv_func_stat=yes; break

fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      done


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

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

elif :
then :

fi



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _stati64" >&5
printf %s "checking for _stati64... " >&6; }
if test ${ac_cv_func__stati64+y}
then :
  printf %s "(cached) " >&6
else $as_nop

      ac_cv_func__stati64="no"
      echo > conftest.log

      for ac_headers in  ""; do
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <stdint.h>
                                         `echo $ac_headers|sed 's/+/\n/g'|while read s; do if test -n "$s"; then echo $s|sed 's/\(.*\)/#include <\\1>/g'; fi; done`

int
main (void)
{
`if test -z "$ac_headers"; then echo "extern void _stati64();"; fi`
                                         #ifdef _stati64
                                         #else
                                           return (intptr_t)_stati64;
                                         #endif


  ;
  return 0;
}

_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  ac_cv_func__stati64=yes; break

fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      done


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

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

elif :
then :

fi



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for statfs" >&5
printf %s "checking for statfs... " >&6; }
if test ${ac_cv_func_statfs+y}
then :
  printf %s "(cached) " >&6
else $as_nop

      ac_cv_func_statfs="no"
      echo > conftest.log

      for ac_headers in  ""; do
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <stdint.h>
                                         `echo $ac_headers|sed 's/+/\n/g'|while read s; do if test -n "$s"; then echo $s|sed 's/\(.*\)/#include <\\1>/g'; fi; done`

int
main (void)
{
`if test -z "$ac_headers"; then echo "extern void statfs();"; fi`
                                         #ifdef statfs
                                         #else
                                           return (intptr_t)statfs;
                                         #endif


  ;
  return 0;
}

_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  ac_cv_func_statfs=yes; break

fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      done


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

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

elif :
then :

fi



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for statvfs" >&5
printf %s "checking for statvfs... " >&6; }
if test ${ac_cv_func_statvfs+y}
then :
  printf %s "(cached) " >&6
else $as_nop

      ac_cv_func_statvfs="no"
      echo > conftest.log

      for ac_headers in  ""; do
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <stdint.h>
                                         `echo $ac_headers|sed 's/+/\n/g'|while read s; do if test -n "$s"; then echo $s|sed 's/\(.*\)/#include <\\1>/g'; fi; done`

int
main (void)
{
`if test -z "$ac_headers"; then echo "extern void statvfs();"; fi`
                                         #ifdef statvfs
                                         #else
                                           return (intptr_t)statvfs;
                                         #endif


  ;
  return 0;
}

_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  ac_cv_func_statvfs=yes; break

fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      done


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

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

elif :
then :

fi



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for symlink" >&5
printf %s "checking for symlink... " >&6; }
if test ${ac_cv_func_symlink+y}
then :
  printf %s "(cached) " >&6
else $as_nop

      ac_cv_func_symlink="no"
      echo > conftest.log

      for ac_headers in  ""; do
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <stdint.h>
                                         `echo $ac_headers|sed 's/+/\n/g'|while read s; do if test -n "$s"; then echo $s|sed 's/\(.*\)/#include <\\1>/g'; fi; done`

int
main (void)
{
`if test -z "$ac_headers"; then echo "extern void symlink();"; fi`
                                         #ifdef symlink
                                         #else
                                           return (intptr_t)symlink;
                                         #endif


  ;
  return 0;
}

_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  ac_cv_func_symlink=yes; break

fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      done


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

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

elif :
then :

fi



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for futimens" >&5
printf %s "checking for futimens... " >&6; }
if test ${ac_cv_func_futimens+y}
then :
  printf %s "(cached) " >&6
else $as_nop

      ac_cv_func_futimens="no"
      echo > conftest.log

      for ac_headers in  ""; do
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <stdint.h>
                                         `echo $ac_headers|sed 's/+/\n/g'|while read s; do if test -n "$s"; then echo $s|sed 's/\(.*\)/#include <\\1>/g'; fi; done`

int
main (void)
{
`if test -z "$ac_headers"; then echo "extern void futimens();"; fi`
                                         #ifdef futimens
                                         #else
                                           return (intptr_t)futimens;
                                         #endif


  ;
  return 0;
}

_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  ac_cv_func_futimens=yes; break

fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      done


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

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

elif :
then :

fi



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fdopendir" >&5
printf %s "checking for fdopendir... " >&6; }
if test ${ac_cv_func_fdopendir+y}
then :
  printf %s "(cached) " >&6
else $as_nop

      ac_cv_func_fdopendir="no"
      echo > conftest.log

      for ac_headers in sys/types.h dirent.h ""; do
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <stdint.h>
                                         `echo $ac_headers|sed 's/+/\n/g'|while read s; do if test -n "$s"; then echo $s|sed 's/\(.*\)/#include <\\1>/g'; fi; done`

int
main (void)
{
`if test -z "$ac_headers"; then echo "extern void fdopendir();"; fi`
                                         #ifdef fdopendir
                                         #else
                                           return (intptr_t)fdopendir;
                                         #endif


  ;
  return 0;
}

_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  ac_cv_func_fdopendir=yes; break

fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      done


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

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

elif :
then :

fi



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for mkdtemp" >&5
printf %s "checking for mkdtemp... " >&6; }
if test ${ac_cv_func_mkdtemp+y}
then :
  printf %s "(cached) " >&6
else $as_nop

      ac_cv_func_mkdtemp="no"
      echo > conftest.log

      for ac_headers in io.h ""; do
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <stdint.h>
                                         `echo $ac_headers|sed 's/+/\n/g'|while read s; do if test -n "$s"; then echo $s|sed 's/\(.*\)/#include <\\1>/g'; fi; done`

int
main (void)
{
`if test -z "$ac_headers"; then echo "extern void mkdtemp();"; fi`
                                         #ifdef mkdtemp
                                         #else
                                           return (intptr_t)mkdtemp;
                                         #endif


  ;
  return 0;
}

_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  ac_cv_func_mkdtemp=yes; break

fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      done


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

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

elif :
then :

fi



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for mkstemp" >&5
printf %s "checking for mkstemp... " >&6; }
if test ${ac_cv_func_mkstemp+y}
then :
  printf %s "(cached) " >&6
else $as_nop

      ac_cv_func_mkstemp="no"
      echo > conftest.log

      for ac_headers in io.h ""; do
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <stdint.h>
                                         `echo $ac_headers|sed 's/+/\n/g'|while read s; do if test -n "$s"; then echo $s|sed 's/\(.*\)/#include <\\1>/g'; fi; done`

int
main (void)
{
`if test -z "$ac_headers"; then echo "extern void mkstemp();"; fi`
                                         #ifdef mkstemp
                                         #else
                                           return (intptr_t)mkstemp;
                                         #endif


  ;
  return 0;
}

_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  ac_cv_func_mkstemp=yes; break

fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      done


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

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

elif :
then :

fi



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for mktemp" >&5
printf %s "checking for mktemp... " >&6; }
if test ${ac_cv_func_mktemp+y}
then :
  printf %s "(cached) " >&6
else $as_nop

      ac_cv_func_mktemp="no"
      echo > conftest.log

      for ac_headers in io.h ""; do
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <stdint.h>
                                         `echo $ac_headers|sed 's/+/\n/g'|while read s; do if test -n "$s"; then echo $s|sed 's/\(.*\)/#include <\\1>/g'; fi; done`

int
main (void)
{
`if test -z "$ac_headers"; then echo "extern void mktemp();"; fi`
                                         #ifdef mktemp
                                         #else
                                           return (intptr_t)mktemp;
                                         #endif


  ;
  return 0;
}

_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  ac_cv_func_mktemp=yes; break

fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      done


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

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

elif :
then :

fi



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for llistxattr" >&5
printf %s "checking for llistxattr... " >&6; }
if test ${ac_cv_func_llistxattr+y}
then :
  printf %s "(cached) " >&6
else $as_nop

      ac_cv_func_llistxattr="no"
      echo > conftest.log

      for ac_headers in sys/xattr.h ""; do
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <stdint.h>
                                         `echo $ac_headers|sed 's/+/\n/g'|while read s; do if test -n "$s"; then echo $s|sed 's/\(.*\)/#include <\\1>/g'; fi; done`

int
main (void)
{
`if test -z "$ac_headers"; then echo "extern void llistxattr();"; fi`
                                         #ifdef llistxattr
                                         #else
                                           return (intptr_t)llistxattr;
                                         #endif


  ;
  return 0;
}

_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  ac_cv_func_llistxattr=yes; break

fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      done


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

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

elif :
then :

fi



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for lgetxattr" >&5
printf %s "checking for lgetxattr... " >&6; }
if test ${ac_cv_func_lgetxattr+y}
then :
  printf %s "(cached) " >&6
else $as_nop

      ac_cv_func_lgetxattr="no"
      echo > conftest.log

      for ac_headers in sys/xattr.h ""; do
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <stdint.h>
                                         `echo $ac_headers|sed 's/+/\n/g'|while read s; do if test -n "$s"; then echo $s|sed 's/\(.*\)/#include <\\1>/g'; fi; done`

int
main (void)
{
`if test -z "$ac_headers"; then echo "extern void lgetxattr();"; fi`
                                         #ifdef lgetxattr
                                         #else
                                           return (intptr_t)lgetxattr;
                                         #endif


  ;
  return 0;
}

_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  ac_cv_func_lgetxattr=yes; break

fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      done


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

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

elif :
then :

fi



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for lsetxattr" >&5
printf %s "checking for lsetxattr... " >&6; }
if test ${ac_cv_func_lsetxattr+y}
then :
  printf %s "(cached) " >&6
else $as_nop

      ac_cv_func_lsetxattr="no"
      echo > conftest.log

      for ac_headers in sys/xattr.h ""; do
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <stdint.h>
                                         `echo $ac_headers|sed 's/+/\n/g'|while read s; do if test -n "$s"; then echo $s|sed 's/\(.*\)/#include <\\1>/g'; fi; done`

int
main (void)
{
`if test -z "$ac_headers"; then echo "extern void lsetxattr();"; fi`
                                         #ifdef lsetxattr
                                         #else
                                           return (intptr_t)lsetxattr;
                                         #endif


  ;
  return 0;
}

_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  ac_cv_func_lsetxattr=yes; break

fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      done


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

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

elif :
then :

fi



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for select" >&5
printf %s "checking for select... " >&6; }
if test ${ac_cv_func_select+y}
then :
  printf %s "(cached) " >&6
else $as_nop

      ac_cv_func_select="no"
      echo > conftest.log

      for ac_headers in sys/select.h winsock2.h ""; do
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <stdint.h>
                                         `echo $ac_headers|sed 's/+/\n/g'|while read s; do if test -n "$s"; then echo $s|sed 's/\(.*\)/#include <\\1>/g'; fi; done`

int
main (void)
{
`if test -z "$ac_headers"; then echo "extern void select();"; fi`
                                         #ifdef select
                                         #else
                                           return (intptr_t)select;
                                         #endif


  ;
  return 0;
}

_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  ac_cv_func_select=yes; break

fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      done


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

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

elif :
then :

fi



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pselect" >&5
printf %s "checking for pselect... " >&6; }
if test ${ac_cv_func_pselect+y}
then :
  printf %s "(cached) " >&6
else $as_nop

      ac_cv_func_pselect="no"
      echo > conftest.log

      for ac_headers in sys/select.h winsock2.h ""; do
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <stdint.h>
                                         `echo $ac_headers|sed 's/+/\n/g'|while read s; do if test -n "$s"; then echo $s|sed 's/\(.*\)/#include <\\1>/g'; fi; done`

int
main (void)
{
`if test -z "$ac_headers"; then echo "extern void pselect();"; fi`
                                         #ifdef pselect
                                         #else
                                           return (intptr_t)pselect;
                                         #endif


  ;
  return 0;
}

_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  ac_cv_func_pselect=yes; break

fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      done


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

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

elif :
then :

fi



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for signal" >&5
printf %s "checking for signal... " >&6; }
if test ${ac_cv_func_signal+y}
then :
  printf %s "(cached) " >&6
else $as_nop

      ac_cv_func_signal="no"
      echo > conftest.log

      for ac_headers in signal.h ""; do
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <stdint.h>
                                         `echo $ac_headers|sed 's/+/\n/g'|while read s; do if test -n "$s"; then echo $s|sed 's/\(.*\)/#include <\\1>/g'; fi; done`

int
main (void)
{
`if test -z "$ac_headers"; then echo "extern void signal();"; fi`
                                         #ifdef signal
                                         #else
                                           return (intptr_t)signal;
                                         #endif


  ;
  return 0;
}

_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  ac_cv_func_signal=yes; break

fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      done


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

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

elif :
then :

fi



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for kill" >&5
printf %s "checking for kill... " >&6; }
if test ${ac_cv_func_kill+y}
then :
  printf %s "(cached) " >&6
else $as_nop

      ac_cv_func_kill="no"
      echo > conftest.log

      for ac_headers in signal.h ""; do
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <stdint.h>
                                         `echo $ac_headers|sed 's/+/\n/g'|while read s; do if test -n "$s"; then echo $s|sed 's/\(.*\)/#include <\\1>/g'; fi; done`

int
main (void)
{
`if test -z "$ac_headers"; then echo "extern void kill();"; fi`
                                         #ifdef kill
                                         #else
                                           return (intptr_t)kill;
                                         #endif


  ;
  return 0;
}

_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  ac_cv_func_kill=yes; break

fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      done


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

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

elif :
then :

fi



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking number of arguments of mkdir()" >&5
printf %s "checking number of arguments of mkdir()... " >&6; }
if test ${ac_cv_mkdir_arguments_count+y}
then :
  printf %s "(cached) " >&6
else $as_nop

      ac_cv_mkdir_arguments_count="unknown"

      if test "$ac_cv_mkdir_arguments_count" = "unknown"; then
        cat << \EOF > conftest.c
#include <io.h>
int main(void) { mkdir("."); return 0; }
EOF
        ${CC} ${CFLAGS} -Wall -Werror -c conftest.c -o conftest.o 1>/dev/null 2>/dev/null; rc=$?
        if test $rc -eq 0; then
          ac_cv_mkdir_arguments_count=1
        fi
        rm -f conftest.c conftest.o
      fi
      if test "$ac_cv_mkdir_arguments_count" = "unknown"; then
        cat << \EOF > conftest.c
#include <sys/stat.h>
#include <sys/types.h>
int main(void) { mkdir(".",0); return 0; }
EOF
        ${CC} ${CFLAGS} -Wall -Werror -c conftest.c -o conftest.o 1>/dev/null 2>/dev/null; rc=$?
        if test $rc -eq 0; then
          ac_cv_mkdir_arguments_count=2
        fi
        rm -f conftest.c conftest.o
      fi


fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_mkdir_arguments_count" >&5
printf "%s\n" "$ac_cv_mkdir_arguments_count" >&6; }
  if test "$ac_cv_mkdir_arguments_count" != "unknown"
then :

elif :
then :
  as_fn_error $? "cannot detect number of arguments of mkdir()" "$LINENO" 5
fi

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






  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for u_init" >&5
printf %s "checking for u_init... " >&6; }
if test ${ac_cv_func_u_init+y}
then :
  printf %s "(cached) " >&6
else $as_nop

      ac_cv_func_u_init="no"
      echo > conftest.log

      for ac_headers in icu.h ""; do
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <stdint.h>
                                         `echo $ac_headers|sed 's/+/\n/g'|while read s; do if test -n "$s"; then echo $s|sed 's/\(.*\)/#include <\\1>/g'; fi; done`

int
main (void)
{
`if test -z "$ac_headers"; then echo "extern void u_init();"; fi`
                                         #ifdef u_init
                                         #else
                                           return (intptr_t)u_init;
                                         #endif


  ;
  return 0;
}

_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  ac_cv_func_u_init=yes; break

fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      done


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

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

elif :
then :

fi




  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inotify_init1" >&5
printf %s "checking for inotify_init1... " >&6; }
if test ${ac_cv_func_inotify_init1+y}
then :
  printf %s "(cached) " >&6
else $as_nop

      ac_cv_func_inotify_init1="no"
      echo > conftest.log

      for ac_headers in  ""; do
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <stdint.h>
                                         `echo $ac_headers|sed 's/+/\n/g'|while read s; do if test -n "$s"; then echo $s|sed 's/\(.*\)/#include <\\1>/g'; fi; done`

int
main (void)
{
`if test -z "$ac_headers"; then echo "extern void inotify_init1();"; fi`
                                         #ifdef inotify_init1
                                         #else
                                           return (intptr_t)inotify_init1;
                                         #endif


  ;
  return 0;
}

_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  ac_cv_func_inotify_init1=yes; break

fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      done


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

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

elif :
then :

fi



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inotify_add_watch" >&5
printf %s "checking for inotify_add_watch... " >&6; }
if test ${ac_cv_func_inotify_add_watch+y}
then :
  printf %s "(cached) " >&6
else $as_nop

      ac_cv_func_inotify_add_watch="no"
      echo > conftest.log

      for ac_headers in  ""; do
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <stdint.h>
                                         `echo $ac_headers|sed 's/+/\n/g'|while read s; do if test -n "$s"; then echo $s|sed 's/\(.*\)/#include <\\1>/g'; fi; done`

int
main (void)
{
`if test -z "$ac_headers"; then echo "extern void inotify_add_watch();"; fi`
                                         #ifdef inotify_add_watch
                                         #else
                                           return (intptr_t)inotify_add_watch;
                                         #endif


  ;
  return 0;
}

_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  ac_cv_func_inotify_add_watch=yes; break

fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      done


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

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

elif :
then :

fi



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inotify_rm_watch" >&5
printf %s "checking for inotify_rm_watch... " >&6; }
if test ${ac_cv_func_inotify_rm_watch+y}
then :
  printf %s "(cached) " >&6
else $as_nop

      ac_cv_func_inotify_rm_watch="no"
      echo > conftest.log

      for ac_headers in  ""; do
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <stdint.h>
                                         `echo $ac_headers|sed 's/+/\n/g'|while read s; do if test -n "$s"; then echo $s|sed 's/\(.*\)/#include <\\1>/g'; fi; done`

int
main (void)
{
`if test -z "$ac_headers"; then echo "extern void inotify_rm_watch();"; fi`
                                         #ifdef inotify_rm_watch
                                         #else
                                           return (intptr_t)inotify_rm_watch;
                                         #endif


  ;
  return 0;
}

_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  ac_cv_func_inotify_rm_watch=yes; break

fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      done


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

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

elif :
then :

fi




  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gmtime_r" >&5
printf %s "checking for gmtime_r... " >&6; }
if test ${ac_cv_func_gmtime_r+y}
then :
  printf %s "(cached) " >&6
else $as_nop

      ac_cv_func_gmtime_r="no"
      echo > conftest.log

      for ac_headers in  ""; do
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <stdint.h>
                                         `echo $ac_headers|sed 's/+/\n/g'|while read s; do if test -n "$s"; then echo $s|sed 's/\(.*\)/#include <\\1>/g'; fi; done`

int
main (void)
{
`if test -z "$ac_headers"; then echo "extern void gmtime_r();"; fi`
                                         #ifdef gmtime_r
                                         #else
                                           return (intptr_t)gmtime_r;
                                         #endif


  ;
  return 0;
}

_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  ac_cv_func_gmtime_r=yes; break

fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      done


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

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

elif :
then :

fi



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for localtime_r" >&5
printf %s "checking for localtime_r... " >&6; }
if test ${ac_cv_func_localtime_r+y}
then :
  printf %s "(cached) " >&6
else $as_nop

      ac_cv_func_localtime_r="no"
      echo > conftest.log

      for ac_headers in  ""; do
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <stdint.h>
                                         `echo $ac_headers|sed 's/+/\n/g'|while read s; do if test -n "$s"; then echo $s|sed 's/\(.*\)/#include <\\1>/g'; fi; done`

int
main (void)
{
`if test -z "$ac_headers"; then echo "extern void localtime_r();"; fi`
                                         #ifdef localtime_r
                                         #else
                                           return (intptr_t)localtime_r;
                                         #endif


  ;
  return 0;
}

_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  ac_cv_func_localtime_r=yes; break

fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      done


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

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

elif :
then :

fi



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for getdate_r" >&5
printf %s "checking for getdate_r... " >&6; }
if test ${ac_cv_func_getdate_r+y}
then :
  printf %s "(cached) " >&6
else $as_nop

      ac_cv_func_getdate_r="no"
      echo > conftest.log

      for ac_headers in  ""; do
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <stdint.h>
                                         `echo $ac_headers|sed 's/+/\n/g'|while read s; do if test -n "$s"; then echo $s|sed 's/\(.*\)/#include <\\1>/g'; fi; done`

int
main (void)
{
`if test -z "$ac_headers"; then echo "extern void getdate_r();"; fi`
                                         #ifdef getdate_r
                                         #else
                                           return (intptr_t)getdate_r;
                                         #endif


  ;
  return 0;
}

_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  ac_cv_func_getdate_r=yes; break

fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      done


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

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

elif :
then :

fi

#AC_CHECK_FUNCTION(usleep,     [HAVE_USLEEP=1; AC_DEFINE(HAVE_USLEEP,1,[usleep() available])])


  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for usleep" >&5
printf %s "checking for usleep... " >&6; }
if test ${ac_cv_func_usleep+y}
then :
  printf %s "(cached) " >&6
else $as_nop

      ac_cv_func_usleep="no"
      echo > conftest.log

      for ac_headers in  ""; do
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <stdint.h>
                                         `echo $ac_headers|sed 's/+/\n/g'|while read s; do if test -n "$s"; then echo $s|sed 's/\(.*\)/#include <\\1>/g'; fi; done`

int
main (void)
{
`if test -z "$ac_headers"; then echo "extern void usleep();"; fi`
                                         #ifdef usleep
                                         #else
                                           return (intptr_t)usleep;
                                         #endif


  ;
  return 0;
}

_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  ac_cv_func_usleep=yes; break

fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      done


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

printf "%s\n" "#define HAVE_USLEEP 1" >>confdefs.h
]
elif :
then :

fi



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for nanosleep" >&5
printf %s "checking for nanosleep... " >&6; }
if test ${ac_cv_func_nanosleep+y}
then :
  printf %s "(cached) " >&6
else $as_nop

      ac_cv_func_nanosleep="no"
      echo > conftest.log

      for ac_headers in  ""; do
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <stdint.h>
                                         `echo $ac_headers|sed 's/+/\n/g'|while read s; do if test -n "$s"; then echo $s|sed 's/\(.*\)/#include <\\1>/g'; fi; done`

int
main (void)
{
`if test -z "$ac_headers"; then echo "extern void nanosleep();"; fi`
                                         #ifdef nanosleep
                                         #else
                                           return (intptr_t)nanosleep;
                                         #endif


  ;
  return 0;
}

_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  ac_cv_func_nanosleep=yes; break

fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      done


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

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

elif :
then :

fi



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for timegm" >&5
printf %s "checking for timegm... " >&6; }
if test ${ac_cv_func_timegm+y}
then :
  printf %s "(cached) " >&6
else $as_nop

      ac_cv_func_timegm="no"
      echo > conftest.log

      for ac_headers in  ""; do
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <stdint.h>
                                         `echo $ac_headers|sed 's/+/\n/g'|while read s; do if test -n "$s"; then echo $s|sed 's/\(.*\)/#include <\\1>/g'; fi; done`

int
main (void)
{
`if test -z "$ac_headers"; then echo "extern void timegm();"; fi`
                                         #ifdef timegm
                                         #else
                                           return (intptr_t)timegm;
                                         #endif


  ;
  return 0;
}

_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  ac_cv_func_timegm=yes; break

fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      done


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

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

elif :
then :

fi



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for strptime" >&5
printf %s "checking for strptime... " >&6; }
if test ${ac_cv_func_strptime+y}
then :
  printf %s "(cached) " >&6
else $as_nop

      ac_cv_func_strptime="no"
      echo > conftest.log

      for ac_headers in  ""; do
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <stdint.h>
                                         `echo $ac_headers|sed 's/+/\n/g'|while read s; do if test -n "$s"; then echo $s|sed 's/\(.*\)/#include <\\1>/g'; fi; done`

int
main (void)
{
`if test -z "$ac_headers"; then echo "extern void strptime();"; fi`
                                         #ifdef strptime
                                         #else
                                           return (intptr_t)strptime;
                                         #endif


  ;
  return 0;
}

_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  ac_cv_func_strptime=yes; break

fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      done


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

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

elif :
then :

fi




  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pipe" >&5
printf %s "checking for pipe... " >&6; }
if test ${ac_cv_func_pipe+y}
then :
  printf %s "(cached) " >&6
else $as_nop

      ac_cv_func_pipe="no"
      echo > conftest.log

      for ac_headers in  ""; do
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <stdint.h>
                                         `echo $ac_headers|sed 's/+/\n/g'|while read s; do if test -n "$s"; then echo $s|sed 's/\(.*\)/#include <\\1>/g'; fi; done`

int
main (void)
{
`if test -z "$ac_headers"; then echo "extern void pipe();"; fi`
                                         #ifdef pipe
                                         #else
                                           return (intptr_t)pipe;
                                         #endif


  ;
  return 0;
}

_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  ac_cv_func_pipe=yes; break

fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      done


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

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

elif :
then :

fi



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fork" >&5
printf %s "checking for fork... " >&6; }
if test ${ac_cv_func_fork+y}
then :
  printf %s "(cached) " >&6
else $as_nop

      ac_cv_func_fork="no"
      echo > conftest.log

      for ac_headers in  ""; do
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <stdint.h>
                                         `echo $ac_headers|sed 's/+/\n/g'|while read s; do if test -n "$s"; then echo $s|sed 's/\(.*\)/#include <\\1>/g'; fi; done`

int
main (void)
{
`if test -z "$ac_headers"; then echo "extern void fork();"; fi`
                                         #ifdef fork
                                         #else
                                           return (intptr_t)fork;
                                         #endif


  ;
  return 0;
}

_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  ac_cv_func_fork=yes; break

fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      done


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

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

elif :
then :

fi



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for waitpid" >&5
printf %s "checking for waitpid... " >&6; }
if test ${ac_cv_func_waitpid+y}
then :
  printf %s "(cached) " >&6
else $as_nop

      ac_cv_func_waitpid="no"
      echo > conftest.log

      for ac_headers in  ""; do
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <stdint.h>
                                         `echo $ac_headers|sed 's/+/\n/g'|while read s; do if test -n "$s"; then echo $s|sed 's/\(.*\)/#include <\\1>/g'; fi; done`

int
main (void)
{
`if test -z "$ac_headers"; then echo "extern void waitpid();"; fi`
                                         #ifdef waitpid
                                         #else
                                           return (intptr_t)waitpid;
                                         #endif


  ;
  return 0;
}

_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  ac_cv_func_waitpid=yes; break

fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      done


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

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

elif :
then :

fi




  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for zlibVersion" >&5
printf %s "checking for zlibVersion... " >&6; }
if test ${ac_cv_func_zlibVersion+y}
then :
  printf %s "(cached) " >&6
else $as_nop

      ac_cv_func_zlibVersion="no"
      echo > conftest.log

      for ac_headers in zlib.h ""; do
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <stdint.h>
                                         `echo $ac_headers|sed 's/+/\n/g'|while read s; do if test -n "$s"; then echo $s|sed 's/\(.*\)/#include <\\1>/g'; fi; done`

int
main (void)
{
`if test -z "$ac_headers"; then echo "extern void zlibVersion();"; fi`
                                         #ifdef zlibVersion
                                         #else
                                           return (intptr_t)zlibVersion;
                                         #endif


  ;
  return 0;
}

_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  ac_cv_func_zlibVersion=yes; break

fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      done


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

elif :
then :
  as_fn_error $? "mandatory function zlibVersion() is not available" "$LINENO" 5
fi




  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ZSTD_CCtx_reset" >&5
printf %s "checking for ZSTD_CCtx_reset... " >&6; }
if test ${ac_cv_func_ZSTD_CCtx_reset+y}
then :
  printf %s "(cached) " >&6
else $as_nop

      ac_cv_func_ZSTD_CCtx_reset="no"
      echo > conftest.log

      for ac_headers in  ""; do
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <stdint.h>
                                         `echo $ac_headers|sed 's/+/\n/g'|while read s; do if test -n "$s"; then echo $s|sed 's/\(.*\)/#include <\\1>/g'; fi; done`

int
main (void)
{
`if test -z "$ac_headers"; then echo "extern void ZSTD_CCtx_reset();"; fi`
                                         #ifdef ZSTD_CCtx_reset
                                         #else
                                           return (intptr_t)ZSTD_CCtx_reset;
                                         #endif


  ;
  return 0;
}

_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  ac_cv_func_ZSTD_CCtx_reset=yes; break

fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      done


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

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

elif :
then :

fi




  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libssh2_userauth_publickey_frommemory" >&5
printf %s "checking for libssh2_userauth_publickey_frommemory... " >&6; }
if test ${ac_cv_func_libssh2_userauth_publickey_frommemory+y}
then :
  printf %s "(cached) " >&6
else $as_nop

      ac_cv_func_libssh2_userauth_publickey_frommemory="no"
      echo > conftest.log

      for ac_headers in  ""; do
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <stdint.h>
                                         `echo $ac_headers|sed 's/+/\n/g'|while read s; do if test -n "$s"; then echo $s|sed 's/\(.*\)/#include <\\1>/g'; fi; done`

int
main (void)
{
`if test -z "$ac_headers"; then echo "extern void libssh2_userauth_publickey_frommemory();"; fi`
                                         #ifdef libssh2_userauth_publickey_frommemory
                                         #else
                                           return (intptr_t)libssh2_userauth_publickey_frommemory;
                                         #endif


  ;
  return 0;
}

_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  ac_cv_func_libssh2_userauth_publickey_frommemory=yes; break

fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      done


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

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

elif :
then :

fi



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libssh2_channel_send_keepalive" >&5
printf %s "checking for libssh2_channel_send_keepalive... " >&6; }
if test ${ac_cv_func_libssh2_channel_send_keepalive+y}
then :
  printf %s "(cached) " >&6
else $as_nop

      ac_cv_func_libssh2_channel_send_keepalive="no"
      echo > conftest.log

      for ac_headers in  ""; do
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <stdint.h>
                                         `echo $ac_headers|sed 's/+/\n/g'|while read s; do if test -n "$s"; then echo $s|sed 's/\(.*\)/#include <\\1>/g'; fi; done`

int
main (void)
{
`if test -z "$ac_headers"; then echo "extern void libssh2_channel_send_keepalive();"; fi`
                                         #ifdef libssh2_channel_send_keepalive
                                         #else
                                           return (intptr_t)libssh2_channel_send_keepalive;
                                         #endif


  ;
  return 0;
}

_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  ac_cv_func_libssh2_channel_send_keepalive=yes; break

fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      done


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

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

elif :
then :

fi



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libssh2_keepalive_config" >&5
printf %s "checking for libssh2_keepalive_config... " >&6; }
if test ${ac_cv_func_libssh2_keepalive_config+y}
then :
  printf %s "(cached) " >&6
else $as_nop

      ac_cv_func_libssh2_keepalive_config="no"
      echo > conftest.log

      for ac_headers in  ""; do
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <stdint.h>
                                         `echo $ac_headers|sed 's/+/\n/g'|while read s; do if test -n "$s"; then echo $s|sed 's/\(.*\)/#include <\\1>/g'; fi; done`

int
main (void)
{
`if test -z "$ac_headers"; then echo "extern void libssh2_keepalive_config();"; fi`
                                         #ifdef libssh2_keepalive_config
                                         #else
                                           return (intptr_t)libssh2_keepalive_config;
                                         #endif


  ;
  return 0;
}

_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  ac_cv_func_libssh2_keepalive_config=yes; break

fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      done


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

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

elif :
then :

fi



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libssh2_keepalive_send" >&5
printf %s "checking for libssh2_keepalive_send... " >&6; }
if test ${ac_cv_func_libssh2_keepalive_send+y}
then :
  printf %s "(cached) " >&6
else $as_nop

      ac_cv_func_libssh2_keepalive_send="no"
      echo > conftest.log

      for ac_headers in  ""; do
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <stdint.h>
                                         `echo $ac_headers|sed 's/+/\n/g'|while read s; do if test -n "$s"; then echo $s|sed 's/\(.*\)/#include <\\1>/g'; fi; done`

int
main (void)
{
`if test -z "$ac_headers"; then echo "extern void libssh2_keepalive_send();"; fi`
                                         #ifdef libssh2_keepalive_send
                                         #else
                                           return (intptr_t)libssh2_keepalive_send;
                                         #endif


  ;
  return 0;
}

_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  ac_cv_func_libssh2_keepalive_send=yes; break

fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      done


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

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

elif :
then :

fi



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libssh2_scp_send64" >&5
printf %s "checking for libssh2_scp_send64... " >&6; }
if test ${ac_cv_func_libssh2_scp_send64+y}
then :
  printf %s "(cached) " >&6
else $as_nop

      ac_cv_func_libssh2_scp_send64="no"
      echo > conftest.log

      for ac_headers in  ""; do
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <stdint.h>
                                         `echo $ac_headers|sed 's/+/\n/g'|while read s; do if test -n "$s"; then echo $s|sed 's/\(.*\)/#include <\\1>/g'; fi; done`

int
main (void)
{
`if test -z "$ac_headers"; then echo "extern void libssh2_scp_send64();"; fi`
                                         #ifdef libssh2_scp_send64
                                         #else
                                           return (intptr_t)libssh2_scp_send64;
                                         #endif


  ;
  return 0;
}

_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  ac_cv_func_libssh2_scp_send64=yes; break

fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      done


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

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

elif :
then :

fi



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libssh2_sftp_seek64" >&5
printf %s "checking for libssh2_sftp_seek64... " >&6; }
if test ${ac_cv_func_libssh2_sftp_seek64+y}
then :
  printf %s "(cached) " >&6
else $as_nop

      ac_cv_func_libssh2_sftp_seek64="no"
      echo > conftest.log

      for ac_headers in  ""; do
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <stdint.h>
                                         `echo $ac_headers|sed 's/+/\n/g'|while read s; do if test -n "$s"; then echo $s|sed 's/\(.*\)/#include <\\1>/g'; fi; done`

int
main (void)
{
`if test -z "$ac_headers"; then echo "extern void libssh2_sftp_seek64();"; fi`
                                         #ifdef libssh2_sftp_seek64
                                         #else
                                           return (intptr_t)libssh2_sftp_seek64;
                                         #endif


  ;
  return 0;
}

_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  ac_cv_func_libssh2_sftp_seek64=yes; break

fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      done


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

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

elif :
then :

fi



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libssh2_sftp_seek2" >&5
printf %s "checking for libssh2_sftp_seek2... " >&6; }
if test ${ac_cv_func_libssh2_sftp_seek2+y}
then :
  printf %s "(cached) " >&6
else $as_nop

      ac_cv_func_libssh2_sftp_seek2="no"
      echo > conftest.log

      for ac_headers in  ""; do
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <stdint.h>
                                         `echo $ac_headers|sed 's/+/\n/g'|while read s; do if test -n "$s"; then echo $s|sed 's/\(.*\)/#include <\\1>/g'; fi; done`

int
main (void)
{
`if test -z "$ac_headers"; then echo "extern void libssh2_sftp_seek2();"; fi`
                                         #ifdef libssh2_sftp_seek2
                                         #else
                                           return (intptr_t)libssh2_sftp_seek2;
                                         #endif


  ;
  return 0;
}

_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  ac_cv_func_libssh2_sftp_seek2=yes; break

fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      done


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

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

elif :
then :

fi




  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for SHA256_Init" >&5
printf %s "checking for SHA256_Init... " >&6; }
if test ${ac_cv_func_SHA256_Init+y}
then :
  printf %s "(cached) " >&6
else $as_nop

      ac_cv_func_SHA256_Init="no"
      echo > conftest.log

      for ac_headers in  ""; do
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <stdint.h>
                                         `echo $ac_headers|sed 's/+/\n/g'|while read s; do if test -n "$s"; then echo $s|sed 's/\(.*\)/#include <\\1>/g'; fi; done`

int
main (void)
{
`if test -z "$ac_headers"; then echo "extern void SHA256_Init();"; fi`
                                         #ifdef SHA256_Init
                                         #else
                                           return (intptr_t)SHA256_Init;
                                         #endif


  ;
  return 0;
}

_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  ac_cv_func_SHA256_Init=yes; break

fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      done


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

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

elif :
then :

fi



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for SHA256_Final" >&5
printf %s "checking for SHA256_Final... " >&6; }
if test ${ac_cv_func_SHA256_Final+y}
then :
  printf %s "(cached) " >&6
else $as_nop

      ac_cv_func_SHA256_Final="no"
      echo > conftest.log

      for ac_headers in  ""; do
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <stdint.h>
                                         `echo $ac_headers|sed 's/+/\n/g'|while read s; do if test -n "$s"; then echo $s|sed 's/\(.*\)/#include <\\1>/g'; fi; done`

int
main (void)
{
`if test -z "$ac_headers"; then echo "extern void SHA256_Final();"; fi`
                                         #ifdef SHA256_Final
                                         #else
                                           return (intptr_t)SHA256_Final;
                                         #endif


  ;
  return 0;
}

_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  ac_cv_func_SHA256_Final=yes; break

fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      done


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

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

elif :
then :

fi



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for SHA256_Update" >&5
printf %s "checking for SHA256_Update... " >&6; }
if test ${ac_cv_func_SHA256_Update+y}
then :
  printf %s "(cached) " >&6
else $as_nop

      ac_cv_func_SHA256_Update="no"
      echo > conftest.log

      for ac_headers in  ""; do
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <stdint.h>
                                         `echo $ac_headers|sed 's/+/\n/g'|while read s; do if test -n "$s"; then echo $s|sed 's/\(.*\)/#include <\\1>/g'; fi; done`

int
main (void)
{
`if test -z "$ac_headers"; then echo "extern void SHA256_Update();"; fi`
                                         #ifdef SHA256_Update
                                         #else
                                           return (intptr_t)SHA256_Update;
                                         #endif


  ;
  return 0;
}

_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  ac_cv_func_SHA256_Update=yes; break

fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      done


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

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

elif :
then :

fi




  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gcry_md_open" >&5
printf %s "checking for gcry_md_open... " >&6; }
if test ${ac_cv_func_gcry_md_open+y}
then :
  printf %s "(cached) " >&6
else $as_nop

      ac_cv_func_gcry_md_open="no"
      echo > conftest.log

      for ac_headers in  ""; do
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <stdint.h>
                                         `echo $ac_headers|sed 's/+/\n/g'|while read s; do if test -n "$s"; then echo $s|sed 's/\(.*\)/#include <\\1>/g'; fi; done`

int
main (void)
{
`if test -z "$ac_headers"; then echo "extern void gcry_md_open();"; fi`
                                         #ifdef gcry_md_open
                                         #else
                                           return (intptr_t)gcry_md_open;
                                         #endif


  ;
  return 0;
}

_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  ac_cv_func_gcry_md_open=yes; break

fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      done


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

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

elif :
then :

fi



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gcry_md_close" >&5
printf %s "checking for gcry_md_close... " >&6; }
if test ${ac_cv_func_gcry_md_close+y}
then :
  printf %s "(cached) " >&6
else $as_nop

      ac_cv_func_gcry_md_close="no"
      echo > conftest.log

      for ac_headers in  ""; do
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <stdint.h>
                                         `echo $ac_headers|sed 's/+/\n/g'|while read s; do if test -n "$s"; then echo $s|sed 's/\(.*\)/#include <\\1>/g'; fi; done`

int
main (void)
{
`if test -z "$ac_headers"; then echo "extern void gcry_md_close();"; fi`
                                         #ifdef gcry_md_close
                                         #else
                                           return (intptr_t)gcry_md_close;
                                         #endif


  ;
  return 0;
}

_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  ac_cv_func_gcry_md_close=yes; break

fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      done


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

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

elif :
then :

fi



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gcry_md_write" >&5
printf %s "checking for gcry_md_write... " >&6; }
if test ${ac_cv_func_gcry_md_write+y}
then :
  printf %s "(cached) " >&6
else $as_nop

      ac_cv_func_gcry_md_write="no"
      echo > conftest.log

      for ac_headers in  ""; do
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <stdint.h>
                                         `echo $ac_headers|sed 's/+/\n/g'|while read s; do if test -n "$s"; then echo $s|sed 's/\(.*\)/#include <\\1>/g'; fi; done`

int
main (void)
{
`if test -z "$ac_headers"; then echo "extern void gcry_md_write();"; fi`
                                         #ifdef gcry_md_write
                                         #else
                                           return (intptr_t)gcry_md_write;
                                         #endif


  ;
  return 0;
}

_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  ac_cv_func_gcry_md_write=yes; break

fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      done


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

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

elif :
then :

fi




  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for iso9660_open" >&5
printf %s "checking for iso9660_open... " >&6; }
if test ${ac_cv_func_iso9660_open+y}
then :
  printf %s "(cached) " >&6
else $as_nop

      ac_cv_func_iso9660_open="no"
      echo > conftest.log

      for ac_headers in  ""; do
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <stdint.h>
                                         `echo $ac_headers|sed 's/+/\n/g'|while read s; do if test -n "$s"; then echo $s|sed 's/\(.*\)/#include <\\1>/g'; fi; done`

int
main (void)
{
`if test -z "$ac_headers"; then echo "extern void iso9660_open();"; fi`
                                         #ifdef iso9660_open
                                         #else
                                           return (intptr_t)iso9660_open;
                                         #endif


  ;
  return 0;
}

_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  ac_cv_func_iso9660_open=yes; break

fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      done


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

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

elif :
then :

fi



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for iso9660_close" >&5
printf %s "checking for iso9660_close... " >&6; }
if test ${ac_cv_func_iso9660_close+y}
then :
  printf %s "(cached) " >&6
else $as_nop

      ac_cv_func_iso9660_close="no"
      echo > conftest.log

      for ac_headers in  ""; do
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <stdint.h>
                                         `echo $ac_headers|sed 's/+/\n/g'|while read s; do if test -n "$s"; then echo $s|sed 's/\(.*\)/#include <\\1>/g'; fi; done`

int
main (void)
{
`if test -z "$ac_headers"; then echo "extern void iso9660_close();"; fi`
                                         #ifdef iso9660_close
                                         #else
                                           return (intptr_t)iso9660_close;
                                         #endif


  ;
  return 0;
}

_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  ac_cv_func_iso9660_close=yes; break

fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      done


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

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

elif :
then :

fi



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for iso9660_ifs_stat_translate" >&5
printf %s "checking for iso9660_ifs_stat_translate... " >&6; }
if test ${ac_cv_func_iso9660_ifs_stat_translate+y}
then :
  printf %s "(cached) " >&6
else $as_nop

      ac_cv_func_iso9660_ifs_stat_translate="no"
      echo > conftest.log

      for ac_headers in  ""; do
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <stdint.h>
                                         `echo $ac_headers|sed 's/+/\n/g'|while read s; do if test -n "$s"; then echo $s|sed 's/\(.*\)/#include <\\1>/g'; fi; done`

int
main (void)
{
`if test -z "$ac_headers"; then echo "extern void iso9660_ifs_stat_translate();"; fi`
                                         #ifdef iso9660_ifs_stat_translate
                                         #else
                                           return (intptr_t)iso9660_ifs_stat_translate;
                                         #endif


  ;
  return 0;
}

_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  ac_cv_func_iso9660_ifs_stat_translate=yes; break

fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      done


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

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

elif :
then :

fi



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for iso9660_iso_seek_read" >&5
printf %s "checking for iso9660_iso_seek_read... " >&6; }
if test ${ac_cv_func_iso9660_iso_seek_read+y}
then :
  printf %s "(cached) " >&6
else $as_nop

      ac_cv_func_iso9660_iso_seek_read="no"
      echo > conftest.log

      for ac_headers in  ""; do
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <stdint.h>
                                         `echo $ac_headers|sed 's/+/\n/g'|while read s; do if test -n "$s"; then echo $s|sed 's/\(.*\)/#include <\\1>/g'; fi; done`

int
main (void)
{
`if test -z "$ac_headers"; then echo "extern void iso9660_iso_seek_read();"; fi`
                                         #ifdef iso9660_iso_seek_read
                                         #else
                                           return (intptr_t)iso9660_iso_seek_read;
                                         #endif


  ;
  return 0;
}

_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  ac_cv_func_iso9660_iso_seek_read=yes; break

fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      done


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

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

elif :
then :

fi




  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for smb2_init_context" >&5
printf %s "checking for smb2_init_context... " >&6; }
if test ${ac_cv_func_smb2_init_context+y}
then :
  printf %s "(cached) " >&6
else $as_nop

      ac_cv_func_smb2_init_context="no"
      echo > conftest.log

      for ac_headers in  ""; do
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <stdint.h>
                                         `echo $ac_headers|sed 's/+/\n/g'|while read s; do if test -n "$s"; then echo $s|sed 's/\(.*\)/#include <\\1>/g'; fi; done`

int
main (void)
{
`if test -z "$ac_headers"; then echo "extern void smb2_init_context();"; fi`
                                         #ifdef smb2_init_context
                                         #else
                                           return (intptr_t)smb2_init_context;
                                         #endif


  ;
  return 0;
}

_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  ac_cv_func_smb2_init_context=yes; break

fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      done


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

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

elif :
then :

fi



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for smb2_done_context" >&5
printf %s "checking for smb2_done_context... " >&6; }
if test ${ac_cv_func_smb2_done_context+y}
then :
  printf %s "(cached) " >&6
else $as_nop

      ac_cv_func_smb2_done_context="no"
      echo > conftest.log

      for ac_headers in  ""; do
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <stdint.h>
                                         `echo $ac_headers|sed 's/+/\n/g'|while read s; do if test -n "$s"; then echo $s|sed 's/\(.*\)/#include <\\1>/g'; fi; done`

int
main (void)
{
`if test -z "$ac_headers"; then echo "extern void smb2_done_context();"; fi`
                                         #ifdef smb2_done_context
                                         #else
                                           return (intptr_t)smb2_done_context;
                                         #endif


  ;
  return 0;
}

_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  ac_cv_func_smb2_done_context=yes; break

fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      done


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

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

elif :
then :

fi



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for smb2_parse_url" >&5
printf %s "checking for smb2_parse_url... " >&6; }
if test ${ac_cv_func_smb2_parse_url+y}
then :
  printf %s "(cached) " >&6
else $as_nop

      ac_cv_func_smb2_parse_url="no"
      echo > conftest.log

      for ac_headers in  ""; do
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <stdint.h>
                                         `echo $ac_headers|sed 's/+/\n/g'|while read s; do if test -n "$s"; then echo $s|sed 's/\(.*\)/#include <\\1>/g'; fi; done`

int
main (void)
{
`if test -z "$ac_headers"; then echo "extern void smb2_parse_url();"; fi`
                                         #ifdef smb2_parse_url
                                         #else
                                           return (intptr_t)smb2_parse_url;
                                         #endif


  ;
  return 0;
}

_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  ac_cv_func_smb2_parse_url=yes; break

fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      done


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

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

elif :
then :

fi



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for smb2_opendir" >&5
printf %s "checking for smb2_opendir... " >&6; }
if test ${ac_cv_func_smb2_opendir+y}
then :
  printf %s "(cached) " >&6
else $as_nop

      ac_cv_func_smb2_opendir="no"
      echo > conftest.log

      for ac_headers in  ""; do
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <stdint.h>
                                         `echo $ac_headers|sed 's/+/\n/g'|while read s; do if test -n "$s"; then echo $s|sed 's/\(.*\)/#include <\\1>/g'; fi; done`

int
main (void)
{
`if test -z "$ac_headers"; then echo "extern void smb2_opendir();"; fi`
                                         #ifdef smb2_opendir
                                         #else
                                           return (intptr_t)smb2_opendir;
                                         #endif


  ;
  return 0;
}

_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  ac_cv_func_smb2_opendir=yes; break

fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      done


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

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

elif :
then :

fi




  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for uuid_generate" >&5
printf %s "checking for uuid_generate... " >&6; }
if test ${ac_cv_func_uuid_generate+y}
then :
  printf %s "(cached) " >&6
else $as_nop

      ac_cv_func_uuid_generate="no"
      echo > conftest.log

      for ac_headers in  ""; do
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <stdint.h>
                                         `echo $ac_headers|sed 's/+/\n/g'|while read s; do if test -n "$s"; then echo $s|sed 's/\(.*\)/#include <\\1>/g'; fi; done`

int
main (void)
{
`if test -z "$ac_headers"; then echo "extern void uuid_generate();"; fi`
                                         #ifdef uuid_generate
                                         #else
                                           return (intptr_t)uuid_generate;
                                         #endif


  ;
  return 0;
}

_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  ac_cv_func_uuid_generate=yes; break

fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      done


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

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

elif :
then :

fi



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for uuid_parse" >&5
printf %s "checking for uuid_parse... " >&6; }
if test ${ac_cv_func_uuid_parse+y}
then :
  printf %s "(cached) " >&6
else $as_nop

      ac_cv_func_uuid_parse="no"
      echo > conftest.log

      for ac_headers in  ""; do
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <stdint.h>
                                         `echo $ac_headers|sed 's/+/\n/g'|while read s; do if test -n "$s"; then echo $s|sed 's/\(.*\)/#include <\\1>/g'; fi; done`

int
main (void)
{
`if test -z "$ac_headers"; then echo "extern void uuid_parse();"; fi`
                                         #ifdef uuid_parse
                                         #else
                                           return (intptr_t)uuid_parse;
                                         #endif


  ;
  return 0;
}

_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  ac_cv_func_uuid_parse=yes; break

fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      done


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

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

elif :
then :

fi



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for uuid_unparse_lower" >&5
printf %s "checking for uuid_unparse_lower... " >&6; }
if test ${ac_cv_func_uuid_unparse_lower+y}
then :
  printf %s "(cached) " >&6
else $as_nop

      ac_cv_func_uuid_unparse_lower="no"
      echo > conftest.log

      for ac_headers in  ""; do
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <stdint.h>
                                         `echo $ac_headers|sed 's/+/\n/g'|while read s; do if test -n "$s"; then echo $s|sed 's/\(.*\)/#include <\\1>/g'; fi; done`

int
main (void)
{
`if test -z "$ac_headers"; then echo "extern void uuid_unparse_lower();"; fi`
                                         #ifdef uuid_unparse_lower
                                         #else
                                           return (intptr_t)uuid_unparse_lower;
                                         #endif


  ;
  return 0;
}

_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  ac_cv_func_uuid_unparse_lower=yes; break

fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      done


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

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

elif :
then :

fi




  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysconf" >&5
printf %s "checking for sysconf... " >&6; }
if test ${ac_cv_func_sysconf+y}
then :
  printf %s "(cached) " >&6
else $as_nop

      ac_cv_func_sysconf="no"
      echo > conftest.log

      for ac_headers in  ""; do
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <stdint.h>
                                         `echo $ac_headers|sed 's/+/\n/g'|while read s; do if test -n "$s"; then echo $s|sed 's/\(.*\)/#include <\\1>/g'; fi; done`

int
main (void)
{
`if test -z "$ac_headers"; then echo "extern void sysconf();"; fi`
                                         #ifdef sysconf
                                         #else
                                           return (intptr_t)sysconf;
                                         #endif


  ;
  return 0;
}

_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  ac_cv_func_sysconf=yes; break

fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      done


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

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

elif :
then :

fi



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for backtrace" >&5
printf %s "checking for backtrace... " >&6; }
if test ${ac_cv_func_backtrace+y}
then :
  printf %s "(cached) " >&6
else $as_nop

      ac_cv_func_backtrace="no"
      echo > conftest.log

      for ac_headers in  ""; do
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <stdint.h>
                                         `echo $ac_headers|sed 's/+/\n/g'|while read s; do if test -n "$s"; then echo $s|sed 's/\(.*\)/#include <\\1>/g'; fi; done`

int
main (void)
{
`if test -z "$ac_headers"; then echo "extern void backtrace();"; fi`
                                         #ifdef backtrace
                                         #else
                                           return (intptr_t)backtrace;
                                         #endif


  ;
  return 0;
}

_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  ac_cv_func_backtrace=yes; break

fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      done


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

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

elif :
then :

fi



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for backtrace_symbols" >&5
printf %s "checking for backtrace_symbols... " >&6; }
if test ${ac_cv_func_backtrace_symbols+y}
then :
  printf %s "(cached) " >&6
else $as_nop

      ac_cv_func_backtrace_symbols="no"
      echo > conftest.log

      for ac_headers in  ""; do
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <stdint.h>
                                         `echo $ac_headers|sed 's/+/\n/g'|while read s; do if test -n "$s"; then echo $s|sed 's/\(.*\)/#include <\\1>/g'; fi; done`

int
main (void)
{
`if test -z "$ac_headers"; then echo "extern void backtrace_symbols();"; fi`
                                         #ifdef backtrace_symbols
                                         #else
                                           return (intptr_t)backtrace_symbols;
                                         #endif


  ;
  return 0;
}

_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  ac_cv_func_backtrace_symbols=yes; break

fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      done


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

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

elif :
then :

fi




  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for setlocale" >&5
printf %s "checking for setlocale... " >&6; }
if test ${ac_cv_func_setlocale+y}
then :
  printf %s "(cached) " >&6
else $as_nop

      ac_cv_func_setlocale="no"
      echo > conftest.log

      for ac_headers in  ""; do
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <stdint.h>
                                         `echo $ac_headers|sed 's/+/\n/g'|while read s; do if test -n "$s"; then echo $s|sed 's/\(.*\)/#include <\\1>/g'; fi; done`

int
main (void)
{
`if test -z "$ac_headers"; then echo "extern void setlocale();"; fi`
                                         #ifdef setlocale
                                         #else
                                           return (intptr_t)setlocale;
                                         #endif


  ;
  return 0;
}

_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  ac_cv_func_setlocale=yes; break

fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      done


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

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

elif :
then :

fi



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for uselocale" >&5
printf %s "checking for uselocale... " >&6; }
if test ${ac_cv_func_uselocale+y}
then :
  printf %s "(cached) " >&6
else $as_nop

      ac_cv_func_uselocale="no"
      echo > conftest.log

      for ac_headers in  ""; do
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <stdint.h>
                                         `echo $ac_headers|sed 's/+/\n/g'|while read s; do if test -n "$s"; then echo $s|sed 's/\(.*\)/#include <\\1>/g'; fi; done`

int
main (void)
{
`if test -z "$ac_headers"; then echo "extern void uselocale();"; fi`
                                         #ifdef uselocale
                                         #else
                                           return (intptr_t)uselocale;
                                         #endif


  ;
  return 0;
}

_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  ac_cv_func_uselocale=yes; break

fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      done


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

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

elif :
then :

fi



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for newlocale" >&5
printf %s "checking for newlocale... " >&6; }
if test ${ac_cv_func_newlocale+y}
then :
  printf %s "(cached) " >&6
else $as_nop

      ac_cv_func_newlocale="no"
      echo > conftest.log

      for ac_headers in  ""; do
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <stdint.h>
                                         `echo $ac_headers|sed 's/+/\n/g'|while read s; do if test -n "$s"; then echo $s|sed 's/\(.*\)/#include <\\1>/g'; fi; done`

int
main (void)
{
`if test -z "$ac_headers"; then echo "extern void newlocale();"; fi`
                                         #ifdef newlocale
                                         #else
                                           return (intptr_t)newlocale;
                                         #endif


  ;
  return 0;
}

_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  ac_cv_func_newlocale=yes; break

fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      done


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

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

elif :
then :

fi



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for freelocale" >&5
printf %s "checking for freelocale... " >&6; }
if test ${ac_cv_func_freelocale+y}
then :
  printf %s "(cached) " >&6
else $as_nop

      ac_cv_func_freelocale="no"
      echo > conftest.log

      for ac_headers in  ""; do
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <stdint.h>
                                         `echo $ac_headers|sed 's/+/\n/g'|while read s; do if test -n "$s"; then echo $s|sed 's/\(.*\)/#include <\\1>/g'; fi; done`

int
main (void)
{
`if test -z "$ac_headers"; then echo "extern void freelocale();"; fi`
                                         #ifdef freelocale
                                         #else
                                           return (intptr_t)freelocale;
                                         #endif


  ;
  return 0;
}

_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  ac_cv_func_freelocale=yes; break

fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      done


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

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

elif :
then :

fi



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for textdomain" >&5
printf %s "checking for textdomain... " >&6; }
if test ${ac_cv_func_textdomain+y}
then :
  printf %s "(cached) " >&6
else $as_nop

      ac_cv_func_textdomain="no"
      echo > conftest.log

      for ac_headers in  ""; do
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <stdint.h>
                                         `echo $ac_headers|sed 's/+/\n/g'|while read s; do if test -n "$s"; then echo $s|sed 's/\(.*\)/#include <\\1>/g'; fi; done`

int
main (void)
{
`if test -z "$ac_headers"; then echo "extern void textdomain();"; fi`
                                         #ifdef textdomain
                                         #else
                                           return (intptr_t)textdomain;
                                         #endif


  ;
  return 0;
}

_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  ac_cv_func_textdomain=yes; break

fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      done


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

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

elif :
then :

fi



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for bindtextdomain" >&5
printf %s "checking for bindtextdomain... " >&6; }
if test ${ac_cv_func_bindtextdomain+y}
then :
  printf %s "(cached) " >&6
else $as_nop

      ac_cv_func_bindtextdomain="no"
      echo > conftest.log

      for ac_headers in  ""; do
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <stdint.h>
                                         `echo $ac_headers|sed 's/+/\n/g'|while read s; do if test -n "$s"; then echo $s|sed 's/\(.*\)/#include <\\1>/g'; fi; done`

int
main (void)
{
`if test -z "$ac_headers"; then echo "extern void bindtextdomain();"; fi`
                                         #ifdef bindtextdomain
                                         #else
                                           return (intptr_t)bindtextdomain;
                                         #endif


  ;
  return 0;
}

_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  ac_cv_func_bindtextdomain=yes; break

fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      done


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

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

elif :
then :

fi



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gettext" >&5
printf %s "checking for gettext... " >&6; }
if test ${ac_cv_func_gettext+y}
then :
  printf %s "(cached) " >&6
else $as_nop

      ac_cv_func_gettext="no"
      echo > conftest.log

      for ac_headers in  ""; do
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <stdint.h>
                                         `echo $ac_headers|sed 's/+/\n/g'|while read s; do if test -n "$s"; then echo $s|sed 's/\(.*\)/#include <\\1>/g'; fi; done`

int
main (void)
{
`if test -z "$ac_headers"; then echo "extern void gettext();"; fi`
                                         #ifdef gettext
                                         #else
                                           return (intptr_t)gettext;
                                         #endif


  ;
  return 0;
}

_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  ac_cv_func_gettext=yes; break

fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      done


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

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

elif :
then :

fi


# Note: these functions around bound by daynmic lazy loading to avoid dependency to libsystemd.so
#AC_CHECK_FUNCTION(sd_notify,                        AC_DEFINE(HAVE_SD_NOTIFY,                        1,[sd_notify() available]),,systemd/sd-daemon.h)
#AC_CHECK_FUNCTION(sd_notifyf,                       AC_DEFINE(HAVE_SD_NOTIFYF,                       1,[sd_notifyf() available]),,systemd/sd-daemon.h)
#AC_CHECK_FUNCTION(sd_notify_barrier,                AC_DEFINE(HAVE_SD_NOTIFY_BARRIER,                1,[sd_notify_barrier() available]),,systemd/sd-daemon.h)
#AC_CHECK_FUNCTION(sd_id128_get_machine,             AC_DEFINE(HAVE_SD_ID128_GET_MACHINE,             1,[sd_id128_get_machine() available]),,systemd/sd-id128.h)
#AC_CHECK_FUNCTION(sd_id128_get_machine_app_specific,AC_DEFINE(HAVE_SD_ID128_GET_MACHINE_APP_SPECIFIC,1,[sd_id128_get_machine_app_specific() available]),,systemd/sd-id128.h)



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for mnt_new_table_from_file" >&5
printf %s "checking for mnt_new_table_from_file... " >&6; }
if test ${ac_cv_func_mnt_new_table_from_file+y}
then :
  printf %s "(cached) " >&6
else $as_nop

      ac_cv_func_mnt_new_table_from_file="no"
      echo > conftest.log

      for ac_headers in libmount.h ""; do
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <stdint.h>
                                         `echo $ac_headers|sed 's/+/\n/g'|while read s; do if test -n "$s"; then echo $s|sed 's/\(.*\)/#include <\\1>/g'; fi; done`

int
main (void)
{
`if test -z "$ac_headers"; then echo "extern void mnt_new_table_from_file();"; fi`
                                         #ifdef mnt_new_table_from_file
                                         #else
                                           return (intptr_t)mnt_new_table_from_file;
                                         #endif


  ;
  return 0;
}

_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  ac_cv_func_mnt_new_table_from_file=yes; break

fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      done


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

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

elif :
then :

fi



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for mnt_context_mount" >&5
printf %s "checking for mnt_context_mount... " >&6; }
if test ${ac_cv_func_mnt_context_mount+y}
then :
  printf %s "(cached) " >&6
else $as_nop

      ac_cv_func_mnt_context_mount="no"
      echo > conftest.log

      for ac_headers in libmount.h ""; do
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <stdint.h>
                                         `echo $ac_headers|sed 's/+/\n/g'|while read s; do if test -n "$s"; then echo $s|sed 's/\(.*\)/#include <\\1>/g'; fi; done`

int
main (void)
{
`if test -z "$ac_headers"; then echo "extern void mnt_context_mount();"; fi`
                                         #ifdef mnt_context_mount
                                         #else
                                           return (intptr_t)mnt_context_mount;
                                         #endif


  ;
  return 0;
}

_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  ac_cv_func_mnt_context_mount=yes; break

fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      done


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

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

elif :
then :

fi




  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for blkid_new_probe" >&5
printf %s "checking for blkid_new_probe... " >&6; }
if test ${ac_cv_func_blkid_new_probe+y}
then :
  printf %s "(cached) " >&6
else $as_nop

      ac_cv_func_blkid_new_probe="no"
      echo > conftest.log

      for ac_headers in blkid/blkid.h ""; do
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <stdint.h>
                                         `echo $ac_headers|sed 's/+/\n/g'|while read s; do if test -n "$s"; then echo $s|sed 's/\(.*\)/#include <\\1>/g'; fi; done`

int
main (void)
{
`if test -z "$ac_headers"; then echo "extern void blkid_new_probe();"; fi`
                                         #ifdef blkid_new_probe
                                         #else
                                           return (intptr_t)blkid_new_probe;
                                         #endif


  ;
  return 0;
}

_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  ac_cv_func_blkid_new_probe=yes; break

fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      done


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

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

elif :
then :

fi



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for blkid_do_probe" >&5
printf %s "checking for blkid_do_probe... " >&6; }
if test ${ac_cv_func_blkid_do_probe+y}
then :
  printf %s "(cached) " >&6
else $as_nop

      ac_cv_func_blkid_do_probe="no"
      echo > conftest.log

      for ac_headers in blkid/blkid.h ""; do
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <stdint.h>
                                         `echo $ac_headers|sed 's/+/\n/g'|while read s; do if test -n "$s"; then echo $s|sed 's/\(.*\)/#include <\\1>/g'; fi; done`

int
main (void)
{
`if test -z "$ac_headers"; then echo "extern void blkid_do_probe();"; fi`
                                         #ifdef blkid_do_probe
                                         #else
                                           return (intptr_t)blkid_do_probe;
                                         #endif


  ;
  return 0;
}

_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  ac_cv_func_blkid_do_probe=yes; break

fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      done


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

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

elif :
then :

fi



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for blkid_probe_lookup_value" >&5
printf %s "checking for blkid_probe_lookup_value... " >&6; }
if test ${ac_cv_func_blkid_probe_lookup_value+y}
then :
  printf %s "(cached) " >&6
else $as_nop

      ac_cv_func_blkid_probe_lookup_value="no"
      echo > conftest.log

      for ac_headers in blkid/blkid.h ""; do
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <stdint.h>
                                         `echo $ac_headers|sed 's/+/\n/g'|while read s; do if test -n "$s"; then echo $s|sed 's/\(.*\)/#include <\\1>/g'; fi; done`

int
main (void)
{
`if test -z "$ac_headers"; then echo "extern void blkid_probe_lookup_value();"; fi`
                                         #ifdef blkid_probe_lookup_value
                                         #else
                                           return (intptr_t)blkid_probe_lookup_value;
                                         #endif


  ;
  return 0;
}

_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  ac_cv_func_blkid_probe_lookup_value=yes; break

fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      done


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

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

elif :
then :

fi




  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for bfd_init" >&5
printf %s "checking for bfd_init... " >&6; }
if test ${ac_cv_func_bfd_init+y}
then :
  printf %s "(cached) " >&6
else $as_nop

      ac_cv_func_bfd_init="no"
      echo > conftest.log

      for ac_headers in bfd.h ""; do
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <stdint.h>
                                         `echo $ac_headers|sed 's/+/\n/g'|while read s; do if test -n "$s"; then echo $s|sed 's/\(.*\)/#include <\\1>/g'; fi; done`

int
main (void)
{
`if test -z "$ac_headers"; then echo "extern void bfd_init();"; fi`
                                         #ifdef bfd_init
                                         #else
                                           return (intptr_t)bfd_init;
                                         #endif


  ;
  return 0;
}

_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  ac_cv_func_bfd_init=yes; break

fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      done


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

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

elif :
then :

fi



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for bfd_get_section_flags" >&5
printf %s "checking for bfd_get_section_flags... " >&6; }
if test ${ac_cv_func_bfd_get_section_flags+y}
then :
  printf %s "(cached) " >&6
else $as_nop

      ac_cv_func_bfd_get_section_flags="no"
      echo > conftest.log

      for ac_headers in bfd.h ""; do
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <stdint.h>
                                         `echo $ac_headers|sed 's/+/\n/g'|while read s; do if test -n "$s"; then echo $s|sed 's/\(.*\)/#include <\\1>/g'; fi; done`

int
main (void)
{
`if test -z "$ac_headers"; then echo "extern void bfd_get_section_flags();"; fi`
                                         #ifdef bfd_get_section_flags
                                         #else
                                           return (intptr_t)bfd_get_section_flags;
                                         #endif


  ;
  return 0;
}

_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  ac_cv_func_bfd_get_section_flags=yes; break

fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      done


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

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

elif :
then :

fi



  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for bfd_section_flags" >&5
printf %s "checking for bfd_section_flags... " >&6; }
if test ${ac_cv_func_bfd_section_flags+y}
then :
  printf %s "(cached) " >&6
else $as_nop

      ac_cv_func_bfd_section_flags="no"
      echo > conftest.log

      for ac_headers in bfd.h ""; do
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <stdint.h>
                                         `echo $ac_headers|sed 's/+/\n/g'|while read s; do if test -n "$s"; then echo $s|sed 's/\(.*\)/#include <\\1>/g'; fi; done`

int
main (void)
{
`if test -z "$ac_headers"; then echo "extern void bfd_section_flags();"; fi`
                                         #ifdef bfd_section_flags
                                         #else
                                           return (intptr_t)bfd_section_flags;
                                         #endif


  ;
  return 0;
}

_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  ac_cv_func_bfd_section_flags=yes; break

fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      done


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

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

elif :
then :

fi

if test $HAVE_BFD; then


  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking number of arguments of bfd_section_vma()" >&5
printf %s "checking number of arguments of bfd_section_vma()... " >&6; }
if test ${ac_cv_bfd_section_vma_arguments_count+y}
then :
  printf %s "(cached) " >&6
else $as_nop

      ac_cv_bfd_section_vma_arguments_count="unknown"

      if test "$ac_cv_bfd_section_vma_arguments_count" = "unknown"; then
        cat << \EOF > conftest.c
#include <stdlib.h>
#include <bfd.h>
int main(void) { asection *section = NULL; bfd_section_vma(section); return 0; }
EOF
        ${CC} ${CFLAGS} -Wall -Werror -c conftest.c -o conftest.o 1>/dev/null 2>/dev/null; rc=$?
        if test $rc -eq 0; then
          ac_cv_bfd_section_vma_arguments_count=1
        fi
        rm -f conftest.c conftest.o
      fi
      if test "$ac_cv_bfd_section_vma_arguments_count" = "unknown"; then
        cat << \EOF > conftest.c
#include <stdlib.h>
#include <bfd.h>
int main(void) { bfd *abfd = NULL; asection *section = NULL; bfd_section_vma(abfd,section); (void)abfd; return 0; }
EOF
        ${CC} ${CFLAGS} -Wall -Werror -c conftest.c -o conftest.o 1>/dev/null 2>/dev/null; rc=$?
        if test $rc -eq 0; then
          ac_cv_bfd_section_vma_arguments_count=2
        fi
        rm -f conftest.c conftest.o
      fi


fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_bfd_section_vma_arguments_count" >&5
printf "%s\n" "$ac_cv_bfd_section_vma_arguments_count" >&6; }
  if test "$ac_cv_bfd_section_vma_arguments_count" != "unknown"
then :

elif :
then :
  as_fn_error $? "cannot detect number of arguments of bfd_section_vma()" "$LINENO" 5
fi

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





  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking number of arguments of bfd_section_size()" >&5
printf %s "checking number of arguments of bfd_section_size()... " >&6; }
if test ${ac_cv_bfd_section_size_arguments_count+y}
then :
  printf %s "(cached) " >&6
else $as_nop

      ac_cv_bfd_section_size_arguments_count="unknown"

      if test "$ac_cv_bfd_section_size_arguments_count" = "unknown"; then
        cat << \EOF > conftest.c
#include <stdlib.h>
#include <bfd.h>
int main(void) { asection *section = NULL; bfd_section_size(section); return 0; }
EOF
        ${CC} ${CFLAGS} -Wall -Werror -c conftest.c -o conftest.o 1>/dev/null 2>/dev/null; rc=$?
        if test $rc -eq 0; then
          ac_cv_bfd_section_size_arguments_count=1
        fi
        rm -f conftest.c conftest.o
      fi
      if test "$ac_cv_bfd_section_size_arguments_count" = "unknown"; then
        cat << \EOF > conftest.c
#include <stdlib.h>
#include <bfd.h>
int main(void) { bfd *abfd = NULL; asection *section = NULL; bfd_section_size(abfd,section); (void)abfd; return 0; }
EOF
        ${CC} ${CFLAGS} -Wall -Werror -c conftest.c -o conftest.o 1>/dev/null 2>/dev/null; rc=$?
        if test $rc -eq 0; then
          ac_cv_bfd_section_size_arguments_count=2
        fi
        rm -f conftest.c conftest.o
      fi


fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_bfd_section_size_arguments_count" >&5
printf "%s\n" "$ac_cv_bfd_section_size_arguments_count" >&6; }
  if test "$ac_cv_bfd_section_size_arguments_count" != "unknown"
then :

elif :
then :
  as_fn_error $? "cannot detect number of arguments of bfd_section_size()" "$LINENO" 5
fi

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



fi

case $host_os in
  linux-*)
    ;;
  sunos | solaris*)
    ;;
  darwin*)
    ;;
  windows*|mingw*)


  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for WSAPoll" >&5
printf %s "checking for WSAPoll... " >&6; }
if test ${ac_cv_func_WSAPoll+y}
then :
  printf %s "(cached) " >&6
else $as_nop

      ac_cv_func_WSAPoll="no"
      echo > conftest.log

      for ac_headers in winsock2.h ""; do
        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <stdint.h>
                                         `echo $ac_headers|sed 's/+/\n/g'|while read s; do if test -n "$s"; then echo $s|sed 's/\(.*\)/#include <\\1>/g'; fi; done`

int
main (void)
{
`if test -z "$ac_headers"; then echo "extern void WSAPoll();"; fi`
                                         #ifdef WSAPoll
                                         #else
                                           return (intptr_t)WSAPoll;
                                         #endif


  ;
  return 0;
}

_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
  ac_cv_func_WSAPoll=yes; break

fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
    conftest$ac_exeext conftest.$ac_ext
      done


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

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

elif :
then :

fi

    ;;
esac


VERSION_MAJOR=`cat $SOURCE_DIR/version|grep MAJOR|sed 's/.*=//g'`
VERSION_MINOR=`cat $SOURCE_DIR/version|grep MINOR|sed 's/.*=//g'`
VERSION_PATCH=`cat $SOURCE_DIR/version|grep PATCH|sed 's/.*=//g'`
VERSION_REVISION=`$SVNVERSION . 2>/dev/null || cat $SOURCE_DIR/version|grep RELEASE|sed 's/RELEASE=//g'`

COPYRIGHT_DATE="2007-`date +%Y`"


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


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



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


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


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


if test "$ENABLE_DEBUG"                       = yes
then :

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

fi
if test "$ENABLE_DEBUG_THREAD_CRASH_HANDLERS" = yes
then :

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

fi

# get and check version numbers (Note: keep closing ) at the end!)
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 $as_nop
      # 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 $as_nop
  # Broken: fails on valid input.
continue
fi
rm -f conftest.err conftest.i conftest.$ac_ext

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

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

    done
    ac_cv_prog_CPP=$CPP

fi
  CPP=$ac_cv_prog_CPP
else
  ac_cv_prog_CPP=$CPP
fi
{ 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 $as_nop
  # Broken: fails on valid input.
continue
fi
rm -f conftest.err conftest.i conftest.$ac_ext

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

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

else $as_nop
  { { 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; }
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 "SQLite version"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking SQLite version" >&5
printf %s "checking SQLite version... " >&6; }
if test ${ac_cv_constant_value_VERSION_SQLITE+y}
then :
  printf %s "(cached) " >&6
else $as_nop

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include "sqlite3.h"

int
main (void)
{
__CONFTEST__ SQLITE_VERSION
  ;
  return 0;
}
_ACEOF
        if { ac_try='$CPP $CPPFLAGS `if test -n ""; then echo -I; fi` -P -E conftest.c -o conftest'
  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&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_cv_constant_value_VERSION_SQLITE=`grep __CONFTEST__ conftest|sed 's/__CONFTEST__\s*//g'`
        else
          ac_cv_constant_value_VERSION_SQLITE=
        fi
        if test -n " \"
                 "; then
          ac_cv_constant_value_VERSION_SQLITE=`echo $ac_cv_constant_value_VERSION_SQLITE|tr -d " \"
                 "`
        fi
        VERSION_SQLITE=$ac_cv_constant_value_VERSION_SQLITE

        rm -f conftest.c conftest


fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_constant_value_VERSION_SQLITE" >&5
printf "%s\n" "$ac_cv_constant_value_VERSION_SQLITE" >&6; }  else
    if test ${ac_cv_constant_value_VERSION_SQLITE+y}
then :
  printf %s "(cached) " >&6
else $as_nop

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include "sqlite3.h"

int
main (void)
{
__CONFTEST__ SQLITE_VERSION
  ;
  return 0;
}
_ACEOF
        if { ac_try='$CPP $CPPFLAGS `if test -n ""; then echo -I; fi` -P -E conftest.c -o conftest'
  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&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_cv_constant_value_VERSION_SQLITE=`grep __CONFTEST__ conftest|sed 's/__CONFTEST__\s*//g'`
        else
          ac_cv_constant_value_VERSION_SQLITE=
        fi
        if test -n " \"
                 "; then
          ac_cv_constant_value_VERSION_SQLITE=`echo $ac_cv_constant_value_VERSION_SQLITE|tr -d " \"
                 "`
        fi
        VERSION_SQLITE=$ac_cv_constant_value_VERSION_SQLITE

        rm -f conftest.c conftest


fi
  fi



    if test -n ""; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking " >&5
printf %s "checking ... " >&6; }
if test ${ac_cv_constant_value_VERSION_SQLITE_NUMBER+y}
then :
  printf %s "(cached) " >&6
else $as_nop

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include "sqlite3.h"

int
main (void)
{
__CONFTEST__ SQLITE_VERSION_NUMBER


  ;
  return 0;
}
_ACEOF
        if { ac_try='$CPP $CPPFLAGS `if test -n ""; then echo -I; fi` -P -E conftest.c -o conftest'
  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&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_cv_constant_value_VERSION_SQLITE_NUMBER=`grep __CONFTEST__ conftest|sed 's/__CONFTEST__\s*//g'`
        else
          ac_cv_constant_value_VERSION_SQLITE_NUMBER=
        fi
        if test -n ""; then
          ac_cv_constant_value_VERSION_SQLITE_NUMBER=`echo $ac_cv_constant_value_VERSION_SQLITE_NUMBER|tr -d ""`
        fi
        VERSION_SQLITE_NUMBER=$ac_cv_constant_value_VERSION_SQLITE_NUMBER

        rm -f conftest.c conftest


fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_constant_value_VERSION_SQLITE_NUMBER" >&5
printf "%s\n" "$ac_cv_constant_value_VERSION_SQLITE_NUMBER" >&6; }  else
    if test ${ac_cv_constant_value_VERSION_SQLITE_NUMBER+y}
then :
  printf %s "(cached) " >&6
else $as_nop

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include "sqlite3.h"

int
main (void)
{
__CONFTEST__ SQLITE_VERSION_NUMBER


  ;
  return 0;
}
_ACEOF
        if { ac_try='$CPP $CPPFLAGS `if test -n ""; then echo -I; fi` -P -E conftest.c -o conftest'
  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&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_cv_constant_value_VERSION_SQLITE_NUMBER=`grep __CONFTEST__ conftest|sed 's/__CONFTEST__\s*//g'`
        else
          ac_cv_constant_value_VERSION_SQLITE_NUMBER=
        fi
        if test -n ""; then
          ac_cv_constant_value_VERSION_SQLITE_NUMBER=`echo $ac_cv_constant_value_VERSION_SQLITE_NUMBER|tr -d ""`
        fi
        VERSION_SQLITE_NUMBER=$ac_cv_constant_value_VERSION_SQLITE_NUMBER

        rm -f conftest.c conftest


fi
  fi

if test $VERSION_SQLITE_NUMBER -lt 3038000; then
  as_fn_error $? "required SQLite 3.38 (3038000) or newer - found $VERSION_SQLITE" "$LINENO" 5
fi

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




    if test -n "ICU version"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking ICU version" >&5
printf %s "checking ICU version... " >&6; }
if test ${ac_cv_constant_value_VERSION_ICU+y}
then :
  printf %s "(cached) " >&6
else $as_nop

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include "unicode/uvernum.h"

int
main (void)
{
__CONFTEST__ U_ICU_VERSION
  ;
  return 0;
}
_ACEOF
        if { ac_try='$CPP $CPPFLAGS `if test -n ""; then echo -I; fi` -P -E conftest.c -o conftest'
  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&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_cv_constant_value_VERSION_ICU=`grep __CONFTEST__ conftest|sed 's/__CONFTEST__\s*//g'`
        else
          ac_cv_constant_value_VERSION_ICU=
        fi
        if test -n " \"
                 "; then
          ac_cv_constant_value_VERSION_ICU=`echo $ac_cv_constant_value_VERSION_ICU|tr -d " \"
                 "`
        fi
        VERSION_ICU=$ac_cv_constant_value_VERSION_ICU

        rm -f conftest.c conftest


fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_constant_value_VERSION_ICU" >&5
printf "%s\n" "$ac_cv_constant_value_VERSION_ICU" >&6; }  else
    if test ${ac_cv_constant_value_VERSION_ICU+y}
then :
  printf %s "(cached) " >&6
else $as_nop

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include "unicode/uvernum.h"

int
main (void)
{
__CONFTEST__ U_ICU_VERSION
  ;
  return 0;
}
_ACEOF
        if { ac_try='$CPP $CPPFLAGS `if test -n ""; then echo -I; fi` -P -E conftest.c -o conftest'
  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&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_cv_constant_value_VERSION_ICU=`grep __CONFTEST__ conftest|sed 's/__CONFTEST__\s*//g'`
        else
          ac_cv_constant_value_VERSION_ICU=
        fi
        if test -n " \"
                 "; then
          ac_cv_constant_value_VERSION_ICU=`echo $ac_cv_constant_value_VERSION_ICU|tr -d " \"
                 "`
        fi
        VERSION_ICU=$ac_cv_constant_value_VERSION_ICU

        rm -f conftest.c conftest


fi
  fi


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




    if test -n "zlib version"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking zlib version" >&5
printf %s "checking zlib version... " >&6; }
if test ${ac_cv_constant_value_VERSION_Z+y}
then :
  printf %s "(cached) " >&6
else $as_nop

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include "zlib.h"

int
main (void)
{
__CONFTEST__ ZLIB_VERSION
  ;
  return 0;
}
_ACEOF
        if { ac_try='$CPP $CPPFLAGS `if test -n ""; then echo -I; fi` -P -E conftest.c -o conftest'
  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&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_cv_constant_value_VERSION_Z=`grep __CONFTEST__ conftest|sed 's/__CONFTEST__\s*//g'`
        else
          ac_cv_constant_value_VERSION_Z=
        fi
        if test -n " \"
                 "; then
          ac_cv_constant_value_VERSION_Z=`echo $ac_cv_constant_value_VERSION_Z|tr -d " \"
                 "`
        fi
        VERSION_Z=$ac_cv_constant_value_VERSION_Z

        rm -f conftest.c conftest


fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_constant_value_VERSION_Z" >&5
printf "%s\n" "$ac_cv_constant_value_VERSION_Z" >&6; }  else
    if test ${ac_cv_constant_value_VERSION_Z+y}
then :
  printf %s "(cached) " >&6
else $as_nop

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include "zlib.h"

int
main (void)
{
__CONFTEST__ ZLIB_VERSION
  ;
  return 0;
}
_ACEOF
        if { ac_try='$CPP $CPPFLAGS `if test -n ""; then echo -I; fi` -P -E conftest.c -o conftest'
  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&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_cv_constant_value_VERSION_Z=`grep __CONFTEST__ conftest|sed 's/__CONFTEST__\s*//g'`
        else
          ac_cv_constant_value_VERSION_Z=
        fi
        if test -n " \"
                 "; then
          ac_cv_constant_value_VERSION_Z=`echo $ac_cv_constant_value_VERSION_Z|tr -d " \"
                 "`
        fi
        VERSION_Z=$ac_cv_constant_value_VERSION_Z

        rm -f conftest.c conftest


fi
  fi


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


if test "$HAVE_BZ2"; then
  # Note: bz2 have a define for version on in a private header file


    if test -n "bz2 version"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking bz2 version" >&5
printf %s "checking bz2 version... " >&6; }
if test ${ac_cv_constant_value_VERSION_BZ2+y}
then :
  printf %s "(cached) " >&6
else $as_nop

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include "bzlib_private.h"

int
main (void)
{
__CONFTEST__ BZ_VERSION
  ;
  return 0;
}
_ACEOF
        if { ac_try='$CPP $CPPFLAGS `if test -n "bzip2"; then echo -Ibzip2; fi` -P -E conftest.c -o conftest'
  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&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_cv_constant_value_VERSION_BZ2=`grep __CONFTEST__ conftest|sed 's/__CONFTEST__\s*//g'`
        else
          ac_cv_constant_value_VERSION_BZ2=
        fi
        if test -n " \"
                   "; then
          ac_cv_constant_value_VERSION_BZ2=`echo $ac_cv_constant_value_VERSION_BZ2|tr -d " \"
                   "`
        fi
        VERSION_BZ2=$ac_cv_constant_value_VERSION_BZ2

        rm -f conftest.c conftest


fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_constant_value_VERSION_BZ2" >&5
printf "%s\n" "$ac_cv_constant_value_VERSION_BZ2" >&6; }  else
    if test ${ac_cv_constant_value_VERSION_BZ2+y}
then :
  printf %s "(cached) " >&6
else $as_nop

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include "bzlib_private.h"

int
main (void)
{
__CONFTEST__ BZ_VERSION
  ;
  return 0;
}
_ACEOF
        if { ac_try='$CPP $CPPFLAGS `if test -n "bzip2"; then echo -Ibzip2; fi` -P -E conftest.c -o conftest'
  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&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_cv_constant_value_VERSION_BZ2=`grep __CONFTEST__ conftest|sed 's/__CONFTEST__\s*//g'`
        else
          ac_cv_constant_value_VERSION_BZ2=
        fi
        if test -n " \"
                   "; then
          ac_cv_constant_value_VERSION_BZ2=`echo $ac_cv_constant_value_VERSION_BZ2|tr -d " \"
                   "`
        fi
        VERSION_BZ2=$ac_cv_constant_value_VERSION_BZ2

        rm -f conftest.c conftest


fi
  fi


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

else

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

fi

if test "$HAVE_LZMA"; then


    if test -n "lzma version"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking lzma version" >&5
printf %s "checking lzma version... " >&6; }
if test ${ac_cv_constant_value_VERSION_LZMA+y}
then :
  printf %s "(cached) " >&6
else $as_nop

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include "lzma.h"

int
main (void)
{
__CONFTEST__ LZMA_VERSION_MAJOR.LZMA_VERSION_MINOR.LZMA_VERSION_PATCH
  ;
  return 0;
}
_ACEOF
        if { ac_try='$CPP $CPPFLAGS `if test -n ""; then echo -I; fi` -P -E conftest.c -o conftest'
  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&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_cv_constant_value_VERSION_LZMA=`grep __CONFTEST__ conftest|sed 's/__CONFTEST__\s*//g'`
        else
          ac_cv_constant_value_VERSION_LZMA=
        fi
        if test -n " \"
                   "; then
          ac_cv_constant_value_VERSION_LZMA=`echo $ac_cv_constant_value_VERSION_LZMA|tr -d " \"
                   "`
        fi
        VERSION_LZMA=$ac_cv_constant_value_VERSION_LZMA

        rm -f conftest.c conftest


fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_constant_value_VERSION_LZMA" >&5
printf "%s\n" "$ac_cv_constant_value_VERSION_LZMA" >&6; }  else
    if test ${ac_cv_constant_value_VERSION_LZMA+y}
then :
  printf %s "(cached) " >&6
else $as_nop

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include "lzma.h"

int
main (void)
{
__CONFTEST__ LZMA_VERSION_MAJOR.LZMA_VERSION_MINOR.LZMA_VERSION_PATCH
  ;
  return 0;
}
_ACEOF
        if { ac_try='$CPP $CPPFLAGS `if test -n ""; then echo -I; fi` -P -E conftest.c -o conftest'
  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&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_cv_constant_value_VERSION_LZMA=`grep __CONFTEST__ conftest|sed 's/__CONFTEST__\s*//g'`
        else
          ac_cv_constant_value_VERSION_LZMA=
        fi
        if test -n " \"
                   "; then
          ac_cv_constant_value_VERSION_LZMA=`echo $ac_cv_constant_value_VERSION_LZMA|tr -d " \"
                   "`
        fi
        VERSION_LZMA=$ac_cv_constant_value_VERSION_LZMA

        rm -f conftest.c conftest


fi
  fi


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

else

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

fi

if test "$HAVE_LZO"; then


    if test -n "lzo version"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking lzo version" >&5
printf %s "checking lzo version... " >&6; }
if test ${ac_cv_constant_value_VERSION_LZO+y}
then :
  printf %s "(cached) " >&6
else $as_nop

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include "lzo/lzoconf.h"

int
main (void)
{
__CONFTEST__ LZO_VERSION_STRING
  ;
  return 0;
}
_ACEOF
        if { ac_try='$CPP $CPPFLAGS `if test -n ""; then echo -I; fi` -P -E conftest.c -o conftest'
  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&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_cv_constant_value_VERSION_LZO=`grep __CONFTEST__ conftest|sed 's/__CONFTEST__\s*//g'`
        else
          ac_cv_constant_value_VERSION_LZO=
        fi
        if test -n " \"
                   "; then
          ac_cv_constant_value_VERSION_LZO=`echo $ac_cv_constant_value_VERSION_LZO|tr -d " \"
                   "`
        fi
        VERSION_LZO=$ac_cv_constant_value_VERSION_LZO

        rm -f conftest.c conftest


fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_constant_value_VERSION_LZO" >&5
printf "%s\n" "$ac_cv_constant_value_VERSION_LZO" >&6; }  else
    if test ${ac_cv_constant_value_VERSION_LZO+y}
then :
  printf %s "(cached) " >&6
else $as_nop

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include "lzo/lzoconf.h"

int
main (void)
{
__CONFTEST__ LZO_VERSION_STRING
  ;
  return 0;
}
_ACEOF
        if { ac_try='$CPP $CPPFLAGS `if test -n ""; then echo -I; fi` -P -E conftest.c -o conftest'
  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&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_cv_constant_value_VERSION_LZO=`grep __CONFTEST__ conftest|sed 's/__CONFTEST__\s*//g'`
        else
          ac_cv_constant_value_VERSION_LZO=
        fi
        if test -n " \"
                   "; then
          ac_cv_constant_value_VERSION_LZO=`echo $ac_cv_constant_value_VERSION_LZO|tr -d " \"
                   "`
        fi
        VERSION_LZO=$ac_cv_constant_value_VERSION_LZO

        rm -f conftest.c conftest


fi
  fi


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

else

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

fi

if test "$HAVE_LZ4"; then


    if test -n "lz4 version"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking lz4 version" >&5
printf %s "checking lz4 version... " >&6; }
if test ${ac_cv_constant_value_VERSION_LZ4+y}
then :
  printf %s "(cached) " >&6
else $as_nop

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include "lz4.h"

int
main (void)
{
__CONFTEST__ LZ4_VERSION_MAJOR.LZ4_VERSION_MINOR.LZ4_VERSION_RELEASE
  ;
  return 0;
}
_ACEOF
        if { ac_try='$CPP $CPPFLAGS `if test -n ""; then echo -I; fi` -P -E conftest.c -o conftest'
  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&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_cv_constant_value_VERSION_LZ4=`grep __CONFTEST__ conftest|sed 's/__CONFTEST__\s*//g'`
        else
          ac_cv_constant_value_VERSION_LZ4=
        fi
        if test -n " \"
                   "; then
          ac_cv_constant_value_VERSION_LZ4=`echo $ac_cv_constant_value_VERSION_LZ4|tr -d " \"
                   "`
        fi
        VERSION_LZ4=$ac_cv_constant_value_VERSION_LZ4

        rm -f conftest.c conftest


fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_constant_value_VERSION_LZ4" >&5
printf "%s\n" "$ac_cv_constant_value_VERSION_LZ4" >&6; }  else
    if test ${ac_cv_constant_value_VERSION_LZ4+y}
then :
  printf %s "(cached) " >&6
else $as_nop

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include "lz4.h"

int
main (void)
{
__CONFTEST__ LZ4_VERSION_MAJOR.LZ4_VERSION_MINOR.LZ4_VERSION_RELEASE
  ;
  return 0;
}
_ACEOF
        if { ac_try='$CPP $CPPFLAGS `if test -n ""; then echo -I; fi` -P -E conftest.c -o conftest'
  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&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_cv_constant_value_VERSION_LZ4=`grep __CONFTEST__ conftest|sed 's/__CONFTEST__\s*//g'`
        else
          ac_cv_constant_value_VERSION_LZ4=
        fi
        if test -n " \"
                   "; then
          ac_cv_constant_value_VERSION_LZ4=`echo $ac_cv_constant_value_VERSION_LZ4|tr -d " \"
                   "`
        fi
        VERSION_LZ4=$ac_cv_constant_value_VERSION_LZ4

        rm -f conftest.c conftest


fi
  fi


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

else

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

fi

if test "$HAVE_ZSTD"; then


    if test -n "zstd version"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking zstd version" >&5
printf %s "checking zstd version... " >&6; }
if test ${ac_cv_constant_value_VERSION_ZSTD+y}
then :
  printf %s "(cached) " >&6
else $as_nop

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include "zstd.h"

int
main (void)
{
__CONFTEST__ ZSTD_VERSION_MAJOR.ZSTD_VERSION_MINOR.ZSTD_VERSION_RELEASE
  ;
  return 0;
}
_ACEOF
        if { ac_try='$CPP $CPPFLAGS `if test -n ""; then echo -I; fi` -P -E conftest.c -o conftest'
  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&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_cv_constant_value_VERSION_ZSTD=`grep __CONFTEST__ conftest|sed 's/__CONFTEST__\s*//g'`
        else
          ac_cv_constant_value_VERSION_ZSTD=
        fi
        if test -n " \"
                   "; then
          ac_cv_constant_value_VERSION_ZSTD=`echo $ac_cv_constant_value_VERSION_ZSTD|tr -d " \"
                   "`
        fi
        VERSION_ZSTD=$ac_cv_constant_value_VERSION_ZSTD

        rm -f conftest.c conftest


fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_constant_value_VERSION_ZSTD" >&5
printf "%s\n" "$ac_cv_constant_value_VERSION_ZSTD" >&6; }  else
    if test ${ac_cv_constant_value_VERSION_ZSTD+y}
then :
  printf %s "(cached) " >&6
else $as_nop

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include "zstd.h"

int
main (void)
{
__CONFTEST__ ZSTD_VERSION_MAJOR.ZSTD_VERSION_MINOR.ZSTD_VERSION_RELEASE
  ;
  return 0;
}
_ACEOF
        if { ac_try='$CPP $CPPFLAGS `if test -n ""; then echo -I; fi` -P -E conftest.c -o conftest'
  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&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_cv_constant_value_VERSION_ZSTD=`grep __CONFTEST__ conftest|sed 's/__CONFTEST__\s*//g'`
        else
          ac_cv_constant_value_VERSION_ZSTD=
        fi
        if test -n " \"
                   "; then
          ac_cv_constant_value_VERSION_ZSTD=`echo $ac_cv_constant_value_VERSION_ZSTD|tr -d " \"
                   "`
        fi
        VERSION_ZSTD=$ac_cv_constant_value_VERSION_ZSTD

        rm -f conftest.c conftest


fi
  fi


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

else

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

fi

if test "$HAVE_XDELTA3"; then
  # Note: xdelta3 does not have a define for version
# TODO: version
  VERSION_XDELTA3="3.0.11"
else
  VERSION_XDELTA3=""
fi

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


if test "$HAVE_GCRYPT"; then


    if test -n "gcrypt version"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking gcrypt version" >&5
printf %s "checking gcrypt version... " >&6; }
if test ${ac_cv_constant_value_VERSION_GCRYPT+y}
then :
  printf %s "(cached) " >&6
else $as_nop

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include "gcrypt.h"

int
main (void)
{
__CONFTEST__ GCRYPT_VERSION
  ;
  return 0;
}
_ACEOF
        if { ac_try='$CPP $CPPFLAGS `if test -n ""; then echo -I; fi` -P -E conftest.c -o conftest'
  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&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_cv_constant_value_VERSION_GCRYPT=`grep __CONFTEST__ conftest|sed 's/__CONFTEST__\s*//g'`
        else
          ac_cv_constant_value_VERSION_GCRYPT=
        fi
        if test -n " \"
                   "; then
          ac_cv_constant_value_VERSION_GCRYPT=`echo $ac_cv_constant_value_VERSION_GCRYPT|tr -d " \"
                   "`
        fi
        VERSION_GCRYPT=$ac_cv_constant_value_VERSION_GCRYPT

        rm -f conftest.c conftest


fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_constant_value_VERSION_GCRYPT" >&5
printf "%s\n" "$ac_cv_constant_value_VERSION_GCRYPT" >&6; }  else
    if test ${ac_cv_constant_value_VERSION_GCRYPT+y}
then :
  printf %s "(cached) " >&6
else $as_nop

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include "gcrypt.h"

int
main (void)
{
__CONFTEST__ GCRYPT_VERSION
  ;
  return 0;
}
_ACEOF
        if { ac_try='$CPP $CPPFLAGS `if test -n ""; then echo -I; fi` -P -E conftest.c -o conftest'
  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&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_cv_constant_value_VERSION_GCRYPT=`grep __CONFTEST__ conftest|sed 's/__CONFTEST__\s*//g'`
        else
          ac_cv_constant_value_VERSION_GCRYPT=
        fi
        if test -n " \"
                   "; then
          ac_cv_constant_value_VERSION_GCRYPT=`echo $ac_cv_constant_value_VERSION_GCRYPT|tr -d " \"
                   "`
        fi
        VERSION_GCRYPT=$ac_cv_constant_value_VERSION_GCRYPT

        rm -f conftest.c conftest


fi
  fi


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



    if test -n "GMP version"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking GMP version" >&5
printf %s "checking GMP version... " >&6; }
if test ${ac_cv_constant_value_VERSION_GMP+y}
then :
  printf %s "(cached) " >&6
else $as_nop

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include "gmp.h"

int
main (void)
{
__CONFTEST__ __GNU_MP_VERSION.__GNU_MP_VERSION_MINOR.__GNU_MP_VERSION_PATCHLEVEL
  ;
  return 0;
}
_ACEOF
        if { ac_try='$CPP $CPPFLAGS `if test -n ""; then echo -I; fi` -P -E conftest.c -o conftest'
  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&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_cv_constant_value_VERSION_GMP=`grep __CONFTEST__ conftest|sed 's/__CONFTEST__\s*//g'`
        else
          ac_cv_constant_value_VERSION_GMP=
        fi
        if test -n " \"
                   "; then
          ac_cv_constant_value_VERSION_GMP=`echo $ac_cv_constant_value_VERSION_GMP|tr -d " \"
                   "`
        fi
        VERSION_GMP=$ac_cv_constant_value_VERSION_GMP

        rm -f conftest.c conftest


fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_constant_value_VERSION_GMP" >&5
printf "%s\n" "$ac_cv_constant_value_VERSION_GMP" >&6; }  else
    if test ${ac_cv_constant_value_VERSION_GMP+y}
then :
  printf %s "(cached) " >&6
else $as_nop

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include "gmp.h"

int
main (void)
{
__CONFTEST__ __GNU_MP_VERSION.__GNU_MP_VERSION_MINOR.__GNU_MP_VERSION_PATCHLEVEL
  ;
  return 0;
}
_ACEOF
        if { ac_try='$CPP $CPPFLAGS `if test -n ""; then echo -I; fi` -P -E conftest.c -o conftest'
  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&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_cv_constant_value_VERSION_GMP=`grep __CONFTEST__ conftest|sed 's/__CONFTEST__\s*//g'`
        else
          ac_cv_constant_value_VERSION_GMP=
        fi
        if test -n " \"
                   "; then
          ac_cv_constant_value_VERSION_GMP=`echo $ac_cv_constant_value_VERSION_GMP|tr -d " \"
                   "`
        fi
        VERSION_GMP=$ac_cv_constant_value_VERSION_GMP

        rm -f conftest.c conftest


fi
  fi


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



    if test -n "GNU TLS version"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking GNU TLS version" >&5
printf %s "checking GNU TLS version... " >&6; }
if test ${ac_cv_constant_value_VERSION_GNUTLS+y}
then :
  printf %s "(cached) " >&6
else $as_nop

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include "gnutls/gnutls.h"

int
main (void)
{
__CONFTEST__ GNUTLS_VERSION
  ;
  return 0;
}
_ACEOF
        if { ac_try='$CPP $CPPFLAGS `if test -n ""; then echo -I; fi` -P -E conftest.c -o conftest'
  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&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_cv_constant_value_VERSION_GNUTLS=`grep __CONFTEST__ conftest|sed 's/__CONFTEST__\s*//g'`
        else
          ac_cv_constant_value_VERSION_GNUTLS=
        fi
        if test -n " \"
                   "; then
          ac_cv_constant_value_VERSION_GNUTLS=`echo $ac_cv_constant_value_VERSION_GNUTLS|tr -d " \"
                   "`
        fi
        VERSION_GNUTLS=$ac_cv_constant_value_VERSION_GNUTLS

        rm -f conftest.c conftest


fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_constant_value_VERSION_GNUTLS" >&5
printf "%s\n" "$ac_cv_constant_value_VERSION_GNUTLS" >&6; }  else
    if test ${ac_cv_constant_value_VERSION_GNUTLS+y}
then :
  printf %s "(cached) " >&6
else $as_nop

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include "gnutls/gnutls.h"

int
main (void)
{
__CONFTEST__ GNUTLS_VERSION
  ;
  return 0;
}
_ACEOF
        if { ac_try='$CPP $CPPFLAGS `if test -n ""; then echo -I; fi` -P -E conftest.c -o conftest'
  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&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_cv_constant_value_VERSION_GNUTLS=`grep __CONFTEST__ conftest|sed 's/__CONFTEST__\s*//g'`
        else
          ac_cv_constant_value_VERSION_GNUTLS=
        fi
        if test -n " \"
                   "; then
          ac_cv_constant_value_VERSION_GNUTLS=`echo $ac_cv_constant_value_VERSION_GNUTLS|tr -d " \"
                   "`
        fi
        VERSION_GNUTLS=$ac_cv_constant_value_VERSION_GNUTLS

        rm -f conftest.c conftest


fi
  fi


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



    if test -n "openssl version"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking openssl version" >&5
printf %s "checking openssl version... " >&6; }
if test ${ac_cv_constant_value_VERSION_OPENSSL+y}
then :
  printf %s "(cached) " >&6
else $as_nop

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include "openssl/opensslv.h"

int
main (void)
{
__CONFTEST__ OPENSSL_VERSION_TEXT
  ;
  return 0;
}
_ACEOF
        if { ac_try='$CPP $CPPFLAGS `if test -n ""; then echo -I; fi` -P -E conftest.c -o conftest'
  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&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_cv_constant_value_VERSION_OPENSSL=`grep __CONFTEST__ conftest|sed 's/__CONFTEST__\s*//g'`
        else
          ac_cv_constant_value_VERSION_OPENSSL=
        fi
        if test -n " \"
                   "; then
          ac_cv_constant_value_VERSION_OPENSSL=`echo $ac_cv_constant_value_VERSION_OPENSSL|tr -d " \"
                   "`
        fi
        VERSION_OPENSSL=$ac_cv_constant_value_VERSION_OPENSSL

        rm -f conftest.c conftest


fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_constant_value_VERSION_OPENSSL" >&5
printf "%s\n" "$ac_cv_constant_value_VERSION_OPENSSL" >&6; }  else
    if test ${ac_cv_constant_value_VERSION_OPENSSL+y}
then :
  printf %s "(cached) " >&6
else $as_nop

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include "openssl/opensslv.h"

int
main (void)
{
__CONFTEST__ OPENSSL_VERSION_TEXT
  ;
  return 0;
}
_ACEOF
        if { ac_try='$CPP $CPPFLAGS `if test -n ""; then echo -I; fi` -P -E conftest.c -o conftest'
  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&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_cv_constant_value_VERSION_OPENSSL=`grep __CONFTEST__ conftest|sed 's/__CONFTEST__\s*//g'`
        else
          ac_cv_constant_value_VERSION_OPENSSL=
        fi
        if test -n " \"
                   "; then
          ac_cv_constant_value_VERSION_OPENSSL=`echo $ac_cv_constant_value_VERSION_OPENSSL|tr -d " \"
                   "`
        fi
        VERSION_OPENSSL=$ac_cv_constant_value_VERSION_OPENSSL

        rm -f conftest.c conftest


fi
  fi


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

else

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


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


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


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

fi

if test "$HAVE_SSH2"; then


    if test -n "ssh2 version"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking ssh2 version" >&5
printf %s "checking ssh2 version... " >&6; }
if test ${ac_cv_constant_value_VERSION_SSH2+y}
then :
  printf %s "(cached) " >&6
else $as_nop

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include "libssh2.h"

int
main (void)
{
__CONFTEST__ LIBSSH2_VERSION
  ;
  return 0;
}
_ACEOF
        if { ac_try='$CPP $CPPFLAGS `if test -n ""; then echo -I; fi` -P -E conftest.c -o conftest'
  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&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_cv_constant_value_VERSION_SSH2=`grep __CONFTEST__ conftest|sed 's/__CONFTEST__\s*//g'`
        else
          ac_cv_constant_value_VERSION_SSH2=
        fi
        if test -n " \"
                   "; then
          ac_cv_constant_value_VERSION_SSH2=`echo $ac_cv_constant_value_VERSION_SSH2|tr -d " \"
                   "`
        fi
        VERSION_SSH2=$ac_cv_constant_value_VERSION_SSH2

        rm -f conftest.c conftest


fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_constant_value_VERSION_SSH2" >&5
printf "%s\n" "$ac_cv_constant_value_VERSION_SSH2" >&6; }  else
    if test ${ac_cv_constant_value_VERSION_SSH2+y}
then :
  printf %s "(cached) " >&6
else $as_nop

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include "libssh2.h"

int
main (void)
{
__CONFTEST__ LIBSSH2_VERSION
  ;
  return 0;
}
_ACEOF
        if { ac_try='$CPP $CPPFLAGS `if test -n ""; then echo -I; fi` -P -E conftest.c -o conftest'
  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&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_cv_constant_value_VERSION_SSH2=`grep __CONFTEST__ conftest|sed 's/__CONFTEST__\s*//g'`
        else
          ac_cv_constant_value_VERSION_SSH2=
        fi
        if test -n " \"
                   "; then
          ac_cv_constant_value_VERSION_SSH2=`echo $ac_cv_constant_value_VERSION_SSH2|tr -d " \"
                   "`
        fi
        VERSION_SSH2=$ac_cv_constant_value_VERSION_SSH2

        rm -f conftest.c conftest


fi
  fi


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

else

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

fi

if test "$HAVE_CURL"; then


    if test -n "curl version"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking curl version" >&5
printf %s "checking curl version... " >&6; }
if test ${ac_cv_constant_value_VERSION_CURL+y}
then :
  printf %s "(cached) " >&6
else $as_nop

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include "curl/curl.h"

int
main (void)
{
__CONFTEST__ LIBCURL_VERSION
  ;
  return 0;
}
_ACEOF
        if { ac_try='$CPP $CPPFLAGS `if test -n ""; then echo -I; fi` -P -E conftest.c -o conftest'
  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&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_cv_constant_value_VERSION_CURL=`grep __CONFTEST__ conftest|sed 's/__CONFTEST__\s*//g'`
        else
          ac_cv_constant_value_VERSION_CURL=
        fi
        if test -n " \"
                   "; then
          ac_cv_constant_value_VERSION_CURL=`echo $ac_cv_constant_value_VERSION_CURL|tr -d " \"
                   "`
        fi
        VERSION_CURL=$ac_cv_constant_value_VERSION_CURL

        rm -f conftest.c conftest


fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_constant_value_VERSION_CURL" >&5
printf "%s\n" "$ac_cv_constant_value_VERSION_CURL" >&6; }  else
    if test ${ac_cv_constant_value_VERSION_CURL+y}
then :
  printf %s "(cached) " >&6
else $as_nop

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include "curl/curl.h"

int
main (void)
{
__CONFTEST__ LIBCURL_VERSION
  ;
  return 0;
}
_ACEOF
        if { ac_try='$CPP $CPPFLAGS `if test -n ""; then echo -I; fi` -P -E conftest.c -o conftest'
  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&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_cv_constant_value_VERSION_CURL=`grep __CONFTEST__ conftest|sed 's/__CONFTEST__\s*//g'`
        else
          ac_cv_constant_value_VERSION_CURL=
        fi
        if test -n " \"
                   "; then
          ac_cv_constant_value_VERSION_CURL=`echo $ac_cv_constant_value_VERSION_CURL|tr -d " \"
                   "`
        fi
        VERSION_CURL=$ac_cv_constant_value_VERSION_CURL

        rm -f conftest.c conftest


fi
  fi

  if test -n "$VERSION_CURL" -a "$VERSION_CURL" \< "7.77"; then
    as_fn_error $? "required libcurl 7.77 (0x077700) or newer - found '$VERSION_CURL'" "$LINENO" 5
  fi

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

else

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

fi

if test "$HAVE_ISO9660"; then


    if test -n "cdio version"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking cdio version" >&5
printf %s "checking cdio version... " >&6; }
if test ${ac_cv_constant_value_VERSION_CDIO+y}
then :
  printf %s "(cached) " >&6
else $as_nop

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include "cdio/cdio.h"

int
main (void)
{
__CONFTEST__ CDIO_VERSION
  ;
  return 0;
}
_ACEOF
        if { ac_try='$CPP $CPPFLAGS `if test -n ""; then echo -I; fi` -P -E conftest.c -o conftest'
  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&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_cv_constant_value_VERSION_CDIO=`grep __CONFTEST__ conftest|sed 's/__CONFTEST__\s*//g'`
        else
          ac_cv_constant_value_VERSION_CDIO=
        fi
        if test -n " \"
                   "; then
          ac_cv_constant_value_VERSION_CDIO=`echo $ac_cv_constant_value_VERSION_CDIO|tr -d " \"
                   "`
        fi
        VERSION_CDIO=$ac_cv_constant_value_VERSION_CDIO

        rm -f conftest.c conftest


fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_constant_value_VERSION_CDIO" >&5
printf "%s\n" "$ac_cv_constant_value_VERSION_CDIO" >&6; }  else
    if test ${ac_cv_constant_value_VERSION_CDIO+y}
then :
  printf %s "(cached) " >&6
else $as_nop

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include "cdio/cdio.h"

int
main (void)
{
__CONFTEST__ CDIO_VERSION
  ;
  return 0;
}
_ACEOF
        if { ac_try='$CPP $CPPFLAGS `if test -n ""; then echo -I; fi` -P -E conftest.c -o conftest'
  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&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_cv_constant_value_VERSION_CDIO=`grep __CONFTEST__ conftest|sed 's/__CONFTEST__\s*//g'`
        else
          ac_cv_constant_value_VERSION_CDIO=
        fi
        if test -n " \"
                   "; then
          ac_cv_constant_value_VERSION_CDIO=`echo $ac_cv_constant_value_VERSION_CDIO|tr -d " \"
                   "`
        fi
        VERSION_CDIO=$ac_cv_constant_value_VERSION_CDIO

        rm -f conftest.c conftest


fi
  fi



    if test -n ""; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking " >&5
printf %s "checking ... " >&6; }
if test ${ac_cv_constant_value_VERSION_CDIO_NUMBER+y}
then :
  printf %s "(cached) " >&6
else $as_nop

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include "cdio/cdio.h"

int
main (void)
{
__CONFTEST__ LIBCDIO_VERSION_NUM
  ;
  return 0;
}
_ACEOF
        if { ac_try='$CPP $CPPFLAGS `if test -n ""; then echo -I; fi` -P -E conftest.c -o conftest'
  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&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_cv_constant_value_VERSION_CDIO_NUMBER=`grep __CONFTEST__ conftest|sed 's/__CONFTEST__\s*//g'`
        else
          ac_cv_constant_value_VERSION_CDIO_NUMBER=
        fi
        if test -n " \"
                   "; then
          ac_cv_constant_value_VERSION_CDIO_NUMBER=`echo $ac_cv_constant_value_VERSION_CDIO_NUMBER|tr -d " \"
                   "`
        fi
        VERSION_CDIO_NUMBER=$ac_cv_constant_value_VERSION_CDIO_NUMBER

        rm -f conftest.c conftest


fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_constant_value_VERSION_CDIO_NUMBER" >&5
printf "%s\n" "$ac_cv_constant_value_VERSION_CDIO_NUMBER" >&6; }  else
    if test ${ac_cv_constant_value_VERSION_CDIO_NUMBER+y}
then :
  printf %s "(cached) " >&6
else $as_nop

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include "cdio/cdio.h"

int
main (void)
{
__CONFTEST__ LIBCDIO_VERSION_NUM
  ;
  return 0;
}
_ACEOF
        if { ac_try='$CPP $CPPFLAGS `if test -n ""; then echo -I; fi` -P -E conftest.c -o conftest'
  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&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_cv_constant_value_VERSION_CDIO_NUMBER=`grep __CONFTEST__ conftest|sed 's/__CONFTEST__\s*//g'`
        else
          ac_cv_constant_value_VERSION_CDIO_NUMBER=
        fi
        if test -n " \"
                   "; then
          ac_cv_constant_value_VERSION_CDIO_NUMBER=`echo $ac_cv_constant_value_VERSION_CDIO_NUMBER|tr -d " \"
                   "`
        fi
        VERSION_CDIO_NUMBER=$ac_cv_constant_value_VERSION_CDIO_NUMBER

        rm -f conftest.c conftest


fi
  fi


  if test $VERSION_CDIO_NUMBER -lt 10100; then
    as_fn_error $? "required libcdio 1.10 (10100) or newer - found $VERSION_CDIO" "$LINENO" 5
  fi

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

else

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

fi

if test "$HAVE_SMB2"; then
  ac_cv_value=`cd libsmb2; PKG_CONFIG_PATH=. pkg-config --modversion libsmb2`
  VERSION_SMB2=$ac_cv_value

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

else

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

fi

if test "$HAVE_MARIADB"; then


    if test -n "MariaDB version"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking MariaDB version" >&5
printf %s "checking MariaDB version... " >&6; }
if test ${ac_cv_constant_value_VERSION_MARIADB+y}
then :
  printf %s "(cached) " >&6
else $as_nop

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include "mariadb/mariadb_version.h"

int
main (void)
{
__CONFTEST__ MARIADB_CLIENT_VERSION_STR
  ;
  return 0;
}
_ACEOF
        if { ac_try='$CPP $CPPFLAGS `if test -n ""; then echo -I; fi` -P -E conftest.c -o conftest'
  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&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_cv_constant_value_VERSION_MARIADB=`grep __CONFTEST__ conftest|sed 's/__CONFTEST__\s*//g'`
        else
          ac_cv_constant_value_VERSION_MARIADB=
        fi
        if test -n " \"
                   "; then
          ac_cv_constant_value_VERSION_MARIADB=`echo $ac_cv_constant_value_VERSION_MARIADB|tr -d " \"
                   "`
        fi
        VERSION_MARIADB=$ac_cv_constant_value_VERSION_MARIADB

        rm -f conftest.c conftest


fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_constant_value_VERSION_MARIADB" >&5
printf "%s\n" "$ac_cv_constant_value_VERSION_MARIADB" >&6; }  else
    if test ${ac_cv_constant_value_VERSION_MARIADB+y}
then :
  printf %s "(cached) " >&6
else $as_nop

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include "mariadb/mariadb_version.h"

int
main (void)
{
__CONFTEST__ MARIADB_CLIENT_VERSION_STR
  ;
  return 0;
}
_ACEOF
        if { ac_try='$CPP $CPPFLAGS `if test -n ""; then echo -I; fi` -P -E conftest.c -o conftest'
  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&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_cv_constant_value_VERSION_MARIADB=`grep __CONFTEST__ conftest|sed 's/__CONFTEST__\s*//g'`
        else
          ac_cv_constant_value_VERSION_MARIADB=
        fi
        if test -n " \"
                   "; then
          ac_cv_constant_value_VERSION_MARIADB=`echo $ac_cv_constant_value_VERSION_MARIADB|tr -d " \"
                   "`
        fi
        VERSION_MARIADB=$ac_cv_constant_value_VERSION_MARIADB

        rm -f conftest.c conftest


fi
  fi


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

else

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

fi

if test "$HAVE_POSTGRESQL"; then


    if test -n "PostgreSQL version"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking PostgreSQL version" >&5
printf %s "checking PostgreSQL version... " >&6; }
if test ${ac_cv_constant_value_VERSION_POSTGRESQL+y}
then :
  printf %s "(cached) " >&6
else $as_nop

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include "pg_config.h"

int
main (void)
{
__CONFTEST__ PG_VERSION_NUM
  ;
  return 0;
}
_ACEOF
        if { ac_try='$CPP $CPPFLAGS `if test -n ""; then echo -I; fi` -P -E conftest.c -o conftest'
  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&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_cv_constant_value_VERSION_POSTGRESQL=`grep __CONFTEST__ conftest|sed 's/__CONFTEST__\s*//g'`
        else
          ac_cv_constant_value_VERSION_POSTGRESQL=
        fi
        if test -n " \"
                   "; then
          ac_cv_constant_value_VERSION_POSTGRESQL=`echo $ac_cv_constant_value_VERSION_POSTGRESQL|tr -d " \"
                   "`
        fi
        VERSION_POSTGRESQL=$ac_cv_constant_value_VERSION_POSTGRESQL

        rm -f conftest.c conftest


fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_constant_value_VERSION_POSTGRESQL" >&5
printf "%s\n" "$ac_cv_constant_value_VERSION_POSTGRESQL" >&6; }  else
    if test ${ac_cv_constant_value_VERSION_POSTGRESQL+y}
then :
  printf %s "(cached) " >&6
else $as_nop

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include "pg_config.h"

int
main (void)
{
__CONFTEST__ PG_VERSION_NUM
  ;
  return 0;
}
_ACEOF
        if { ac_try='$CPP $CPPFLAGS `if test -n ""; then echo -I; fi` -P -E conftest.c -o conftest'
  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&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_cv_constant_value_VERSION_POSTGRESQL=`grep __CONFTEST__ conftest|sed 's/__CONFTEST__\s*//g'`
        else
          ac_cv_constant_value_VERSION_POSTGRESQL=
        fi
        if test -n " \"
                   "; then
          ac_cv_constant_value_VERSION_POSTGRESQL=`echo $ac_cv_constant_value_VERSION_POSTGRESQL|tr -d " \"
                   "`
        fi
        VERSION_POSTGRESQL=$ac_cv_constant_value_VERSION_POSTGRESQL

        rm -f conftest.c conftest


fi
  fi


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

else

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

fi

if test "$HAVE_PCRE"; then


    if test -n "pcre version"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pcre version" >&5
printf %s "checking pcre version... " >&6; }
if test ${ac_cv_constant_value_VERSION_PCRE+y}
then :
  printf %s "(cached) " >&6
else $as_nop

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include "pcre.h"

int
main (void)
{
__CONFTEST__ PCRE_MAJOR.PCRE_MINOR
  ;
  return 0;
}
_ACEOF
        if { ac_try='$CPP $CPPFLAGS `if test -n ""; then echo -I; fi` -P -E conftest.c -o conftest'
  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&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_cv_constant_value_VERSION_PCRE=`grep __CONFTEST__ conftest|sed 's/__CONFTEST__\s*//g'`
        else
          ac_cv_constant_value_VERSION_PCRE=
        fi
        if test -n " \"
                   "; then
          ac_cv_constant_value_VERSION_PCRE=`echo $ac_cv_constant_value_VERSION_PCRE|tr -d " \"
                   "`
        fi
        VERSION_PCRE=$ac_cv_constant_value_VERSION_PCRE

        rm -f conftest.c conftest


fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_constant_value_VERSION_PCRE" >&5
printf "%s\n" "$ac_cv_constant_value_VERSION_PCRE" >&6; }  else
    if test ${ac_cv_constant_value_VERSION_PCRE+y}
then :
  printf %s "(cached) " >&6
else $as_nop

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include "pcre.h"

int
main (void)
{
__CONFTEST__ PCRE_MAJOR.PCRE_MINOR
  ;
  return 0;
}
_ACEOF
        if { ac_try='$CPP $CPPFLAGS `if test -n ""; then echo -I; fi` -P -E conftest.c -o conftest'
  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&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_cv_constant_value_VERSION_PCRE=`grep __CONFTEST__ conftest|sed 's/__CONFTEST__\s*//g'`
        else
          ac_cv_constant_value_VERSION_PCRE=
        fi
        if test -n " \"
                   "; then
          ac_cv_constant_value_VERSION_PCRE=`echo $ac_cv_constant_value_VERSION_PCRE|tr -d " \"
                   "`
        fi
        VERSION_PCRE=$ac_cv_constant_value_VERSION_PCRE

        rm -f conftest.c conftest


fi
  fi


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

else

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

fi

if test "$HAVE_PAR2"; then


    if test -n "PAR2 version"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking PAR2 version" >&5
printf %s "checking PAR2 version... " >&6; }
if test ${ac_cv_constant_value_VERSION_PAR2+y}
then :
  printf %s "(cached) " >&6
else $as_nop

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include "par2cmdline/config.h"

int
main (void)
{
__CONFTEST__ VERSION
  ;
  return 0;
}
_ACEOF
        if { ac_try='$CPP $CPPFLAGS `if test -n ""; then echo -I; fi` -P -E conftest.c -o conftest'
  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&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_cv_constant_value_VERSION_PAR2=`grep __CONFTEST__ conftest|sed 's/__CONFTEST__\s*//g'`
        else
          ac_cv_constant_value_VERSION_PAR2=
        fi
        if test -n " \"
                   "; then
          ac_cv_constant_value_VERSION_PAR2=`echo $ac_cv_constant_value_VERSION_PAR2|tr -d " \"
                   "`
        fi
        VERSION_PAR2=$ac_cv_constant_value_VERSION_PAR2

        rm -f conftest.c conftest


fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_constant_value_VERSION_PAR2" >&5
printf "%s\n" "$ac_cv_constant_value_VERSION_PAR2" >&6; }  else
    if test ${ac_cv_constant_value_VERSION_PAR2+y}
then :
  printf %s "(cached) " >&6
else $as_nop

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include "par2cmdline/config.h"

int
main (void)
{
__CONFTEST__ VERSION
  ;
  return 0;
}
_ACEOF
        if { ac_try='$CPP $CPPFLAGS `if test -n ""; then echo -I; fi` -P -E conftest.c -o conftest'
  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&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_cv_constant_value_VERSION_PAR2=`grep __CONFTEST__ conftest|sed 's/__CONFTEST__\s*//g'`
        else
          ac_cv_constant_value_VERSION_PAR2=
        fi
        if test -n " \"
                   "; then
          ac_cv_constant_value_VERSION_PAR2=`echo $ac_cv_constant_value_VERSION_PAR2|tr -d " \"
                   "`
        fi
        VERSION_PAR2=$ac_cv_constant_value_VERSION_PAR2

        rm -f conftest.c conftest


fi
  fi


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

else

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

fi

if test "$HAVE_ISOFS"; then


    if test -n "isofs version"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking isofs version" >&5
printf %s "checking isofs version... " >&6; }
if test ${ac_cv_constant_value_VERSION_ISOFS+y}
then :
  printf %s "(cached) " >&6
else $as_nop

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include "libisofs/libisofs.h"

int
main (void)
{
__CONFTEST__ iso_lib_header_version_major.iso_lib_header_version_minor.iso_lib_header_version_micro
  ;
  return 0;
}
_ACEOF
        if { ac_try='$CPP $CPPFLAGS `if test -n ""; then echo -I; fi` -P -E conftest.c -o conftest'
  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&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_cv_constant_value_VERSION_ISOFS=`grep __CONFTEST__ conftest|sed 's/__CONFTEST__\s*//g'`
        else
          ac_cv_constant_value_VERSION_ISOFS=
        fi
        if test -n " \"
                   "; then
          ac_cv_constant_value_VERSION_ISOFS=`echo $ac_cv_constant_value_VERSION_ISOFS|tr -d " \"
                   "`
        fi
        VERSION_ISOFS=$ac_cv_constant_value_VERSION_ISOFS

        rm -f conftest.c conftest


fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_constant_value_VERSION_ISOFS" >&5
printf "%s\n" "$ac_cv_constant_value_VERSION_ISOFS" >&6; }  else
    if test ${ac_cv_constant_value_VERSION_ISOFS+y}
then :
  printf %s "(cached) " >&6
else $as_nop

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include "libisofs/libisofs.h"

int
main (void)
{
__CONFTEST__ iso_lib_header_version_major.iso_lib_header_version_minor.iso_lib_header_version_micro
  ;
  return 0;
}
_ACEOF
        if { ac_try='$CPP $CPPFLAGS `if test -n ""; then echo -I; fi` -P -E conftest.c -o conftest'
  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&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_cv_constant_value_VERSION_ISOFS=`grep __CONFTEST__ conftest|sed 's/__CONFTEST__\s*//g'`
        else
          ac_cv_constant_value_VERSION_ISOFS=
        fi
        if test -n " \"
                   "; then
          ac_cv_constant_value_VERSION_ISOFS=`echo $ac_cv_constant_value_VERSION_ISOFS|tr -d " \"
                   "`
        fi
        VERSION_ISOFS=$ac_cv_constant_value_VERSION_ISOFS

        rm -f conftest.c conftest


fi
  fi


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

else

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

fi


if test "$HAVE_RCU"; then


    if test -n "rcu version"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking rcu version" >&5
printf %s "checking rcu version... " >&6; }
if test ${ac_cv_constant_value_VERSION_RCU+y}
then :
  printf %s "(cached) " >&6
else $as_nop

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include "urcu/urcu_version.h"

int
main (void)
{
__CONFTEST__ LIBURCU_VERSION
  ;
  return 0;
}
_ACEOF
        if { ac_try='$CPP $CPPFLAGS `if test -n ""; then echo -I; fi` -P -E conftest.c -o conftest'
  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&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_cv_constant_value_VERSION_RCU=`grep __CONFTEST__ conftest|sed 's/__CONFTEST__\s*//g'`
        else
          ac_cv_constant_value_VERSION_RCU=
        fi
        if test -n " \"
                   "; then
          ac_cv_constant_value_VERSION_RCU=`echo $ac_cv_constant_value_VERSION_RCU|tr -d " \"
                   "`
        fi
        VERSION_RCU=$ac_cv_constant_value_VERSION_RCU

        rm -f conftest.c conftest


fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_constant_value_VERSION_RCU" >&5
printf "%s\n" "$ac_cv_constant_value_VERSION_RCU" >&6; }  else
    if test ${ac_cv_constant_value_VERSION_RCU+y}
then :
  printf %s "(cached) " >&6
else $as_nop

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include "urcu/urcu_version.h"

int
main (void)
{
__CONFTEST__ LIBURCU_VERSION
  ;
  return 0;
}
_ACEOF
        if { ac_try='$CPP $CPPFLAGS `if test -n ""; then echo -I; fi` -P -E conftest.c -o conftest'
  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&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_cv_constant_value_VERSION_RCU=`grep __CONFTEST__ conftest|sed 's/__CONFTEST__\s*//g'`
        else
          ac_cv_constant_value_VERSION_RCU=
        fi
        if test -n " \"
                   "; then
          ac_cv_constant_value_VERSION_RCU=`echo $ac_cv_constant_value_VERSION_RCU|tr -d " \"
                   "`
        fi
        VERSION_RCU=$ac_cv_constant_value_VERSION_RCU

        rm -f conftest.c conftest


fi
  fi


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

else

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

fi

if test "$HAVE_XFS"; then


    if test -n "xfs version"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking xfs version" >&5
printf %s "checking xfs version... " >&6; }
if test ${ac_cv_constant_value_VERSION_XFS+y}
then :
  printf %s "(cached) " >&6
else $as_nop

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include "xfs/libxfs_version.h"

int
main (void)
{
__CONFTEST__ LIBXFS_VERSION
  ;
  return 0;
}
_ACEOF
        if { ac_try='$CPP $CPPFLAGS `if test -n ""; then echo -I; fi` -P -E conftest.c -o conftest'
  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&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_cv_constant_value_VERSION_XFS=`grep __CONFTEST__ conftest|sed 's/__CONFTEST__\s*//g'`
        else
          ac_cv_constant_value_VERSION_XFS=
        fi
        if test -n " \"
                   "; then
          ac_cv_constant_value_VERSION_XFS=`echo $ac_cv_constant_value_VERSION_XFS|tr -d " \"
                   "`
        fi
        VERSION_XFS=$ac_cv_constant_value_VERSION_XFS

        rm -f conftest.c conftest


fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_constant_value_VERSION_XFS" >&5
printf "%s\n" "$ac_cv_constant_value_VERSION_XFS" >&6; }  else
    if test ${ac_cv_constant_value_VERSION_XFS+y}
then :
  printf %s "(cached) " >&6
else $as_nop

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include "xfs/libxfs_version.h"

int
main (void)
{
__CONFTEST__ LIBXFS_VERSION
  ;
  return 0;
}
_ACEOF
        if { ac_try='$CPP $CPPFLAGS `if test -n ""; then echo -I; fi` -P -E conftest.c -o conftest'
  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&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_cv_constant_value_VERSION_XFS=`grep __CONFTEST__ conftest|sed 's/__CONFTEST__\s*//g'`
        else
          ac_cv_constant_value_VERSION_XFS=
        fi
        if test -n " \"
                   "; then
          ac_cv_constant_value_VERSION_XFS=`echo $ac_cv_constant_value_VERSION_XFS|tr -d " \"
                   "`
        fi
        VERSION_XFS=$ac_cv_constant_value_VERSION_XFS

        rm -f conftest.c conftest


fi
  fi

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

else

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

fi

if test "$HAVE_BURN"; then


    if test -n "burn version"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking burn version" >&5
printf %s "checking burn version... " >&6; }
if test ${ac_cv_constant_value_VERSION_BURN+y}
then :
  printf %s "(cached) " >&6
else $as_nop

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include "libburn/libburn.h"

int
main (void)
{
__CONFTEST__ burn_header_version_major.burn_header_version_minor.burn_header_version_micro
  ;
  return 0;
}
_ACEOF
        if { ac_try='$CPP $CPPFLAGS `if test -n ""; then echo -I; fi` -P -E conftest.c -o conftest'
  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&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_cv_constant_value_VERSION_BURN=`grep __CONFTEST__ conftest|sed 's/__CONFTEST__\s*//g'`
        else
          ac_cv_constant_value_VERSION_BURN=
        fi
        if test -n " \"
                   "; then
          ac_cv_constant_value_VERSION_BURN=`echo $ac_cv_constant_value_VERSION_BURN|tr -d " \"
                   "`
        fi
        VERSION_BURN=$ac_cv_constant_value_VERSION_BURN

        rm -f conftest.c conftest


fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_constant_value_VERSION_BURN" >&5
printf "%s\n" "$ac_cv_constant_value_VERSION_BURN" >&6; }  else
    if test ${ac_cv_constant_value_VERSION_BURN+y}
then :
  printf %s "(cached) " >&6
else $as_nop

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include "libburn/libburn.h"

int
main (void)
{
__CONFTEST__ burn_header_version_major.burn_header_version_minor.burn_header_version_micro
  ;
  return 0;
}
_ACEOF
        if { ac_try='$CPP $CPPFLAGS `if test -n ""; then echo -I; fi` -P -E conftest.c -o conftest'
  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&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_cv_constant_value_VERSION_BURN=`grep __CONFTEST__ conftest|sed 's/__CONFTEST__\s*//g'`
        else
          ac_cv_constant_value_VERSION_BURN=
        fi
        if test -n " \"
                   "; then
          ac_cv_constant_value_VERSION_BURN=`echo $ac_cv_constant_value_VERSION_BURN|tr -d " \"
                   "`
        fi
        VERSION_BURN=$ac_cv_constant_value_VERSION_BURN

        rm -f conftest.c conftest


fi
  fi


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

else

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

fi

if test "$HAVE_MOUNT"; then


    if test -n "mount version"; then
    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking mount version" >&5
printf %s "checking mount version... " >&6; }
if test ${ac_cv_constant_value_VERSION_MOUNT+y}
then :
  printf %s "(cached) " >&6
else $as_nop

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include "libmount/libmount.h"

int
main (void)
{
__CONFTEST__ LIBMOUNT_VERSION
  ;
  return 0;
}
_ACEOF
        if { ac_try='$CPP $CPPFLAGS `if test -n ""; then echo -I; fi` -P -E conftest.c -o conftest'
  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&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_cv_constant_value_VERSION_MOUNT=`grep __CONFTEST__ conftest|sed 's/__CONFTEST__\s*//g'`
        else
          ac_cv_constant_value_VERSION_MOUNT=
        fi
        if test -n " \"
                   "; then
          ac_cv_constant_value_VERSION_MOUNT=`echo $ac_cv_constant_value_VERSION_MOUNT|tr -d " \"
                   "`
        fi
        VERSION_MOUNT=$ac_cv_constant_value_VERSION_MOUNT

        rm -f conftest.c conftest


fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_constant_value_VERSION_MOUNT" >&5
printf "%s\n" "$ac_cv_constant_value_VERSION_MOUNT" >&6; }  else
    if test ${ac_cv_constant_value_VERSION_MOUNT+y}
then :
  printf %s "(cached) " >&6
else $as_nop

        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include "libmount/libmount.h"

int
main (void)
{
__CONFTEST__ LIBMOUNT_VERSION
  ;
  return 0;
}
_ACEOF
        if { ac_try='$CPP $CPPFLAGS `if test -n ""; then echo -I; fi` -P -E conftest.c -o conftest'
  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&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_cv_constant_value_VERSION_MOUNT=`grep __CONFTEST__ conftest|sed 's/__CONFTEST__\s*//g'`
        else
          ac_cv_constant_value_VERSION_MOUNT=
        fi
        if test -n " \"
                   "; then
          ac_cv_constant_value_VERSION_MOUNT=`echo $ac_cv_constant_value_VERSION_MOUNT|tr -d " \"
                   "`
        fi
        VERSION_MOUNT=$ac_cv_constant_value_VERSION_MOUNT

        rm -f conftest.c conftest


fi
  fi


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

else

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

fi


ac_config_headers="$ac_config_headers bar/config.h"










if test "$prefix" = "NONE"; then
  prefix=/usr
fi
INSTALL_DIR=$prefix
if test "$bindir" = "\${exec_prefix}/bin"; then
  if test "$exec_prefix" = NONE; then
    INSTALL_BIN_DIR=$prefix/bin
  else
    INSTALL_BIN_DIR=$exec_prefix
  fi
else
  INSTALL_BIN_DIR=$bindir
fi
if test "$mandir" = "\${datarootdir}/man"; then
  MAN_DIR=$prefix/share/man
else
  MAN_DIR=${mandir}
fi
if test "$localedir" = "\${datarootdir}/locale"; then
  LOCALE_DIR=$prefix/share/locale
else
  LOCALE_DIR=${localedir}
fi

ac_config_commands="$ac_config_commands SET_PACKAGE_IN_CONFIG_H"

ac_config_files="$ac_config_files Makefile"

ac_config_files="$ac_config_files bar/Makefile"

ac_config_files="$ac_config_files bar/tests/Makefile"

ac_config_files="$ac_config_files bar/po/Makefile"

ac_config_files="$ac_config_files barcontrol/Makefile"

ac_config_files="$ac_config_files doc/Makefile"


ac_config_files="$ac_config_files barcontrol/src/Config.java"


ac_config_commands="$ac_config_commands BUILD_NOTE"


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



: "${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
as_nop=:
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 $as_nop
  case `(set -o) 2>/dev/null` in #(
  *posix*) :
    set -o posix ;; #(
  *) :
     ;;
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 $as_nop
  as_fn_append ()
  {
    eval $1=\$$1\$2
  }
fi # as_fn_append

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


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

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

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

as_me=`$as_basename -- "$0" ||
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
	 X"$0" : 'X\(//\)$' \| \
	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
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_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"

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


exec 6>&1
## ----------------------------------- ##
## Main body of $CONFIG_STATUS script. ##
## ----------------------------------- ##
_ASEOF
test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1

cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
# Save the log message, to keep $0 and so on meaningful, and to
# report actual input values of CONFIG_FILES etc. instead of their
# values after options handling.
ac_log="
This file was extended by $as_me, which was
generated by GNU Autoconf 2.71.  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="\\
config.status
configured by $0, generated by GNU Autoconf 2.71,
  with options \\"\$ac_cs_config\\"

Copyright (C) 2021 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'
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
#
VERSION_MAJOR="$VERSION_MAJOR"
                   VERSION_MINOR="$VERSION_MINOR"
                   VERSION_PATCH="$VERSION_PATCH"
                   VERSION_REVISION="$VERSION_REVISION"

                   host="$host"

                   ENABLE_LINK_DYNAMIC=$ENABLE_LINK_DYNAMIC
                   HAVE_ICU=$HAVE_ICU
                   HAVE_Z=$HAVE_Z
                   HAVE_BZ2=$HAVE_BZ2
                   HAVE_LZMA=$HAVE_LZMA
                   HAVE_LZO=$HAVE_LZO
                   HAVE_LZ4=$HAVE_LZ4
                   HAVE_ZSTD=$HAVE_ZSTD
                   HAVE_XDELTA3=$HAVE_XDELTA3
                   HAVE_GCRYPT=$HAVE_GCRYPT
                   HAVE_FTP=$HAVE_FTP
                   HAVE_CURL=$HAVE_CURL
                   HAVE_MXML=$HAVE_MXML
                   HAVE_SSL=$HAVE_SSL
                   HAVE_SSH2=$HAVE_SSH2
                   HAVE_GNU_TLS=$HAVE_GNU_TLS
                   HAVE_MARIADB=$HAVE_MARIADB
                   HAVE_POSTGRESQL=$HAVE_POSTGRESQL
                   HAVE_ISO9660=$HAVE_ISO9660
                   HAVE_SMB2=$HAVE_SMB2
                   HAVE_PCRE=$HAVE_PCRE
                   HAVE_PAR2=$HAVE_PAR2
                   HAVE_ISOFS=$HAVE_ISOFS
                   HAVE_RCU=$HAVE_RCU
                   HAVE_XFS=$HAVE_XFS
                   HAVE_BURN=$HAVE_BURN
                   HAVE_MOUNT=$HAVE_MOUNT
                   HAVE_BFD=$HAVE_BFD

                   ENABLE_DEBUG=$ENABLE_DEBUG
                   ENABLE_DEBUG_THREAD_CRASH_HANDLERS=$ENABLE_DEBUG_THREAD_CRASH_HANDLERS

                   DOCKER="$DOCKER"
                   ISCC="$ISCC"

                   ENABLE_GUI=$ENABLE_GUI
                   ENABLE_GUI_I18N=$ENABLE_GUI_I18N

                   SWT_DIR="$SWT_DIR"
                   INSTALL_DIR="$INSTALL_DIR"
                   INSTALL_BIN_DIR="$INSTALL_BIN_DIR"
                   CONFIG_DIR="$CONFIG_DIR"
                   RUNTIME_DIR="$RUNTIME_DIR"
                   TLS_DIR="$TLS_DIR"
                   HEAPVIEW_DIR="$HEAPVIEW_DIR"

                   VERSION_ICU="$VERSION_ICU"
                   VERSION_Z="$VERSION_Z"
                   VERSION_BZ2="$VERSION_BZ2"
                   VERSION_LZMA="$VERSION_LZMA"
                   VERSION_LZO="$VERSION_LZO"
                   VERSION_LZ4="$VERSION_LZ4"
                   VERSION_ZSTD="$VERSION_ZSTD"
                   VERSION_XDELTA3="$VERSION_XDELTA3"
                   VERSION_GCRYPT="$VERSION_GCRYPT"
                   VERSION_CURL="$VERSION_CURL"
                   VERSION_OPENSSL="$VERSION_OPENSSL"
                   VERSION_SSH2="$VERSION_SSH2"
                   VERSION_GMP="$VERSION_GMP"
                   VERSION_GNUTLS="$VERSION_GNUTLS"
                   VERSION_MARIADB="$VERSION_MARIADB"
                   VERSION_POSTGRESQL="$VERSION_POSTGRESQL"
                   VERSION_CDIO="$VERSION_CDIO"
                   VERSION_SMB2="$VERSION_SMB2"
                   VERSION_PCRE="$VERSION_PCRE"
                   VERSION_SQLITE="$VERSION_SQLITE"
                   VERSION_PAR2="$VERSION_PAR2"
                   VERSION_ISOFS="$VERSION_ISOFS"
                   VERSION_RCU="$VERSION_RCU"
                   VERSION_XFS="$VERSION_XFS"
                   VERSION_BURN="$VERSION_BURN"
                   VERSION_MOUNT="$VERSION_MOUNT"


_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
    "bar/config.h") CONFIG_HEADERS="$CONFIG_HEADERS bar/config.h" ;;
    "SET_PACKAGE_IN_CONFIG_H") CONFIG_COMMANDS="$CONFIG_COMMANDS SET_PACKAGE_IN_CONFIG_H" ;;
    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
    "bar/Makefile") CONFIG_FILES="$CONFIG_FILES bar/Makefile" ;;
    "bar/tests/Makefile") CONFIG_FILES="$CONFIG_FILES bar/tests/Makefile" ;;
    "bar/po/Makefile") CONFIG_FILES="$CONFIG_FILES bar/po/Makefile" ;;
    "barcontrol/Makefile") CONFIG_FILES="$CONFIG_FILES barcontrol/Makefile" ;;
    "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
    "barcontrol/src/Config.java") CONFIG_FILES="$CONFIG_FILES barcontrol/src/Config.java" ;;
    "BUILD_NOTE") CONFIG_COMMANDS="$CONFIG_COMMANDS BUILD_NOTE" ;;

  *) 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
_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
$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
 ;;

  :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
    "SET_PACKAGE_IN_CONFIG_H":C) sed -i 's/#define PACKAGE_/#define BAR_PACKAGE_/g' bar/config.h
                   ;;
    "BUILD_NOTE":C) echo "";
                    echo "Configuration $VERSION_MAJOR`if test -n "$VERSION_MINOR"; then echo .$VERSION_MINOR; fi`$VERSION_PATCH ($VERSION_REVISION):";
                    echo "  Host                 : $host";
                    echo "  Dynamic linked       : `if test "$ENABLE_LINK_DYNAMIC" = "yes"; then echo yes; else echo no; fi`";
                    echo "  ICU support          : `if test "$HAVE_ICU"; then echo "yes ($VERSION_ICU)"; else echo no; fi`";
                    echo "  zip compression      : `if test "$HAVE_Z"; then echo "yes ($VERSION_Z)"; else echo no; fi`";
                    echo "  bzip2 compression    : `if test "$HAVE_BZ2"; then echo "yes ($VERSION_BZ2)"; else echo no; fi`";
                    echo "  lzma compression     : `if test "$HAVE_LZMA"; then echo "yes ($VERSION_LZMA)"; else echo no; fi`";
                    echo "  lzo compression      : `if test "$HAVE_LZO"; then echo "yes ($VERSION_LZO)"; else echo no; fi`";
                    echo "  lz4 compression      : `if test "$HAVE_LZ4"; then echo "yes ($VERSION_LZ4)"; else echo no; fi`";
                    echo "  zstd compression     : `if test "$HAVE_ZSTD"; then echo "yes ($VERSION_ZSTD)"; else echo no; fi`";
                    echo "  xdelta3 compression  : `if test "$HAVE_XDELTA3"; then echo "yes ($VERSION_XDELTA3)"; else echo no; fi`";
                    echo "  crypto support       : `if test "$HAVE_GCRYPT"; then echo "yes ($VERSION_GCRYPT)"; else echo no; fi`";
                    echo "  FTP support          : `if test "$HAVE_FTP"; then echo yes; else echo no; fi`";
                    echo "  curl support         : `if test "$HAVE_CURL" -a "$HAVE_MXML"; then echo "yes ($VERSION_CURL)"; else echo no; fi`";
                    echo "  SCP/SFTP support     : `if test "$HAVE_GCRYPT" -a "$HAVE_SSH2"; then echo "yes ($VERSION_SSH2)"; else echo no; fi`";
                    echo "  TLS/SSL              : `if test "$HAVE_GNU_TLS"; then echo "yes (OpenSSL $VERSION_OPENSSL, GMP $VERSION_GMP, GnuTLS $VERSION_GNUTLS)"; else echo no; fi`";
                    echo "  ISO 9660 support     : `if test "$HAVE_ISO9660"; then echo "yes ($VERSION_CDIO)"; else echo no; fi`";
                    echo "  SMB support          : `if test "$HAVE_SMB2"; then echo "yes ($VERSION_SMB2)"; else echo no; fi`";
                    echo "  PCRE support         : `if test "$HAVE_PCRE"; then echo "yes ($VERSION_PCRE)"; else echo no; fi`";
                    echo "  SQLite               : yes ($VERSION_SQLITE)";
                    echo "  MariaDB support      : `if test "$HAVE_MARIADB"; then echo "yes ($VERSION_MARIADB)"; else echo no; fi`";
                    echo "  PostgreSQL support   : `if test "$HAVE_POSTGRESQL"; then echo "yes ($VERSION_POSTGRESQL)"; else echo no; fi`";
                    echo "  PAR2 support         : `if test "$HAVE_PAR2"; then echo "yes ($VERSION_PAR2)"; else echo no; fi`";
                    echo "  isofs support        : `if test "$HAVE_ISOFS"; then echo "yes ($VERSION_ISOFS)"; else echo no; fi`";
                    echo "  xfs support          : `if test "$HAVE_XFS"; then echo "yes ($VERSION_XFS, RCU $VERSION_RCU)"; else echo no; fi`";
                    echo "  burn support         : `if test "$HAVE_BURN"; then echo "yes ($VERSION_BURN)"; else echo no; fi`";
                    echo "  mount support        : `if test "$HAVE_MOUNT"; then echo "yes ($VERSION_MOUNT)"; else echo no; fi`";
                    echo "  GUI support          : `if test "$ENABLE_GUI" = "yes"; then echo yes; else echo no; fi`";
                    echo "  GUI i18n support     : `if test "$ENABLE_GUI" = "yes" -a "$ENABLE_GUI_I18N" = "yes"; then echo yes; else echo no; fi`";
                    echo "  SWT                  : `if test -n \"$SWT_DIR\"; then echo $SWT_DIR; else echo \"(integrated)\"; fi`"
                    echo ""
                    echo "  Debug version        : `if test "$ENABLE_DEBUG" = "yes"; then echo yes; else echo no; fi`";
                    echo "  Thread crash handlers: `if test "$ENABLE_DEBUG_THREAD_CRASH_HANDLERS" = "yes"; then echo yes; else echo no; fi`";
                    echo "  Stacktrace support   : `if test "$HAVE_BFD"; then echo yes; else echo no; fi`";
                    echo ""
                    echo "  Install directory    : $INSTALL_DIR"
                    echo "  Binary directory     : $INSTALL_BIN_DIR"
                    echo "  Config directory     : $CONFIG_DIR"
                    echo "  Runtime directory    : $RUNTIME_DIR"
                    echo "  TLS directory        : $TLS_DIR"
                    echo ""
                    echo "  Heapview directory   : $HEAPVIEW_DIR"
                    echo ""
                    if test    ! "$HAVE_Z" \
                            -o ! "$HAVE_BZ2" \
                            -o ! "$HAVE_LZMA" \
                            -o ! "$HAVE_LZO" \
                            -o ! "$HAVE_LZ4" \
                            -o ! "$HAVE_ZSTD" \
                            -o ! "$HAVE_XDELTA3" \
                            -o ! "$HAVE_GCRYPT" \
                            -o ! "$HAVE_FTP" \
                            -o ! "$HAVE_CARES" \
                            -o ! "$HAVE_CURL" \
                            -o ! "$HAVE_MXML" \
                            -o ! "$HAVE_SSL" \
                            -o ! "$HAVE_SSH2" \
                            -o ! "$HAVE_GNU_TLS" \
                            -o ! "$HAVE_MARIDDB" \
                            -o ! "$HAVE_POSTGRESQL" \
                            -o ! "$HAVE_ISO9660" \
                            -o ! "$HAVE_SMB2" \
                            -o ! "$HAVE_PCRE" \
                            -o ! "$HAVE_PAR2" \
                            -o ! "$HAVE_ISOFS" \
                            -o ! "$HAVE_XFSPROGS" \
                            -o ! "$HAVE_BURN" \
                            -o ! "$HAVE_MOUNT" ; then
                      echo "Note: you can download missing additional software with the script"
                      echo "      './download-third-party-packages.sh'. Please rerun configure"
                      echo "      after downloading."
                    fi
                    ;;

  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



rm -f $tmpFile


