Mercurial > mplayer.hg
comparison configure @ 27341:e7c989f7a7c9
Start unifying names of internal preprocessor directives.
Replace all USE_ prefixes by CONFIG_ prefixes to indicate
options which are configurable.
author | diego |
---|---|
date | Wed, 30 Jul 2008 12:01:30 +0000 |
parents | b23ce988b57b |
children | 3a174cb28d36 |
comparison
equal
deleted
inserted
replaced
27340:33274ce3cce0 | 27341:e7c989f7a7c9 |
---|---|
691 _w32threads=auto | 691 _w32threads=auto |
692 _ass=auto | 692 _ass=auto |
693 _rpath=no | 693 _rpath=no |
694 _asmalign_pot=auto | 694 _asmalign_pot=auto |
695 _stream_cache=yes | 695 _stream_cache=yes |
696 _def_stream_cache="#define USE_STREAM_CACHE 1" | 696 _def_stream_cache="#define CONFIG_STREAM_CACHE 1" |
697 _need_shmem=yes | 697 _need_shmem=yes |
698 for ac_option do | 698 for ac_option do |
699 case "$ac_option" in | 699 case "$ac_option" in |
700 --help|-help|-h) | 700 --help|-help|-h) |
701 show_help | 701 show_help |
1396 | 1396 |
1397 if amigaos ; then | 1397 if amigaos ; then |
1398 _select=no | 1398 _select=no |
1399 _sighandler=no | 1399 _sighandler=no |
1400 _stream_cache=no | 1400 _stream_cache=no |
1401 _def_stream_cache="#undef USE_STREAM_CACHE" | 1401 _def_stream_cache="#undef CONFIG_STREAM_CACHE" |
1402 fi | 1402 fi |
1403 | 1403 |
1404 if qnx ; then | 1404 if qnx ; then |
1405 _ld_extra="$_ld_extra -lph" | 1405 _ld_extra="$_ld_extra -lph" |
1406 fi | 1406 fi |
2596 EOF | 2596 EOF |
2597 _langinfo=no | 2597 _langinfo=no |
2598 cc_check && _langinfo=yes | 2598 cc_check && _langinfo=yes |
2599 fi | 2599 fi |
2600 if test "$_langinfo" = yes ; then | 2600 if test "$_langinfo" = yes ; then |
2601 _def_langinfo='#define USE_LANGINFO 1' | 2601 _def_langinfo='#define CONFIG_LANGINFO 1' |
2602 else | 2602 else |
2603 _def_langinfo='#undef USE_LANGINFO' | 2603 _def_langinfo='#undef CONFIG_LANGINFO' |
2604 fi | 2604 fi |
2605 echores "$_langinfo" | 2605 echores "$_langinfo" |
2606 | 2606 |
2607 | 2607 |
2608 echocheck "language" | 2608 echocheck "language" |
2857 _res_comment="network support disabled" | 2857 _res_comment="network support disabled" |
2858 fi | 2858 fi |
2859 echores "$_use_aton" | 2859 echores "$_use_aton" |
2860 fi | 2860 fi |
2861 | 2861 |
2862 _def_use_aton='#undef USE_ATON' | 2862 _def_use_aton='#undef CONFIG_ATON' |
2863 if test "$_use_aton" = yes; then | 2863 if test "$_use_aton" = yes; then |
2864 _def_use_aton='#define USE_ATON 1' | 2864 _def_use_aton='#define CONFIG_ATON 1' |
2865 fi | 2865 fi |
2866 | 2866 |
2867 | 2867 |
2868 echocheck "socklen_t" | 2868 echocheck "socklen_t" |
2869 cat > $TMPC << EOF | 2869 cat > $TMPC << EOF |
3164 cc_check $_ld_lm $_ld_tmp && _ld_extra="$_ld_extra $_ld_tmp" && \ | 3164 cc_check $_ld_lm $_ld_tmp && _ld_extra="$_ld_extra $_ld_tmp" && \ |
3165 _iconv=yes && break | 3165 _iconv=yes && break |
3166 done | 3166 done |
3167 fi | 3167 fi |
3168 if test "$_iconv" = yes ; then | 3168 if test "$_iconv" = yes ; then |
3169 _def_iconv='#define USE_ICONV 1' | 3169 _def_iconv='#define CONFIG_ICONV 1' |
3170 else | 3170 else |
3171 _def_iconv='#undef USE_ICONV' | 3171 _def_iconv='#undef CONFIG_ICONV' |
3172 fi | 3172 fi |
3173 echores "$_iconv" | 3173 echores "$_iconv" |
3174 | 3174 |
3175 | 3175 |
3176 echocheck "soundcard.h" | 3176 echocheck "soundcard.h" |
3325 cc_check $_ld_tmp && _ld_extra="$_ld_extra $_ld_tmp" \ | 3325 cc_check $_ld_tmp && _ld_extra="$_ld_extra $_ld_tmp" \ |
3326 && _termcap=yes && break | 3326 && _termcap=yes && break |
3327 done | 3327 done |
3328 fi | 3328 fi |
3329 if test "$_termcap" = yes ; then | 3329 if test "$_termcap" = yes ; then |
3330 _def_termcap='#define USE_TERMCAP 1' | 3330 _def_termcap='#define CONFIG_TERMCAP 1' |
3331 _res_comment="using $_ld_tmp" | 3331 _res_comment="using $_ld_tmp" |
3332 else | 3332 else |
3333 _def_termcap='#undef USE_TERMCAP' | 3333 _def_termcap='#undef CONFIG_TERMCAP' |
3334 fi | 3334 fi |
3335 echores "$_termcap" | 3335 echores "$_termcap" |
3336 | 3336 |
3337 | 3337 |
3338 echocheck "termios" | 3338 echocheck "termios" |
5039 EOF | 5039 EOF |
5040 _ossaudio=no | 5040 _ossaudio=no |
5041 cc_check && _ossaudio=yes | 5041 cc_check && _ossaudio=yes |
5042 fi | 5042 fi |
5043 if test "$_ossaudio" = yes ; then | 5043 if test "$_ossaudio" = yes ; then |
5044 _def_ossaudio='#define USE_OSS_AUDIO 1' | 5044 _def_ossaudio='#define CONFIG_OSS_AUDIO 1' |
5045 _aosrc="$_aosrc ao_oss.c" | 5045 _aosrc="$_aosrc ao_oss.c" |
5046 _aomodules="oss $_aomodules" | 5046 _aomodules="oss $_aomodules" |
5047 if test "$_linux_devfs" = yes; then | 5047 if test "$_linux_devfs" = yes; then |
5048 _def_ossaudio_devdsp='#define PATH_DEV_DSP "/dev/sound/dsp"' | 5048 _def_ossaudio_devdsp='#define PATH_DEV_DSP "/dev/sound/dsp"' |
5049 _def_ossaudio_devmixer='#define PATH_DEV_MIXER "/dev/sound/mixer"' | 5049 _def_ossaudio_devmixer='#define PATH_DEV_MIXER "/dev/sound/mixer"' |
5068 _def_ossaudio_devdsp='#define PATH_DEV_DSP "/dev/dsp"' | 5068 _def_ossaudio_devdsp='#define PATH_DEV_DSP "/dev/dsp"' |
5069 fi | 5069 fi |
5070 _def_ossaudio_devmixer='#define PATH_DEV_MIXER "/dev/mixer"' | 5070 _def_ossaudio_devmixer='#define PATH_DEV_MIXER "/dev/mixer"' |
5071 fi | 5071 fi |
5072 else | 5072 else |
5073 _def_ossaudio='#undef USE_OSS_AUDIO' | 5073 _def_ossaudio='#undef CONFIG_OSS_AUDIO' |
5074 _def_ossaudio_devdsp='#define PATH_DEV_DSP ""' | 5074 _def_ossaudio_devdsp='#define PATH_DEV_DSP ""' |
5075 _def_ossaudio_devmixer='#define PATH_DEV_MIXER ""' | 5075 _def_ossaudio_devmixer='#define PATH_DEV_MIXER ""' |
5076 _noaomodules="oss $_noaomodules" | 5076 _noaomodules="oss $_noaomodules" |
5077 fi | 5077 fi |
5078 echores "$_ossaudio" | 5078 echores "$_ossaudio" |
5091 | 5091 |
5092 fi | 5092 fi |
5093 fi | 5093 fi |
5094 | 5094 |
5095 if test "$_arts" = yes ; then | 5095 if test "$_arts" = yes ; then |
5096 _def_arts='#define USE_ARTS 1' | 5096 _def_arts='#define CONFIG_ARTS 1' |
5097 _aosrc="$_aosrc ao_arts.c" | 5097 _aosrc="$_aosrc ao_arts.c" |
5098 _aomodules="arts $_aomodules" | 5098 _aomodules="arts $_aomodules" |
5099 _libs_mplayer="$_libs_mplayer `artsc-config --libs`" | 5099 _libs_mplayer="$_libs_mplayer `artsc-config --libs`" |
5100 _inc_extra="$_inc_extra `artsc-config --cflags`" | 5100 _inc_extra="$_inc_extra `artsc-config --cflags`" |
5101 else | 5101 else |
5118 fi | 5118 fi |
5119 fi | 5119 fi |
5120 echores "$_esd" | 5120 echores "$_esd" |
5121 | 5121 |
5122 if test "$_esd" = yes ; then | 5122 if test "$_esd" = yes ; then |
5123 _def_esd='#define USE_ESD 1' | 5123 _def_esd='#define CONFIG_ESD 1' |
5124 _aosrc="$_aosrc ao_esd.c" | 5124 _aosrc="$_aosrc ao_esd.c" |
5125 _aomodules="esd $_aomodules" | 5125 _aomodules="esd $_aomodules" |
5126 _libs_mplayer="$_libs_mplayer `esd-config --libs`" | 5126 _libs_mplayer="$_libs_mplayer `esd-config --libs`" |
5127 _inc_extra="$_inc_extra `esd-config --cflags`" | 5127 _inc_extra="$_inc_extra `esd-config --cflags`" |
5128 | 5128 |
5132 int main(void) { return esd_get_latency(0); } | 5132 int main(void) { return esd_get_latency(0); } |
5133 EOF | 5133 EOF |
5134 cc_check `esd-config --libs` `esd-config --cflags` && _esd_latency=yes && _def_esd_latency='#define HAVE_ESD_LATENCY' | 5134 cc_check `esd-config --libs` `esd-config --cflags` && _esd_latency=yes && _def_esd_latency='#define HAVE_ESD_LATENCY' |
5135 echores "$_esd_latency" | 5135 echores "$_esd_latency" |
5136 else | 5136 else |
5137 _def_esd='#undef USE_ESD' | 5137 _def_esd='#undef CONFIG_ESD' |
5138 _def_esd_latency='#undef HAVE_ESD_LATENCY' | 5138 _def_esd_latency='#undef HAVE_ESD_LATENCY' |
5139 _noaomodules="esd $_noaomodules" | 5139 _noaomodules="esd $_noaomodules" |
5140 fi | 5140 fi |
5141 | 5141 |
5142 echocheck "pulse" | 5142 echocheck "pulse" |
5153 fi | 5153 fi |
5154 fi | 5154 fi |
5155 echores "$_pulse" | 5155 echores "$_pulse" |
5156 | 5156 |
5157 if test "$_pulse" = yes ; then | 5157 if test "$_pulse" = yes ; then |
5158 _def_pulse='#define USE_PULSE 1' | 5158 _def_pulse='#define CONFIG_PULSE 1' |
5159 _aosrc="$_aosrc ao_pulse.c" | 5159 _aosrc="$_aosrc ao_pulse.c" |
5160 _aomodules="pulse $_aomodules" | 5160 _aomodules="pulse $_aomodules" |
5161 _libs_mplayer="$_libs_mplayer `$_pkg_config --libs libpulse`" | 5161 _libs_mplayer="$_libs_mplayer `$_pkg_config --libs libpulse`" |
5162 _inc_extra="$_inc_extra `$_pkg_config --cflags libpulse`" | 5162 _inc_extra="$_inc_extra `$_pkg_config --cflags libpulse`" |
5163 else | 5163 else |
5164 _def_pulse='#undef USE_PULSE' | 5164 _def_pulse='#undef CONFIG_PULSE' |
5165 _noaomodules="pulse $_noaomodules" | 5165 _noaomodules="pulse $_noaomodules" |
5166 fi | 5166 fi |
5167 | 5167 |
5168 | 5168 |
5169 echocheck "JACK" | 5169 echocheck "JACK" |
5183 _jack=no | 5183 _jack=no |
5184 fi | 5184 fi |
5185 fi | 5185 fi |
5186 | 5186 |
5187 if test "$_jack" = yes ; then | 5187 if test "$_jack" = yes ; then |
5188 _def_jack='#define USE_JACK 1' | 5188 _def_jack='#define CONFIG_JACK 1' |
5189 _aosrc="$_aosrc ao_jack.c" | 5189 _aosrc="$_aosrc ao_jack.c" |
5190 _aomodules="jack $_aomodules" | 5190 _aomodules="jack $_aomodules" |
5191 else | 5191 else |
5192 _noaomodules="jack $_noaomodules" | 5192 _noaomodules="jack $_noaomodules" |
5193 fi | 5193 fi |
5213 cc_check -DOPENAL_AL_H=1 $I && _def_openal_h='#define OPENAL_AL_H 1' && _openal=yes && break | 5213 cc_check -DOPENAL_AL_H=1 $I && _def_openal_h='#define OPENAL_AL_H 1' && _openal=yes && break |
5214 done | 5214 done |
5215 test "$_openal" = yes && _libs_mplayer="$_libs_mplayer $I" | 5215 test "$_openal" = yes && _libs_mplayer="$_libs_mplayer $I" |
5216 fi | 5216 fi |
5217 if test "$_openal" = yes ; then | 5217 if test "$_openal" = yes ; then |
5218 _def_openal='#define USE_OPENAL 1' | 5218 _def_openal='#define CONFIG_OPENAL 1' |
5219 _aosrc="$_aosrc ao_openal.c" | 5219 _aosrc="$_aosrc ao_openal.c" |
5220 _aomodules="openal $_aomodules" | 5220 _aomodules="openal $_aomodules" |
5221 else | 5221 else |
5222 _noaomodules="openal $_noaomodules" | 5222 _noaomodules="openal $_noaomodules" |
5223 fi | 5223 fi |
5340 EOF | 5340 EOF |
5341 _sunaudio=no | 5341 _sunaudio=no |
5342 cc_check && _sunaudio=yes | 5342 cc_check && _sunaudio=yes |
5343 fi | 5343 fi |
5344 if test "$_sunaudio" = yes ; then | 5344 if test "$_sunaudio" = yes ; then |
5345 _def_sunaudio='#define USE_SUN_AUDIO 1' | 5345 _def_sunaudio='#define CONFIG_SUN_AUDIO 1' |
5346 _aosrc="$_aosrc ao_sun.c" | 5346 _aosrc="$_aosrc ao_sun.c" |
5347 _aomodules="sun $_aomodules" | 5347 _aomodules="sun $_aomodules" |
5348 else | 5348 else |
5349 _def_sunaudio='#undef USE_SUN_AUDIO' | 5349 _def_sunaudio='#undef CONFIG_SUN_AUDIO' |
5350 _noaomodules="sun $_noaomodules" | 5350 _noaomodules="sun $_noaomodules" |
5351 fi | 5351 fi |
5352 echores "$_sunaudio" | 5352 echores "$_sunaudio" |
5353 | 5353 |
5354 | 5354 |
5377 EOF | 5377 EOF |
5378 _sgiaudio=no | 5378 _sgiaudio=no |
5379 cc_check && _sgiaudio=yes | 5379 cc_check && _sgiaudio=yes |
5380 fi | 5380 fi |
5381 if test "$_sgiaudio" = "yes" ; then | 5381 if test "$_sgiaudio" = "yes" ; then |
5382 _def_sgiaudio='#define USE_SGI_AUDIO 1' | 5382 _def_sgiaudio='#define CONFIG_SGI_AUDIO 1' |
5383 _libs_mplayer="$_libs_mplayer -laudio" | 5383 _libs_mplayer="$_libs_mplayer -laudio" |
5384 _aosrc="$_aosrc ao_sgi.c" | 5384 _aosrc="$_aosrc ao_sgi.c" |
5385 _aomodules="sgi $_aomodules" | 5385 _aomodules="sgi $_aomodules" |
5386 else | 5386 else |
5387 _def_sgiaudio='#undef USE_SGI_AUDIO' | 5387 _def_sgiaudio='#undef CONFIG_SGI_AUDIO' |
5388 _noaomodules="sgi $_noaomodules" | 5388 _noaomodules="sgi $_noaomodules" |
5389 fi | 5389 fi |
5390 echores "$_sgiaudio" | 5390 echores "$_sgiaudio" |
5391 fi #if irix | 5391 fi #if irix |
5392 | 5392 |
5439 _res_comment="external" | 5439 _res_comment="external" |
5440 fi | 5440 fi |
5441 fi | 5441 fi |
5442 | 5442 |
5443 if test "$_dvdread_internal" = yes; then | 5443 if test "$_dvdread_internal" = yes; then |
5444 _def_dvdread_internal="#define USE_DVDREAD_INTERNAL 1" | 5444 _def_dvdread_internal="#define CONFIG_DVDREAD_INTERNAL 1" |
5445 _def_dvdread='#define USE_DVDREAD 1' | 5445 _def_dvdread='#define CONFIG_DVDREAD 1' |
5446 _inputmodules="dvdread(internal) $_inputmodules" | 5446 _inputmodules="dvdread(internal) $_inputmodules" |
5447 _largefiles=yes | 5447 _largefiles=yes |
5448 _res_comment="internal" | 5448 _res_comment="internal" |
5449 elif test "$_dvdread" = yes; then | 5449 elif test "$_dvdread" = yes; then |
5450 _def_dvdread='#define USE_DVDREAD 1' | 5450 _def_dvdread='#define CONFIG_DVDREAD 1' |
5451 _largefiles=yes | 5451 _largefiles=yes |
5452 _ld_extra="$_ld_extra -ldvdread" | 5452 _ld_extra="$_ld_extra -ldvdread" |
5453 _inputmodules="dvdread(external) $_inputmodules" | 5453 _inputmodules="dvdread(external) $_inputmodules" |
5454 _res_comment="external" | 5454 _res_comment="external" |
5455 else | 5455 else |
5456 _def_dvdread_internal="#undef USE_DVDREAD_INTERNAL" | 5456 _def_dvdread_internal="#undef CONFIG_DVDREAD_INTERNAL" |
5457 _def_dvdread='#undef USE_DVDREAD' | 5457 _def_dvdread='#undef CONFIG_DVDREAD' |
5458 _noinputmodules="dvdread $_noinputmodules" | 5458 _noinputmodules="dvdread $_noinputmodules" |
5459 fi | 5459 fi |
5460 echores "$_dvdread" | 5460 echores "$_dvdread" |
5461 | 5461 |
5462 | 5462 |
5690 if test "$_ass" = no ; then | 5690 if test "$_ass" = no ; then |
5691 _res_comment="FreeType >= 2.1.8 needed" | 5691 _res_comment="FreeType >= 2.1.8 needed" |
5692 fi | 5692 fi |
5693 fi | 5693 fi |
5694 if test "$_ass" = yes ; then | 5694 if test "$_ass" = yes ; then |
5695 _def_ass='#define USE_ASS' | 5695 _def_ass='#define CONFIG_ASS' |
5696 else | 5696 else |
5697 _def_ass='#undef USE_ASS' | 5697 _def_ass='#undef CONFIG_ASS' |
5698 fi | 5698 fi |
5699 echores "$_ass" | 5699 echores "$_ass" |
5700 | 5700 |
5701 | 5701 |
5702 echocheck "fribidi with charsets" | 5702 echocheck "fribidi with charsets" |
5720 else | 5720 else |
5721 _fribidi=no | 5721 _fribidi=no |
5722 fi | 5722 fi |
5723 fi | 5723 fi |
5724 if test "$_fribidi" = yes ; then | 5724 if test "$_fribidi" = yes ; then |
5725 _def_fribidi='#define USE_FRIBIDI' | 5725 _def_fribidi='#define CONFIG_FRIBIDI' |
5726 _inc_extra="$_inc_extra `$_fribidiconfig --cflags`" | 5726 _inc_extra="$_inc_extra `$_fribidiconfig --cflags`" |
5727 _ld_extra="$_ld_extra `$_fribidiconfig --libs`" | 5727 _ld_extra="$_ld_extra `$_fribidiconfig --libs`" |
5728 else | 5728 else |
5729 _def_fribidi='#undef USE_FRIBIDI' | 5729 _def_fribidi='#undef CONFIG_FRIBIDI' |
5730 fi | 5730 fi |
5731 echores "$_fribidi" | 5731 echores "$_fribidi" |
5732 | 5732 |
5733 | 5733 |
5734 echocheck "ENCA" | 5734 echocheck "ENCA" |
5761 int main(void) { (void) inflate(0, Z_NO_FLUSH); return 0; } | 5761 int main(void) { (void) inflate(0, Z_NO_FLUSH); return 0; } |
5762 EOF | 5762 EOF |
5763 _zlib=no | 5763 _zlib=no |
5764 cc_check -lz && _zlib=yes | 5764 cc_check -lz && _zlib=yes |
5765 if test "$_zlib" = yes ; then | 5765 if test "$_zlib" = yes ; then |
5766 _def_zlib='#define HAVE_ZLIB 1' | 5766 _def_zlib='#define CONFIG_ZLIB 1' |
5767 _ld_extra="$_ld_extra -lz" | 5767 _ld_extra="$_ld_extra -lz" |
5768 else | 5768 else |
5769 _def_zlib='#undef HAVE_ZLIB' | 5769 _def_zlib='#undef CONFIG_ZLIB' |
5770 _libavdecoders=`echo $_libavdecoders | sed -e s/FLASHSV_DECODER// -e s/PNG_DECODER// -e s/ZMBV_DECODER// -e s/DXA_DECODER// ` | 5770 _libavdecoders=`echo $_libavdecoders | sed -e s/FLASHSV_DECODER// -e s/PNG_DECODER// -e s/ZMBV_DECODER// -e s/DXA_DECODER// ` |
5771 _libavencoders=`echo $_libavencoders | sed -e s/FLASHSV_ENCODER// -e s/PNG_ENCODER// -e s/ZMBV_ENCODER// ` | 5771 _libavencoders=`echo $_libavencoders | sed -e s/FLASHSV_ENCODER// -e s/PNG_ENCODER// -e s/ZMBV_ENCODER// ` |
5772 fi | 5772 fi |
5773 echores "$_zlib" | 5773 echores "$_zlib" |
5774 | 5774 |
5805 int main(void) { lzo_init();return 0; } | 5805 int main(void) { lzo_init();return 0; } |
5806 EOF | 5806 EOF |
5807 cc_check -llzo2 && _liblzo=yes | 5807 cc_check -llzo2 && _liblzo=yes |
5808 fi | 5808 fi |
5809 if test "$_liblzo" = yes ; then | 5809 if test "$_liblzo" = yes ; then |
5810 _def_liblzo='#define USE_LIBLZO 1' | 5810 _def_liblzo='#define CONFIG_LIBLZO 1' |
5811 _ld_extra="$_ld_extra -llzo2" | 5811 _ld_extra="$_ld_extra -llzo2" |
5812 _codecmodules="liblzo $_codecmodules" | 5812 _codecmodules="liblzo $_codecmodules" |
5813 else | 5813 else |
5814 _def_liblzo='#undef USE_LIBLZO' | 5814 _def_liblzo='#undef CONFIG_LIBLZO' |
5815 _nocodecmodules="liblzo $_nocodecmodules" | 5815 _nocodecmodules="liblzo $_nocodecmodules" |
5816 fi | 5816 fi |
5817 echores "$_liblzo" | 5817 echores "$_liblzo" |
5818 | 5818 |
5819 | 5819 |
5825 int main(void) { return 0; } | 5825 int main(void) { return 0; } |
5826 EOF | 5826 EOF |
5827 cc_check -lmad && _mad=yes | 5827 cc_check -lmad && _mad=yes |
5828 fi | 5828 fi |
5829 if test "$_mad" = yes ; then | 5829 if test "$_mad" = yes ; then |
5830 _def_mad='#define USE_LIBMAD 1' | 5830 _def_mad='#define CONFIG_LIBMAD 1' |
5831 _ld_extra="$_ld_extra -lmad" | 5831 _ld_extra="$_ld_extra -lmad" |
5832 _codecmodules="libmad $_codecmodules" | 5832 _codecmodules="libmad $_codecmodules" |
5833 else | 5833 else |
5834 _def_mad='#undef USE_LIBMAD' | 5834 _def_mad='#undef CONFIG_LIBMAD' |
5835 _nocodecmodules="libmad $_nocodecmodules" | 5835 _nocodecmodules="libmad $_nocodecmodules" |
5836 fi | 5836 fi |
5837 echores "$_mad" | 5837 echores "$_mad" |
5838 | 5838 |
5839 echocheck "Twolame" | 5839 echocheck "Twolame" |
6007 fi | 6007 fi |
6008 echores "$_theora" | 6008 echores "$_theora" |
6009 | 6009 |
6010 echocheck "internal mp3lib support" | 6010 echocheck "internal mp3lib support" |
6011 if test "$_mp3lib" = yes ; then | 6011 if test "$_mp3lib" = yes ; then |
6012 _def_mp3lib='#define USE_MP3LIB 1' | 6012 _def_mp3lib='#define CONFIG_MP3LIB 1' |
6013 _codecmodules="mp3lib $_codecmodules" | 6013 _codecmodules="mp3lib $_codecmodules" |
6014 else | 6014 else |
6015 _def_mp3lib='#undef USE_MP3LIB' | 6015 _def_mp3lib='#undef CONFIG_MP3LIB' |
6016 _nocodecmodules="mp3lib $_nocodecmodules" | 6016 _nocodecmodules="mp3lib $_nocodecmodules" |
6017 fi | 6017 fi |
6018 echores "$_mp3lib" | 6018 echores "$_mp3lib" |
6019 | 6019 |
6020 echocheck "internal liba52 support" | 6020 echocheck "internal liba52 support" |
6021 if test "$_liba52" = yes ; then | 6021 if test "$_liba52" = yes ; then |
6022 _def_liba52='#define USE_LIBA52 1' | 6022 _def_liba52='#define CONFIG_LIBA52 1' |
6023 _codecmodules="liba52 $_codecmodules" | 6023 _codecmodules="liba52 $_codecmodules" |
6024 else | 6024 else |
6025 _def_liba52='#undef USE_LIBA52' | 6025 _def_liba52='#undef CONFIG_LIBA52' |
6026 _nocodecmodules="liba52 $_nocodecmodules" | 6026 _nocodecmodules="liba52 $_nocodecmodules" |
6027 fi | 6027 fi |
6028 echores "$_liba52" | 6028 echores "$_liba52" |
6029 | 6029 |
6030 echocheck "internal libmpeg2 support" | 6030 echocheck "internal libmpeg2 support" |
6038 ;; | 6038 ;; |
6039 esac | 6039 esac |
6040 fi | 6040 fi |
6041 fi | 6041 fi |
6042 if test "$_libmpeg2" = yes ; then | 6042 if test "$_libmpeg2" = yes ; then |
6043 _def_libmpeg2='#define USE_LIBMPEG2 1' | 6043 _def_libmpeg2='#define CONFIG_LIBMPEG2 1' |
6044 _codecmodules="libmpeg2 $_codecmodules" | 6044 _codecmodules="libmpeg2 $_codecmodules" |
6045 else | 6045 else |
6046 _def_libmpeg2='#undef USE_LIBMPEG2' | 6046 _def_libmpeg2='#undef CONFIG_LIBMPEG2' |
6047 _nocodecmodules="libmpeg2 $_nocodecmodules" | 6047 _nocodecmodules="libmpeg2 $_nocodecmodules" |
6048 fi | 6048 fi |
6049 echores "$_libmpeg2" | 6049 echores "$_libmpeg2" |
6050 | 6050 |
6051 echocheck "libdca support" | 6051 echocheck "libdca support" |
6060 cc_check $_ld_dca $_ld_lm && _ld_extra="$_ld_extra $_ld_dca" \ | 6060 cc_check $_ld_dca $_ld_lm && _ld_extra="$_ld_extra $_ld_dca" \ |
6061 && _libdca=yes && break | 6061 && _libdca=yes && break |
6062 done | 6062 done |
6063 fi | 6063 fi |
6064 if test "$_libdca" = yes ; then | 6064 if test "$_libdca" = yes ; then |
6065 _def_libdca='#define USE_LIBDCA 1' | 6065 _def_libdca='#define CONFIG_LIBDCA 1' |
6066 _codecmodules="libdca $_codecmodules" | 6066 _codecmodules="libdca $_codecmodules" |
6067 else | 6067 else |
6068 _def_libdca='#undef USE_LIBDCA' | 6068 _def_libdca='#undef CONFIG_LIBDCA' |
6069 _nocodecmodules="libdca $_nocodecmodules" | 6069 _nocodecmodules="libdca $_nocodecmodules" |
6070 fi | 6070 fi |
6071 echores "$_libdca" | 6071 echores "$_libdca" |
6072 | 6072 |
6073 echocheck "libmpcdec (musepack, version >= 1.2.1 required)" | 6073 echocheck "libmpcdec (musepack, version >= 1.2.1 required)" |
6155 EOF | 6155 EOF |
6156 cc_check -lfaad $_ld_lm && _faad_external=yes | 6156 cc_check -lfaad $_ld_lm && _faad_external=yes |
6157 fi | 6157 fi |
6158 | 6158 |
6159 if test "$_faad_internal" = yes ; then | 6159 if test "$_faad_internal" = yes ; then |
6160 _def_faad_internal="#define USE_FAAD_INTERNAL 1" | 6160 _def_faad_internal="#define CONFIG_FAAD_INTERNAL 1" |
6161 _faad=yes | 6161 _faad=yes |
6162 _res_comment="internal floating-point" | 6162 _res_comment="internal floating-point" |
6163 if test "$_faad_fixed" = yes ; then | 6163 if test "$_faad_fixed" = yes ; then |
6164 # The FIXED_POINT implementation of FAAD2 improves performance | 6164 # The FIXED_POINT implementation of FAAD2 improves performance |
6165 # on some platforms, especially for SBR files. | 6165 # on some platforms, especially for SBR files. |
6168 fi | 6168 fi |
6169 elif test "$_faad_external" = yes ; then | 6169 elif test "$_faad_external" = yes ; then |
6170 _faad=yes | 6170 _faad=yes |
6171 _ld_extra="$_ld_extra -lfaad" | 6171 _ld_extra="$_ld_extra -lfaad" |
6172 else | 6172 else |
6173 _def_faad_internal="#undef USE_FAAD_INTERNAL" | 6173 _def_faad_internal="#undef CONFIG_FAAD_INTERNAL" |
6174 _faad=no | 6174 _faad=no |
6175 fi | 6175 fi |
6176 | 6176 |
6177 if test "$_faad" = yes ; then | 6177 if test "$_faad" = yes ; then |
6178 _def_faad='#define HAVE_FAAD 1' | 6178 _def_faad='#define HAVE_FAAD 1' |
6228 if x86_32 && ! qnx; then | 6228 if x86_32 && ! qnx; then |
6229 _win32dll=yes | 6229 _win32dll=yes |
6230 fi | 6230 fi |
6231 fi | 6231 fi |
6232 if test "$_win32dll" = yes ; then | 6232 if test "$_win32dll" = yes ; then |
6233 _def_win32dll='#define USE_WIN32DLL 1' | 6233 _def_win32dll='#define CONFIG_WIN32DLL 1' |
6234 test -z "$_win32codecsdir" && _win32codecsdir=$_codecsdir | 6234 test -z "$_win32codecsdir" && _win32codecsdir=$_codecsdir |
6235 _res_comment="using $_win32codecsdir" | 6235 _res_comment="using $_win32codecsdir" |
6236 if ! win32 ; then | 6236 if ! win32 ; then |
6237 _def_win32_loader='#define WIN32_LOADER 1' | 6237 _def_win32_loader='#define WIN32_LOADER 1' |
6238 _win32_emulation=yes | 6238 _win32_emulation=yes |
6240 _ld_extra="$_ld_extra -ladvapi32 -lole32" | 6240 _ld_extra="$_ld_extra -ladvapi32 -lole32" |
6241 _res_comment="using native windows" | 6241 _res_comment="using native windows" |
6242 fi | 6242 fi |
6243 _codecmodules="win32 $_codecmodules" | 6243 _codecmodules="win32 $_codecmodules" |
6244 else | 6244 else |
6245 _def_win32dll='#undef USE_WIN32DLL' | 6245 _def_win32dll='#undef CONFIG_WIN32DLL' |
6246 _def_win32_loader='#undef WIN32_LOADER' | 6246 _def_win32_loader='#undef WIN32_LOADER' |
6247 _nocodecmodules="win32 $_nocodecmodules" | 6247 _nocodecmodules="win32 $_nocodecmodules" |
6248 fi | 6248 fi |
6249 echores "$_win32dll" | 6249 echores "$_win32dll" |
6250 | 6250 |
6257 _xanim=yes | 6257 _xanim=yes |
6258 fi | 6258 fi |
6259 fi | 6259 fi |
6260 if test "$_xanim" = yes ; then | 6260 if test "$_xanim" = yes ; then |
6261 test -z "$_xanimcodecsdir" && _xanimcodecsdir=$_codecsdir | 6261 test -z "$_xanimcodecsdir" && _xanimcodecsdir=$_codecsdir |
6262 _def_xanim='#define USE_XANIM 1' | 6262 _def_xanim='#define CONFIG_XANIM 1' |
6263 _def_xanim_path="#define XACODEC_PATH \"$_xanimcodecsdir\"" | 6263 _def_xanim_path="#define XACODEC_PATH \"$_xanimcodecsdir\"" |
6264 _codecmodules="xanim $_codecmodules" | 6264 _codecmodules="xanim $_codecmodules" |
6265 _res_comment="using $_xanimcodecsdir" | 6265 _res_comment="using $_xanimcodecsdir" |
6266 else | 6266 else |
6267 _def_xanim='#undef USE_XANIM' | 6267 _def_xanim='#undef CONFIG_XANIM' |
6268 _def_xanim_path='#undef XACODEC_PATH' | 6268 _def_xanim_path='#undef XACODEC_PATH' |
6269 _nocodecmodules="xanim $_nocodecmodules" | 6269 _nocodecmodules="xanim $_nocodecmodules" |
6270 fi | 6270 fi |
6271 echores "$_xanim" | 6271 echores "$_xanim" |
6272 | 6272 |
6280 _real=yes | 6280 _real=yes |
6281 fi | 6281 fi |
6282 fi | 6282 fi |
6283 if test "$_real" = yes ; then | 6283 if test "$_real" = yes ; then |
6284 test -z "$_realcodecsdir" && _realcodecsdir="$_codecsdir" | 6284 test -z "$_realcodecsdir" && _realcodecsdir="$_codecsdir" |
6285 _def_real='#define USE_REALCODECS 1' | 6285 _def_real='#define CONFIG_REALCODECS 1' |
6286 _def_real_path="#define REALCODEC_PATH \"$_realcodecsdir\"" | 6286 _def_real_path="#define REALCODEC_PATH \"$_realcodecsdir\"" |
6287 _codecmodules="real $_codecmodules" | 6287 _codecmodules="real $_codecmodules" |
6288 _res_comment="using $_realcodecsdir" | 6288 _res_comment="using $_realcodecsdir" |
6289 else | 6289 else |
6290 _def_real='#undef USE_REALCODECS' | 6290 _def_real='#undef CONFIG_REALCODECS' |
6291 _def_real_path="#undef REALCODEC_PATH" | 6291 _def_real_path="#undef REALCODEC_PATH" |
6292 _nocodecmodules="real $_nocodecmodules" | 6292 _nocodecmodules="real $_nocodecmodules" |
6293 fi | 6293 fi |
6294 echores "$_real" | 6294 echores "$_real" |
6295 | 6295 |
6296 | 6296 |
6297 echocheck "QuickTime codecs" | 6297 echocheck "QuickTime codecs" |
6298 _qtx_emulation=no | 6298 _qtx_emulation=no |
6299 _def_qtx_win32='#undef USE_QTX_CODECS_WIN32' | 6299 _def_qtx_win32='#undef CONFIG_QTX_CODECS_WIN32' |
6300 if test "$_qtx" = auto ; then | 6300 if test "$_qtx" = auto ; then |
6301 test "$_win32dll" = yes || darwin && _qtx=yes | 6301 test "$_win32dll" = yes || darwin && _qtx=yes |
6302 fi | 6302 fi |
6303 if test "$_qtx" = yes ; then | 6303 if test "$_qtx" = yes ; then |
6304 _def_qtx='#define USE_QTX_CODECS 1' | 6304 _def_qtx='#define CONFIG_QTX_CODECS 1' |
6305 win32 && _qtx_codecs_win32=yes && _def_qtx_win32='#define USE_QTX_CODECS_WIN32 1' | 6305 win32 && _qtx_codecs_win32=yes && _def_qtx_win32='#define CONFIG_QTX_CODECS_WIN32 1' |
6306 _codecmodules="qtx $_codecmodules" | 6306 _codecmodules="qtx $_codecmodules" |
6307 darwin || win32 || _qtx_emulation=yes | 6307 darwin || win32 || _qtx_emulation=yes |
6308 else | 6308 else |
6309 _def_qtx='#undef USE_QTX_CODECS' | 6309 _def_qtx='#undef CONFIG_QTX_CODECS' |
6310 _nocodecmodules="qtx $_nocodecmodules" | 6310 _nocodecmodules="qtx $_nocodecmodules" |
6311 fi | 6311 fi |
6312 echores "$_qtx" | 6312 echores "$_qtx" |
6313 | 6313 |
6314 echocheck "Nemesi Streaming Media libraries" | 6314 echocheck "Nemesi Streaming Media libraries" |
6407 _libavutil_so=yes | 6407 _libavutil_so=yes |
6408 _res_comment="using libavutil.so, but static libavutil is recommended" | 6408 _res_comment="using libavutil.so, but static libavutil is recommended" |
6409 fi | 6409 fi |
6410 fi | 6410 fi |
6411 _libavutil=no | 6411 _libavutil=no |
6412 _def_libavutil='#undef USE_LIBAVUTIL' | 6412 _def_libavutil='#undef CONFIG_LIBAVUTIL' |
6413 _def_libavutil_a='#undef USE_LIBAVUTIL_A' | 6413 _def_libavutil_a='#undef CONFIG_LIBAVUTIL_A' |
6414 _def_libavutil_so='#undef USE_LIBAVUTIL_SO' | 6414 _def_libavutil_so='#undef CONFIG_LIBAVUTIL_SO' |
6415 test "$_libavutil_a" = yes || test "$_libavutil_so" = yes && _libavutil=yes | 6415 test "$_libavutil_a" = yes || test "$_libavutil_so" = yes && _libavutil=yes |
6416 test "$_libavutil" = yes && _def_libavutil='#define USE_LIBAVUTIL 1' | 6416 test "$_libavutil" = yes && _def_libavutil='#define CONFIG_LIBAVUTIL 1' |
6417 test "$_libavutil_a" = yes && _def_libavutil_a='#define USE_LIBAVUTIL_A 1' | 6417 test "$_libavutil_a" = yes && _def_libavutil_a='#define CONFIG_LIBAVUTIL_A 1' |
6418 test "$_libavutil_so" = yes && _def_libavutil_so='#define USE_LIBAVUTIL_SO 1' | 6418 test "$_libavutil_so" = yes && _def_libavutil_so='#define CONFIG_LIBAVUTIL_SO 1' |
6419 # neither static nor shared libavutil is available, but it is mandatory ... | 6419 # neither static nor shared libavutil is available, but it is mandatory ... |
6420 if test "$_libavutil" = no ; then | 6420 if test "$_libavutil" = no ; then |
6421 die "You need static or shared libavutil, MPlayer will not compile without!" | 6421 die "You need static or shared libavutil, MPlayer will not compile without!" |
6422 fi | 6422 fi |
6423 echores "$_libavutil" | 6423 echores "$_libavutil" |
6446 _libavcodec_so=yes | 6446 _libavcodec_so=yes |
6447 _res_comment="using libavcodec.so, but static libavcodec is recommended" | 6447 _res_comment="using libavcodec.so, but static libavcodec is recommended" |
6448 fi | 6448 fi |
6449 fi | 6449 fi |
6450 _libavcodec=no | 6450 _libavcodec=no |
6451 _def_libavcodec='#undef USE_LIBAVCODEC' | 6451 _def_libavcodec='#undef CONFIG_LIBAVCODEC' |
6452 _def_libavcodec_a='#undef USE_LIBAVCODEC_A' | 6452 _def_libavcodec_a='#undef CONFIG_LIBAVCODEC_A' |
6453 _def_libavcodec_so='#undef USE_LIBAVCODEC_SO' | 6453 _def_libavcodec_so='#undef CONFIG_LIBAVCODEC_SO' |
6454 test "$_libavcodec_a" = yes || test "$_libavcodec_so" = yes && _libavcodec=yes | 6454 test "$_libavcodec_a" = yes || test "$_libavcodec_so" = yes && _libavcodec=yes |
6455 test "$_libavcodec" = yes && _def_libavcodec='#define USE_LIBAVCODEC 1' | 6455 test "$_libavcodec" = yes && _def_libavcodec='#define CONFIG_LIBAVCODEC 1' |
6456 test "$_libavcodec_a" = yes && _def_libavcodec_a='#define USE_LIBAVCODEC_A 1' | 6456 test "$_libavcodec_a" = yes && _def_libavcodec_a='#define CONFIG_LIBAVCODEC_A 1' |
6457 test "$_libavcodec_so" = yes && _def_libavcodec_so='#define USE_LIBAVCODEC_SO 1' | 6457 test "$_libavcodec_so" = yes && _def_libavcodec_so='#define CONFIG_LIBAVCODEC_SO 1' |
6458 test "$_libavcodec_mpegaudio_hp" = yes \ | 6458 test "$_libavcodec_mpegaudio_hp" = yes \ |
6459 && _def_libavcodec_mpegaudio_hp='#define CONFIG_MPEGAUDIO_HP 1' | 6459 && _def_libavcodec_mpegaudio_hp='#define CONFIG_MPEGAUDIO_HP 1' |
6460 if test "$_libavcodec_a" = yes ; then | 6460 if test "$_libavcodec_a" = yes ; then |
6461 _codecmodules="libavcodec $_codecmodules" | 6461 _codecmodules="libavcodec $_codecmodules" |
6462 elif test "$_libavcodec_so" = yes ; then | 6462 elif test "$_libavcodec_so" = yes ; then |
6490 _libavformat_so=yes | 6490 _libavformat_so=yes |
6491 _res_comment="using libavformat.so, but static libavformat is recommended" | 6491 _res_comment="using libavformat.so, but static libavformat is recommended" |
6492 fi | 6492 fi |
6493 fi | 6493 fi |
6494 _libavformat=no | 6494 _libavformat=no |
6495 _def_libavformat='#undef USE_LIBAVFORMAT' | 6495 _def_libavformat='#undef CONFIG_LIBAVFORMAT' |
6496 _def_libavformat_a='#undef USE_LIBAVFORMAT_A' | 6496 _def_libavformat_a='#undef CONFIG_LIBAVFORMAT_A' |
6497 _def_libavformat_so='#undef USE_LIBAVFORMAT_SO' | 6497 _def_libavformat_so='#undef CONFIG_LIBAVFORMAT_SO' |
6498 test "$_libavformat_a" = yes || test "$_libavformat_so" = yes && _libavformat=yes | 6498 test "$_libavformat_a" = yes || test "$_libavformat_so" = yes && _libavformat=yes |
6499 test "$_libavformat" = yes && _def_libavformat='#define USE_LIBAVFORMAT 1' | 6499 test "$_libavformat" = yes && _def_libavformat='#define CONFIG_LIBAVFORMAT 1' |
6500 test "$_libavformat_a" = yes && _def_libavformat_a='#define USE_LIBAVFORMAT_A 1' | 6500 test "$_libavformat_a" = yes && _def_libavformat_a='#define CONFIG_LIBAVFORMAT_A 1' |
6501 test "$_libavformat_so" = yes \ | 6501 test "$_libavformat_so" = yes \ |
6502 && _def_libavformat_so='#define USE_LIBAVFORMAT_SO 1' | 6502 && _def_libavformat_so='#define CONFIG_LIBAVFORMAT_SO 1' |
6503 echores "$_libavformat" | 6503 echores "$_libavformat" |
6504 | 6504 |
6505 echocheck "FFmpeg libpostproc" | 6505 echocheck "FFmpeg libpostproc" |
6506 if test "$_libpostproc_a" = auto ; then | 6506 if test "$_libpostproc_a" = auto ; then |
6507 _libpostproc_a=no | 6507 _libpostproc_a=no |
6510 _res_comment="static" | 6510 _res_comment="static" |
6511 fi | 6511 fi |
6512 elif test "$_libpostproc_so" = auto ; then | 6512 elif test "$_libpostproc_so" = auto ; then |
6513 _libpostproc_so=no | 6513 _libpostproc_so=no |
6514 cat > $TMPC << EOF | 6514 cat > $TMPC << EOF |
6515 #define USE_LIBPOSTPROC 1 | 6515 #define CONFIG_LIBPOSTPROC 1 |
6516 #include <inttypes.h> | 6516 #include <inttypes.h> |
6517 #include <libpostproc/postprocess.h> | 6517 #include <libpostproc/postprocess.h> |
6518 int main(void) { pp_get_mode_by_name_and_quality("de", 0); return 0; } | 6518 int main(void) { pp_get_mode_by_name_and_quality("de", 0); return 0; } |
6519 EOF | 6519 EOF |
6520 if cc_check -lpostproc $_ld_lm ; then | 6520 if cc_check -lpostproc $_ld_lm ; then |
6522 _libpostproc_so=yes | 6522 _libpostproc_so=yes |
6523 _res_comment="using libpostproc.so, but static libpostproc is recommended" | 6523 _res_comment="using libpostproc.so, but static libpostproc is recommended" |
6524 fi | 6524 fi |
6525 fi | 6525 fi |
6526 _libpostproc=no | 6526 _libpostproc=no |
6527 _def_libpostproc='#undef USE_LIBPOSTPROC' | 6527 _def_libpostproc='#undef CONFIG_LIBPOSTPROC' |
6528 _def_libpostproc_a='#undef USE_LIBPOSTPROC_A' | 6528 _def_libpostproc_a='#undef CONFIG_LIBPOSTPROC_A' |
6529 _def_libpostproc_so='#undef USE_LIBPOSTPROC_SO' | 6529 _def_libpostproc_so='#undef CONFIG_LIBPOSTPROC_SO' |
6530 test "$_libpostproc_a" = yes || test "$_libpostproc_so" = yes && _libpostproc=yes | 6530 test "$_libpostproc_a" = yes || test "$_libpostproc_so" = yes && _libpostproc=yes |
6531 test "$_libpostproc" = yes && _def_libpostproc='#define USE_LIBPOSTPROC 1' | 6531 test "$_libpostproc" = yes && _def_libpostproc='#define CONFIG_LIBPOSTPROC 1' |
6532 test "$_libpostproc_a" = yes && _def_libpostproc_a='#define USE_LIBPOSTPROC_A 1' | 6532 test "$_libpostproc_a" = yes && _def_libpostproc_a='#define CONFIG_LIBPOSTPROC_A 1' |
6533 test "$_libpostproc_so" = yes \ | 6533 test "$_libpostproc_so" = yes \ |
6534 && _def_libpostproc_so='#define USE_LIBPOSTPROC_SO 1' | 6534 && _def_libpostproc_so='#define CONFIG_LIBPOSTPROC_SO 1' |
6535 echores "$_libpostproc" | 6535 echores "$_libpostproc" |
6536 | 6536 |
6537 | 6537 |
6538 echocheck "libamr narrowband" | 6538 echocheck "libamr narrowband" |
6539 if test "$_libamr_nb" = auto ; then | 6539 if test "$_libamr_nb" = auto ; then |
6864 echores "$_mencoder" | 6864 echores "$_mencoder" |
6865 | 6865 |
6866 echocheck "fastmemcpy" | 6866 echocheck "fastmemcpy" |
6867 # fastmemcpy check is done earlier with tests of CPU & binutils features | 6867 # fastmemcpy check is done earlier with tests of CPU & binutils features |
6868 if test "$_fastmemcpy" = yes ; then | 6868 if test "$_fastmemcpy" = yes ; then |
6869 _def_fastmemcpy='#define USE_FASTMEMCPY 1' | 6869 _def_fastmemcpy='#define CONFIG_FASTMEMCPY 1' |
6870 else | 6870 else |
6871 _def_fastmemcpy='#undef USE_FASTMEMCPY' | 6871 _def_fastmemcpy='#undef CONFIG_FASTMEMCPY' |
6872 fi | 6872 fi |
6873 echores "$_fastmemcpy" | 6873 echores "$_fastmemcpy" |
6874 | 6874 |
6875 | 6875 |
6876 echocheck "UnRAR executable" | 6876 echocheck "UnRAR executable" |
6877 if test "$_unrar_exec" = auto ; then | 6877 if test "$_unrar_exec" = auto ; then |
6878 _unrar_exec="yes" | 6878 _unrar_exec="yes" |
6879 mingw32 && _unrar_exec="no" | 6879 mingw32 && _unrar_exec="no" |
6880 fi | 6880 fi |
6881 if test "$_unrar_exec" = yes ; then | 6881 if test "$_unrar_exec" = yes ; then |
6882 _def_unrar_exec='#define USE_UNRAR_EXEC 1' | 6882 _def_unrar_exec='#define CONFIG_UNRAR_EXEC 1' |
6883 else | 6883 else |
6884 _def_unrar_exec='#undef USE_UNRAR_EXEC' | 6884 _def_unrar_exec='#undef CONFIG_UNRAR_EXEC' |
6885 fi | 6885 fi |
6886 echores "$_unrar_exec" | 6886 echores "$_unrar_exec" |
6887 | 6887 |
6888 echocheck "TV interface" | 6888 echocheck "TV interface" |
6889 if test "$_tv" = yes ; then | 6889 if test "$_tv" = yes ; then |
6890 _def_tv='#define USE_TV 1' | 6890 _def_tv='#define CONFIG_TV 1' |
6891 _inputmodules="tv $_inputmodules" | 6891 _inputmodules="tv $_inputmodules" |
6892 else | 6892 else |
6893 _noinputmodules="tv $_noinputmodules" | 6893 _noinputmodules="tv $_noinputmodules" |
6894 _def_tv='#undef USE_TV' | 6894 _def_tv='#undef CONFIG_TV' |
6895 fi | 6895 fi |
6896 echores "$_tv" | 6896 echores "$_tv" |
6897 | 6897 |
6898 | 6898 |
6899 if freebsd || netbsd || openbsd || dragonfly || bsdos ; then | 6899 if freebsd || netbsd || openbsd || dragonfly || bsdos ; then |
7077 echores "$_tv_teletext" | 7077 echores "$_tv_teletext" |
7078 | 7078 |
7079 | 7079 |
7080 echocheck "Radio interface" | 7080 echocheck "Radio interface" |
7081 if test "$_radio" = yes ; then | 7081 if test "$_radio" = yes ; then |
7082 _def_radio='#define USE_RADIO 1' | 7082 _def_radio='#define CONFIG_RADIO 1' |
7083 _inputmodules="radio $_inputmodules" | 7083 _inputmodules="radio $_inputmodules" |
7084 if test "$_alsa9" != yes -a "$_alsa1x" != yes -a "$_ossaudio" != yes ; then | 7084 if test "$_alsa9" != yes -a "$_alsa1x" != yes -a "$_ossaudio" != yes ; then |
7085 _radio_capture=no | 7085 _radio_capture=no |
7086 fi | 7086 fi |
7087 if test "$_radio_capture" = yes ; then | 7087 if test "$_radio_capture" = yes ; then |
7088 _audio_input=yes | 7088 _audio_input=yes |
7089 _def_radio_capture="#define USE_RADIO_CAPTURE 1" | 7089 _def_radio_capture="#define CONFIG_RADIO_CAPTURE 1" |
7090 else | 7090 else |
7091 _def_radio_capture="#undef USE_RADIO_CAPTURE" | 7091 _def_radio_capture="#undef CONFIG_RADIO_CAPTURE" |
7092 fi | 7092 fi |
7093 else | 7093 else |
7094 _noinputmodules="radio $_noinputmodules" | 7094 _noinputmodules="radio $_noinputmodules" |
7095 _def_radio='#undef USE_RADIO' | 7095 _def_radio='#undef CONFIG_RADIO' |
7096 _def_radio_capture="#undef USE_RADIO_CAPTURE" | 7096 _def_radio_capture="#undef CONFIG_RADIO_CAPTURE" |
7097 _radio_capture=no | 7097 _radio_capture=no |
7098 fi | 7098 fi |
7099 echores "$_radio" | 7099 echores "$_radio" |
7100 echocheck "Capture for Radio interface" | 7100 echocheck "Capture for Radio interface" |
7101 echores "$_radio_capture" | 7101 echores "$_radio_capture" |
7267 echores "$_menu" | 7267 echores "$_menu" |
7268 | 7268 |
7269 | 7269 |
7270 echocheck "Subtitles sorting" | 7270 echocheck "Subtitles sorting" |
7271 if test "$_sortsub" = yes ; then | 7271 if test "$_sortsub" = yes ; then |
7272 _def_sortsub='#define USE_SORTSUB 1' | 7272 _def_sortsub='#define CONFIG_SORTSUB 1' |
7273 else | 7273 else |
7274 _def_sortsub='#undef USE_SORTSUB' | 7274 _def_sortsub='#undef CONFIG_SORTSUB' |
7275 fi | 7275 fi |
7276 echores "$_sortsub" | 7276 echores "$_sortsub" |
7277 | 7277 |
7278 | 7278 |
7279 echocheck "XMMS inputplugin support" | 7279 echocheck "XMMS inputplugin support" |
7628 _dvdnavlibs=`$_dvdnavconfig --libs` | 7628 _dvdnavlibs=`$_dvdnavconfig --libs` |
7629 cc_check $_dvdnavdir $_dvdnavlibs $_ld_dl $_ld_pthread && _dvdnav=yes | 7629 cc_check $_dvdnavdir $_dvdnavlibs $_ld_dl $_ld_pthread && _dvdnav=yes |
7630 fi | 7630 fi |
7631 if test "$_dvdnav" = yes ; then | 7631 if test "$_dvdnav" = yes ; then |
7632 _largefiles=yes | 7632 _largefiles=yes |
7633 _def_dvdnav='#define USE_DVDNAV 1' | 7633 _def_dvdnav='#define CONFIG_DVDNAV 1' |
7634 _inc_extra="$_inc_extra `$_dvdnavconfig --cflags`" | 7634 _inc_extra="$_inc_extra `$_dvdnavconfig --cflags`" |
7635 _ld_extra="$_ld_extra `$_dvdnavconfig --minilibs`" | 7635 _ld_extra="$_ld_extra `$_dvdnavconfig --minilibs`" |
7636 _inputmodules="dvdnav $_inputmodules" | 7636 _inputmodules="dvdnav $_inputmodules" |
7637 else | 7637 else |
7638 _def_dvdnav='#undef USE_DVDNAV' | 7638 _def_dvdnav='#undef CONFIG_DVDNAV' |
7639 _noinputmodules="dvdnav $_noinputmodules" | 7639 _noinputmodules="dvdnav $_noinputmodules" |
7640 fi | 7640 fi |
7641 echores "$_dvdnav" | 7641 echores "$_dvdnav" |
7642 | 7642 |
7643 | 7643 |
8103 /* Undefine this if you do not want to select mono audio (left or right) | 8103 /* Undefine this if you do not want to select mono audio (left or right) |
8104 with a stereo MPEG layer 2/3 audio stream. The command line option | 8104 with a stereo MPEG layer 2/3 audio stream. The command line option |
8105 -stereo has three possible values (0 for stereo, 1 for left-only, 2 for | 8105 -stereo has three possible values (0 for stereo, 1 for left-only, 2 for |
8106 right-only), with 0 being the default. | 8106 right-only), with 0 being the default. |
8107 */ | 8107 */ |
8108 #define USE_FAKE_MONO 1 | 8108 #define CONFIG_FAKE_MONO 1 |
8109 | 8109 |
8110 /* Undefine this if your sound card driver has no working select(). | 8110 /* Undefine this if your sound card driver has no working select(). |
8111 If you have kernel Oops, player hangups, or just no audio, you should | 8111 If you have kernel Oops, player hangups, or just no audio, you should |
8112 try to recompile MPlayer with this option disabled! */ | 8112 try to recompile MPlayer with this option disabled! */ |
8113 $_def_select | 8113 $_def_select |