wscript: add sanity test for opusfile because some distros don't ship 32-bit binary
This commit is contained in:
parent
eda0ac92cc
commit
bd3634c815
1 changed files with 6 additions and 0 deletions
6
wscript
6
wscript
|
@ -485,6 +485,12 @@ def configure(conf):
|
|||
if conf.check_cfg(package=i, uselib_store=i, args='--cflags --libs', mandatory=False):
|
||||
conf.env['HAVE_SYSTEM_%s' % i.upper()] = True
|
||||
|
||||
if conf.env.HAVE_SYSTEM_OPUSFILE:
|
||||
frag='''#include <opusfile.h>
|
||||
int main(int argc, char **argv) { return opus_tagcompare(argv[0], argv[1]); }'''
|
||||
|
||||
conf.env.HAVE_SYSTEM_OPUSFILE = conf.check_cc(msg='Checking for libopusfile sanity', use='opusfile werror', fragment=frag, mandatory=False)
|
||||
|
||||
# search for opus 1.4 only, it has fixes for custom modes
|
||||
# 1.5 breaks custom modes: https://github.com/xiph/opus/issues/374
|
||||
if conf.check_cfg(package='opus', uselib_store='opus', args='opus = 1.4 --cflags --libs', mandatory=False):
|
||||
|
|
Loading…
Add table
Reference in a new issue