s3-waf: start adding checks for quota support.
authorGünther Deschner <gd@samba.org>
Wed, 23 Feb 2011 11:29:24 +0000 (12:29 +0100)
committerGünther Deschner <gd@samba.org>
Wed, 23 Feb 2011 21:33:52 +0000 (22:33 +0100)
Guenther

source3/wscript

index b77a46e6954b05059c9f6f7a02f7679773cdc386..90a541ba95bf9eacfee9503a4f1d482aacba6037 100644 (file)
@@ -1487,6 +1487,14 @@ main() {
     conf.CHECK_FUNCS_IN('getspnam', 'security')
     conf.CHECK_FUNCS_IN('getspnam', 'sec')
 
+    if Options.options.with_quotas:
+        # For quotas on Veritas VxFS filesystems
+        conf.CHECK_HEADERS('sys/fs/vx_quota.h')
+        # For quotas on Linux XFS filesystems
+        conf.CHECK_HEADERS('linux/dqblk_xfs.h')
+        # For sys/quota.h and linux/quota.h
+        conf.CHECK_HEADERS('sys/quota.h')
+
     default_static_modules=TO_LIST('''pdb_smbpasswd pdb_tdbsam pdb_wbc_sam
                                       auth_sam auth_unix auth_winbind auth_wbc auth_server
                                       auth_domain auth_builtin vfs_default