More regex fixes.
authorCarl Hetherington <cth@carlh.net>
Thu, 2 Jul 2015 18:29:00 +0000 (19:29 +0100)
committerCarl Hetherington <cth@carlh.net>
Thu, 2 Jul 2015 18:29:00 +0000 (19:29 +0100)
wscript

diff --git a/wscript b/wscript
index 98cca364a8696db948c6f7a3e55ff282f612f4db..99411a5ae0fcd8ca7a197f00badf8c92659534ef 100644 (file)
--- a/wscript
+++ b/wscript
@@ -343,6 +343,14 @@ def configure(conf):
                        msg='Checking for boost signals2 library',
                        uselib_store='BOOST_SIGNALS2')
 
+        conf.check_cxx(fragment="""
+                           #include <boost/regex.hpp>\n
+                           int main() { boost::regex re ("foo"); }\n
+                           """,
+                       msg='Checking for boost regex library',
+                       lib=['boost_regex%s' % boost_lib_suffix],
+                       uselib_store='BOOST_REGEX')
+
     # Other stuff
 
     conf.find_program('msgfmt', var='MSGFMT')