summaryrefslogtreecommitdiff
path: root/wscript
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2015-09-08 17:36:02 -0400
committerPaul Davis <paul@linuxaudiosystems.com>2015-09-08 17:40:28 -0400
commit5f6d8aded3c8696ea143e76e5078abadc8684afb (patch)
tree6ad23d1dbc3f6e61550469e3adba9007d499edfe /wscript
parent045b878bd1b0dfb8514f93fddc0c566ac6f9dc08 (diff)
configure time detection of a patch/feature of libsndfile not yet in release
Diffstat (limited to 'wscript')
-rw-r--r--wscript16
1 files changed, 16 insertions, 0 deletions
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 <sndfile.h>
+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')