diff options
author | Stefan Metzmacher <metze@samba.org> | 2006-06-02 14:22:56 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 14:08:49 -0500 |
commit | 8f553ab4a1e5f2affb614c0824d4d77291343861 (patch) | |
tree | b833a01561c4239817248d091cb092f8a2b3c729 /source4/ntvfs/posix/config.m4 | |
parent | f6a3c29ede4482bdad7362bc990fe567c5714163 (diff) | |
download | samba-8f553ab4a1e5f2affb614c0824d4d77291343861.tar.gz samba-8f553ab4a1e5f2affb614c0824d4d77291343861.tar.bz2 samba-8f553ab4a1e5f2affb614c0824d4d77291343861.zip |
r16005: add support for XATTR's on MacOS
Thanks to Bjoern Jacke for his help.
metze
(This used to be commit 8f8480e453ced38cbf27d0a1a45843c5eb126016)
Diffstat (limited to 'source4/ntvfs/posix/config.m4')
-rw-r--r-- | source4/ntvfs/posix/config.m4 | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/source4/ntvfs/posix/config.m4 b/source4/ntvfs/posix/config.m4 index 8d8b07810c..3ae424a4bf 100644 --- a/source4/ntvfs/posix/config.m4 +++ b/source4/ntvfs/posix/config.m4 @@ -29,6 +29,23 @@ AC_SEARCH_LIBS_EXT(flistxattr, [attr], XATTR_LIBS) AC_CHECK_FUNC_EXT(flistxattr, $XATTR_LIBS) SMB_EXT_LIB(XATTR,[${XATTR_LIBS}],[${XATTR_CFLAGS}],[${XATTR_CPPFLAGS}],[${XATTR_LDFLAGS}]) if test x"$ac_cv_func_ext_flistxattr" = x"yes"; then + AC_CACHE_CHECK([whether xattr interface takes additional options], smb_attr_cv_xattr_add_opt, + [old_LIBS=$LIBS + LIBS="$LIBS $XATTRLIBS" + AC_TRY_COMPILE([ + #include <sys/types.h> + #if HAVE_ATTR_XATTR_H + #include <attr/xattr.h> + #elif HAVE_SYS_XATTR_H + #include <sys/xattr.h> + #endif + ],[ + getxattr(NULL, NULL, NULL, 0, 0, 0); + ],smb_attr_cv_xattr_add_opt=yes,smb_attr_cv_xattr_add_opt=no) + LIBS=$old_LIBS)]) + if test x"$smb_attr_cv_xattr_add_opt" = x"yes"; then + AC_DEFINE(XATTR_ADDITIONAL_OPTIONS, 1, [xattr functions have additional options]) + fi AC_DEFINE(HAVE_XATTR_SUPPORT,1,[Whether we have xattr support]) SMB_ENABLE(XATTR,YES) fi |