diff options
author | Ben Walton <bwalton@artsci.utoronto.ca> | 2011-09-12 02:57:05 +0200 |
---|---|---|
committer | Wayne Davison <wayned@samba.org> | 2011-09-11 18:48:52 -0700 |
commit | c4170cbaacc78678110295dce810b8f8ae26ba28 (patch) | |
tree | a88ff4d8b3640c26884bc22a121049a1d5a02ba6 /configure.ac | |
parent | de407c03d2f424829fc1af3db3260286788bd619 (diff) | |
download | android_external_rsync-c4170cbaacc78678110295dce810b8f8ae26ba28.tar.gz android_external_rsync-c4170cbaacc78678110295dce810b8f8ae26ba28.tar.bz2 android_external_rsync-c4170cbaacc78678110295dce810b8f8ae26ba28.zip |
Better configure support for Solaris xattrs
If we have the attropen() function, allow OS conditional enabling of
extended attribute support. This removes the need to pass
--enable-extended-attributes to force the feature activation on Solaris.
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac index 9e6da5e5..8962b150 100644 --- a/configure.ac +++ b/configure.ac @@ -593,7 +593,7 @@ AC_CHECK_FUNCS(waitpid wait4 getcwd strdup chown chmod lchmod mknod mkfifo \ setlocale setmode open64 lseek64 mkstemp64 mtrace va_copy __va_copy \ seteuid strerror putenv iconv_open locale_charset nl_langinfo getxattr \ extattr_get_link sigaction sigprocmask setattrlist getgrouplist \ - initgroups utimensat posix_fallocate) + initgroups utimensat posix_fallocate attropen) dnl cygwin iconv.h defines iconv_open as libiconv_open if test x"$ac_cv_func_iconv_open" != x"yes"; then @@ -1011,7 +1011,7 @@ AC_MSG_CHECKING(whether to support extended attributes) AC_ARG_ENABLE(xattr-support, AC_HELP_STRING([--disable-xattr-support], [disable extended attributes]), - [], [case "$ac_cv_func_getxattr$ac_cv_func_extattr_get_link" in + [], [case "$ac_cv_func_getxattr$ac_cv_func_extattr_get_link$ac_cv_func_attropen" in *yes*) enable_xattr_support=maybe ;; *) enable_xattr_support=no ;; esac]) |