summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--wscript15
1 files changed, 8 insertions, 7 deletions
diff --git a/wscript b/wscript
index ce328a0..2aef967 100644
--- a/wscript
+++ b/wscript
@@ -103,13 +103,14 @@ def build(bld):
hosts/lv2_jack_host
hosts/lv2_simple_jack_host
'''
- for i in hosts.split():
- obj = bld.create_obj('cc', 'program')
- obj.source = i + '.c'
- obj.includes = '.'
- obj.uselib = 'JACK'
- obj.uselib_local = 'libslv2'
- obj.target = i
+ if bld.env()['HAVE_JACK']:
+ for i in hosts.split():
+ obj = bld.create_obj('cc', 'program')
+ obj.source = i + '.c'
+ obj.includes = '.'
+ obj.uselib = 'JACK'
+ obj.uselib_local = 'libslv2'
+ obj.target = i
# Documentation
autowaf.build_dox(bld, 'SLV2', SLV2_VERSION, srcdir, blddir)