summaryrefslogtreecommitdiff
path: root/source3/wscript
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2011-01-12 00:49:53 +0100
committerGünther Deschner <gd@samba.org>2011-01-12 01:44:22 +0100
commit4c8b9bee14ba9bcf4cc0a00985247fda3a29deef (patch)
tree2ef21e71d7673fb5770924befedf97254d4fa01b /source3/wscript
parent4412eb9d008d259cebafa7062d4826d69e67d89c (diff)
downloadsamba-4c8b9bee14ba9bcf4cc0a00985247fda3a29deef.tar.gz
samba-4c8b9bee14ba9bcf4cc0a00985247fda3a29deef.tar.bz2
samba-4c8b9bee14ba9bcf4cc0a00985247fda3a29deef.zip
s3-waf: add checks for Linux readahead.
Guenther
Diffstat (limited to 'source3/wscript')
-rw-r--r--source3/wscript9
1 files changed, 9 insertions, 0 deletions
diff --git a/source3/wscript b/source3/wscript
index 561f65dd70..a0f0d58286 100644
--- a/source3/wscript
+++ b/source3/wscript
@@ -364,6 +364,15 @@ return acl_get_perm_np(permset_d, perm);
int ret = fallocate64(0, FALLOC_FL_KEEP_SIZE, 0, 10);''',
'HAVE_LINUX_FALLOCATE64',
msg="Checking whether the Linux 'fallocate64' function is available")
+ conf.CHECK_CODE('''
+ #if defined(HAVE_UNISTD_H)
+ #include <unistd.h>
+ #endif
+ #include <fcntl.h>
+ ssize_t err = readahead(0,0,0x80000);''',
+ 'HAVE_LINUX_READAHEAD',
+ msg="Checking whether Linux readahead is available")
+ conf.CHECK_DECLS('readahead', headers='fcntl.h', always=True)
default_static_modules=TO_LIST('''pdb_smbpasswd pdb_tdbsam pdb_wbc_sam pdb_ldap
auth_sam auth_unix auth_winbind auth_wbc auth_server