wscript: add option to disable libsamplerate
authorPaul Brossier <piem@piem.org>
Thu, 5 Nov 2009 22:21:32 +0000 (23:21 +0100)
committerPaul Brossier <piem@piem.org>
Thu, 5 Nov 2009 22:21:32 +0000 (23:21 +0100)
wscript

diff --git a/wscript b/wscript
index 8b59dc8ddf76ba8f71156768af75cf954a396605..1b675457fd4de2655584bf45d70564caedcfc804 100644 (file)
--- a/wscript
+++ b/wscript
@@ -23,6 +23,8 @@ def set_options(opt):
       help='compile without jack support')
   opt.add_option('--disable-lash', action='store_true', default=False,
       help='compile without lash support')
+  opt.add_option('--disable-libsamplerate', action='store_true', default=False,
+      help='compile without libsamplerate support')
   opt.add_option('--with-target-platform', type='string',
       help='set target platform for cross-compilation', dest='target_platform')
   opt.tool_options('compiler_cc')
@@ -54,11 +56,12 @@ def configure(conf):
   if (Options.options.enable_complex == True):
     conf.check(header_name='complex.h')
 
-  # required dependancies
+  # check dependencies
   conf.check_cfg(package = 'sndfile', atleast_version = '1.0.4',
     args = '--cflags --libs')
-  conf.check_cfg(package = 'samplerate', atleast_version = '0.0.15',
-    args = '--cflags --libs')
+  if (Options.options.disable_libsamplerate == False):
+      conf.check_cfg(package = 'libsamplerate', atleast_version = '0.0.15',
+        args = '--cflags --libs')
 
   # double precision mode
   if (Options.options.enable_double == True):