Mercurial > mplayer.hg
comparison configure @ 11141:1ed8e514c725
Fix compilation when libavcodec is missing.
Patch by Nico <nsabbi@libero.it>
author | attila |
---|---|
date | Thu, 16 Oct 2003 08:45:10 +0000 |
parents | 1d2c30ef6c11 |
children | f5629a5b79f7 |
comparison
equal
deleted
inserted
replaced
11140:4d6a0bfe770e | 11141:1ed8e514c725 |
---|---|
3287 _vomodules="mpegpes(file) $_vomodules" | 3287 _vomodules="mpegpes(file) $_vomodules" |
3288 fi | 3288 fi |
3289 | 3289 |
3290 if test "$_dvb" = yes || test "$_dvbhead" = yes ; then | 3290 if test "$_dvb" = yes || test "$_dvbhead" = yes ; then |
3291 _dvbin=yes | 3291 _dvbin=yes |
3292 _inputmodules="dvb $_inputmodules" | |
3292 else | 3293 else |
3293 _dvbin=no | 3294 _dvbin=no |
3294 fi | 3295 fi |
3295 | 3296 |
3296 echocheck "PNG support" | 3297 echocheck "PNG support" |
4767 fi | 4768 fi |
4768 else | 4769 else |
4769 echores "$_libavcodec" | 4770 echores "$_libavcodec" |
4770 fi | 4771 fi |
4771 | 4772 |
4773 _def_haveffpostprocess='no' | |
4774 if test -d libavcodec && test -f libavcodec/libpostproc/postprocess.h ; then | |
4775 _def_haveffpostprocess='yes' | |
4776 fi | |
4777 | |
4772 if test "$_libavcodec" != yes ; then | 4778 if test "$_libavcodec" != yes ; then |
4773 echocheck "FFmpeg libavcodec (dynamic)" | 4779 echocheck "FFmpeg libavcodec (dynamic)" |
4774 if test "$_libavcodecso" = auto ; then | 4780 if test "$_libavcodecso" = auto ; then |
4775 _libavcodecso=no | 4781 _libavcodecso=no |
4776 # FIXME : check for avcodec_find_encoder_by_name() for mencoder | 4782 # FIXME : check for avcodec_find_encoder_by_name() for mencoder |
4804 _codecmodules="libavcodec $_codecmodules" | 4810 _codecmodules="libavcodec $_codecmodules" |
4805 elif test "$_libavcodecso" = yes ; then | 4811 elif test "$_libavcodecso" = yes ; then |
4806 _def_libavcodec='#define USE_LIBAVCODEC 1' | 4812 _def_libavcodec='#define USE_LIBAVCODEC 1' |
4807 _def_libavcodecso='#define USE_LIBAVCODEC_SO 1' | 4813 _def_libavcodecso='#define USE_LIBAVCODEC_SO 1' |
4808 _ld_libavcodec='-lavcodec' | 4814 _ld_libavcodec='-lavcodec' |
4809 _def_ffpostprocess='#define FF_POSTPROCESS 1' | |
4810 _codecmodules="libavcodec.so $_codecmodules" | 4815 _codecmodules="libavcodec.so $_codecmodules" |
4811 else | 4816 else |
4812 _nocodecmodules="libavcodec $_nocodecmodules" | 4817 _nocodecmodules="libavcodec $_nocodecmodules" |
4813 fi | 4818 fi |
4814 | 4819 |
5674 MATROSKA_LIB = $_ld_matroska | 5679 MATROSKA_LIB = $_ld_matroska |
5675 | 5680 |
5676 OPENDIVX = $_opendivx | 5681 OPENDIVX = $_opendivx |
5677 | 5682 |
5678 UNRARLIB = $_unrarlib | 5683 UNRARLIB = $_unrarlib |
5679 | 5684 HAVE_FFPOSTPROCESS = $_def_haveffpostprocess |
5680 PNG = $_mkf_png | 5685 PNG = $_mkf_png |
5681 JPEG = $_mkf_jpg | 5686 JPEG = $_mkf_jpg |
5682 GIF = $_mkf_gif | 5687 GIF = $_mkf_gif |
5683 | 5688 |
5684 EXTRA_LIB = $_ld_extra | 5689 EXTRA_LIB = $_ld_extra |