diff --git a/gst/matroska/meson.build b/gst/matroska/meson.build index 4bdab6720b..99c58d3a28 100644 --- a/gst/matroska/meson.build +++ b/gst/matroska/meson.build @@ -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,