From 1bf15564bf9ff6d5e1b70816e80aeae2d2c1e1a8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim-Philipp=20M=C3=BCller?= Date: Fri, 5 Jan 2007 18:32:03 +0000 Subject: Check for zlib and if available pass it explicitly to the linker when linking qtdemux. If not available (or --disable... Original commit message from CVS: * configure.ac: * gst/qtdemux/Makefile.am: * gst/qtdemux/qtdemux.c: (qtdemux_parse_moov): Check for zlib and if available pass it explicitly to the linker when linking qtdemux. If not available (or --disable-external has been specified!), disable the bits in qtdemux that use it. Fixes build on MingW (#392856). --- configure.ac | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index 6735786f..e0c71400 100644 --- a/configure.ac +++ b/configure.ac @@ -821,6 +821,17 @@ GST_CHECK_FEATURE(DVB, [DVB Source], dvb, [ AC_CHECK_HEADER(linux/dvb/frontend.h, [HAVE_DVB="yes"], [HAVE_DVB="no"]) ]) +dnl *** qtdemux prefers to have zlib *** +translit(dnm, m, l) AM_CONDITIONAL(USE_ZLIB, true) +GST_CHECK_FEATURE(ZLIB, [zlib support for qtdemux],, [ + GST_CHECK_LIBHEADER(ZLIB, + z, uncompress,, zlib.h, [ + HAVE_ZLIB="yes" + ZLIB_LIBS="-lz" + AC_SUBST(ZLIB_LIBS) + ]) +]) + else dnl not building plugins with external dependencies, @@ -851,6 +862,7 @@ AM_CONDITIONAL(USE_THEORADEC, false) AM_CONDITIONAL(USE_XVID, false) AM_CONDITIONAL(USE_WAVPACK, false) AM_CONDITIONAL(USE_DVB, false) +AM_CONDITIONAL(USE_ZLIB, false) fi dnl of EXT plugins -- cgit v1.2.1