Commit a5933eb1 authored by Tim-Philipp Müller's avatar Tim-Philipp Müller

configure: try pkg-config first when looking for zlib

parent 685eb3b9
......@@ -508,12 +508,15 @@ fi
dnl *** zlib is optionally used by id3 tag parsing in libgsttag ***
translit(dnm, m, l) AM_CONDITIONAL(USE_ZLIB, true)
AG_GST_CHECK_FEATURE(ZLIB, [zlib support for ID3 parsing in libgsttag],, [
AG_GST_CHECK_LIBHEADER(ZLIB,
z, uncompress,, zlib.h, [
HAVE_ZLIB="yes"
ZLIB_LIBS="-lz"
AC_SUBST(ZLIB_LIBS)
])
PKG_CHECK_MODULES(ZLIB, [ zlib ], [
HAVE_ZLIB="yes"
], [
AG_GST_CHECK_LIBHEADER(ZLIB, z, uncompress,, zlib.h, [
HAVE_ZLIB="yes"
ZLIB_LIBS="-lz"
AC_SUBST(ZLIB_LIBS)
])
])
])
dnl *** sys plug-ins ***
......
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