summaryrefslogtreecommitdiff
path: root/wscript
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2013-02-06 23:51:06 +0000
committerCarl Hetherington <cth@carlh.net>2013-02-06 23:51:06 +0000
commit6e5411a943ef9b3f23cfb8dd9dcc1a756b55bfbe (patch)
treed18bdfe1b1ec4805adc4e560a3ef0e4f216b25df /wscript
parent3d75f8a9bd53f555a0ba3bd912dff157ec0d3cb1 (diff)
Fix static build.
Diffstat (limited to 'wscript')
-rw-r--r--wscript11
1 files changed, 10 insertions, 1 deletions
diff --git a/wscript b/wscript
index 2995c442..27483bac 100644
--- a/wscript
+++ b/wscript
@@ -30,7 +30,16 @@ def configure(conf):
conf.check_cfg(package = 'openssl', args = '--cflags --libs', uselib_store = 'OPENSSL', mandatory = True)
conf.check_cfg(package = 'libxml++-2.6', args = '--cflags --libs', uselib_store = 'LIBXML++', mandatory = True)
if conf.options.static_openjpeg:
- conf.check_cc(fragment = openjpeg_fragment, msg = 'Checking for library openjpeg', stlib = 'openjpeg', uselib_store = 'OPENJPEG')
+
+ 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
+ }
+ """,
+ msg = 'Checking for library openjpeg', stlib = 'openjpeg', uselib_store = 'OPENJPEG', mandatory = True)
else:
conf.check_cfg(package = 'libopenjpeg', args = '--cflags --libs', uselib_store = 'OPENJPEG', mandatory = True)