Minor configuration fix to disable ACL support on MacOS X (which

lacks ACL_USER).

Thanks to:  Marcus Geiger, Joe Esch, and Markus Slopianka
This commit is contained in:
Tim Kientzle 2005-08-10 15:01:03 +00:00
parent 9de71e6fdd
commit 4b9adc2fef
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=148932
2 changed files with 13 additions and 4 deletions

View File

@ -49,6 +49,7 @@
#define HAVE_ACL_SET_FD 1
#define HAVE_ACL_SET_FD_NP 1
#define HAVE_ACL_SET_FILE 1
#define HAVE_ACL_USER 1
#endif
#define HAVE_BZLIB_H 1
#define HAVE_CHFLAGS 1
@ -122,11 +123,11 @@
#endif
/*
* If this platform has <sys/acl.h>, acl_create(), acl_init(), and
* acl_set_file(), we assume it has the rest of the POSIX.1e draft
* functions used in archive_read_extract.c.
* If this platform has <sys/acl.h>, acl_create(), acl_init(),
* acl_set_file(), and ACL_USER, we assume it has the rest of the
* POSIX.1e draft functions used in archive_read_extract.c.
*/
#if HAVE_SYS_ACL_H && HAVE_ACL_CREATE_ENTRY && HAVE_ACL_INIT && HAVE_ACL_SET_FILE
#if HAVE_SYS_ACL_H && HAVE_ACL_CREATE_ENTRY && HAVE_ACL_INIT && HAVE_ACL_SET_FILE && HAVE_ACL_USER
#define HAVE_POSIX_ACL 1
#endif

View File

@ -77,6 +77,14 @@ AC_CHECK_FUNCS([chflags fchdir fchflags fchmod fchown futimes])
AC_CHECK_FUNCS([lchflags lchmod lchown lutimes memmove])
AC_CHECK_FUNCS([memset mkdir mkfifo strchr strdup strerror strrchr])
# MacOS has an acl.h that isn't POSIX. It can be detected by
# checking for ACL_USER
AC_CHECK_DECL([ACL_USER],
[AC_DEFINE(HAVE_ACL_USER, 1, [True for systems with POSIX ACL support])],
[],
[#include <sys/acl.h>])
# Additional requirements
AC_SYS_LARGEFILE
AC_SUBST(ARCHIVE_API_VERSION,[1])