diff options
| author | Carl Hetherington <cth@carlh.net> | 2013-01-25 12:24:22 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2013-01-25 12:24:22 +0000 |
| commit | 29a464d50eab31b5ed7e3b39a5037ecf3c7c044e (patch) | |
| tree | 77d7ea69a8a7389ba7bc1c279eeddf94df371da6 /wscript | |
| parent | 9150667adcd5516b2513323948c2abc0a41b4607 (diff) | |
Tidy up openjpeg configuration, and insist on 1.5.0 or 1.5.1 (#38).
Diffstat (limited to 'wscript')
| -rw-r--r-- | wscript | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -91,19 +91,19 @@ def configure(conf): conf.check_cfg(package = 'glib-2.0', args = '--cflags --libs', uselib_store = 'GLIB', mandatory = True) conf.check_cfg(package = '', path = 'Magick++-config', args = '--cppflags --cxxflags --libs', uselib_store = 'MAGICK', mandatory = True) - openjpeg_fragment = """ + if conf.options.static: + conf.check_cc(fragment = """ #include <stdio.h>\n #include <openjpeg.h>\n int main () {\n void* p = (void *) opj_image_create;\n return 0;\n } - """ - - if conf.options.static: - conf.check_cc(fragment = openjpeg_fragment, msg = 'Checking for library openjpeg', stlib = 'openjpeg', uselib_store = 'OPENJPEG') + """, msg = 'Checking for library openjpeg', stlib = 'openjpeg', uselib_store = 'OPENJPEG') else: - conf.check_cfg(package = 'libopenjpeg', args = '--cflags --libs', uselib_store = 'OPENJPEG', mandatory = True) + # Only 1.5.0 and 1.5.1 have been tested. + conf.check_cfg(package = 'libopenjpeg', args = '--cflags --libs', atleast_version = '1.5.0', uselib_store = 'OPENJPEG', mandatory = True) + conf.check_cfg(package = 'libopenjpeg', args = '--cflags --libs', max_version = '1.5.1', mandatory = True) conf.check_cc(fragment = """ #include <libssh/libssh.h>\n |
