From d0869653a0bdfa010da0b1b00f83ea89f3abbdb1 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Wed, 29 Jan 2014 16:42:55 +0000 Subject: Various developments. --- wscript | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'wscript') diff --git a/wscript b/wscript index 06b8c68..0d6016f 100644 --- a/wscript +++ b/wscript @@ -7,7 +7,7 @@ VERSION = '0.01.0devel' def options(opt): opt.load('compiler_cxx') opt.add_option('--enable-debug', action='store_true', default=False, help='build with debugging information and without optimisation') - opt.add_option('--static', action='store_true', default=False, help='build libsub statically') + opt.add_option('--static', action='store_true', default=False, help='build libsub statically and link statically to cxml') def configure(conf): conf.load('compiler_cxx') @@ -22,6 +22,12 @@ def configure(conf): else: conf.env.append_value('CXXFLAGS', '-O3') + if conf.options.static: + conf.env.HAVE_CXML = 1 + conf.env.STLIB_CXML = ['cxml'] + else: + conf.check_cfg(package='libcxml', atleast_version='0.08', args='--cflags --libs', uselib_store='CXML', mandatory=True) + conf.check_cxx(fragment=""" #include \n #if BOOST_VERSION < 104500\n -- cgit v1.2.3