From d9d10104a71c63f3a404fd69f5b29b198c28edea Mon Sep 17 00:00:00 2001 From: Paul Brossier Date: Sat, 17 Sep 2016 00:57:17 +0200 Subject: [PATCH] wscript: check if rubberband can be foud --- wscript | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/wscript b/wscript index 8697c91b..d0352ed8 100644 --- a/wscript +++ b/wscript @@ -68,6 +68,9 @@ def options(ctx): add_option_enable_disable(ctx, 'samplerate', default = None, help_str = 'compile with samplerate (auto)', help_disable_str = 'disable samplerate') + add_option_enable_disable(ctx, 'rubberband', default = None, + help_str = 'compile with rubberband (auto)', + help_disable_str = 'disable rubberband') add_option_enable_disable(ctx, 'memcpy', default = True, help_str = 'use memcpy hacks (default)', help_disable_str = 'do not use memcpy hacks') @@ -259,6 +262,12 @@ def configure(ctx): args = '--cflags --libs', mandatory = ctx.options.enable_samplerate) + # check for librubberband + if (ctx.options.enable_rubberband != False): + ctx.check_cfg(package = 'rubberband', atleast_version = '1.8.1', + args = '--cflags --libs', + mandatory = ctx.options.enable_rubberband) + # check for jack if (ctx.options.enable_jack != False): ctx.check_cfg(package = 'jack', -- 2.11.0