configure: try pkg-config first when looking for zlib

This commit is contained in:
Tim-Philipp Müller 2011-08-15 00:03:39 +01:00
parent 685eb3b954
commit a5933eb14b

View file

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