summaryrefslogtreecommitdiff
path: root/wscript
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2012-08-01 15:47:12 +0100
committerCarl Hetherington <cth@carlh.net>2012-08-01 15:47:12 +0100
commit2def26f93946953149baadee2a9c5b59f6ab32cf (patch)
treebd223d8df921bb74ce11dc7cf96f969d8cb80972 /wscript
parentfb128e6dc3b951c9d12ffb00b110714d3acfa5fd (diff)
Hack.
Diffstat (limited to 'wscript')
-rw-r--r--wscript9
1 files changed, 9 insertions, 0 deletions
diff --git a/wscript b/wscript
index c619dbb2..30974ac7 100644
--- a/wscript
+++ b/wscript
@@ -23,6 +23,15 @@ def configure(conf):
conf.check_cfg(package = 'sigc++-2.0', args = '--cflags --libs', uselib_store = 'SIGC++', mandatory = True)
conf.check_cfg(package = 'libxml++-2.6', args = '--cflags --libs', uselib_store = 'LIBXML++', mandatory = True)
+ 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', lib = 'openjpeg', uselib_store = 'OPENJPEG')
+
if conf.options.target_windows:
boost_lib_suffix = '-mt'
else: