summaryrefslogtreecommitdiff
path: root/wscript
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2024-02-20 14:37:58 +0100
committerCarl Hetherington <cth@carlh.net>2024-02-20 14:37:58 +0100
commit10932722619696f1e089723c2dccf51281f24a40 (patch)
tree1df49c2ba189212f21dd1432f479f6aa494a16a4 /wscript
parentf23b9491dcd25d02f7966f39dfdbb0ad998aa5ad (diff)
Fix build on Centos 7.
Diffstat (limited to 'wscript')
-rw-r--r--wscript9
1 files changed, 9 insertions, 0 deletions
diff --git a/wscript b/wscript
index 4c40e34b1..a62b5c2c3 100644
--- a/wscript
+++ b/wscript
@@ -281,6 +281,15 @@ def configure(conf):
uselib="ZIP",
define_name='DCPOMATIC_HAVE_ZIP_FILE_ADD'
)
+ conf.check_cxx(fragment="""
+ #include <zip.h>
+ int main() { int error; zip_open("foo", ZIP_RDONLY, &error); }
+ """,
+ mandatory=False,
+ msg="Checking for ZIP_RDONLY",
+ uselib="ZIP",
+ define_name='DCPOMATIC_HAVE_ZIP_RDONLY'
+ )
# libbz2; must be explicitly linked on macOS for some reason
conf.check_cxx(fragment="""