Diff for /embedaddon/rsync/configure.sh between versions 1.1.1.3 and 1.1.1.4

version 1.1.1.3, 2016/11/01 09:54:32 version 1.1.1.4, 2021/03/17 00:32:36
Line 1 Line 1
 #! /bin/sh  #! /bin/sh
 # Guess values for system-dependent variables and create Makefiles.  # Guess values for system-dependent variables and create Makefiles.
# Generated by GNU Autoconf 2.69 for rsync 3.1.2.# Generated by GNU Autoconf 2.69 for rsync  .
 #  #
# Report bugs to <http://rsync.samba.org/bugzilla.html>.# Report bugs to <https://rsync.samba.org/bug-tracking.html>.
 #  #
 #  #
 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.  # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
Line 267  fi Line 267  fi
     $as_echo "$0: be upgraded to zsh 4.3.4 or later."      $as_echo "$0: be upgraded to zsh 4.3.4 or later."
   else    else
     $as_echo "$0: Please tell bug-autoconf@gnu.org and      $as_echo "$0: Please tell bug-autoconf@gnu.org and
$0: http://rsync.samba.org/bugzilla.html about your system,$0: https://rsync.samba.org/bug-tracking.html about your
$0: including any error possibly output before this$0: system, including any error possibly output before this
 $0: message. Then install a modern shell, or manually run  $0: message. Then install a modern shell, or manually run
 $0: the script under such a shell if you do have one."  $0: the script under such a shell if you do have one."
   fi    fi
Line 580  MAKEFLAGS= Line 580  MAKEFLAGS=
 # Identity of this package.  # Identity of this package.
 PACKAGE_NAME='rsync'  PACKAGE_NAME='rsync'
 PACKAGE_TARNAME='rsync'  PACKAGE_TARNAME='rsync'
PACKAGE_VERSION='3.1.2'PACKAGE_VERSION=' '
PACKAGE_STRING='rsync 3.1.2'PACKAGE_STRING='rsync  '
PACKAGE_BUGREPORT='http://rsync.samba.org/bugzilla.html'PACKAGE_BUGREPORT='https://rsync.samba.org/bug-tracking.html'
 PACKAGE_URL=''  PACKAGE_URL=''
   
 ac_unique_file="byteorder.h"  ac_unique_file="byteorder.h"
Line 625  ac_includes_default="\ Line 625  ac_includes_default="\
   
 ac_header_list=  ac_header_list=
 ac_subst_vars='LTLIBOBJS  ac_subst_vars='LTLIBOBJS
STUNNEL4MYSQL_CONFIG
STUNNEL 
 MAKE_MAN  MAKE_MAN
 BUILD_ZLIB  BUILD_ZLIB
 BUILD_POPT  BUILD_POPT
 CC_SHOBJ_FLAG  CC_SHOBJ_FLAG
 OBJ_RESTORE  OBJ_RESTORE
 OBJ_SAVE  OBJ_SAVE
   SLPOBJ
   LIBSLP
 ALLOCA  ALLOCA
 LIBOBJS  LIBOBJS
   ASM
   NOEXECSTACK
   SIMD
 FAKEROOT_PATH  FAKEROOT_PATH
 SHELL_PATH  SHELL_PATH
 HAVE_YODL2MAN  
 HAVE_REMSH  HAVE_REMSH
   PYTHON3
 PERL  PERL
 MKDIR_P  MKDIR_P
 INSTALL_DATA  INSTALL_DATA
Line 646  INSTALL_SCRIPT Line 650  INSTALL_SCRIPT
 INSTALL_PROGRAM  INSTALL_PROGRAM
 EGREP  EGREP
 GREP  GREP
   AWK
   ac_ct_CXX
   CXXFLAGS
   CXX
 CPP  CPP
 OBJEXT  OBJEXT
 EXEEXT  EXEEXT
Line 662  build_os Line 670  build_os
 build_vendor  build_vendor
 build_cpu  build_cpu
 build  build
 RSYNC_VERSION  
 target_alias  target_alias
 host_alias  host_alias
 build_alias  build_alias
Line 682  infodir Line 689  infodir
 docdir  docdir
 oldincludedir  oldincludedir
 includedir  includedir
   runstatedir
 localstatedir  localstatedir
 sharedstatedir  sharedstatedir
 sysconfdir  sysconfdir
Line 706  ac_user_opts=' Line 714  ac_user_opts='
 enable_option_checking  enable_option_checking
 enable_debug  enable_debug
 enable_profile  enable_profile
   enable_md2man
 enable_maintainer_mode  enable_maintainer_mode
 with_included_popt  with_included_popt
 with_included_zlib  with_included_zlib
Line 714  with_rsync_path Line 723  with_rsync_path
 with_rsyncd_conf  with_rsyncd_conf
 with_rsh  with_rsh
 with_nobody_group  with_nobody_group
   enable_simd
   enable_asm
 enable_largefile  enable_largefile
 enable_ipv6  enable_ipv6
 enable_locale  enable_locale
   enable_openssl
   enable_xxhash
   enable_zstd
   enable_lz4
 enable_iconv_open  enable_iconv_open
 enable_iconv  enable_iconv
   with_gssapi
 enable_acl_support  enable_acl_support
 enable_xattr_support  enable_xattr_support
   enable_mysql
   enable_sqlite
 '  '
       ac_precious_vars='build_alias        ac_precious_vars='build_alias
 host_alias  host_alias
Line 730  CFLAGS Line 748  CFLAGS
 LDFLAGS  LDFLAGS
 LIBS  LIBS
 CPPFLAGS  CPPFLAGS
CPP'CPP
 CXX
 CXXFLAGS
 CCC'
   
   
 # Initialize some variables set by options.  # Initialize some variables set by options.
Line 769  datadir='${datarootdir}' Line 790  datadir='${datarootdir}'
 sysconfdir='${prefix}/etc'  sysconfdir='${prefix}/etc'
 sharedstatedir='${prefix}/com'  sharedstatedir='${prefix}/com'
 localstatedir='${prefix}/var'  localstatedir='${prefix}/var'
   runstatedir='${localstatedir}/run'
 includedir='${prefix}/include'  includedir='${prefix}/include'
 oldincludedir='/usr/include'  oldincludedir='/usr/include'
 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'  docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
Line 1021  do Line 1043  do
   | -silent | --silent | --silen | --sile | --sil)    | -silent | --silent | --silen | --sile | --sil)
     silent=yes ;;      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)    -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
     ac_prev=sbindir ;;      ac_prev=sbindir ;;
   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \    -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
Line 1158  fi Line 1189  fi
 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \  for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
                 datadir sysconfdir sharedstatedir localstatedir includedir \                  datadir sysconfdir sharedstatedir localstatedir includedir \
                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \                  oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
                libdir localedir mandir                libdir localedir mandir runstatedir
 do  do
   eval ac_val=\$$ac_var    eval ac_val=\$$ac_var
   # Remove trailing slashes.    # Remove trailing slashes.
Line 1271  if test "$ac_init_help" = "long"; then Line 1302  if test "$ac_init_help" = "long"; then
   # Omit some internal or obsolete options to make the list less imposing.    # 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.    # This message is too long to be a string in the A/UX 3.1 sh.
   cat <<_ACEOF    cat <<_ACEOF
\`configure' configures rsync 3.1.2 to adapt to many kinds of systems.\`configure' configures rsync   to adapt to many kinds of systems.
   
 Usage: $0 [OPTION]... [VAR=VALUE]...  Usage: $0 [OPTION]... [VAR=VALUE]...
   
Line 1311  Fine tuning of the installation directories: Line 1342  Fine tuning of the installation directories:
   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]    --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]    --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]    --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
     --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
   --libdir=DIR            object code libraries [EPREFIX/lib]    --libdir=DIR            object code libraries [EPREFIX/lib]
   --includedir=DIR        C header files [PREFIX/include]    --includedir=DIR        C header files [PREFIX/include]
   --oldincludedir=DIR     C header files for non-gcc [/usr/include]    --oldincludedir=DIR     C header files for non-gcc [/usr/include]
Line 1336  fi Line 1368  fi
   
 if test -n "$ac_init_help"; then  if test -n "$ac_init_help"; then
   case $ac_init_help in    case $ac_init_help in
     short | recursive ) echo "Configuration of rsync 3.1.2:";;     short | recursive ) echo "Configuration of rsync  :";;
    esac     esac
   cat <<\_ACEOF    cat <<\_ACEOF
   
Line 1346  Optional Features: Line 1378  Optional Features:
   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]    --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
   --disable-debug         disable debugging symbols and features    --disable-debug         disable debugging symbols and features
   --enable-profile        turn on CPU profiling    --enable-profile        turn on CPU profiling
     --disable-md2man        disable md2man for man page creation
   --enable-maintainer-mode    --enable-maintainer-mode
                           turn on extra debug features                            turn on extra debug features
     --disable-simd          disable SIMD optimizations (requires c++)
     --disable-asm           disable ASM optimizations
   --disable-largefile     omit support for large files    --disable-largefile     omit support for large files
  --disable-ipv6          do not even try to use IPv6  --disable-ipv6          turn off IPv6 support
   --disable-locale        disable locale features    --disable-locale        disable locale features
     --disable-openssl       disable openssl crypto library
     --disable-xxhash        disable xxhash checksums
     --disable-zstd          disable zstd compression
     --disable-lz4           disable LZ4 compression
   --disable-iconv-open    disable all use of iconv_open() function    --disable-iconv-open    disable all use of iconv_open() function
   --disable-iconv         disable rsync's --iconv option    --disable-iconv         disable rsync's --iconv option
     --disable-slp           turn off SLP support, defaults to on
   --disable-acl-support   disable ACL support    --disable-acl-support   disable ACL support
   --disable-xattr-support disable extended attributes    --disable-xattr-support disable extended attributes
     --disable-mysql         disable mysql DB support
     --disable-sqlite        disable sqlite DB support
   
 Optional Packages:  Optional Packages:
   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]    --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
Line 1369  Optional Packages: Line 1411  Optional Packages:
   --with-nobody-group=GROUP    --with-nobody-group=GROUP
                           set the default unprivileged group (default nobody                            set the default unprivileged group (default nobody
                           or nogroup)                            or nogroup)
     --with-gssapi           support GSSAPI authentication [default=check]
   
 Some influential environment variables:  Some influential environment variables:
   CC          C compiler command    CC          C compiler command
Line 1379  Some influential environment variables: Line 1422  Some influential environment variables:
   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if    CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
               you have headers in a nonstandard directory <include dir>                you have headers in a nonstandard directory <include dir>
   CPP         C preprocessor    CPP         C preprocessor
     CXX         C++ compiler command
     CXXFLAGS    C++ compiler flags
   
 Use these variables to override the choices made by `configure' or to help  Use these variables to override the choices made by `configure' or to help
 it to find libraries and programs with nonstandard names/locations.  it to find libraries and programs with nonstandard names/locations.
   
Report bugs to <http://rsync.samba.org/bugzilla.html>.Report bugs to <https://rsync.samba.org/bug-tracking.html>.
 _ACEOF  _ACEOF
 ac_status=$?  ac_status=$?
 fi  fi
Line 1446  fi Line 1491  fi
 test -n "$ac_init_help" && exit $ac_status  test -n "$ac_init_help" && exit $ac_status
 if $ac_init_version; then  if $ac_init_version; then
   cat <<\_ACEOF    cat <<\_ACEOF
rsync configure 3.1.2rsync configure
 generated by GNU Autoconf 2.69  generated by GNU Autoconf 2.69
   
 Copyright (C) 2012 Free Software Foundation, Inc.  Copyright (C) 2012 Free Software Foundation, Inc.
Line 1535  fi Line 1580  fi
   
 } # ac_fn_c_try_cpp  } # ac_fn_c_try_cpp
   
   # 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
     if { { ac_try="$ac_compile"
   case "(($ac_try" in
     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     *) ac_try_echo=$ac_try;;
   esac
   eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   $as_echo "$ac_try_echo"; } >&5
     (eval "$ac_compile") 2>conftest.err
     ac_status=$?
     if test -s conftest.err; then
       grep -v '^ *+' conftest.err >conftest.er1
       cat conftest.er1 >&5
       mv -f conftest.er1 conftest.err
     fi
     $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
     test $ac_status = 0; } && {
            test -z "$ac_cxx_werror_flag" ||
            test ! -s conftest.err
          } && test -s conftest.$ac_objext; then :
     ac_retval=0
   else
     $as_echo "$as_me: failed program was:" >&5
   sed 's/^/| /' conftest.$ac_ext >&5
   
           ac_retval=1
   fi
     eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
     as_fn_set_status $ac_retval
   
   } # ac_fn_cxx_try_compile
   
   # ac_fn_cxx_try_run LINENO
   # ------------------------
   # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
   # that executables *can* be run.
   ac_fn_cxx_try_run ()
   {
     as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
     if { { ac_try="$ac_link"
   case "(($ac_try" in
     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     *) ac_try_echo=$ac_try;;
   esac
   eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   $as_echo "$ac_try_echo"; } >&5
     (eval "$ac_link") 2>&5
     ac_status=$?
     $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
     test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
     { { case "(($ac_try" in
     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     *) ac_try_echo=$ac_try;;
   esac
   eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   $as_echo "$ac_try_echo"; } >&5
     (eval "$ac_try") 2>&5
     ac_status=$?
     $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
     test $ac_status = 0; }; }; then :
     ac_retval=0
   else
     $as_echo "$as_me: program exited with status $ac_status" >&5
          $as_echo "$as_me: failed program was:" >&5
   sed 's/^/| /' conftest.$ac_ext >&5
   
          ac_retval=$ac_status
   fi
     rm -rf conftest.dSYM conftest_ipa8_conftest.oo
     eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
     as_fn_set_status $ac_retval
   
   } # ac_fn_cxx_try_run
   
 # ac_fn_c_try_run LINENO  # ac_fn_c_try_run LINENO
 # ----------------------  # ----------------------
 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes  # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
Line 1724  $as_echo "$as_me: WARNING: $2: see the Autoconf docume Line 1849  $as_echo "$as_me: WARNING: $2: see the Autoconf docume
 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}  $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}  $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
( $as_echo "## --------------------------------------------------- ##( $as_echo "## -------------------------------------------------------- ##
## Report this to http://rsync.samba.org/bugzilla.html #### Report this to https://rsync.samba.org/bug-tracking.html ##
## --------------------------------------------------- ##"## -------------------------------------------------------- ##"
      ) | sed "s/^/$as_me: WARNING:     /" >&2       ) | sed "s/^/$as_me: WARNING:     /" >&2
     ;;      ;;
 esac  esac
Line 2109  cat >config.log <<_ACEOF Line 2234  cat >config.log <<_ACEOF
 This file contains any messages produced by compilers while  This file contains any messages produced by compilers while
 running configure, to aid debugging if configure makes a mistake.  running configure, to aid debugging if configure makes a mistake.
   
It was created by rsync $as_me 3.1.2, which wasIt was created by rsync $as_me  , which was
 generated by GNU Autoconf 2.69.  Invocation command line was  generated by GNU Autoconf 2.69.  Invocation command line was
   
   $ $0 $@    $ $0 $@
Line 2465  ac_config_headers="$ac_config_headers config.h" Line 2590  ac_config_headers="$ac_config_headers config.h"
   
   
   
RSYNC_VERSION=$PACKAGE_VERSIONPACKAGE_VERSION=`sed 's/.*"\(.*\)".*/\1/' <$srcdir/version.h`
   
 { $as_echo "$as_me:${as_lineno-$LINENO}: Configuring rsync $PACKAGE_VERSION" >&5  { $as_echo "$as_me:${as_lineno-$LINENO}: Configuring rsync $PACKAGE_VERSION" >&5
 $as_echo "$as_me: Configuring rsync $PACKAGE_VERSION" >&6;}  $as_echo "$as_me: Configuring rsync $PACKAGE_VERSION" >&6;}
   
   
 cat >>confdefs.h <<_ACEOF  
 #define RSYNC_VERSION "$PACKAGE_VERSION"  
 _ACEOF  
   
   
 LDFLAGS=${LDFLAGS-""}  LDFLAGS=${LDFLAGS-""}
   
 ac_aux_dir=  ac_aux_dir=
Line 3530  ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext  Line 3649  ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext 
 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&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_compiler_gnu=$ac_cv_c_compiler_gnu
   
   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
     do
       # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
   set dummy $ac_tool_prefix$ac_prog; ac_word=$2
   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   $as_echo_n "checking for $ac_word... " >&6; }
   if ${ac_cv_prog_CXX+:} false; then :
     $as_echo_n "(cached) " >&6
   else
     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
     test -z "$as_dir" && as_dir=.
       for ac_exec_ext in '' $ac_executable_extensions; do
     if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
       ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
       $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
       break 2
     fi
   done
     done
   IFS=$as_save_IFS
   
   fi
   fi
   CXX=$ac_cv_prog_CXX
   if test -n "$CXX"; then
     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
   $as_echo "$CXX" >&6; }
   else
     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   $as_echo "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
   do
     # Extract the first word of "$ac_prog", so it can be a program name with args.
   set dummy $ac_prog; ac_word=$2
   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   $as_echo_n "checking for $ac_word... " >&6; }
   if ${ac_cv_prog_ac_ct_CXX+:} false; then :
     $as_echo_n "(cached) " >&6
   else
     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
     test -z "$as_dir" && as_dir=.
       for ac_exec_ext in '' $ac_executable_extensions; do
     if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
       ac_cv_prog_ac_ct_CXX="$ac_prog"
       $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
       break 2
     fi
   done
     done
   IFS=$as_save_IFS
   
   fi
   fi
   ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
   if test -n "$ac_ct_CXX"; then
     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
   $as_echo "$ac_ct_CXX" >&6; }
   else
     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   $as_echo "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:)
   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   ac_tool_warned=yes ;;
   esac
       CXX=$ac_ct_CXX
     fi
   fi
   
     fi
   fi
   # Provide some information about the compiler.
   $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
   set X $ac_compile
   ac_compiler=$2
   for ac_option in --version -v -V -qversion; do
     { { ac_try="$ac_compiler $ac_option >&5"
   case "(($ac_try" in
     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
     *) ac_try_echo=$ac_try;;
   esac
   eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   $as_echo "$ac_try_echo"; } >&5
     (eval "$ac_compiler $ac_option >&5") 2>conftest.err
     ac_status=$?
     if test -s conftest.err; then
       sed '10a\
   ... rest of stderr output deleted ...
            10q' conftest.err >conftest.er1
       cat conftest.er1 >&5
     fi
     rm -f conftest.er1 conftest.err
     $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
     test $ac_status = 0; }
   done
   
   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
   $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
   if ${ac_cv_cxx_compiler_gnu+:} false; then :
     $as_echo_n "(cached) " >&6
   else
     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   /* end confdefs.h.  */
   
   int
   main ()
   {
   #ifndef __GNUC__
          choke me
   #endif
   
     ;
     return 0;
   }
   _ACEOF
   if ac_fn_cxx_try_compile "$LINENO"; then :
     ac_compiler_gnu=yes
   else
     ac_compiler_gnu=no
   fi
   rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
   
   fi
   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
   $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
   if test $ac_compiler_gnu = yes; then
     GXX=yes
   else
     GXX=
   fi
   ac_test_CXXFLAGS=${CXXFLAGS+set}
   ac_save_CXXFLAGS=$CXXFLAGS
   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
   $as_echo_n "checking whether $CXX accepts -g... " >&6; }
   if ${ac_cv_prog_cxx_g+:} false; then :
     $as_echo_n "(cached) " >&6
   else
     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 ()
   {
   
     ;
     return 0;
   }
   _ACEOF
   if ac_fn_cxx_try_compile "$LINENO"; then :
     ac_cv_prog_cxx_g=yes
   else
     CXXFLAGS=""
         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   /* end confdefs.h.  */
   
   int
   main ()
   {
   
     ;
     return 0;
   }
   _ACEOF
   if ac_fn_cxx_try_compile "$LINENO"; then :
   
   else
     ac_cxx_werror_flag=$ac_save_cxx_werror_flag
            CXXFLAGS="-g"
            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   /* end confdefs.h.  */
   
   int
   main ()
   {
   
     ;
     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.$ac_ext
   fi
   rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   fi
   rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
      ac_cxx_werror_flag=$ac_save_cxx_werror_flag
   fi
   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
   $as_echo "$ac_cv_prog_cxx_g" >&6; }
   if test "$ac_test_CXXFLAGS" = set; 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_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
   
   for ac_prog in gawk mawk nawk awk
   do
     # Extract the first word of "$ac_prog", so it can be a program name with args.
   set dummy $ac_prog; ac_word=$2
   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   $as_echo_n "checking for $ac_word... " >&6; }
   if ${ac_cv_prog_AWK+:} false; then :
     $as_echo_n "(cached) " >&6
   else
     if test -n "$AWK"; then
     ac_cv_prog_AWK="$AWK" # Let the user override the test.
   else
   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   for as_dir in $PATH
   do
     IFS=$as_save_IFS
     test -z "$as_dir" && as_dir=.
       for ac_exec_ext in '' $ac_executable_extensions; do
     if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
       ac_cv_prog_AWK="$ac_prog"
       $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
       break 2
     fi
   done
     done
   IFS=$as_save_IFS
   
   fi
   fi
   AWK=$ac_cv_prog_AWK
   if test -n "$AWK"; then
     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
   $as_echo "$AWK" >&6; }
   else
     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   $as_echo "no" >&6; }
   fi
   
   
     test -n "$AWK" && break
   done
   
 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }  $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
 if ${ac_cv_path_GREP+:} false; then :  if ${ac_cv_path_GREP+:} false; then :
Line 4128  $as_echo "no" >&6; } Line 4546  $as_echo "no" >&6; }
 fi  fi
   
   
   # Extract the first word of "python3", so it can be a program name with args.
   set dummy python3; ac_word=$2
   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   $as_echo_n "checking for $ac_word... " >&6; }
   if ${ac_cv_path_PYTHON3+:} false; then :
     $as_echo_n "(cached) " >&6
   else
     case $PYTHON3 in
     [\\/]* | ?:[\\/]*)
     ac_cv_path_PYTHON3="$PYTHON3" # Let the user override the test with a path.
     ;;
     *)
     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   for as_dir in $PATH
   do
     IFS=$as_save_IFS
     test -z "$as_dir" && as_dir=.
       for ac_exec_ext in '' $ac_executable_extensions; do
     if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
       ac_cv_path_PYTHON3="$as_dir/$ac_word$ac_exec_ext"
       $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
       break 2
     fi
   done
     done
   IFS=$as_save_IFS
   
     ;;
   esac
   fi
   PYTHON3=$ac_cv_path_PYTHON3
   if test -n "$PYTHON3"; then
     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON3" >&5
   $as_echo "$PYTHON3" >&6; }
   else
     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   $as_echo "no" >&6; }
   fi
   
   
   
   
 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h  $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
   
   
Line 4138  if test x"$ac_cv_prog_cc_stdc" = x"no"; then Line 4596  if test x"$ac_cv_prog_cc_stdc" = x"no"; then
 $as_echo "$as_me: WARNING: rsync requires an ANSI C compiler and you do not seem to have one" >&2;}  $as_echo "$as_me: WARNING: rsync requires an ANSI C compiler and you do not seem to have one" >&2;}
 fi  fi
   
   no_lib=''
   err_msg=''
   nl='
   '
   
 # Check whether --enable-profile was given.  # Check whether --enable-profile was given.
 if test "${enable_profile+set}" = set; then :  if test "${enable_profile+set}" = set; then :
   enableval=$enable_profile;    enableval=$enable_profile;
Line 4147  if test x"$enable_profile" = x"yes"; then Line 4610  if test x"$enable_profile" = x"yes"; then
         CFLAGS="$CFLAGS -pg"          CFLAGS="$CFLAGS -pg"
 fi  fi
   
   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if md2man can create man pages" >&5
   $as_echo_n "checking if md2man can create man pages... " >&6; }
   if test x"$ac_cv_path_PYTHON3" = x; then
       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no - python3 not found" >&5
   $as_echo "no - python3 not found" >&6; }
       md2man_works=no
   else
       md2man_out=`"$srcdir/md2man" --test "$srcdir/rsync-ssl.1.md" 2>&1`
       if test $? = 0; then
           { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   $as_echo "yes" >&6; }
           md2man_works=yes
       else
           { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   $as_echo "no" >&6; }
           md2man_works=no
           echo "$md2man_out"
       fi
   fi
   
   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we require man-page building" >&5
   $as_echo_n "checking if we require man-page building... " >&6; }
   # Check whether --enable-md2man was given.
   if test "${enable_md2man+set}" = set; then :
     enableval=$enable_md2man;
   fi
   
   if test x"$enable_md2man" != x"no"; then
       if test -f "$srcdir/rsync.1"; then
           { $as_echo "$as_me:${as_lineno-$LINENO}: result: optional" >&5
   $as_echo "optional" >&6; }
       else
           { $as_echo "$as_me:${as_lineno-$LINENO}: result: required" >&5
   $as_echo "required" >&6; }
           if test x"$md2man_works" = x"no"; then
               err_msg="$err_msg$nl- You need python3 and either the cmarkgfm OR commonmark python3 lib in order"
               err_msg="$err_msg$nl  to build man pages based on the git source (man pages are included in the"
               err_msg="$err_msg$nl  official release tar files)."
               no_lib="$no_lib md2man"
           fi
       fi
       MAKE_MAN=man
   else
       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   $as_echo "no" >&6; }
       MAKE_MAN=''
   fi
   
 # Specifically, this turns on panic_action handling.  # Specifically, this turns on panic_action handling.
 # Check whether --enable-maintainer-mode was given.  # Check whether --enable-maintainer-mode was given.
 if test "${enable_maintainer_mode+set}" = set; then :  if test "${enable_maintainer_mode+set}" = set; then :
Line 4158  if test x"$enable_maintainer_mode" = x"yes"; then Line 4668  if test x"$enable_maintainer_mode" = x"yes"; then
         CFLAGS="$CFLAGS -DMAINTAINER_MODE"          CFLAGS="$CFLAGS -DMAINTAINER_MODE"
 fi  fi
   
   
 # This is needed for our included version of popt.  Kind of silly, but  # This is needed for our included version of popt.  Kind of silly, but
 # I don't want our version too far out of sync.  # I don't want our version too far out of sync.
 CFLAGS="$CFLAGS -DHAVE_CONFIG_H"  CFLAGS="$CFLAGS -DHAVE_CONFIG_H"
Line 4302  cat >>confdefs.h <<_ACEOF Line 4811  cat >>confdefs.h <<_ACEOF
 _ACEOF  _ACEOF
   
   
 # Extract the first word of "yodl2man", so it can be a program name with args.  
 set dummy yodl2man; ac_word=$2  
 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5  
 $as_echo_n "checking for $ac_word... " >&6; }  
 if ${ac_cv_prog_HAVE_YODL2MAN+:} false; then :  
   $as_echo_n "(cached) " >&6  
 else  
   if test -n "$HAVE_YODL2MAN"; then  
   ac_cv_prog_HAVE_YODL2MAN="$HAVE_YODL2MAN" # Let the user override the test.  
 else  
 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR  
 for as_dir in $PATH  
 do  
   IFS=$as_save_IFS  
   test -z "$as_dir" && as_dir=.  
     for ac_exec_ext in '' $ac_executable_extensions; do  
   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then  
     ac_cv_prog_HAVE_YODL2MAN="1"  
     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5  
     break 2  
   fi  
 done  
   done  
 IFS=$as_save_IFS  
   
   test -z "$ac_cv_prog_HAVE_YODL2MAN" && ac_cv_prog_HAVE_YODL2MAN="0"  
 fi  
 fi  
 HAVE_YODL2MAN=$ac_cv_prog_HAVE_YODL2MAN  
 if test -n "$HAVE_YODL2MAN"; then  
   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_YODL2MAN" >&5  
 $as_echo "$HAVE_YODL2MAN" >&6; }  
 else  
   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5  
 $as_echo "no" >&6; }  
 fi  
   
   
 if test x$HAVE_YODL2MAN = x1; then  
     MAKE_MAN=man  
 else  
     MAKE_MAN=man-copy  
 fi  
   
 # Some programs on solaris are only found in /usr/xpg4/bin (or work better than others versions).  # Some programs on solaris are only found in /usr/xpg4/bin (or work better than others versions).
 # Extract the first word of "sh", so it can be a program name with args.  # Extract the first word of "sh", so it can be a program name with args.
 set dummy sh; ac_word=$2  set dummy sh; ac_word=$2
Line 4462  cat >>confdefs.h <<_ACEOF Line 4927  cat >>confdefs.h <<_ACEOF
 _ACEOF  _ACEOF
   
   
   # SIMD optimizations
   SIMD=
   
   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable SIMD optimizations" >&5
   $as_echo_n "checking whether to enable SIMD optimizations... " >&6; }
   # Check whether --enable-simd was given.
   if test "${enable_simd+set}" = set; then :
     enableval=$enable_simd;
   fi
   
   
   # Clag is crashing with -g -O2, so we'll get rid of -g for now.
   CXXFLAGS=`echo "$CXXFLAGS" | sed 's/-g //'`
   
   if test x"$enable_simd" != x"no"; then
       # For x86-64 SIMD, g++ >=5 or clang++ >=7 is required
       if test x"$build_cpu" = x"x86_64"; then
           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 "$cross_compiling" = yes; then :
     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   as_fn_error $? "cannot run test program while cross compiling
   See \`config.log' for more details" "$LINENO" 5; }
   else
     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   /* end confdefs.h.  */
   #include <stdio.h>
   #include <immintrin.h>
   __attribute__ ((target("default"))) int test_ssse3(int x) { return x; }
   __attribute__ ((target("default"))) int test_sse2(int x) { return x; }
   __attribute__ ((target("default"))) int test_avx2(int x) { return x; }
   __attribute__ ((target("ssse3"))) int test_ssse3(int x) { return x; }
   __attribute__ ((target("sse2"))) int test_sse2(int x) { return x; }
   __attribute__ ((target("avx2"))) int test_avx2(int x) { return x; }
   typedef long long __m128i_u __attribute__((__vector_size__(16), __may_alias__, __aligned__(1)));
   typedef long long __m256i_u __attribute__((__vector_size__(32), __may_alias__, __aligned__(1)));
   __attribute__ ((target("default"))) void more_testing(char* buf, int len) { }
   __attribute__ ((target("ssse3"))) void more_testing(char* buf, int len)
   {
       int i;
       for (i = 0; i < (len-32); i+=32) {
           __m128i in8_1, in8_2;
           in8_1 = _mm_lddqu_si128((__m128i_u*)&buf[i]);
           in8_2 = _mm_lddqu_si128((__m128i_u*)&buf[i + 16]);
       }
   }
   
   int
   main ()
   {
   if (test_ssse3(42) != 42 || test_sse2(42) != 42 || test_avx2(42) != 42) exit(1);
     ;
     return 0;
   }
   _ACEOF
   if ac_fn_cxx_try_run "$LINENO"; then :
     CXX_OK=yes
   else
     CXX_OK=no
   fi
   rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
     conftest.$ac_objext conftest.beam conftest.$ac_ext
   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 x"$CXX_OK" = x"yes"; then
               # AC_MSG_RESULT() is called below.
               SIMD="x86_64"
           elif test x"$enable_simd" = x"yes"; then
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: error" >&5
   $as_echo "error" >&6; }
               as_fn_error $? "The SIMD compilation test failed.
   Omit --enable-simd to continue without it." "$LINENO" 5
           fi
       elif test x"$enable_simd" = x"yes"; then
           { $as_echo "$as_me:${as_lineno-$LINENO}: result: unavailable" >&5
   $as_echo "unavailable" >&6; }
           as_fn_error $? "The SIMD optimizations are currently x86_64 only.
   Omit --enable-simd to continue without it." "$LINENO" 5
       fi
   fi
   
   if test x"$SIMD" != x""; then
       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($SIMD)" >&5
   $as_echo "yes ($SIMD)" >&6; }
   
   $as_echo "#define HAVE_SIMD 1" >>confdefs.h
   
       SIMD='$(SIMD_'"$SIMD)"
       # We only use c++ for its target attribute dispatching, disable unneeded bulky features
       CXXFLAGS="$CXXFLAGS -fno-exceptions -fno-rtti"
       # Apple often has "g++" as a symlink for clang. Try to find out the truth.
       CXX_VERSION=`$CXX --version 2>/dev/null | head -n 2`
       case "$CXX_VERSION" in
       *clang*) CXXFLAGS="$CXXFLAGS -fno-slp-vectorize" ;; # avoid a performance hit
       esac
   else
       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   $as_echo "no" >&6; }
   fi
   
   
   
   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if assembler accepts noexecstack" >&5
   $as_echo_n "checking if assembler accepts noexecstack... " >&6; }
   OLD_CFLAGS="$CFLAGS"
   CFLAGS="$CFLAGS -Wa,--noexecstack"
   
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   /* end confdefs.h.  */
   
   int
   main ()
   {
   return 0;
     ;
     return 0;
   }
   _ACEOF
   if ac_fn_c_try_compile "$LINENO"; then :
      NOEXECSTACK='-Wa,--noexecstack' ; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   $as_echo "yes" >&6; }
   else
      NOEXECSTACK='' ; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   $as_echo "no" >&6; }
   fi
   rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   CFLAGS="$OLD_CFLAGS"
   
   
   ASM=
   
   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable ASM optimizations" >&5
   $as_echo_n "checking whether to enable ASM optimizations... " >&6; }
   # Check whether --enable-asm was given.
   if test "${enable_asm+set}" = set; then :
     enableval=$enable_asm;
   fi
   
   
   if test x"$enable_asm" != x"no"; then
       if test x"$build_cpu" = x"x86_64"; then
           ASM="$build_cpu"
       elif test x"$enable_asm" = x"yes"; then
           { $as_echo "$as_me:${as_lineno-$LINENO}: result: unavailable" >&5
   $as_echo "unavailable" >&6; }
           as_fn_error $? "The ASM optimizations are currently x86_64 only.
   Omit --enable-asm to continue without it." "$LINENO" 5
       fi
   fi
   
   if test x"$ASM" != x""; then
       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($ASM)" >&5
   $as_echo "yes ($ASM)" >&6; }
   
   $as_echo "#define HAVE_ASM 1" >>confdefs.h
   
       ASM='$(ASM_'"$ASM)"
   else
       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   $as_echo "no" >&6; }
   fi
   
   
   
 # arrgh. libc in some old debian version screwed up the largefile  # arrgh. libc in some old debian version screwed up the largefile
 # stuff, getting byte range locking wrong  # stuff, getting byte range locking wrong
   
 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken largefile support" >&5  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken largefile support" >&5
 $as_echo_n "checking for broken largefile support... " >&6; }  $as_echo_n "checking for broken largefile support... " >&6; }
 if ${rsync_cv_HAVE_BROKEN_LARGEFILE+:} false; then :  if ${rsync_cv_HAVE_BROKEN_LARGEFILE+:} false; then :
Line 4482  else Line 5122  else
 #include <fcntl.h>  #include <fcntl.h>
 #include <sys/types.h>  #include <sys/types.h>
 #include <sys/wait.h>  #include <sys/wait.h>
   #if HAVE_UNISTD_H
   #include <unistd.h>
   #endif
   
 int main(void)  int main(void)
 {  {
Line 4506  int main(void) Line 5149  int main(void)
         }          }
         wait(&status);          wait(&status);
         unlink(tpl);          unlink(tpl);
        exit(WEXITSTATUS(status));        return WEXITSTATUS(status);
 }  }
   
 _ACEOF  _ACEOF
Line 4737  fi Line 5380  fi
 if test x"$enable_ipv6" != x"no"; then  if test x"$enable_ipv6" != x"no"; then
         { $as_echo "$as_me:${as_lineno-$LINENO}: checking ipv6 stack type" >&5          { $as_echo "$as_me:${as_lineno-$LINENO}: checking ipv6 stack type" >&5
 $as_echo_n "checking ipv6 stack type... " >&6; }  $as_echo_n "checking ipv6 stack type... " >&6; }
        for i in inria kame linux-glibc linux-inet6 solaris toshiba v6d zeta cygwin; do        for i in inria kame linux-glibc linux-inet6 solaris toshiba v6d zeta cygwin TANDEM; do
                 case $i in                  case $i in
                 inria)                  inria)
                         # http://www.kame.net/                          # http://www.kame.net/
Line 4916  fi Line 5559  fi
 rm -f conftest*  rm -f conftest*
   
                         ;;                          ;;
                   TANDEM)
                           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   /* end confdefs.h.  */
   
   #include <netinet/ip6.h>
   #ifdef __TANDEM
   yes
   #endif
   _ACEOF
   if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
     $EGREP "yes" >/dev/null 2>&1; then :
     ipv6type=$i;
   
   $as_echo "#define INET6 1" >>confdefs.h
   
   fi
   rm -f conftest*
   
                           ;;
                 esac                  esac
                 if test "$ipv6type" != "unknown"; then                  if test "$ipv6type" != "unknown"; then
                         break                          break
Line 5597  for ac_header in sys/fcntl.h sys/select.h fcntl.h sys/ Line 6259  for ac_header in sys/fcntl.h sys/select.h fcntl.h sys/
     unistd.h utime.h grp.h compat.h sys/param.h ctype.h sys/wait.h \      unistd.h utime.h grp.h compat.h sys/param.h ctype.h sys/wait.h \
     sys/ioctl.h sys/filio.h string.h stdlib.h sys/socket.h sys/mode.h \      sys/ioctl.h sys/filio.h string.h stdlib.h sys/socket.h sys/mode.h \
     sys/un.h sys/attr.h mcheck.h arpa/inet.h arpa/nameser.h locale.h \      sys/un.h sys/attr.h mcheck.h arpa/inet.h arpa/nameser.h locale.h \
       mysql/mysql.h sqlite3.h \
     netdb.h malloc.h float.h limits.h iconv.h libcharset.h langinfo.h \      netdb.h malloc.h float.h limits.h iconv.h libcharset.h langinfo.h \
    sys/acl.h acl/libacl.h attr/xattr.h sys/xattr.h sys/extattr.h \    sys/acl.h acl/libacl.h attr/xattr.h sys/xattr.h sys/extattr.h dl.h \
     popt.h popt/popt.h linux/falloc.h netinet/in_systm.h netinet/ip.h \      popt.h popt/popt.h linux/falloc.h netinet/in_systm.h netinet/ip.h \
    zlib.h    zlib.h xxhash.h openssl/md4.h openssl/md5.h zstd.h lz4.h sys/file.h
 do :  do :
   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`    as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"  ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
Line 5630  return makedev(0, 0); Line 6293  return makedev(0, 0);
 }  }
 _ACEOF  _ACEOF
 if ac_fn_c_try_link "$LINENO"; then :  if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_header_sys_types_h_makedev=yes  if grep sys/sysmacros.h conftest.err >/dev/null; then
                    ac_cv_header_sys_types_h_makedev=no
                  else
                    ac_cv_header_sys_types_h_makedev=yes
                  fi
 else  else
   ac_cv_header_sys_types_h_makedev=no    ac_cv_header_sys_types_h_makedev=no
 fi  fi
Line 5664  fi Line 6331  fi
 fi  fi
   
   
   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable use of openssl crypto library" >&5
   $as_echo_n "checking whether to enable use of openssl crypto library... " >&6; }
   # Check whether --enable-openssl was given.
   if test "${enable_openssl+set}" = set; then :
     enableval=$enable_openssl;
   fi
   
   
   if test x"$enable_openssl" != x"no"; then
       if test x"$ac_cv_header_openssl_md4_h" = x"yes" && test x"$ac_cv_header_openssl_md5_h" = x"yes"; then
         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   $as_echo "yes" >&6; }
         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing MD5_Init" >&5
   $as_echo_n "checking for library containing MD5_Init... " >&6; }
   if ${ac_cv_search_MD5_Init+:} false; then :
     $as_echo_n "(cached) " >&6
   else
     ac_func_search_save_LIBS=$LIBS
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   /* end confdefs.h.  */
   
   /* Override any GCC internal prototype to avoid an error.
      Use char because int might match the return type of a GCC
      builtin and then its argument prototype would still apply.  */
   #ifdef __cplusplus
   extern "C"
   #endif
   char MD5_Init ();
   int
   main ()
   {
   return MD5_Init ();
     ;
     return 0;
   }
   _ACEOF
   for ac_lib in '' crypto; do
     if test -z "$ac_lib"; then
       ac_res="none required"
     else
       ac_res=-l$ac_lib
       LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
     fi
     if ac_fn_c_try_link "$LINENO"; then :
     ac_cv_search_MD5_Init=$ac_res
   fi
   rm -f core conftest.err conftest.$ac_objext \
       conftest$ac_exeext
     if ${ac_cv_search_MD5_Init+:} false; then :
     break
   fi
   done
   if ${ac_cv_search_MD5_Init+:} false; then :
   
   else
     ac_cv_search_MD5_Init=no
   fi
   rm conftest.$ac_ext
   LIBS=$ac_func_search_save_LIBS
   fi
   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_MD5_Init" >&5
   $as_echo "$ac_cv_search_MD5_Init" >&6; }
   ac_res=$ac_cv_search_MD5_Init
   if test "$ac_res" != no; then :
     test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
     $as_echo "#define USE_OPENSSL 1" >>confdefs.h
   
   else
     err_msg="$err_msg$nl- Failed to find MD5_Init function in openssl crypto lib.";
              no_lib="$no_lib openssl"
   fi
   
       else
           { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   $as_echo "no" >&6; }
           err_msg="$err_msg$nl- Failed to find openssl/md4.h and openssl/md5.h for openssl crypto lib support."
           no_lib="$no_lib openssl"
       fi
   else
       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   $as_echo "no" >&6; }
   fi
   
   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable xxhash checksum support" >&5
   $as_echo_n "checking whether to enable xxhash checksum support... " >&6; }
   # Check whether --enable-xxhash was given.
   if test "${enable_xxhash+set}" = set; then :
     enableval=$enable_xxhash;
   fi
   
   
   if test x"$enable_xxhash" != x"no"; then
       if test x"$ac_cv_header_xxhash_h" = x"yes"; then
           { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   $as_echo "yes" >&6; }
           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing XXH64_createState" >&5
   $as_echo_n "checking for library containing XXH64_createState... " >&6; }
   if ${ac_cv_search_XXH64_createState+:} false; then :
     $as_echo_n "(cached) " >&6
   else
     ac_func_search_save_LIBS=$LIBS
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   /* end confdefs.h.  */
   
   /* Override any GCC internal prototype to avoid an error.
      Use char because int might match the return type of a GCC
      builtin and then its argument prototype would still apply.  */
   #ifdef __cplusplus
   extern "C"
   #endif
   char XXH64_createState ();
   int
   main ()
   {
   return XXH64_createState ();
     ;
     return 0;
   }
   _ACEOF
   for ac_lib in '' xxhash; do
     if test -z "$ac_lib"; then
       ac_res="none required"
     else
       ac_res=-l$ac_lib
       LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
     fi
     if ac_fn_c_try_link "$LINENO"; then :
     ac_cv_search_XXH64_createState=$ac_res
   fi
   rm -f core conftest.err conftest.$ac_objext \
       conftest$ac_exeext
     if ${ac_cv_search_XXH64_createState+:} false; then :
     break
   fi
   done
   if ${ac_cv_search_XXH64_createState+:} false; then :
   
   else
     ac_cv_search_XXH64_createState=no
   fi
   rm conftest.$ac_ext
   LIBS=$ac_func_search_save_LIBS
   fi
   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_XXH64_createState" >&5
   $as_echo "$ac_cv_search_XXH64_createState" >&6; }
   ac_res=$ac_cv_search_XXH64_createState
   if test "$ac_res" != no; then :
     test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
     $as_echo "#define SUPPORT_XXHASH 1" >>confdefs.h
   
   else
     err_msg="$err_msg$nl- Failed to find XXH64_createState function in xxhash lib.";
                no_lib="$no_lib xxhash"
   fi
   
       else
           { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   $as_echo "no" >&6; }
           err_msg="$err_msg$nl- Failed to find xxhash.h for xxhash checksum support.";
           no_lib="$no_lib xxhash"
       fi
   else
       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   $as_echo "no" >&6; }
   fi
   
   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable zstd compression" >&5
   $as_echo_n "checking whether to enable zstd compression... " >&6; }
   # Check whether --enable-zstd was given.
   if test "${enable_zstd+set}" = set; then :
     enableval=$enable_zstd;
   fi
   
   
   if test x"$enable_zstd" != x"no"; then
       if test x"$ac_cv_header_zstd_h" = x"yes"; then
           { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   $as_echo "yes" >&6; }
           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ZSTD_minCLevel" >&5
   $as_echo_n "checking for library containing ZSTD_minCLevel... " >&6; }
   if ${ac_cv_search_ZSTD_minCLevel+:} false; then :
     $as_echo_n "(cached) " >&6
   else
     ac_func_search_save_LIBS=$LIBS
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   /* end confdefs.h.  */
   
   /* Override any GCC internal prototype to avoid an error.
      Use char because int might match the return type of a GCC
      builtin and then its argument prototype would still apply.  */
   #ifdef __cplusplus
   extern "C"
   #endif
   char ZSTD_minCLevel ();
   int
   main ()
   {
   return ZSTD_minCLevel ();
     ;
     return 0;
   }
   _ACEOF
   for ac_lib in '' zstd; do
     if test -z "$ac_lib"; then
       ac_res="none required"
     else
       ac_res=-l$ac_lib
       LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
     fi
     if ac_fn_c_try_link "$LINENO"; then :
     ac_cv_search_ZSTD_minCLevel=$ac_res
   fi
   rm -f core conftest.err conftest.$ac_objext \
       conftest$ac_exeext
     if ${ac_cv_search_ZSTD_minCLevel+:} false; then :
     break
   fi
   done
   if ${ac_cv_search_ZSTD_minCLevel+:} false; then :
   
   else
     ac_cv_search_ZSTD_minCLevel=no
   fi
   rm conftest.$ac_ext
   LIBS=$ac_func_search_save_LIBS
   fi
   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ZSTD_minCLevel" >&5
   $as_echo "$ac_cv_search_ZSTD_minCLevel" >&6; }
   ac_res=$ac_cv_search_ZSTD_minCLevel
   if test "$ac_res" != no; then :
     test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
     $as_echo "#define SUPPORT_ZSTD 1" >>confdefs.h
   
   else
     err_msg="$err_msg$nl- Failed to find ZSTD_minCLevel function in zstd lib.";
                no_lib="$no_lib zstd"
   fi
   
       else
           { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   $as_echo "no" >&6; }
           err_msg="$err_msg$nl- Failed to find zstd.h for zstd compression support.";
           no_lib="$no_lib zstd"
       fi
   else
       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   $as_echo "no" >&6; }
   fi
   
   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable LZ4 compression" >&5
   $as_echo_n "checking whether to enable LZ4 compression... " >&6; }
   # Check whether --enable-lz4 was given.
   if test "${enable_lz4+set}" = set; then :
     enableval=$enable_lz4;
   fi
   
   
   if test x"$enable_lz4" != x"no"; then
       if test x"$ac_cv_header_lz4_h" = x"yes"; then
           { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   $as_echo "yes" >&6; }
           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing LZ4_compress_default" >&5
   $as_echo_n "checking for library containing LZ4_compress_default... " >&6; }
   if ${ac_cv_search_LZ4_compress_default+:} false; then :
     $as_echo_n "(cached) " >&6
   else
     ac_func_search_save_LIBS=$LIBS
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   /* end confdefs.h.  */
   
   /* Override any GCC internal prototype to avoid an error.
      Use char because int might match the return type of a GCC
      builtin and then its argument prototype would still apply.  */
   #ifdef __cplusplus
   extern "C"
   #endif
   char LZ4_compress_default ();
   int
   main ()
   {
   return LZ4_compress_default ();
     ;
     return 0;
   }
   _ACEOF
   for ac_lib in '' lz4; do
     if test -z "$ac_lib"; then
       ac_res="none required"
     else
       ac_res=-l$ac_lib
       LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
     fi
     if ac_fn_c_try_link "$LINENO"; then :
     ac_cv_search_LZ4_compress_default=$ac_res
   fi
   rm -f core conftest.err conftest.$ac_objext \
       conftest$ac_exeext
     if ${ac_cv_search_LZ4_compress_default+:} false; then :
     break
   fi
   done
   if ${ac_cv_search_LZ4_compress_default+:} false; then :
   
   else
     ac_cv_search_LZ4_compress_default=no
   fi
   rm conftest.$ac_ext
   LIBS=$ac_func_search_save_LIBS
   fi
   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_LZ4_compress_default" >&5
   $as_echo "$ac_cv_search_LZ4_compress_default" >&6; }
   ac_res=$ac_cv_search_LZ4_compress_default
   if test "$ac_res" != no; then :
     test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
     $as_echo "#define SUPPORT_LZ4 1" >>confdefs.h
   
   else
     err_msg="$err_msg$nl- Failed to find LZ4_compress_default function in lz4 lib.";
                no_lib="$no_lib lz4"
   fi
   
       else
           { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   $as_echo "no" >&6; }
           err_msg="$err_msg$nl- Failed to find lz4.h for lz4 compression support."
           no_lib="$no_lib lz4"
       fi
   else
       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   $as_echo "no" >&6; }
   fi
   
   if test x"$no_lib" != x; then
       echo ""
       echo "Configure found the following issues:"
       echo "$err_msg"
       echo ""
       echo "See the INSTALL file for hints on how to install the missing libraries and/or"
       echo "how to generate (or fetch) man pages:"
       echo "    https://github.com/WayneD/rsync/blob/master/INSTALL.md"
       echo ""
       echo "To disable one or more features, the relevant configure options are:"
       for lib in $no_lib; do
           echo "    --disable-$lib"
       done
       echo ""
       as_fn_error $? "Aborting configure run" "$LINENO" 5
   fi
   
 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if makedev takes 3 args" >&5  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if makedev takes 3 args" >&5
 $as_echo_n "checking if makedev takes 3 args... " >&6; }  $as_echo_n "checking if makedev takes 3 args... " >&6; }
 if ${rsync_cv_MAKEDEV_TAKES_3_ARGS+:} false; then :  if ${rsync_cv_MAKEDEV_TAKES_3_ARGS+:} false; then :
Line 5690  int main(void) Line 6706  int main(void)
 {  {
         dev_t dev = makedev(0, 5, 7);          dev_t dev = makedev(0, 5, 7);
         if (major(dev) != 5 || minor(dev) != 7)          if (major(dev) != 5 || minor(dev) != 7)
                exit(1);                return 1;
         return 0;          return 0;
 }  }
   
Line 6109  cat >>confdefs.h <<_ACEOF Line 7125  cat >>confdefs.h <<_ACEOF
 _ACEOF  _ACEOF
   
   
   # The cast to long int works around a bug in the HP C Compiler
   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
   # This bug is HP SR number 8606223364.
   { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char*" >&5
   $as_echo_n "checking size of char*... " >&6; }
   if ${ac_cv_sizeof_charp+:} false; then :
     $as_echo_n "(cached) " >&6
   else
     if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char*))" "ac_cv_sizeof_charp"        "$ac_includes_default"; then :
   
   else
     if test "$ac_cv_type_charp" = yes; then
        { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   as_fn_error 77 "cannot compute sizeof (char*)
   See \`config.log' for more details" "$LINENO" 5; }
      else
        ac_cv_sizeof_charp=0
      fi
   fi
   
   fi
   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_charp" >&5
   $as_echo "$ac_cv_sizeof_charp" >&6; }
   
   
   
   cat >>confdefs.h <<_ACEOF
   #define SIZEOF_CHARP $ac_cv_sizeof_charp
   _ACEOF
   
   
   
 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
 $as_echo_n "checking for inline... " >&6; }  $as_echo_n "checking for inline... " >&6; }
 if ${ac_cv_c_inline+:} false; then :  if ${ac_cv_c_inline+:} false; then :
Line 6393  _ACEOF Line 7442  _ACEOF
   
   
 fi  fi
   ac_fn_c_check_member "$LINENO" "struct stat" "st_mtimespec.tv_nsec" "ac_cv_member_struct_stat_st_mtimespec_tv_nsec" "
   #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
   "
   if test "x$ac_cv_member_struct_stat_st_mtimespec_tv_nsec" = xyes; then :
   
   cat >>confdefs.h <<_ACEOF
   #define HAVE_STRUCT_STAT_ST_MTIMESPEC_TV_NSEC 1
   _ACEOF
   
   
   fi
 ac_fn_c_check_member "$LINENO" "struct stat" "st_mtim.tv_nsec" "ac_cv_member_struct_stat_st_mtim_tv_nsec" "  ac_fn_c_check_member "$LINENO" "struct stat" "st_mtim.tv_nsec" "ac_cv_member_struct_stat_st_mtim_tv_nsec" "
 #ifdef HAVE_SYS_TYPES_H  #ifdef HAVE_SYS_TYPES_H
 #include <sys/types.h>  #include <sys/types.h>
Line 6944  rm -f core conftest.err conftest.$ac_objext conftest.$ Line 8012  rm -f core conftest.err conftest.$ac_objext conftest.$
       am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"        am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
 fi  fi
   
    am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`    am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed 's/( /(/'`
 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
          }$am_cv_proto_iconv" >&5           }$am_cv_proto_iconv" >&5
 $as_echo "${ac_t:-  $as_echo "${ac_t:-
Line 7685  _ACEOF Line 8753  _ACEOF
   
 fi  fi
   
for ac_func in waitpid wait4 getcwd strdup chown chmod lchmod mknod mkfifo \for ac_func in waitpid wait4 getcwd chown chmod lchmod mknod mkfifo \
     fchmod fstat ftruncate strchr readlink link utime utimes lutimes strftime \      fchmod fstat ftruncate strchr readlink link utime utimes lutimes strftime \
       chflags getattrlist mktime innetgr linkat \
     memmove lchown vsnprintf snprintf vasprintf asprintf setsid strpbrk \      memmove lchown vsnprintf snprintf vasprintf asprintf setsid strpbrk \
     strlcat strlcpy strtol mallinfo getgroups setgroups geteuid getegid \      strlcat strlcpy strtol mallinfo getgroups setgroups geteuid getegid \
     setlocale setmode open64 lseek64 mkstemp64 mtrace va_copy __va_copy \      setlocale setmode open64 lseek64 mkstemp64 mtrace va_copy __va_copy \
     seteuid strerror putenv iconv_open locale_charset nl_langinfo getxattr \      seteuid strerror putenv iconv_open locale_charset nl_langinfo getxattr \
     extattr_get_link sigaction sigprocmask setattrlist getgrouplist \      extattr_get_link sigaction sigprocmask setattrlist getgrouplist \
    initgroups utimensat posix_fallocate attropen setvbuf usleep    initgroups utimensat posix_fallocate attropen setvbuf nanosleep usleep
 do :  do :
   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`    as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"  ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
Line 7749  $as_echo "#define HAVE_FALLOCATE 1" >>confdefs.h Line 8818  $as_echo "#define HAVE_FALLOCATE 1" >>confdefs.h
   
 fi  fi
   
   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FALLOC_FL_PUNCH_HOLE" >&5
   $as_echo_n "checking for FALLOC_FL_PUNCH_HOLE... " >&6; }
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   /* end confdefs.h.  */
   
           #define _GNU_SOURCE 1
           #include <linux/falloc.h>
           #ifndef FALLOC_FL_PUNCH_HOLE
           #error FALLOC_FL_PUNCH_HOLE is missing
           #endif
   
   _ACEOF
   if ac_fn_c_try_cpp "$LINENO"; then :
   
           { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   $as_echo "yes" >&6; }
   
   $as_echo "#define HAVE_FALLOC_FL_PUNCH_HOLE 1" >>confdefs.h
   
   
   else
   
           { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   $as_echo "no" >&6; }
   
   
   fi
   rm -f conftest.err conftest.i conftest.$ac_ext
   
   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FALLOC_FL_ZERO_RANGE" >&5
   $as_echo_n "checking for FALLOC_FL_ZERO_RANGE... " >&6; }
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   /* end confdefs.h.  */
   
           #define _GNU_SOURCE 1
           #include <linux/falloc.h>
           #ifndef FALLOC_FL_ZERO_RANGE
           #error FALLOC_FL_ZERO_RANGE is missing
           #endif
   
   _ACEOF
   if ac_fn_c_try_cpp "$LINENO"; then :
   
           { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   $as_echo "yes" >&6; }
   
   $as_echo "#define HAVE_FALLOC_FL_ZERO_RANGE 1" >>confdefs.h
   
   
   else
   
           { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   $as_echo "no" >&6; }
   
   
   fi
   rm -f conftest.err conftest.i conftest.$ac_ext
   
 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SYS_fallocate" >&5  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SYS_fallocate" >&5
 $as_echo_n "checking for SYS_fallocate... " >&6; }  $as_echo_n "checking for SYS_fallocate... " >&6; }
 if ${rsync_cv_have_sys_fallocate+:} false; then :  if ${rsync_cv_have_sys_fallocate+:} false; then :
Line 7758  else Line 8885  else
 cat confdefs.h - <<_ACEOF >conftest.$ac_ext  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 /* end confdefs.h.  */  /* end confdefs.h.  */
 #include <sys/syscall.h>  #include <sys/syscall.h>
   #include <unistd.h>
 #include <sys/types.h>  #include <sys/types.h>
 int  int
 main ()  main ()
Line 7886  $as_echo "#define UTF8_CHARSET \"UTF-8\"" >>confdefs.h Line 9014  $as_echo "#define UTF8_CHARSET \"UTF-8\"" >>confdefs.h
   
 fi  fi
   
   
   # Check whether --with-gssapi was given.
   if test "${with_gssapi+set}" = set; then :
     withval=$with_gssapi;
   else
     with_gssapi=check
   fi
   
   
   
   
   if test "x$with_gssapi" != xno; then :
     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gss_import_name" >&5
   $as_echo_n "checking for library containing gss_import_name... " >&6; }
   if ${ac_cv_search_gss_import_name+:} false; then :
     $as_echo_n "(cached) " >&6
   else
     ac_func_search_save_LIBS=$LIBS
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   /* end confdefs.h.  */
   
   /* Override any GCC internal prototype to avoid an error.
      Use char because int might match the return type of a GCC
      builtin and then its argument prototype would still apply.  */
   #ifdef __cplusplus
   extern "C"
   #endif
   char gss_import_name ();
   int
   main ()
   {
   return gss_import_name ();
     ;
     return 0;
   }
   _ACEOF
   for ac_lib in '' gss gssapi_krb5 ; do
     if test -z "$ac_lib"; then
       ac_res="none required"
     else
       ac_res=-l$ac_lib
       LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
     fi
     if ac_fn_c_try_link "$LINENO"; then :
     ac_cv_search_gss_import_name=$ac_res
   fi
   rm -f core conftest.err conftest.$ac_objext \
       conftest$ac_exeext
     if ${ac_cv_search_gss_import_name+:} false; then :
     break
   fi
   done
   if ${ac_cv_search_gss_import_name+:} false; then :
   
   else
     ac_cv_search_gss_import_name=no
   fi
   rm conftest.$ac_ext
   LIBS=$ac_func_search_save_LIBS
   fi
   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gss_import_name" >&5
   $as_echo "$ac_cv_search_gss_import_name" >&6; }
   ac_res=$ac_cv_search_gss_import_name
   if test "$ac_res" != no; then :
     test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
     for ac_header in gssapi/gssapi_generic.h gssapi/gssapi.h
   do :
     as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
   ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
   if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
     cat >>confdefs.h <<_ACEOF
   #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
   _ACEOF
   
   fi
   
   done
   
          $as_echo "#define GSSAPI_OPTION 1" >>confdefs.h
   
   
   else
     if test "x$with_gssapi" = xcheck; then
           { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   as_fn_error $? "--with-gssapi was given, but test for function failed
   See \`config.log' for more details" "$LINENO" 5; }
          fi
   
   fi
   
   
   fi
   
   if test x"$enable_gssapi" != x"no"; then
      $as_echo "#define GSSAPI_OPTION 1" >>confdefs.h
   
   fi
   
 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether chown() modifies symlinks" >&5  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether chown() modifies symlinks" >&5
 $as_echo_n "checking whether chown() modifies symlinks... " >&6; }  $as_echo_n "checking whether chown() modifies symlinks... " >&6; }
 if ${rsync_cv_chown_modifies_symlink+:} false; then :  if ${rsync_cv_chown_modifies_symlink+:} false; then :
Line 7903  else Line 9130  else
 #endif  #endif
 #include <stdlib.h>  #include <stdlib.h>
 #include <errno.h>  #include <errno.h>
    main() {int main(void) {
         char const *dangling_symlink = "conftest.dangle";          char const *dangling_symlink = "conftest.dangle";
         unlink(dangling_symlink);          unlink(dangling_symlink);
         if (symlink("conftest.no-such", dangling_symlink) < 0) abort();          if (symlink("conftest.no-such", dangling_symlink) < 0) abort();
        if (chown(dangling_symlink, getuid(), getgid()) < 0 && errno == ENOENT) exit(1);        if (chown(dangling_symlink, getuid(), getgid()) < 0 && errno == ENOENT) return 1;
        exit(0);        return 0;
     }      }
 _ACEOF  _ACEOF
 if ac_fn_c_try_run "$LINENO"; then :  if ac_fn_c_try_run "$LINENO"; then :
Line 7941  else Line 9168  else
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 /* end confdefs.h.  */  /* end confdefs.h.  */
   
   #ifdef HAVE_FCNTL_H
   # include <fcntl.h>
   #elif defined HAVE_SYS_FCNTL_H
   # include <sys/fcntl.h>
   #endif
 #if HAVE_UNISTD_H  #if HAVE_UNISTD_H
 # include <unistd.h>  # include <unistd.h>
 #endif  #endif
 #include <stdlib.h>  #include <stdlib.h>
 #include <errno.h>  #include <errno.h>
 #define FILENAME "conftest.dangle"  #define FILENAME "conftest.dangle"
    main() {int main(void) {
         unlink(FILENAME);          unlink(FILENAME);
         if (symlink("conftest.no-such", FILENAME) < 0) abort();          if (symlink("conftest.no-such", FILENAME) < 0) abort();
         unlink(FILENAME "2");          unlink(FILENAME "2");
        if (link(FILENAME, FILENAME "2") < 0) exit(1);#ifdef HAVE_LINKAT
        exit(0);        if (linkat(AT_FDCWD, FILENAME, AT_FDCWD, FILENAME "2", 0) < 0) return 1;
 #else
         if (link(FILENAME, FILENAME "2") < 0) return 1;
 #endif
         return 0;
     }      }
 _ACEOF  _ACEOF
 if ac_fn_c_try_run "$LINENO"; then :  if ac_fn_c_try_run "$LINENO"; then :
Line 7988  else Line 9224  else
 #if HAVE_UNISTD_H  #if HAVE_UNISTD_H
 # include <unistd.h>  # include <unistd.h>
 #endif  #endif
   #ifdef HAVE_SYS_STAT_H
   #include <sys/stat.h>
   #endif
 #include <stdlib.h>  #include <stdlib.h>
 #include <errno.h>  #include <errno.h>
 #define FILENAME "conftest.fifi"  #define FILENAME "conftest.fifi"
    main() {int main(void) {
         unlink(FILENAME);          unlink(FILENAME);
         if (mkfifo(FILENAME, 0777) < 0) abort();          if (mkfifo(FILENAME, 0777) < 0) abort();
         unlink(FILENAME "2");          unlink(FILENAME "2");
        if (link(FILENAME, FILENAME "2") < 0) exit(1);        if (link(FILENAME, FILENAME "2") < 0) return 1;
        exit(0);        return 0;
     }      }
 _ACEOF  _ACEOF
 if ac_fn_c_try_run "$LINENO"; then :  if ac_fn_c_try_run "$LINENO"; then :
Line 8017  $as_echo "#define CAN_HARDLINK_SPECIAL 1" >>confdefs.h Line 9256  $as_echo "#define CAN_HARDLINK_SPECIAL 1" >>confdefs.h
   
 fi  fi
   
   # Check whether --enable-slp was given.
   if test "${enable_slp+set}" = set; then :
     enableval=$enable_slp;
   fi
   
   
   # Check whether --with-openslp-libs was given.
   if test "${with_openslp_libs+set}" = set; then :
     withval=$with_openslp_libs; LDFLAGS="-L$withval $LDFLAGS"
       DSOFLAGS="-L$withval $DSOFLAGS"
   fi
   
   
   # Check whether --with-openslp-includes was given.
   if test "${with_openslp_includes+set}" = set; then :
     withval=$with_openslp_includes; CFLAGS="-I$withval $CFLAGS"
       CXXFLAGS="-I$withval $CXXFLAGS"
       CPPFLAGS="-I$withval $CPPFLAGS"
   fi
   
   
   LIBSLP=""
   SLPOBJ=""
   
   if test x$enable_slp != xno; then
       ac_fn_c_check_header_mongrel "$LINENO" "slp.h" "ac_cv_header_slp_h" "$ac_includes_default"
   if test "x$ac_cv_header_slp_h" = xyes; then :
     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SLPOpen in -lslp" >&5
   $as_echo_n "checking for SLPOpen in -lslp... " >&6; }
   if ${ac_cv_lib_slp_SLPOpen+:} false; then :
     $as_echo_n "(cached) " >&6
   else
     ac_check_lib_save_LIBS=$LIBS
   LIBS="-lslp  $LIBS"
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   /* end confdefs.h.  */
   
   /* Override any GCC internal prototype to avoid an error.
      Use char because int might match the return type of a GCC
      builtin and then its argument prototype would still apply.  */
   #ifdef __cplusplus
   extern "C"
   #endif
   char SLPOpen ();
   int
   main ()
   {
   return SLPOpen ();
     ;
     return 0;
   }
   _ACEOF
   if ac_fn_c_try_link "$LINENO"; then :
     ac_cv_lib_slp_SLPOpen=yes
   else
     ac_cv_lib_slp_SLPOpen=no
   fi
   rm -f core conftest.err conftest.$ac_objext \
       conftest$ac_exeext conftest.$ac_ext
   LIBS=$ac_check_lib_save_LIBS
   fi
   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_slp_SLPOpen" >&5
   $as_echo "$ac_cv_lib_slp_SLPOpen" >&6; }
   if test "x$ac_cv_lib_slp_SLPOpen" = xyes; then :
   
   $as_echo "#define HAVE_LIBSLP 1" >>confdefs.h
   
               SLPOBJ="srvreg.o srvloc.o"
               LIBSLP="-lslp"
   fi
   
   fi
   
   
   fi
   
   
   
   
 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working socketpair" >&5  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working socketpair" >&5
 $as_echo_n "checking for working socketpair... " >&6; }  $as_echo_n "checking for working socketpair... " >&6; }
 if ${rsync_cv_HAVE_SOCKETPAIR+:} false; then :  if ${rsync_cv_HAVE_SOCKETPAIR+:} false; then :
Line 8032  else Line 9350  else
 #include <sys/types.h>  #include <sys/types.h>
 #include <sys/socket.h>  #include <sys/socket.h>
   
main() {int main(void) {
        int fd[2];         int fd[2];
       exit((socketpair(AF_UNIX, SOCK_STREAM, 0, fd) != -1) ? 0 : 1);       return (socketpair(AF_UNIX, SOCK_STREAM, 0, fd) != -1) ? 0 : 1;
 }  }
 _ACEOF  _ACEOF
 if ac_fn_c_try_run "$LINENO"; then :  if ac_fn_c_try_run "$LINENO"; then :
Line 8264  else Line 9582  else
 /* end confdefs.h.  */  /* end confdefs.h.  */
 #include <sys/types.h>  #include <sys/types.h>
 #include <dirent.h>  #include <dirent.h>
main() { struct dirent *di; DIR *d = opendir("."); di = readdir(d);int main(void) { struct dirent *di; DIR *d = opendir("."); di = readdir(d);
 if (di && di->d_name[-2] == '.' && di->d_name[-1] == 0 &&  if (di && di->d_name[-2] == '.' && di->d_name[-1] == 0 &&
di->d_name[0] == 0) exit(0); exit(1);}di->d_name[0] == 0) return 0; return 1;}
 _ACEOF  _ACEOF
 if ac_fn_c_try_run "$LINENO"; then :  if ac_fn_c_try_run "$LINENO"; then :
   rsync_cv_HAVE_BROKEN_READDIR=yes    rsync_cv_HAVE_BROKEN_READDIR=yes
Line 8299  cat confdefs.h - <<_ACEOF >conftest.$ac_ext Line 9617  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 int  int
 main ()  main ()
 {  {
struct utimbuf tbuf;  tbuf.actime = 0; tbuf.modtime = 1; exit(utime("foo.c",&tbuf));struct utimbuf tbuf;  tbuf.actime = 0; tbuf.modtime = 1; return utime("foo.c",&tbuf);
   ;    ;
   return 0;    return 0;
 }  }
Line 8332  cat confdefs.h - <<_ACEOF >conftest.$ac_ext Line 9650  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 int  int
 main ()  main ()
 {  {
struct timeval tv; exit(gettimeofday(&tv, NULL));struct timeval tv; return gettimeofday(&tv, NULL);
   ;    ;
   return 0;    return 0;
 }  }
Line 8366  else Line 9684  else
   
 #include <sys/types.h>  #include <sys/types.h>
 #include <stdarg.h>  #include <stdarg.h>
   #include <stdio.h>
   #include <stdlib.h>
   #include <string.h>
 void foo(const char *format, ...) {  void foo(const char *format, ...) {
        va_list ap;         va_list ap;
        int len;         int len;
       char buf[5];       static char buf[] = "12345678901234567890";
   
        va_start(ap, format);         va_start(ap, format);
        len = vsnprintf(0, 0, format, ap);         len = vsnprintf(0, 0, format, ap);
Line 8377  void foo(const char *format, ...) { Line 9698  void foo(const char *format, ...) {
        if (len != 5) exit(1);         if (len != 5) exit(1);
   
        if (snprintf(buf, 3, "hello") != 5 || strcmp(buf, "he") != 0) exit(1);         if (snprintf(buf, 3, "hello") != 5 || strcmp(buf, "he") != 0) exit(1);
   
        exit(0);  
 }  }
main() { foo("hello"); }int main(void) { foo("hello"); return 0; }
   
 _ACEOF  _ACEOF
 if ac_fn_c_try_run "$LINENO"; then :  if ac_fn_c_try_run "$LINENO"; then :
Line 8417  else Line 9736  else
 #include <sys/types.h>  #include <sys/types.h>
 #include <sys/stat.h>  #include <sys/stat.h>
 #include <unistd.h>  #include <unistd.h>
main() {int main(void) {
   struct stat st;    struct stat st;
   char tpl[20]="/tmp/test.XXXXXX";    char tpl[20]="/tmp/test.XXXXXX";
   int fd = mkstemp(tpl);    int fd = mkstemp(tpl);
  if (fd == -1) exit(1);  if (fd == -1) return 1;
   unlink(tpl);    unlink(tpl);
  if (fstat(fd, &st) != 0) exit(1);  if (fstat(fd, &st) != 0) return 1;
  if ((st.st_mode & 0777) != 0600) exit(1);  if ((st.st_mode & 0777) != 0600) return 1;
  exit(0);  return 0;
 }  }
 _ACEOF  _ACEOF
 if ac_fn_c_try_run "$LINENO"; then :  if ac_fn_c_try_run "$LINENO"; then :
Line 8470  else Line 9789  else
 #include <stdio.h>  #include <stdio.h>
 #include <sys/stat.h>  #include <sys/stat.h>
 #include <errno.h>  #include <errno.h>
main() { int rc, ec; char *fn = "fifo-test";#if HAVE_UNISTD_H
 # include <unistd.h>
 #endif
 int main(void) { int rc, ec; char *fn = "fifo-test";
 unlink(fn); rc = mknod(fn,S_IFIFO,0600); ec = errno; unlink(fn);  unlink(fn); rc = mknod(fn,S_IFIFO,0600); ec = errno; unlink(fn);
 if (rc) {printf("(%d %d) ",rc,ec); return ec;}  if (rc) {printf("(%d %d) ",rc,ec); return ec;}
 return 0;}  return 0;}
Line 8508  else Line 9830  else
 #include <stdio.h>  #include <stdio.h>
 #include <sys/stat.h>  #include <sys/stat.h>
 #include <errno.h>  #include <errno.h>
main() { int rc, ec; char *fn = "sock-test";#if HAVE_UNISTD_H
 # include <unistd.h>
 #endif
 int main(void) { int rc, ec; char *fn = "sock-test";
 unlink(fn); rc = mknod(fn,S_IFSOCK,0600); ec = errno; unlink(fn);  unlink(fn); rc = mknod(fn,S_IFSOCK,0600); ec = errno; unlink(fn);
 if (rc) {printf("(%d %d) ",rc,ec); return ec;}  if (rc) {printf("(%d %d) ",rc,ec); return ec;}
 return 0;}  return 0;}
Line 8542  else Line 9867  else
   
 rm -rf conftest*  rm -rf conftest*
 cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
int main() { return 0; }int main(void) { return 0; }
 EOF  EOF
 ${CC-cc} -c -o conftest..o conftest.$ac_ext  ${CC-cc} -c -o conftest..o conftest.$ac_ext
 if test -f conftest..o; then  if test -f conftest..o; then
Line 8572  fi Line 9897  fi
   
   
   
 # Extract the first word of "stunnel", so it can be a program name with args.  
 set dummy stunnel; ac_word=$2  
 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5  
 $as_echo_n "checking for $ac_word... " >&6; }  
 if ${ac_cv_path_STUNNEL+:} false; then :  
   $as_echo_n "(cached) " >&6  
 else  
   case $STUNNEL in  
   [\\/]* | ?:[\\/]*)  
   ac_cv_path_STUNNEL="$STUNNEL" # Let the user override the test with a path.  
   ;;  
   *)  
   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR  
 for as_dir in $PATH$PATH_SEPARATOR/usr/sbin$PATH_SEPARATOR/sbin  
 do  
   IFS=$as_save_IFS  
   test -z "$as_dir" && as_dir=.  
     for ac_exec_ext in '' $ac_executable_extensions; do  
   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then  
     ac_cv_path_STUNNEL="$as_dir/$ac_word$ac_exec_ext"  
     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5  
     break 2  
   fi  
 done  
   done  
 IFS=$as_save_IFS  
   
   test -z "$ac_cv_path_STUNNEL" && ac_cv_path_STUNNEL="stunnel"  
   ;;  
 esac  
 fi  
 STUNNEL=$ac_cv_path_STUNNEL  
 if test -n "$STUNNEL"; then  
   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STUNNEL" >&5  
 $as_echo "$STUNNEL" >&6; }  
 else  
   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5  
 $as_echo "no" >&6; }  
 fi  
   
   
 # Extract the first word of "stunnel4", so it can be a program name with args.  
 set dummy stunnel4; ac_word=$2  
 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5  
 $as_echo_n "checking for $ac_word... " >&6; }  
 if ${ac_cv_path_STUNNEL4+:} false; then :  
   $as_echo_n "(cached) " >&6  
 else  
   case $STUNNEL4 in  
   [\\/]* | ?:[\\/]*)  
   ac_cv_path_STUNNEL4="$STUNNEL4" # Let the user override the test with a path.  
   ;;  
   *)  
   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR  
 for as_dir in $PATH$PATH_SEPARATOR/usr/sbin$PATH_SEPARATOR/sbin  
 do  
   IFS=$as_save_IFS  
   test -z "$as_dir" && as_dir=.  
     for ac_exec_ext in '' $ac_executable_extensions; do  
   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then  
     ac_cv_path_STUNNEL4="$as_dir/$ac_word$ac_exec_ext"  
     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5  
     break 2  
   fi  
 done  
   done  
 IFS=$as_save_IFS  
   
   test -z "$ac_cv_path_STUNNEL4" && ac_cv_path_STUNNEL4="$STUNNEL"  
   ;;  
 esac  
 fi  
 STUNNEL4=$ac_cv_path_STUNNEL4  
 if test -n "$STUNNEL4"; then  
   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STUNNEL4" >&5  
 $as_echo "$STUNNEL4" >&6; }  
 else  
   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5  
 $as_echo "no" >&6; }  
 fi  
   
   
   
 for ac_func in _acl __acl _facl __facl  for ac_func in _acl __acl _facl __facl
 do :  do :
   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`    as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
Line 8693  $as_echo "#define HAVE_UNIXWARE_ACLS 1" >>confdefs.h Line 9935  $as_echo "#define HAVE_UNIXWARE_ACLS 1" >>confdefs.h
 $as_echo "#define SUPPORT_ACLS 1" >>confdefs.h  $as_echo "#define SUPPORT_ACLS 1" >>confdefs.h
   
         ;;          ;;
    solaris*|*cygwin*)    solaris*)
         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using solaris ACLs" >&5          { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using solaris ACLs" >&5
 $as_echo "Using solaris ACLs" >&6; }  $as_echo "Using solaris ACLs" >&6; }
   
Line 8702  $as_echo "#define HAVE_SOLARIS_ACLS 1" >>confdefs.h Line 9944  $as_echo "#define HAVE_SOLARIS_ACLS 1" >>confdefs.h
         $as_echo "#define SUPPORT_ACLS 1" >>confdefs.h          $as_echo "#define SUPPORT_ACLS 1" >>confdefs.h
   
         ;;          ;;
     *hpux*)  
         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using HPUX ACLs" >&5  
 $as_echo "Using HPUX ACLs" >&6; }  
   
 $as_echo "#define HAVE_HPUX_ACLS 1" >>confdefs.h  
   
         $as_echo "#define SUPPORT_ACLS 1" >>confdefs.h  
   
         ;;  
     *irix*)      *irix*)
         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using IRIX ACLs" >&5          { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using IRIX ACLs" >&5
 $as_echo "Using IRIX ACLs" >&6; }  $as_echo "Using IRIX ACLs" >&6; }
Line 8748  $as_echo "#define HAVE_OSX_ACLS 1" >>confdefs.h Line 9981  $as_echo "#define HAVE_OSX_ACLS 1" >>confdefs.h
         $as_echo "#define SUPPORT_ACLS 1" >>confdefs.h          $as_echo "#define SUPPORT_ACLS 1" >>confdefs.h
   
         ;;          ;;
       *hpux*|*nsk*)
           { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using HPUX ACLs" >&5
   $as_echo "Using HPUX ACLs" >&6; }
   
   $as_echo "#define HAVE_HPUX_ACLS 1" >>confdefs.h
   
           $as_echo "#define SUPPORT_ACLS 1" >>confdefs.h
   
           ;;
     *)      *)
         { $as_echo "$as_me:${as_lineno-$LINENO}: result: running tests:" >&5          { $as_echo "$as_me:${as_lineno-$LINENO}: result: running tests:" >&5
 $as_echo "running tests:" >&6; }  $as_echo "running tests:" >&6; }
Line 8899  if test x"$enable_xattr_support" = x"no"; then Line 10141  if test x"$enable_xattr_support" = x"no"; then
 $as_echo "no" >&6; }  $as_echo "no" >&6; }
 else  else
     case "$host_os" in      case "$host_os" in
    *linux*|*netbsd*)    *linux*|*netbsd*|*cygwin*)
         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using Linux xattrs" >&5          { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using Linux xattrs" >&5
 $as_echo "Using Linux xattrs" >&6; }  $as_echo "Using Linux xattrs" >&6; }
   
Line 9033  $as_echo "$rsync_warn_flag" >&6; } Line 10275  $as_echo "$rsync_warn_flag" >&6; }
     fi      fi
 fi  fi
   
   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include mysql DB support" >&5
   $as_echo_n "checking whether to include mysql DB support... " >&6; }
   # Check whether --enable-mysql was given.
   if test "${enable_mysql+set}" = set; then :
     enableval=$enable_mysql;
   fi
   
   
   if test x"$enable_mysql" = x"no"; then
       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   $as_echo "no" >&6; }
   else
       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   $as_echo "yes" >&6; }
       # Extract the first word of "mysql_config", so it can be a program name with args.
   set dummy mysql_config; ac_word=$2
   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   $as_echo_n "checking for $ac_word... " >&6; }
   if ${ac_cv_prog_MYSQL_CONFIG+:} false; then :
     $as_echo_n "(cached) " >&6
   else
     if test -n "$MYSQL_CONFIG"; then
     ac_cv_prog_MYSQL_CONFIG="$MYSQL_CONFIG" # Let the user override the test.
   else
   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   for as_dir in $PATH
   do
     IFS=$as_save_IFS
     test -z "$as_dir" && as_dir=.
       for ac_exec_ext in '' $ac_executable_extensions; do
     if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
       ac_cv_prog_MYSQL_CONFIG="1"
       $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
       break 2
     fi
   done
     done
   IFS=$as_save_IFS
   
     test -z "$ac_cv_prog_MYSQL_CONFIG" && ac_cv_prog_MYSQL_CONFIG="0"
   fi
   fi
   MYSQL_CONFIG=$ac_cv_prog_MYSQL_CONFIG
   if test -n "$MYSQL_CONFIG"; then
     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MYSQL_CONFIG" >&5
   $as_echo "$MYSQL_CONFIG" >&6; }
   else
     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   $as_echo "no" >&6; }
   fi
   
   
       if test x$MYSQL_CONFIG = x1; then
           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mysql version >= 4" >&5
   $as_echo_n "checking for mysql version >= 4... " >&6; }
           mysql_version=`mysql_config --version`
           mysql_major_version=`echo $mysql_version | sed 's/\..*//'`
           if test $mysql_major_version -lt 4; then
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: no.. skipping MySQL" >&5
   $as_echo "no.. skipping MySQL" >&6; }
           else
               { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   $as_echo "yes" >&6; }
   
               MYSQL_CFLAGS=`mysql_config --cflags`
               MYSQL_LIBS=`mysql_config --libs`
   
               CPPFLAGS="$CPPFLAGS $MYSQL_CFLAGS"
               LIBS="$MYSQL_LIBS $LIBS"
   
               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mysql_init in -lmysqlclient" >&5
   $as_echo_n "checking for mysql_init in -lmysqlclient... " >&6; }
   if ${ac_cv_lib_mysqlclient_mysql_init+:} false; then :
     $as_echo_n "(cached) " >&6
   else
     ac_check_lib_save_LIBS=$LIBS
   LIBS="-lmysqlclient  $LIBS"
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   /* end confdefs.h.  */
   
   /* Override any GCC internal prototype to avoid an error.
      Use char because int might match the return type of a GCC
      builtin and then its argument prototype would still apply.  */
   #ifdef __cplusplus
   extern "C"
   #endif
   char mysql_init ();
   int
   main ()
   {
   return mysql_init ();
     ;
     return 0;
   }
   _ACEOF
   if ac_fn_c_try_link "$LINENO"; then :
     ac_cv_lib_mysqlclient_mysql_init=yes
   else
     ac_cv_lib_mysqlclient_mysql_init=no
   fi
   rm -f core conftest.err conftest.$ac_objext \
       conftest$ac_exeext conftest.$ac_ext
   LIBS=$ac_check_lib_save_LIBS
   fi
   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mysqlclient_mysql_init" >&5
   $as_echo "$ac_cv_lib_mysqlclient_mysql_init" >&6; }
   if test "x$ac_cv_lib_mysqlclient_mysql_init" = xyes; then :
     cat >>confdefs.h <<_ACEOF
   #define HAVE_LIBMYSQLCLIENT 1
   _ACEOF
   
     LIBS="-lmysqlclient $LIBS"
   
   fi
   
           fi
       fi
   fi
   
   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include sqlite DB support" >&5
   $as_echo_n "checking whether to include sqlite DB support... " >&6; }
   # Check whether --enable-sqlite was given.
   if test "${enable_sqlite+set}" = set; then :
     enableval=$enable_sqlite;
   fi
   
   
   if test x"$enable_sqlite" = x"no"; then
       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   $as_echo "no" >&6; }
   else
       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite3_open in -lsqlite3" >&5
   $as_echo_n "checking for sqlite3_open in -lsqlite3... " >&6; }
   if ${ac_cv_lib_sqlite3_sqlite3_open+:} false; then :
     $as_echo_n "(cached) " >&6
   else
     ac_check_lib_save_LIBS=$LIBS
   LIBS="-lsqlite3  $LIBS"
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   /* end confdefs.h.  */
   
   /* Override any GCC internal prototype to avoid an error.
      Use char because int might match the return type of a GCC
      builtin and then its argument prototype would still apply.  */
   #ifdef __cplusplus
   extern "C"
   #endif
   char sqlite3_open ();
   int
   main ()
   {
   return sqlite3_open ();
     ;
     return 0;
   }
   _ACEOF
   if ac_fn_c_try_link "$LINENO"; then :
     ac_cv_lib_sqlite3_sqlite3_open=yes
   else
     ac_cv_lib_sqlite3_sqlite3_open=no
   fi
   rm -f core conftest.err conftest.$ac_objext \
       conftest$ac_exeext conftest.$ac_ext
   LIBS=$ac_check_lib_save_LIBS
   fi
   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_open" >&5
   $as_echo "$ac_cv_lib_sqlite3_sqlite3_open" >&6; }
   if test "x$ac_cv_lib_sqlite3_sqlite3_open" = xyes; then :
     cat >>confdefs.h <<_ACEOF
   #define HAVE_LIBSQLITE3 1
   _ACEOF
   
     LIBS="-lsqlite3 $LIBS"
   
   fi
   
       for ac_func in sqlite3_open_v2 sqlite3_prepare_v2
   do :
     as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
   ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
   if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
     cat >>confdefs.h <<_ACEOF
   #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
   _ACEOF
   
   fi
   done
   
   fi
   
 case "$CC" in  case "$CC" in
 ' checker'*|checker*)  ' checker'*|checker*)
   
Line 9550  cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 Line 10982  cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 # report actual input values of CONFIG_FILES etc. instead of their  # report actual input values of CONFIG_FILES etc. instead of their
 # values after options handling.  # values after options handling.
 ac_log="  ac_log="
This file was extended by rsync $as_me 3.1.2, which wasThis file was extended by rsync $as_me  , which was
 generated by GNU Autoconf 2.69.  Invocation command line was  generated by GNU Autoconf 2.69.  Invocation command line was
   
   CONFIG_FILES    = $CONFIG_FILES    CONFIG_FILES    = $CONFIG_FILES
Line 9606  $config_files Line 11038  $config_files
 Configuration headers:  Configuration headers:
 $config_headers  $config_headers
   
Report bugs to <http://rsync.samba.org/bugzilla.html>."Report bugs to <https://rsync.samba.org/bug-tracking.html>."
   
 _ACEOF  _ACEOF
 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1  cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"  ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
 ac_cs_version="\\  ac_cs_version="\\
rsync config.status 3.1.2rsync config.status
 configured by $0, generated by GNU Autoconf 2.69,  configured by $0, generated by GNU Autoconf 2.69,
   with options \\"\$ac_cs_config\\"    with options \\"\$ac_cs_config\\"
   
Line 9624  ac_pwd='$ac_pwd' Line 11056  ac_pwd='$ac_pwd'
 srcdir='$srcdir'  srcdir='$srcdir'
 INSTALL='$INSTALL'  INSTALL='$INSTALL'
 MKDIR_P='$MKDIR_P'  MKDIR_P='$MKDIR_P'
   AWK='$AWK'
 test -n "\$AWK" || AWK=awk  test -n "\$AWK" || AWK=awk
 _ACEOF  _ACEOF
   
Line 10336  fi Line 11769  fi
   
 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5  { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
 $as_echo "" >&6; }  $as_echo "" >&6; }
{ $as_echo "$as_me:${as_lineno-$LINENO}: result:     rsync ${RSYNC_VERSION} configuration successful" >&5{ $as_echo "$as_me:${as_lineno-$LINENO}: result:     rsync $PACKAGE_VERSION configuration successful" >&5
$as_echo "    rsync ${RSYNC_VERSION} configuration successful" >&6; }$as_echo "    rsync $PACKAGE_VERSION configuration successful" >&6; }
 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5  { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
 $as_echo "" >&6; }  $as_echo "" >&6; }
 if test x$HAVE_YODL2MAN != x1; then  
     { $as_echo "$as_me:${as_lineno-$LINENO}: result:     Note that yodl2man was not found, so pre-existing manpage files will be" >&5  
 $as_echo "    Note that yodl2man was not found, so pre-existing manpage files will be" >&6; }  
     { $as_echo "$as_me:${as_lineno-$LINENO}: result:     used w/o change (if available) -- no .yo file changes will be used." >&5  
 $as_echo "    used w/o change (if available) -- no .yo file changes will be used." >&6; }  
     { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5  
 $as_echo "" >&6; }  
 fi  

Removed from v.1.1.1.3  
changed lines
  Added in v.1.1.1.4


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>