meson: matroska: Ensure header dependency not only library

Library existence does not guarantee header.
This commit is contained in:
Seungha Yang 2019-04-21 20:12:28 +09:00
parent 2476e9e4ae
commit 7fb8abf8bb

View file

@ -12,7 +12,7 @@ matroska_sources = [
]
bz2_dep = cc.find_library('bz2', required : get_option('bz2'))
cdata.set('HAVE_BZ2', bz2_dep.found())
cdata.set('HAVE_BZ2', bz2_dep.found() and cc.has_header('bzlib.h'))
gstmatroska = library('gstmatroska',
matroska_sources,