From a5933eb14bd3cc661ef5446ca4f42704bfad37d8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim-Philipp=20M=C3=BCller?= Date: Mon, 15 Aug 2011 00:03:39 +0100 Subject: [PATCH] configure: try pkg-config first when looking for zlib --- configure.ac | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/configure.ac b/configure.ac index a76691f994..56eae4e380 100644 --- a/configure.ac +++ b/configure.ac @@ -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 ***