summaryrefslogtreecommitdiff
path: root/wscript
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2011-09-29 20:29:06 +0000
committerDavid Robillard <d@drobilla.net>2011-09-29 20:29:06 +0000
commit4ffe8418e3d3e2b9835f37e96bc9521f48b6b774 (patch)
tree9a050125b4f82ffcddeb1d9076f5c01df61beb33 /wscript
parentc1ef7b14a3e1200817180cfaf6425e9bdf0eb51b (diff)
Use is_defined to check for HAVE_* variables set by checks.
Note that conf.define('FOO', 1) will NOT set conf.env['FOO']. git-svn-id: svn://localhost/ardour2/branches/3.0@10164 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'wscript')
-rw-r--r--wscript6
1 files changed, 3 insertions, 3 deletions
diff --git a/wscript b/wscript
index 3e39f8992b..bd1bccf2b5 100644
--- a/wscript
+++ b/wscript
@@ -230,7 +230,7 @@ def set_compiler_flags (conf,opt):
print("\nWarning: you are building Ardour with SSE support even though your system does not support these instructions. (This may not be an error, especially if you are a package maintainer)")
# check this even if we aren't using FPU optimization
- if not conf.env['HAVE_POSIX_MEMALIGN']:
+ if not conf.is_defined('HAVE_POSIX_MEMALIGN'):
optimization_flags.append("-DNO_POSIX_MEMALIGN")
# end optimization section
@@ -552,7 +552,7 @@ def configure(conf):
conf.define('LXVST_SUPPORT', 1)
conf.env['LXVST_SUPPORT'] = True
if bool(conf.env['JACK_SESSION']):
- conf.define ('HAVE_JACK_SESSION', 1)
+ conf.define('HAVE_JACK_SESSION', 1)
if opts.wiimote:
conf.define('WIIMOTE', 1)
conf.env['WIIMOTE'] = True
@@ -560,7 +560,7 @@ def configure(conf):
conf.env['PROGRAM_NAME'] = opts.program_name
if opts.rt_alloc_debug:
conf.define('DEBUG_RT_ALLOC', 1)
- if not conf.env['HAVE_CPPUNIT']:
+ if not conf.is_defined('HAVE_CPPUNIT'):
conf.env['BUILD_TESTS'] = False
set_compiler_flags (conf, Options.options)