diff options
author | Stefan Metzmacher <metze@samba.org> | 2006-10-11 11:41:39 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 12:15:24 -0500 |
commit | 1843884fbfcd2170c216f2ee33524d2bdb9231da (patch) | |
tree | 40cdc3177d95799a0190a17ad798d922c3696b67 /source3/configure.in | |
parent | 9830fc431babfe251ab079087b58ea55120a515d (diff) | |
download | samba-1843884fbfcd2170c216f2ee33524d2bdb9231da.tar.gz samba-1843884fbfcd2170c216f2ee33524d2bdb9231da.tar.bz2 samba-1843884fbfcd2170c216f2ee33524d2bdb9231da.zip |
r19241: compile xattr wrappers on mac os 10
patch from Bjoern Jacke and it fixes bug 3698
metze
(This used to be commit e54302b9163cfe726c30a8efdc779250e076d493)
Diffstat (limited to 'source3/configure.in')
-rw-r--r-- | source3/configure.in | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/source3/configure.in b/source3/configure.in index 86228a3e6c..5e019c0015 100644 --- a/source3/configure.in +++ b/source3/configure.in @@ -1582,6 +1582,30 @@ case "$host_os" in ;; esac +######################################################## +# Do xattr functions take additional options like on Darwin? +if test x"$ac_cv_func_getxattr" = x"yes" ; then + AC_CACHE_CHECK([whether xattr interface takes additional options], smb_attr_cv_xattr_add_opt, [ + old_LIBS=$LIBS + LIBS="$LIBS $ACL_LIBS" + 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(0, 0, 0, 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_ADD_OPT, 1, [xattr functions have additional options]) + fi +fi + # Check if we have extattr case "$host_os" in *freebsd4* | *dragonfly* ) |