From 5f6d8aded3c8696ea143e76e5078abadc8684afb Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Tue, 8 Sep 2015 17:36:02 -0400 Subject: configure time detection of a patch/feature of libsndfile not yet in release --- wscript | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'wscript') diff --git a/wscript b/wscript index 3e39d76b3c..4e97d480a3 100644 --- a/wscript +++ b/wscript @@ -906,6 +906,22 @@ def configure(conf): autowaf.check_pkg(conf, 'vamp-hostsdk', uselib_store='VAMPHOSTSDK', atleast_version='2.1', mandatory=True) autowaf.check_pkg(conf, 'rubberband', uselib_store='RUBBERBAND', mandatory=True) + have_rf64_riff_support = conf.check_cc(fragment = ''' +#include +int main () { int x = SFC_AUTO_DOWNGRADE_RF64; return 0; } +''', + features = 'c', + mandatory = False, + execute = False, + use = 'SNDFILE', + msg = 'Checking for sndfile RF64=>RIFF support', + okmsg = 'Found', + errmsg = 'Not found, no RF64-to-WAV support') + + if have_rf64_riff_support: + conf.env.append_value('CXXFLAGS', "-DHAVE_RF64_RIFF") + conf.env.append_value('CFLAGS', "-DHAVE_RF64_RIFF") + if Options.options.dist_target == 'mingw': Options.options.fpu_optimization = True conf.env.append_value('CFLAGS', '-DPLATFORM_WINDOWS') -- cgit v1.2.3