From: Ben Walton Date: Mon, 12 Sep 2011 00:57:05 +0000 (+0200) Subject: Better configure support for Solaris xattrs X-Git-Tag: v3.1.0pre1~84 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c4170cbaacc78678110295dce810b8f8ae26ba28;p=thirdparty%2Frsync.git 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. --- 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])