Skip to content

Commit

Permalink
wscript: disable libsamplerate if double precision enabled (libsample…
Browse files Browse the repository at this point in the history
…rate only supports float)
  • Loading branch information
piem committed Oct 3, 2016
1 parent 5210563 commit 8be88e7
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions wscript
Original file line number Diff line number Diff line change
Expand Up @@ -261,6 +261,13 @@ def configure(ctx):
mandatory = ctx.options.enable_sndfile)

# check for libsamplerate
if (ctx.options.enable_double):
if (ctx.options.enable_samplerate):
ctx.fatal("Could not compile aubio in double precision mode with libsamplerate")
else:
ctx.options.enable_samplerate = False
ctx.msg('Checking if using samplerate', 'no (disabled in double precision mode)',
color = 'YELLOW')
if (ctx.options.enable_samplerate != False):
ctx.check_cfg(package = 'samplerate', atleast_version = '0.0.15',
args = '--cflags --libs',
Expand Down

0 comments on commit 8be88e7

Please sign in to comment.