1327
1335
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1328
1336
--without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1329
1337
--with-included-popt use bundled popt library, not from system
1338
--with-included-zlib use bundled zlib library, not from system
1339
--with-protected-args make --protected-args option the default
1330
1340
--with-rsync-path=PATH set default --rsync-path to PATH (default: rsync)
1331
1341
--with-rsyncd-conf=PATH set configuration file for rsync server to PATH
1332
1342
(default: /etc/rsyncd.conf)
3707
3717
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3719
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3720
$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3721
if test -z "$MKDIR_P"; then
3722
if ${ac_cv_path_mkdir+:} false; then :
3723
$as_echo_n "(cached) " >&6
3725
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3726
for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3729
test -z "$as_dir" && as_dir=.
3730
for ac_prog in mkdir gmkdir; do
3731
for ac_exec_ext in '' $ac_executable_extensions; do
3732
{ test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3733
case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3734
'mkdir (GNU coreutils) '* | \
3735
'mkdir (coreutils) '* | \
3736
'mkdir (fileutils) '4.1*)
3737
ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3747
test -d ./--version && rmdir ./--version
3748
if test "${ac_cv_path_mkdir+set}" = set; then
3749
MKDIR_P="$ac_cv_path_mkdir -p"
3751
# As a last resort, use the slow shell script. Don't cache a
3752
# value for MKDIR_P within a source directory, because that will
3753
# break other packages using the cache if that directory is
3754
# removed, or if the value is a relative name.
3755
MKDIR_P="$ac_install_sh -d"
3758
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3759
$as_echo "$MKDIR_P" >&6; }
3709
3761
case $ac_cv_prog_cc_stdc in #(
3711
3763
ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
4103
# Check whether --with-included-zlib was given.
4104
if test "${with_included_zlib+set}" = set; then :
4105
withval=$with_included_zlib;
4110
# Check whether --with-protected-args was given.
4111
if test "${with_protected_args+set}" = set; then :
4112
withval=$with_protected_args;
4115
if test x"$with_protected_args" = x"yes"; then
4117
cat >>confdefs.h <<_ACEOF
4118
#define RSYNC_USE_PROTECTED_ARGS 1
4051
4124
# Check whether --with-rsync-path was given.
4052
4125
if test "${with_rsync_path+set}" = set; then :
4053
4126
withval=$with_rsync_path; RSYNC_PATH="$with_rsync_path"
4194
4267
if test x$HAVE_YODL2MAN = x1; then
4273
# Some programs on solaris are only found in /usr/xpg4/bin (or work better than others versions).
4274
# Extract the first word of "sh", so it can be a program name with args.
4275
set dummy sh; ac_word=$2
4276
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4277
$as_echo_n "checking for $ac_word... " >&6; }
4278
if ${ac_cv_path_SHELL_PATH+:} false; then :
4279
$as_echo_n "(cached) " >&6
4283
ac_cv_path_SHELL_PATH="$SHELL_PATH" # Let the user override the test with a path.
4286
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4287
for as_dir in /usr/xpg4/bin$PATH_SEPARATOR$PATH
4290
test -z "$as_dir" && as_dir=.
4291
for ac_exec_ext in '' $ac_executable_extensions; do
4292
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4293
ac_cv_path_SHELL_PATH="$as_dir/$ac_word$ac_exec_ext"
4294
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4301
test -z "$ac_cv_path_SHELL_PATH" && ac_cv_path_SHELL_PATH="/bin/sh"
4305
SHELL_PATH=$ac_cv_path_SHELL_PATH
4306
if test -n "$SHELL_PATH"; then
4307
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $SHELL_PATH" >&5
4308
$as_echo "$SHELL_PATH" >&6; }
4310
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4311
$as_echo "no" >&6; }
4315
# Extract the first word of "fakeroot", so it can be a program name with args.
4316
set dummy fakeroot; ac_word=$2
4317
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4318
$as_echo_n "checking for $ac_word... " >&6; }
4319
if ${ac_cv_path_FAKEROOT_PATH+:} false; then :
4320
$as_echo_n "(cached) " >&6
4322
case $FAKEROOT_PATH in
4324
ac_cv_path_FAKEROOT_PATH="$FAKEROOT_PATH" # Let the user override the test with a path.
4327
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4328
for as_dir in /usr/xpg4/bin$PATH_SEPARATOR$PATH
4331
test -z "$as_dir" && as_dir=.
4332
for ac_exec_ext in '' $ac_executable_extensions; do
4333
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4334
ac_cv_path_FAKEROOT_PATH="$as_dir/$ac_word$ac_exec_ext"
4335
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4342
test -z "$ac_cv_path_FAKEROOT_PATH" && ac_cv_path_FAKEROOT_PATH="/usr/bin/fakeroot"
4346
FAKEROOT_PATH=$ac_cv_path_FAKEROOT_PATH
4347
if test -n "$FAKEROOT_PATH"; then
4348
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $FAKEROOT_PATH" >&5
4349
$as_echo "$FAKEROOT_PATH" >&6; }
4351
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4352
$as_echo "no" >&6; }
4199
4358
# Check whether --with-nobody-group was given.
5362
5521
sys/un.h sys/attr.h mcheck.h arpa/inet.h arpa/nameser.h locale.h \
5363
5522
netdb.h malloc.h float.h limits.h iconv.h libcharset.h langinfo.h \
5364
5523
sys/acl.h acl/libacl.h attr/xattr.h sys/xattr.h sys/extattr.h \
5365
popt.h popt/popt.h netinet/in_systm.h netinet/ip.h
5524
popt.h popt/popt.h linux/falloc.h netinet/in_systm.h netinet/ip.h \
5367
5527
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5368
5528
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6332
ac_fn_c_check_member "$LINENO" "struct stat" "st_mtimensec" "ac_cv_member_struct_stat_st_mtimensec" "
6333
#ifdef HAVE_SYS_TYPES_H
6334
#include <sys/types.h>
6336
#ifdef HAVE_SYS_STAT_H
6337
#include <sys/stat.h>
6339
#ifdef HAVE_UNISTD_H
6343
if test "x$ac_cv_member_struct_stat_st_mtimensec" = xyes; then :
6345
cat >>confdefs.h <<_ACEOF
6346
#define HAVE_STRUCT_STAT_ST_MTIMENSEC 1
6351
ac_fn_c_check_member "$LINENO" "struct stat" "st_mtim.tv_nsec" "ac_cv_member_struct_stat_st_mtim_tv_nsec" "
6352
#ifdef HAVE_SYS_TYPES_H
6353
#include <sys/types.h>
6355
#ifdef HAVE_SYS_STAT_H
6356
#include <sys/stat.h>
6358
#ifdef HAVE_UNISTD_H
6362
if test "x$ac_cv_member_struct_stat_st_mtim_tv_nsec" = xyes; then :
6364
cat >>confdefs.h <<_ACEOF
6365
#define HAVE_STRUCT_STAT_ST_MTIM_TV_NSEC 1
7448
7656
strlcat strlcpy strtol mallinfo getgroups setgroups geteuid getegid \
7449
7657
setlocale setmode open64 lseek64 mkstemp64 mtrace va_copy __va_copy \
7450
7658
seteuid strerror putenv iconv_open locale_charset nl_langinfo getxattr \
7451
extattr_get_link sigaction sigprocmask setattrlist \
7659
extattr_get_link sigaction sigprocmask setattrlist getgrouplist \
7660
initgroups utimensat posix_fallocate attropen setvbuf
7454
7662
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7455
7663
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
7683
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for useable fallocate" >&5
7684
$as_echo_n "checking for useable fallocate... " >&6; }
7685
if ${rsync_cv_have_fallocate+:} false; then :
7686
$as_echo_n "(cached) " >&6
7689
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7690
/* end confdefs.h. */
7692
#include <sys/types.h>
7696
fallocate(0, 0, 0, 0);
7701
if ac_fn_c_try_link "$LINENO"; then :
7702
rsync_cv_have_fallocate=yes
7704
rsync_cv_have_fallocate=no
7706
rm -f core conftest.err conftest.$ac_objext \
7707
conftest$ac_exeext conftest.$ac_ext
7709
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $rsync_cv_have_fallocate" >&5
7710
$as_echo "$rsync_cv_have_fallocate" >&6; }
7711
if test x"$rsync_cv_have_fallocate" = x"yes"; then
7713
$as_echo "#define HAVE_FALLOCATE 1" >>confdefs.h
7717
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SYS_fallocate" >&5
7718
$as_echo_n "checking for SYS_fallocate... " >&6; }
7719
if ${rsync_cv_have_sys_fallocate+:} false; then :
7720
$as_echo_n "(cached) " >&6
7723
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7724
/* end confdefs.h. */
7725
#include <sys/syscall.h>
7726
#include <sys/types.h>
7730
syscall(SYS_fallocate, 0, 0, (loff_t)0, (loff_t)0);
7735
if ac_fn_c_try_compile "$LINENO"; then :
7736
rsync_cv_have_sys_fallocate=yes
7738
rsync_cv_have_sys_fallocate=no
7740
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7742
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $rsync_cv_have_sys_fallocate" >&5
7743
$as_echo "$rsync_cv_have_sys_fallocate" >&6; }
7744
if test x"$rsync_cv_have_sys_fallocate" = x"yes"; then
7746
$as_echo "#define HAVE_SYS_FALLOCATE 1" >>confdefs.h
7750
if test x"$ac_cv_func_posix_fallocate" = x"yes"; then
7751
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether posix_fallocate is efficient" >&5
7752
$as_echo_n "checking whether posix_fallocate is efficient... " >&6; }
7755
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7756
$as_echo "yes" >&6; }
7758
$as_echo "#define HAVE_EFFICIENT_POSIX_FALLOCATE 1" >>confdefs.h
7762
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7763
$as_echo "no" >&6; }
7474
7769
for ac_func in getpgrp tcgetpgrp
7476
7771
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8025
for ac_func in getpass
8027
ac_fn_c_check_func "$LINENO" "getpass" "ac_cv_func_getpass"
8028
if test "x$ac_cv_func_getpass" = xyes; then :
8029
cat >>confdefs.h <<_ACEOF
8030
#define HAVE_GETPASS 1
8034
case " $LIBOBJS " in
8035
*" lib/getpass.$ac_objext "* ) ;;
8036
*) LIBOBJS="$LIBOBJS lib/getpass.$ac_objext"
7730
8044
if test x"$with_included_popt" != x"yes"; then
7731
8045
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for poptGetContext in -lpopt" >&5
7732
8046
$as_echo_n "checking for poptGetContext in -lpopt... " >&6; }
7805
8119
$as_echo "no" >&6; }
8122
# We default to using our zlib unless --with-included-zlib=no is given.
8123
if test x"$with_included_zlib" != x"no"; then
8124
with_included_zlib=yes
8125
elif test x"$ac_cv_header_zlib_h" != x"yes"; then
8126
with_included_zlib=yes
8128
if test x"$with_included_zlib" != x"yes"; then
8129
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflateParams in -lz" >&5
8130
$as_echo_n "checking for deflateParams in -lz... " >&6; }
8131
if ${ac_cv_lib_z_deflateParams+:} false; then :
8132
$as_echo_n "(cached) " >&6
8134
ac_check_lib_save_LIBS=$LIBS
8136
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8137
/* end confdefs.h. */
8139
/* Override any GCC internal prototype to avoid an error.
8140
Use char because int might match the return type of a GCC
8141
builtin and then its argument prototype would still apply. */
8145
char deflateParams ();
8149
return deflateParams ();
8154
if ac_fn_c_try_link "$LINENO"; then :
8155
ac_cv_lib_z_deflateParams=yes
8157
ac_cv_lib_z_deflateParams=no
8159
rm -f core conftest.err conftest.$ac_objext \
8160
conftest$ac_exeext conftest.$ac_ext
8161
LIBS=$ac_check_lib_save_LIBS
8163
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflateParams" >&5
8164
$as_echo "$ac_cv_lib_z_deflateParams" >&6; }
8165
if test "x$ac_cv_lib_z_deflateParams" = xyes; then :
8166
cat >>confdefs.h <<_ACEOF
8173
with_included_zlib=yes
8178
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use included zlib" >&5
8179
$as_echo_n "checking whether to use included zlib... " >&6; }
8180
if test x"$with_included_zlib" = x"yes"; then
8181
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $srcdir/zlib" >&5
8182
$as_echo "$srcdir/zlib" >&6; }
8183
BUILD_ZLIB='$(zlib_OBJS)'
8184
CFLAGS="$CFLAGS -I$srcdir/zlib"
8186
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8187
$as_echo "no" >&6; }
7808
8190
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned char" >&5
7809
8191
$as_echo_n "checking for unsigned char... " >&6; }
7810
8192
if ${rsync_cv_SIGNED_CHAR_OK+:} false; then :
8543
# Extract the first word of "stunnel", so it can be a program name with args.
8544
set dummy stunnel; ac_word=$2
8545
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8546
$as_echo_n "checking for $ac_word... " >&6; }
8547
if ${ac_cv_path_STUNNEL+:} false; then :
8548
$as_echo_n "(cached) " >&6
8552
ac_cv_path_STUNNEL="$STUNNEL" # Let the user override the test with a path.
8555
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8556
for as_dir in $PATH$PATH_SEPARATOR/usr/sbin$PATH_SEPARATOR/sbin
8559
test -z "$as_dir" && as_dir=.
8560
for ac_exec_ext in '' $ac_executable_extensions; do
8561
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8562
ac_cv_path_STUNNEL="$as_dir/$ac_word$ac_exec_ext"
8563
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8570
test -z "$ac_cv_path_STUNNEL" && ac_cv_path_STUNNEL="stunnel"
8574
STUNNEL=$ac_cv_path_STUNNEL
8575
if test -n "$STUNNEL"; then
8576
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $STUNNEL" >&5
8577
$as_echo "$STUNNEL" >&6; }
8579
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8580
$as_echo "no" >&6; }
8584
# Extract the first word of "stunnel4", so it can be a program name with args.
8585
set dummy stunnel4; ac_word=$2
8586
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8587
$as_echo_n "checking for $ac_word... " >&6; }
8588
if ${ac_cv_path_STUNNEL4+:} false; then :
8589
$as_echo_n "(cached) " >&6
8593
ac_cv_path_STUNNEL4="$STUNNEL4" # Let the user override the test with a path.
8596
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8597
for as_dir in $PATH$PATH_SEPARATOR/usr/sbin$PATH_SEPARATOR/sbin
8600
test -z "$as_dir" && as_dir=.
8601
for ac_exec_ext in '' $ac_executable_extensions; do
8602
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8603
ac_cv_path_STUNNEL4="$as_dir/$ac_word$ac_exec_ext"
8604
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8611
test -z "$ac_cv_path_STUNNEL4" && ac_cv_path_STUNNEL4="$STUNNEL"
8615
STUNNEL4=$ac_cv_path_STUNNEL4
8616
if test -n "$STUNNEL4"; then
8617
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $STUNNEL4" >&5
8618
$as_echo "$STUNNEL4" >&6; }
8620
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8621
$as_echo "no" >&6; }
8160
8626
for ac_func in _acl __acl _facl __facl
8162
8628
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8389
8855
if test "${enable_xattr_support+set}" = set; then :
8390
8856
enableval=$enable_xattr_support;
8392
case "$ac_cv_func_getxattr$ac_cv_func_extattr_get_link" in
8858
case "$ac_cv_func_getxattr$ac_cv_func_extattr_get_link$ac_cv_func_attropen" in
8393
8859
*yes*) enable_xattr_support=maybe ;;
8394
8860
*) enable_xattr_support=no ;;
8438
# Better Solaris support coming in 3.1.0...
8907
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Using Solaris xattrs" >&5
8908
$as_echo "Using Solaris xattrs" >&6; }
8910
$as_echo "#define HAVE_SOLARIS_XATTRS 1" >>confdefs.h
8912
$as_echo "#define SUPPORT_XATTRS 1" >>confdefs.h
8440
8915
$as_echo "#define NO_SYMLINK_XATTRS 1" >>confdefs.h