Check for zlib header

This commit is contained in:
Xavier Claessens 2018-11-21 15:11:00 -05:00
parent 3b22a604b5
commit 5fad0735a5

View file

@ -307,7 +307,7 @@ 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()
if not zlib_dep.found() or not cc.has_header('zlib.h')
zlib_dep = subproject('zlib').get_variable('zlib_dep')
endif
endif