summaryrefslogtreecommitdiff
path: root/wscript
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2013-11-27 10:53:49 +0000
committerCarl Hetherington <cth@carlh.net>2013-11-27 10:53:49 +0000
commit52c7a765b76efbba439411a78ca31b72ef17fe6e (patch)
treea56fa46dfa3ea91bf248b0e456e9a3a940e7c2c4 /wscript
parent012351428ea81caa78baa28167c0f4a734bed689 (diff)
We only need boost locale on Windows.
Diffstat (limited to 'wscript')
-rw-r--r--wscript17
1 files changed, 10 insertions, 7 deletions
diff --git a/wscript b/wscript
index 138f947e4..54a1a3eb0 100644
--- a/wscript
+++ b/wscript
@@ -185,13 +185,16 @@ def configure(conf):
lib=['boost_date_time%s' % boost_lib_suffix, 'boost_system%s' % boost_lib_suffix],
uselib_store='BOOST_DATETIME')
- conf.check_cxx(fragment="""
- #include <boost/locale.hpp>\n
- int main() { std::locale::global (boost::locale::generator().generate ("")); }\n
- """, msg='Checking for boost locale library',
- libpath='/usr/local/lib',
- lib=['boost_locale%s' % boost_lib_suffix, 'boost_system%s' % boost_lib_suffix],
- uselib_store='BOOST_LOCALE')
+ # Only Windows versions require boost::locale, which is handy, as it was only introduced in
+ # boost 1.48 and so isn't (easily) available on old Ubuntus.
+ if conf.env.TARGET_WINDOWS:
+ conf.check_cxx(fragment="""
+ #include <boost/locale.hpp>\n
+ int main() { std::locale::global (boost::locale::generator().generate ("")); }\n
+ """, msg='Checking for boost locale library',
+ libpath='/usr/local/lib',
+ lib=['boost_locale%s' % boost_lib_suffix, 'boost_system%s' % boost_lib_suffix],
+ uselib_store='BOOST_LOCALE')
conf.check_cxx(fragment="""
#include <boost/signals2.hpp>\n