summaryrefslogtreecommitdiff
path: root/source3/wscript
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2010-12-07 15:33:51 +0100
committerGünther Deschner <gd@samba.org>2010-12-07 16:50:23 +0100
commit94cfb49bb7051c7e979bcf168e467328b96ee631 (patch)
tree65c5b52bf3fdcdec9472696d7b9048c022ba4e3e /source3/wscript
parentc5b2fd05afcf3e4e3e733ed917539add9c12e0b8 (diff)
downloadsamba-94cfb49bb7051c7e979bcf168e467328b96ee631.tar.gz
samba-94cfb49bb7051c7e979bcf168e467328b96ee631.tar.bz2
samba-94cfb49bb7051c7e979bcf168e467328b96ee631.zip
s3-waf: add configure/declaration checks for fdatasync, readahead and splice.
Guenther Autobuild-User: Günther Deschner <gd@samba.org> Autobuild-Date: Tue Dec 7 16:50:23 CET 2010 on sn-devel-104
Diffstat (limited to 'source3/wscript')
-rw-r--r--source3/wscript12
1 files changed, 12 insertions, 0 deletions
diff --git a/source3/wscript b/source3/wscript
index 8f6ad598d0..da9a9db4b8 100644
--- a/source3/wscript
+++ b/source3/wscript
@@ -121,6 +121,18 @@ def configure(conf):
#FIXME: for some reason this one still fails
conf.CHECK_FUNCS_IN('yp_get_default_domain', 'nsl')
conf.CHECK_FUNCS_IN('dn_expand _dn_expand __dn_expand', 'resolv')
+ conf.CHECK_DECLS('fdatasync', reverse=True)
+ conf.CHECK_DECLS('readahead', reverse=True, headers='fcntl.h')
+
+ if conf.CHECK_CODE('''
+#if defined(HAVE_UNISTD_H)
+#include <unistd.h>
+#endif
+long ret = splice(0,0,1,0,400,0);
+''',
+ 'HAVE_LINUX_SPLICE',
+ headers='fcntl.h'):
+ conf.CHECK_DECLS('splice', reverse=True, headers='fcntl.h')
# Check for inotify support
conf.CHECK_HEADERS('linux/inotify.h asm/unistd.h sys/inotify.h')