summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2012-08-10 04:17:03 +0000
committerDavid Robillard <d@drobilla.net>2012-08-10 04:17:03 +0000
commit3de634e5e6fc902017bd9878621eb1eaa847b6af (patch)
tree477c315c0de159fc5600d21c7989a8df1d6b3391
parent8297c0fbbac48d6ab379526a4bdf4506c4f9c887 (diff)
downloadmatriseq.lv2-3de634e5e6fc902017bd9878621eb1eaa847b6af.tar.gz
matriseq.lv2-3de634e5e6fc902017bd9878621eb1eaa847b6af.tar.bz2
matriseq.lv2-3de634e5e6fc902017bd9878621eb1eaa847b6af.zip
Check for mlock and use it if present.
git-svn-id: http://svn.drobilla.net/lad/trunk/plugins/matriseq@4643 a436a847-0d15-0410-975c-d299462d15a1
-rw-r--r--wscript6
1 files changed, 6 insertions, 0 deletions
diff --git a/wscript b/wscript
index 23d326f..2b9585a 100644
--- a/wscript
+++ b/wscript
@@ -22,6 +22,12 @@ def configure(conf):
autowaf.check_pkg(conf, 'lv2', atleast_version='1.0.0', uselib_store='LV2')
autowaf.check_pkg(conf, 'naub-0', atleast_version='0.0.0', uselib_store='NAUB')
+ # Check for mlock
+ conf.check(function_name='mlock',
+ header_name='sys/mman.h',
+ define_name='HAVE_MLOCK',
+ mandatory=False)
+
# Set env.pluginlib_PATTERN
pat = conf.env.cshlib_PATTERN
if pat.startswith('lib'):