Commit 36dcc321 authored by Xavier Claessens's avatar Xavier Claessens

Check for zlib header

parent b93e3759
Pipeline #9306 passed with stages
in 2 minutes and 28 seconds
......@@ -307,10 +307,14 @@ endif
zlib_dep = dependency('zlib', required : false)
if not zlib_dep.found()
zlib_dep = cc.find_library('z', required : false)
if not zlib_dep.found()
zlib_dep = subproject('zlib').get_variable('zlib_dep')
if zlib_dep.found() and not cc.has_header('zlib.h')
error('zlib found but not its header')
endif
endif
if not zlib_dep.found()
zlib_dep = subproject('zlib').get_variable('zlib_dep')
endif
cdata.set('HAVE_ZLIB', true)
glib_deps = [dependency('glib-2.0', version : glib_req, fallback: ['glib', 'libglib_dep']),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment