More build fixes.
authorCarl Hetherington <cth@carlh.net>
Fri, 25 Sep 2015 14:15:58 +0000 (15:15 +0100)
committerCarl Hetherington <cth@carlh.net>
Fri, 25 Sep 2015 14:15:58 +0000 (15:15 +0100)
wscript

diff --git a/wscript b/wscript
index 38b6fba7463dca7ec15fb8674c5d7dc9c315d158..c4e6fdf42b1c276715556a99dcf80d56d06680a1 100644 (file)
--- a/wscript
+++ b/wscript
@@ -160,8 +160,9 @@ def configure(conf):
         conf.check_cfg(package='libcurl', args='--cflags --libs', uselib_store='CURL', mandatory=True)
 
     # libicu
-    if conf.check_cfg(package='icu-i18n', args='--cflags --libs', uselib_store='ICU', mandatory=False) is None and conf.check_cfg(package='icu', args='--cflags --libs', uselib_store='ICU', mandatory=False) is None:
-        Logs.pprint('RED', 'libicu not found')
+    if conf.check_cfg(package='icu-i18n', args='--cflags --libs', uselib_store='ICU', mandatory=False) is None:
+        if conf.check_cfg(package='icu', args='--cflags --libs', uselib_store='ICU', mandatory=False) is None:
+            Logs.pprint('RED', 'libicu not found')
 
     # libsndfile
     conf.check_cfg(package='sndfile', args='--cflags --libs', uselib_store='SNDFILE', mandatory=True)