X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=wscript;h=3bc5bd824c5deeb5e690b179f06538cd669cb2b3;hb=c2bac22380bea453665a24c6f39200a977771daf;hp=5b4ec52c00105331520ce8e13fa554da62c283b7;hpb=59617eb2230e47b59882c4f9ca6092ce05f53cf1;p=libdcp.git diff --git a/wscript b/wscript index 5b4ec52c..3bc5bd82 100644 --- a/wscript +++ b/wscript @@ -31,6 +31,10 @@ def configure(conf): conf.check_cfg(package = 'openssl', args = '--cflags --libs', uselib_store = 'OPENSSL', mandatory = True) conf.check_cfg(package = 'libxml++-2.6', args = '--cflags --libs', uselib_store = 'LIBXML++', mandatory = True) + conf.check_cfg(package = 'xmlsec1', args = '--cflags --libs', uselib_store = 'XMLSEC1', mandatory = True) + # Remove erroneous escaping of quotes from xmlsec1 defines + conf.env.DEFINES_XMLSEC1 = [f.replace('\\', '') for f in conf.env.DEFINES_XMLSEC1] + if conf.options.static: conf.check_cc(fragment = """ #include \n @@ -88,6 +92,15 @@ def configure(conf): msg = 'Checking for boost signals2 library', uselib_store = 'BOOST_SIGNALS2') + conf.check_cxx(fragment = """ + #include \n + int main() { boost::gregorian::day_clock::local_day(); }\n + """, + msg = 'Checking for boost datetime library', + libpath = '/usr/local/lib', + lib = ['boost_date_time%s' % boost_lib_suffix, 'boost_system%s' % boost_lib_suffix], + uselib_store = 'BOOST_DATETIME') + conf.recurse('test') conf.recurse('asdcplib')