From: Paul Brossier Date: Sun, 6 Sep 2015 08:46:31 +0000 (+0200) Subject: wscript: check if we find atlas/cblas.h X-Git-Tag: 0.4.4~300^2~365 X-Git-Url: https://git.aubio.org/?a=commitdiff_plain;h=f0ce36a16a6dfab2f181820447c4707a267f88fb;p=aubio.git wscript: check if we find atlas/cblas.h --- diff --git a/examples/wscript_build b/examples/wscript_build index 4a1ad396..2ef9709c 100644 --- a/examples/wscript_build +++ b/examples/wscript_build @@ -9,6 +9,7 @@ uselib += ['AVFORMAT'] uselib += ['AVRESAMPLE'] uselib += ['AVUTIL'] uselib += ['JACK'] +uselib += ['BLAS'] utils_source = ['utils.c', 'jackio.c'] programs_source = ctx.path.ant_glob('*.c', excl = utils_source) diff --git a/src/wscript_build b/src/wscript_build index a526671c..a5030c3a 100644 --- a/src/wscript_build +++ b/src/wscript_build @@ -8,6 +8,7 @@ uselib += ['AVCODEC'] uselib += ['AVFORMAT'] uselib += ['AVRESAMPLE'] uselib += ['AVUTIL'] +uselib += ['BLAS'] # build each source files source = ctx.path.ant_glob('*.c **/*.c') diff --git a/tests/wscript_build b/tests/wscript_build index 6aebad6f..55dcbf24 100644 --- a/tests/wscript_build +++ b/tests/wscript_build @@ -10,6 +10,7 @@ for target_name in ctx.path.ant_glob('src/**/*.c'): uselib += ['AVRESAMPLE'] uselib += ['AVUTIL'] uselib += ['JACK'] + uselib += ['BLAS'] includes = ['../src', '.'] extra_source = [] diff --git a/wscript b/wscript index 949fe7cc..ff97de37 100644 --- a/wscript +++ b/wscript @@ -81,6 +81,9 @@ def options(ctx): add_option_enable_disable(ctx, 'apple-audio', default = None, help_str = 'use CoreFoundation (darwin only) (auto)', help_disable_str = 'do not use CoreFoundation framework') + add_option_enable_disable(ctx, 'atlas', default = None, + help_str = 'use Atlas library (auto)', + help_disable_str = 'do not use Atlas library') ctx.add_option('--with-target-platform', type='string', help='set target platform for cross-compilation', dest='target_platform') @@ -259,6 +262,12 @@ def configure(ctx): ctx.define('HAVE_WAVREAD', 1) ctx.define('HAVE_WAVWRITE', 1) + # use ATLAS + if (ctx.options.enable_atlas != False): + ctx.check(header_name = 'atlas/cblas.h', mandatory = ctx.options.enable_atlas) + #ctx.check(lib = 'lapack', uselib_store = 'LAPACK', mandatory = ctx.options.enable_atlas) + ctx.check(lib = 'cblas', uselib_store = 'BLAS', mandatory = ctx.options.enable_atlas) + # use memcpy hacks if (ctx.options.enable_memcpy == True): ctx.define('HAVE_MEMCPY_HACKS', 1)