From c9a85bdb35286c4072e640574c49d60f6d8f13c4 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Thu, 2 Oct 2008 23:37:38 +0000 Subject: Factor out avoid-repeated-checks thing to autowaf. Saves lines in wscripts.... Use SLV2_VERSION instead of PACKAGE_VERSION in slv2 code to play nice with others. git-svn-id: http://svn.drobilla.net/lad/trunk/raul@1598 a436a847-0d15-0410-975c-d299462d15a1 --- wscript | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/wscript b/wscript index 4f4b19f..7127b4f 100644 --- a/wscript +++ b/wscript @@ -29,15 +29,10 @@ def set_options(opt): def configure(conf): autowaf.configure(conf) - if not conf.env['CXX']: - conf.check_tool('compiler_cxx') - if not conf.env['HAVE_GLIBMM']: - conf.check_pkg('glibmm-2.4', destvar='GLIBMM', vnum='2.16.0', mandatory=True) - if not conf.env['HAVE_GTHREAD']: - conf.check_pkg('gthread-2.0', destvar='GTHREAD', vnum='2.16.0', mandatory=True) - + autowaf.check_tool(conf, 'compiler_cxx') + autowaf.check_pkg(conf, 'glibmm-2.4', destvar='GLIBMM', vnum='2.16.0', mandatory=True) + autowaf.check_pkg(conf, 'gthread-2.0', destvar='GTHREAD', vnum='2.16.0', mandatory=True) autowaf.print_summary(conf) - print def build(bld): # Headers -- cgit v1.2.1