~ubuntu-branches/ubuntu/trusty/rsync/trusty

« back to all changes in this revision

Viewing changes to configure.sh

  • Committer: Package Import Robot
  • Author(s): Paul Slootman
  • Date: 2013-10-27 12:01:10 UTC
  • mfrom: (1.3.2)
  • mto: This revision was merged to the branch mainline in revision 34.
  • Revision ID: package-import@ubuntu.com-20131027120110-eyksys8yzm1siekf
Tags: upstream-3.1.0
ImportĀ upstreamĀ versionĀ 3.1.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
601
601
 
602
602
ac_header_list=
603
603
ac_subst_vars='LTLIBOBJS
 
604
STUNNEL4
 
605
STUNNEL
604
606
MAKE_MAN
 
607
BUILD_ZLIB
605
608
BUILD_POPT
606
609
CC_SHOBJ_FLAG
607
610
OBJ_RESTORE
608
611
OBJ_SAVE
609
612
ALLOCA
610
613
LIBOBJS
 
614
FAKEROOT_PATH
 
615
SHELL_PATH
611
616
HAVE_YODL2MAN
612
617
HAVE_REMSH
 
618
MKDIR_P
613
619
INSTALL_DATA
614
620
INSTALL_SCRIPT
615
621
INSTALL_PROGRAM
677
683
enable_profile
678
684
enable_maintainer_mode
679
685
with_included_popt
 
686
with_included_zlib
 
687
with_protected_args
680
688
with_rsync_path
681
689
with_rsyncd_conf
682
690
with_rsh
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)
2419
2429
 
2420
2430
 
2421
2431
 
2422
 
RSYNC_VERSION=3.0.9
 
2432
RSYNC_VERSION=3.1.0
2423
2433
 
2424
2434
{ $as_echo "$as_me:${as_lineno-$LINENO}: Configuring rsync $RSYNC_VERSION" >&5
2425
2435
$as_echo "$as_me: Configuring rsync $RSYNC_VERSION" >&6;}
3706
3716
 
3707
3717
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3708
3718
 
 
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
 
3724
else
 
3725
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3726
for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
 
3727
do
 
3728
  IFS=$as_save_IFS
 
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
 
3738
               break 3;;
 
3739
           esac
 
3740
         done
 
3741
       done
 
3742
  done
 
3743
IFS=$as_save_IFS
 
3744
 
 
3745
fi
 
3746
 
 
3747
  test -d ./--version && rmdir ./--version
 
3748
  if test "${ac_cv_path_mkdir+set}" = set; then
 
3749
    MKDIR_P="$ac_cv_path_mkdir -p"
 
3750
  else
 
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"
 
3756
  fi
 
3757
fi
 
3758
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
 
3759
$as_echo "$MKDIR_P" >&6; }
 
3760
 
3709
3761
   case $ac_cv_prog_cc_stdc in #(
3710
3762
  no) :
3711
3763
    ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
4048
4100
 
4049
4101
 
4050
4102
 
 
4103
# Check whether --with-included-zlib was given.
 
4104
if test "${with_included_zlib+set}" = set; then :
 
4105
  withval=$with_included_zlib;
 
4106
fi
 
4107
 
 
4108
 
 
4109
 
 
4110
# Check whether --with-protected-args was given.
 
4111
if test "${with_protected_args+set}" = set; then :
 
4112
  withval=$with_protected_args;
 
4113
fi
 
4114
 
 
4115
if test x"$with_protected_args" = x"yes"; then
 
4116
 
 
4117
cat >>confdefs.h <<_ACEOF
 
4118
#define RSYNC_USE_PROTECTED_ARGS 1
 
4119
_ACEOF
 
4120
 
 
4121
fi
 
4122
 
 
4123
 
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"
4193
4266
 
4194
4267
if test x$HAVE_YODL2MAN = x1; then
4195
4268
    MAKE_MAN=man
4196
 
fi
 
4269
else
 
4270
    MAKE_MAN=man-copy
 
4271
fi
 
4272
 
 
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
 
4280
else
 
4281
  case $SHELL_PATH in
 
4282
  [\\/]* | ?:[\\/]*)
 
4283
  ac_cv_path_SHELL_PATH="$SHELL_PATH" # Let the user override the test with a path.
 
4284
  ;;
 
4285
  *)
 
4286
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4287
for as_dir in /usr/xpg4/bin$PATH_SEPARATOR$PATH
 
4288
do
 
4289
  IFS=$as_save_IFS
 
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
 
4295
    break 2
 
4296
  fi
 
4297
done
 
4298
  done
 
4299
IFS=$as_save_IFS
 
4300
 
 
4301
  test -z "$ac_cv_path_SHELL_PATH" && ac_cv_path_SHELL_PATH="/bin/sh"
 
4302
  ;;
 
4303
esac
 
4304
fi
 
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; }
 
4309
else
 
4310
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
4311
$as_echo "no" >&6; }
 
4312
fi
 
4313
 
 
4314
 
 
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
 
4321
else
 
4322
  case $FAKEROOT_PATH in
 
4323
  [\\/]* | ?:[\\/]*)
 
4324
  ac_cv_path_FAKEROOT_PATH="$FAKEROOT_PATH" # Let the user override the test with a path.
 
4325
  ;;
 
4326
  *)
 
4327
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4328
for as_dir in /usr/xpg4/bin$PATH_SEPARATOR$PATH
 
4329
do
 
4330
  IFS=$as_save_IFS
 
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
 
4336
    break 2
 
4337
  fi
 
4338
done
 
4339
  done
 
4340
IFS=$as_save_IFS
 
4341
 
 
4342
  test -z "$ac_cv_path_FAKEROOT_PATH" && ac_cv_path_FAKEROOT_PATH="/usr/bin/fakeroot"
 
4343
  ;;
 
4344
esac
 
4345
fi
 
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; }
 
4350
else
 
4351
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
4352
$as_echo "no" >&6; }
 
4353
fi
 
4354
 
 
4355
 
4197
4356
 
4198
4357
 
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 \
 
5525
    zlib.h
5366
5526
do :
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"
6150
6310
_ACEOF
6151
6311
 
6152
6312
 
6153
 
ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
 
6313
ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "
 
6314
#ifdef HAVE_SYS_TYPES_H
 
6315
#include <sys/types.h>
 
6316
#endif
 
6317
#ifdef HAVE_SYS_STAT_H
 
6318
#include <sys/stat.h>
 
6319
#endif
 
6320
#ifdef HAVE_UNISTD_H
 
6321
#include <unistd.h>
 
6322
#endif
 
6323
"
6154
6324
if test "x$ac_cv_member_struct_stat_st_rdev" = xyes; then :
6155
6325
 
6156
6326
cat >>confdefs.h <<_ACEOF
6159
6329
 
6160
6330
 
6161
6331
fi
 
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>
 
6335
#endif
 
6336
#ifdef HAVE_SYS_STAT_H
 
6337
#include <sys/stat.h>
 
6338
#endif
 
6339
#ifdef HAVE_UNISTD_H
 
6340
#include <unistd.h>
 
6341
#endif
 
6342
"
 
6343
if test "x$ac_cv_member_struct_stat_st_mtimensec" = xyes; then :
 
6344
 
 
6345
cat >>confdefs.h <<_ACEOF
 
6346
#define HAVE_STRUCT_STAT_ST_MTIMENSEC 1
 
6347
_ACEOF
 
6348
 
 
6349
 
 
6350
fi
 
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>
 
6354
#endif
 
6355
#ifdef HAVE_SYS_STAT_H
 
6356
#include <sys/stat.h>
 
6357
#endif
 
6358
#ifdef HAVE_UNISTD_H
 
6359
#include <unistd.h>
 
6360
#endif
 
6361
"
 
6362
if test "x$ac_cv_member_struct_stat_st_mtim_tv_nsec" = xyes; then :
 
6363
 
 
6364
cat >>confdefs.h <<_ACEOF
 
6365
#define HAVE_STRUCT_STAT_ST_MTIM_TV_NSEC 1
 
6366
_ACEOF
 
6367
 
 
6368
 
 
6369
fi
6162
6370
 
6163
6371
 
6164
6372
 
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 \
7452
 
    utimensat
 
7659
    extattr_get_link sigaction sigprocmask setattrlist getgrouplist \
 
7660
    initgroups utimensat posix_fallocate attropen setvbuf
7453
7661
do :
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"
7471
7679
 
7472
7680
fi
7473
7681
 
 
7682
 
 
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
 
7687
else
 
7688
 
 
7689
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
7690
/* end confdefs.h.  */
 
7691
#include <fcntl.h>
 
7692
#include <sys/types.h>
 
7693
int
 
7694
main ()
 
7695
{
 
7696
fallocate(0, 0, 0, 0);
 
7697
  ;
 
7698
  return 0;
 
7699
}
 
7700
_ACEOF
 
7701
if ac_fn_c_try_link "$LINENO"; then :
 
7702
  rsync_cv_have_fallocate=yes
 
7703
else
 
7704
  rsync_cv_have_fallocate=no
 
7705
fi
 
7706
rm -f core conftest.err conftest.$ac_objext \
 
7707
    conftest$ac_exeext conftest.$ac_ext
 
7708
fi
 
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
 
7712
 
 
7713
$as_echo "#define HAVE_FALLOCATE 1" >>confdefs.h
 
7714
 
 
7715
fi
 
7716
 
 
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
 
7721
else
 
7722
 
 
7723
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
7724
/* end confdefs.h.  */
 
7725
#include <sys/syscall.h>
 
7726
#include <sys/types.h>
 
7727
int
 
7728
main ()
 
7729
{
 
7730
syscall(SYS_fallocate, 0, 0, (loff_t)0, (loff_t)0);
 
7731
  ;
 
7732
  return 0;
 
7733
}
 
7734
_ACEOF
 
7735
if ac_fn_c_try_compile "$LINENO"; then :
 
7736
  rsync_cv_have_sys_fallocate=yes
 
7737
else
 
7738
  rsync_cv_have_sys_fallocate=no
 
7739
fi
 
7740
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
7741
fi
 
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
 
7745
 
 
7746
$as_echo "#define HAVE_SYS_FALLOCATE 1" >>confdefs.h
 
7747
 
 
7748
fi
 
7749
 
 
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; }
 
7753
    case $host_os in
 
7754
    *cygwin*)
 
7755
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 
7756
$as_echo "yes" >&6; }
 
7757
 
 
7758
$as_echo "#define HAVE_EFFICIENT_POSIX_FALLOCATE 1" >>confdefs.h
 
7759
 
 
7760
        ;;
 
7761
    *)
 
7762
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
7763
$as_echo "no" >&6; }
 
7764
        ;;
 
7765
    esac
 
7766
fi
 
7767
 
 
7768
 
7474
7769
for ac_func in getpgrp tcgetpgrp
7475
7770
do :
7476
7771
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7727
8022
 
7728
8023
fi
7729
8024
 
 
8025
for ac_func in getpass
 
8026
do :
 
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
 
8031
_ACEOF
 
8032
 
 
8033
else
 
8034
  case " $LIBOBJS " in
 
8035
  *" lib/getpass.$ac_objext "* ) ;;
 
8036
  *) LIBOBJS="$LIBOBJS lib/getpass.$ac_objext"
 
8037
 ;;
 
8038
esac
 
8039
 
 
8040
fi
 
8041
done
 
8042
 
 
8043
 
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; }
7806
8120
fi
7807
8121
 
 
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
 
8127
fi
 
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
 
8133
else
 
8134
  ac_check_lib_save_LIBS=$LIBS
 
8135
LIBS="-lz  $LIBS"
 
8136
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 
8137
/* end confdefs.h.  */
 
8138
 
 
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.  */
 
8142
#ifdef __cplusplus
 
8143
extern "C"
 
8144
#endif
 
8145
char deflateParams ();
 
8146
int
 
8147
main ()
 
8148
{
 
8149
return deflateParams ();
 
8150
  ;
 
8151
  return 0;
 
8152
}
 
8153
_ACEOF
 
8154
if ac_fn_c_try_link "$LINENO"; then :
 
8155
  ac_cv_lib_z_deflateParams=yes
 
8156
else
 
8157
  ac_cv_lib_z_deflateParams=no
 
8158
fi
 
8159
rm -f core conftest.err conftest.$ac_objext \
 
8160
    conftest$ac_exeext conftest.$ac_ext
 
8161
LIBS=$ac_check_lib_save_LIBS
 
8162
fi
 
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
 
8167
#define HAVE_LIBZ 1
 
8168
_ACEOF
 
8169
 
 
8170
  LIBS="-lz $LIBS"
 
8171
 
 
8172
else
 
8173
  with_included_zlib=yes
 
8174
fi
 
8175
 
 
8176
fi
 
8177
 
 
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"
 
8185
else
 
8186
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
8187
$as_echo "no" >&6; }
 
8188
fi
 
8189
 
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 :
8157
8539
 
8158
8540
 
8159
8541
 
 
8542
 
 
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
 
8549
else
 
8550
  case $STUNNEL in
 
8551
  [\\/]* | ?:[\\/]*)
 
8552
  ac_cv_path_STUNNEL="$STUNNEL" # Let the user override the test with a path.
 
8553
  ;;
 
8554
  *)
 
8555
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
8556
for as_dir in $PATH$PATH_SEPARATOR/usr/sbin$PATH_SEPARATOR/sbin
 
8557
do
 
8558
  IFS=$as_save_IFS
 
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
 
8564
    break 2
 
8565
  fi
 
8566
done
 
8567
  done
 
8568
IFS=$as_save_IFS
 
8569
 
 
8570
  test -z "$ac_cv_path_STUNNEL" && ac_cv_path_STUNNEL="stunnel"
 
8571
  ;;
 
8572
esac
 
8573
fi
 
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; }
 
8578
else
 
8579
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
8580
$as_echo "no" >&6; }
 
8581
fi
 
8582
 
 
8583
 
 
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
 
8590
else
 
8591
  case $STUNNEL4 in
 
8592
  [\\/]* | ?:[\\/]*)
 
8593
  ac_cv_path_STUNNEL4="$STUNNEL4" # Let the user override the test with a path.
 
8594
  ;;
 
8595
  *)
 
8596
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
8597
for as_dir in $PATH$PATH_SEPARATOR/usr/sbin$PATH_SEPARATOR/sbin
 
8598
do
 
8599
  IFS=$as_save_IFS
 
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
 
8605
    break 2
 
8606
  fi
 
8607
done
 
8608
  done
 
8609
IFS=$as_save_IFS
 
8610
 
 
8611
  test -z "$ac_cv_path_STUNNEL4" && ac_cv_path_STUNNEL4="$STUNNEL"
 
8612
  ;;
 
8613
esac
 
8614
fi
 
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; }
 
8619
else
 
8620
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 
8621
$as_echo "no" >&6; }
 
8622
fi
 
8623
 
 
8624
 
 
8625
 
8160
8626
for ac_func in _acl __acl _facl __facl
8161
8627
do :
8162
8628
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8195
8661
$as_echo "#define SUPPORT_ACLS 1" >>confdefs.h
8196
8662
 
8197
8663
        ;;
8198
 
    *solaris*|*cygwin*)
 
8664
    solaris*|*cygwin*)
8199
8665
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using solaris ACLs" >&5
8200
8666
$as_echo "Using solaris ACLs" >&6; }
8201
8667
 
8389
8855
if test "${enable_xattr_support+set}" = set; then :
8390
8856
  enableval=$enable_xattr_support;
8391
8857
else
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 ;;
8395
8861
        esac
8409
8875
 
8410
8876
        $as_echo "#define SUPPORT_XATTRS 1" >>confdefs.h
8411
8877
 
 
8878
 
 
8879
$as_echo "#define NO_SYMLINK_USER_XATTRS 1" >>confdefs.h
 
8880
 
8412
8881
        ;;
8413
8882
    darwin*)
8414
8883
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using OS X xattrs" >&5
8435
8904
 
8436
8905
        ;;
8437
8906
    solaris*)
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; }
 
8909
 
 
8910
$as_echo "#define HAVE_SOLARIS_XATTRS 1" >>confdefs.h
 
8911
 
 
8912
        $as_echo "#define SUPPORT_XATTRS 1" >>confdefs.h
 
8913
 
8439
8914
 
8440
8915
$as_echo "#define NO_SYMLINK_XATTRS 1" >>confdefs.h
8441
8916
 
9083
9558
ac_pwd='$ac_pwd'
9084
9559
srcdir='$srcdir'
9085
9560
INSTALL='$INSTALL'
 
9561
MKDIR_P='$MKDIR_P'
9086
9562
test -n "\$AWK" || AWK=awk
9087
9563
_ACEOF
9088
9564
 
9647
10123
  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
9648
10124
  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
9649
10125
  esac
 
10126
  ac_MKDIR_P=$MKDIR_P
 
10127
  case $MKDIR_P in
 
10128
  [\\/$]* | ?:[\\/]* ) ;;
 
10129
  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
 
10130
  esac
9650
10131
_ACEOF
9651
10132
 
9652
10133
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9701
10182
s&@abs_builddir@&$ac_abs_builddir&;t t
9702
10183
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
9703
10184
s&@INSTALL@&$ac_INSTALL&;t t
 
10185
s&@MKDIR_P@&$ac_MKDIR_P&;t t
9704
10186
$ac_datarootdir_hack
9705
10187
"
9706
10188
eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \