wscript: add optional cblas on linux
authorPaul Brossier <piem@piem.org>
Sun, 24 Jul 2016 09:34:59 +0000 (11:34 +0200)
committerPaul Brossier <piem@piem.org>
Sun, 24 Jul 2016 09:34:59 +0000 (11:34 +0200)
wscript

diff --git a/wscript b/wscript
index c671653..f2d72e2 100644 (file)
--- a/wscript
+++ b/wscript
@@ -33,6 +33,7 @@ def configure(conf):
             local_vamp_lib = local_vamp_lib_amd64
         elif platform.machine() == 'x86_64':
             local_vamp_lib = local_vamp_lib_i686
+        conf.check(lib='cblas', uselib_store='CBLAS', mandatory=False)
     elif sys.platform == 'darwin':
         local_vamp_lib = local_vamp_lib_osx
     elif sys.platform == 'win32':
@@ -101,7 +102,7 @@ def build(bld):
                includes = '.',
                target = 'vamp-aubio',
                name = 'vamp-aubio',
-               use = ['VAMP', 'AUBIO'],
+               use = ['VAMP', 'AUBIO', 'CBLAS'],
                features = 'cxx cxxshlib',
                install_path = install_path
                )