summaryrefslogtreecommitdiffstats
path: root/source3/wscript
diff options
context:
space:
mode:
authorGarming Sam <garming@catalyst.net.nz>2013-12-16 12:45:45 +1300
committerAndrew Bartlett <abartlet@samba.org>2014-01-07 04:13:26 +0100
commit2be17b799140ca5f1b5ebbccf72a6fda561ceef6 (patch)
treed39c7d954f4be0275f6c0791ccd17acf9f361e42 /source3/wscript
parent6ab9164c74e0ad57bdde8abb568953026b644e27 (diff)
downloadsamba-2be17b799140ca5f1b5ebbccf72a6fda561ceef6.tar.gz
samba-2be17b799140ca5f1b5ebbccf72a6fda561ceef6.tar.xz
samba-2be17b799140ca5f1b5ebbccf72a6fda561ceef6.zip
waf: Require ACL support to be specifically disabled
Signed-off-by: Garming Sam <garming@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Jelmer Vernooij <jelmer@samba.org>
Diffstat (limited to 'source3/wscript')
-rw-r--r--source3/wscript15
1 files changed, 13 insertions, 2 deletions
diff --git a/source3/wscript b/source3/wscript
index f87a0a87005..4578b0ae22e 100644
--- a/source3/wscript
+++ b/source3/wscript
@@ -428,7 +428,12 @@ utimensat vsyslog _write __write __xstat
conf.DEFINE('HAVE_TRU64_ACLS',1)
default_static_modules.extend(TO_LIST('vfs_tru64acl'))
elif (host_os.rfind('darwin') > -1):
- Logs.warn('ACLs on Dwarwin currently not supported')
+ Logs.warn('ACLs on Darwin currently not supported')
+ conf.fatal("ACL support not available on Darwin/MacOS. "
+ "Use --without-acl-support for building without "
+ "ACL support. "
+ "ACL support is required to change permissions "
+ "from Windows clients.")
else:
conf.CHECK_FUNCS_IN('acl_get_file', 'acl')
if conf.CHECK_CODE('''
@@ -449,7 +454,13 @@ return acl_get_perm_np(permset_d, perm);
headers='sys/types.h sys/acl.h', link=True,
msg="Checking whether acl_get_perm_np() is available")
default_static_modules.extend(TO_LIST('vfs_posixacl'))
-
+ else:
+ conf.fatal("ACL support not found. Try installing libacl1-dev "
+ "or libacl-devel. "
+ "Otherwise, use --without-acl-support to build "
+ "without ACL support. "
+ "ACL support is required to change permissions from "
+ "Windows clients.")
if conf.CHECK_FUNCS('dirfd'):
conf.DEFINE('HAVE_DIRFD_DECL', 1)