diff options
Diffstat (limited to 'source3/configure.in')
-rw-r--r-- | source3/configure.in | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/source3/configure.in b/source3/configure.in index 252c6d7006..4b6119c9ef 100644 --- a/source3/configure.in +++ b/source3/configure.in @@ -1934,9 +1934,18 @@ AC_ARG_WITH(posix-acls, --without-posix-acls Don't include POSIX ACL support (default)], [ case "$withval" in yes) - AC_MSG_RESULT(yes) - AC_DEFINE(HAVE_POSIX_ACLS) - ;; + + AC_CHECK_LIB(acl,acl_get_file) +AC_CACHE_CHECK([for POSIX ACL support],samba_cv_HAVE_POSIX_ACLS,[ +AC_TRY_COMPILE([#include <sys/types.h> +#include <sys/acl.h>], +[ acl_t acl; int entry_id; acl_entry_t *entry_p; return acl_get_entry( acl, entry_id, entry_p);], +samba_cv_HAVE_POSIX_ACLS=yes,samba_cv_HAVE_POSIX_ACLS=no)]) +if test x"$samba_cv_HAVE_POSIX_ACLS" = x"yes"; then + AC_MSG_RESULT(yes) + AC_DEFINE(HAVE_POSIX_ACLS) +fi + ;; *) AC_MSG_RESULT(no) ;; |