From bf698904668eec367acea2d8ab5ef49e9e0e4b4a Mon Sep 17 00:00:00 2001 From: attila Date: Thu, 16 Oct 2003 08:45:10 +0000 Subject: Fix compilation when libavcodec is missing. Patch by Nico git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@11142 b3059339-0415-0410-9bf9-f77b7e298cf2 --- configure | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'configure') diff --git a/configure b/configure index dd85ff42f9..74b963cd54 100755 --- a/configure +++ b/configure @@ -3289,6 +3289,7 @@ fi if test "$_dvb" = yes || test "$_dvbhead" = yes ; then _dvbin=yes + _inputmodules="dvb $_inputmodules" else _dvbin=no fi @@ -4769,6 +4770,11 @@ else echores "$_libavcodec" fi +_def_haveffpostprocess='no' +if test -d libavcodec && test -f libavcodec/libpostproc/postprocess.h ; then + _def_haveffpostprocess='yes' +fi + if test "$_libavcodec" != yes ; then echocheck "FFmpeg libavcodec (dynamic)" if test "$_libavcodecso" = auto ; then @@ -4806,7 +4812,6 @@ elif test "$_libavcodecso" = yes ; then _def_libavcodec='#define USE_LIBAVCODEC 1' _def_libavcodecso='#define USE_LIBAVCODEC_SO 1' _ld_libavcodec='-lavcodec' - _def_ffpostprocess='#define FF_POSTPROCESS 1' _codecmodules="libavcodec.so $_codecmodules" else _nocodecmodules="libavcodec $_nocodecmodules" @@ -5676,7 +5681,7 @@ MATROSKA_LIB = $_ld_matroska OPENDIVX = $_opendivx UNRARLIB = $_unrarlib - +HAVE_FFPOSTPROCESS = $_def_haveffpostprocess PNG = $_mkf_png JPEG = $_mkf_jpg GIF = $_mkf_gif -- cgit v1.2.3