aboutsummaryrefslogtreecommitdiffstats
path: root/wscript
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2011-12-11 19:23:19 +0000
committerDavid Robillard <d@drobilla.net>2011-12-11 19:23:19 +0000
commit5f7fed94b3ff74ede85ab9189221808543c4054b (patch)
tree8d71e9966066c039f22b150767b85a06d0cbf37b /wscript
parent258e987c94f61449e507f24d89613b1d41861487 (diff)
downloadserd-5f7fed94b3ff74ede85ab9189221808543c4054b.tar.gz
serd-5f7fed94b3ff74ede85ab9189221808543c4054b.tar.bz2
serd-5f7fed94b3ff74ede85ab9189221808543c4054b.zip
Align read buffer to page boundary if posix_memalign is available.
git-svn-id: http://svn.drobilla.net/serd/trunk@240 490d8e77-9747-427b-9fa3-0b8f29cee8a0
Diffstat (limited to 'wscript')
-rw-r--r--wscript7
1 files changed, 7 insertions, 0 deletions
diff --git a/wscript b/wscript
index 928c9d6b..225b52b9 100644
--- a/wscript
+++ b/wscript
@@ -59,6 +59,13 @@ def configure(conf):
if Options.options.largefile:
conf.env.append_unique('CFLAGS', '-D_FILE_OFFSET_BITS=64')
+ # Check for posix_memalign
+ conf.check(function_name='posix_memalign',
+ header_name='stdlib.h',
+ define_name='HAVE_POSIX_MEMALIGN',
+ cflags='-D_POSIX_C_SOURCE=201112L',
+ mandatory=False)
+
autowaf.define(conf, 'SERD_VERSION', SERD_VERSION)
conf.write_config_header('serd-config.h', remove=False)