diff options
| author | Carl Hetherington <cth@carlh.net> | 2015-09-25 20:31:05 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2015-09-25 20:31:05 +0100 |
| commit | 74efa45d8cad7e4cf85c85520d093f5d072d7f04 (patch) | |
| tree | d3c89c8b761c9ccd77d7e10a4b5ddc09601b6988 /wscript | |
| parent | d19b91245294336288d65dc34d0d9240bee6202d (diff) | |
Improve finding of libicu without pkgconfig.
Diffstat (limited to 'wscript')
| -rw-r--r-- | wscript | 14 |
1 files changed, 13 insertions, 1 deletions
@@ -162,7 +162,19 @@ def configure(conf): # libicu 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') + conf.check_cxx(fragment=""" + #include <unicode/ucsdet.h> + int main(void) { + UErrorCode status = U_ZERO_ERROR; + UCharsetDetector* detector = ucsdet_open (&status); + return 0; }\n + """, + mandatory=True, + msg='Checking for libicu', + okmsg='yes', + libpath=['/usr/local/lib', '/usr/lib', '/usr/lib/x86_64-linux-gnu'], + lib=['icuio', 'icui18n', 'icudata'], + uselib_store='ICU') # libsndfile conf.check_cfg(package='sndfile', args='--cflags --libs', uselib_store='SNDFILE', mandatory=True) |
