Mercurial > mplayer.hg
comparison configure @ 3430:d461d729321c
mencoder was still being built (unsucessfully) if mp3lame was missing
added a few comments to config.h
author | pl |
---|---|
date | Mon, 10 Dec 2001 12:07:03 +0000 |
parents | a49c8eb623db |
children | 5cb7caab5536 |
comparison
equal
deleted
inserted
replaced
3429:c410e4abc6be | 3430:d461d729321c |
---|---|
638 # GOTCHA: the variables below defines the default behavior for autodetection | 638 # GOTCHA: the variables below defines the default behavior for autodetection |
639 # and have - unless stated otherwise - at least 2 states : yes no | 639 # and have - unless stated otherwise - at least 2 states : yes no |
640 # If autodetection is available then the third state is: auto | 640 # If autodetection is available then the third state is: auto |
641 _libavcodec=auto | 641 _libavcodec=auto |
642 _libavcodecso=no # changed default to no as it causes problems - atmos | 642 _libavcodecso=no # changed default to no as it causes problems - atmos |
643 _mp3lame=auto | |
644 _mencoder=auto | 643 _mencoder=auto |
645 _x11=auto | 644 _x11=auto |
646 _dga=auto # 1 2 no auto | 645 _dga=auto # 1 2 no auto |
647 _xv=auto | 646 _xv=auto |
648 _sdl=auto | 647 _sdl=auto |
2311 _ld_decore='-ldivxdecore opendivx/postprocess.o' | 2310 _ld_decore='-ldivxdecore opendivx/postprocess.o' |
2312 _codecmodules="divx4linux $_codecmodules" | 2311 _codecmodules="divx4linux $_codecmodules" |
2313 fi | 2312 fi |
2314 | 2313 |
2315 | 2314 |
2316 echocheck "libmp3lame (for mencoder)" | 2315 # mencoder requires those libs: libmp3lame and divx4linux encore |
2317 if test "$_mp3lame" = auto ; then | 2316 if test "$_mencoder" != no ; then |
2317 _mencoder=no | |
2318 | |
2319 echocheck "libmp3lame (required for mencoder)" | |
2320 _mp3lame=no | |
2318 cat > $TMPC <<EOF | 2321 cat > $TMPC <<EOF |
2319 #include <lame/lame.h> | 2322 #include <lame/lame.h> |
2320 int main(void) { (void) lame_init(); return 0; } | 2323 int main(void) { (void) lame_init(); return 0; } |
2321 EOF | 2324 EOF |
2322 _mp3lame=no | |
2323 # Note: libmp3lame usually depends on vorbis | 2325 # Note: libmp3lame usually depends on vorbis |
2324 if cc_check -lmp3lame $_ld_vorbis -lm ; then | 2326 cc_check -lmp3lame $_ld_vorbis -lm && _mp3lame=yes |
2325 _mp3lame=yes | 2327 if test "$_mp3lame" = yes ; then |
2326 fi | |
2327 fi | |
2328 if test "$_mp3lame" = yes ; then | |
2329 _def_mp3lame='#define HAVE_MP3LAME 1' | 2328 _def_mp3lame='#define HAVE_MP3LAME 1' |
2330 _ld_mp3lame="-lmp3lame $_ld_vorbis" | 2329 _ld_mp3lame="-lmp3lame $_ld_vorbis" |
2331 else | 2330 else |
2332 _def_mp3lame='#undef HAVE_MP3LAME' | 2331 _def_mp3lame='#undef HAVE_MP3LAME' |
2333 fi | 2332 fi |
2334 echores "$_mp3lame" | 2333 echores "$_mp3lame" |
2335 | 2334 |
2336 | 2335 echocheck "Divx4linux encore (required for mencoder)" |
2337 echocheck "divx4 encore (for mencoder)" | 2336 _divx4linux_encore=no |
2338 #mencoder requires those libs | |
2339 if test "$_mencoder" != no ; then | |
2340 cat > $TMPC <<EOF | 2337 cat > $TMPC <<EOF |
2341 #include <encore2.h> | 2338 #include <encore2.h> |
2342 int main(void) { (void) encore(0, 0, 0, 0); return 0; } | 2339 int main(void) { (void) encore(0, 0, 0, 0); return 0; } |
2343 EOF | 2340 EOF |
2344 _mencoder=no | |
2345 if cc_check -ldivxencore -lm ; then | 2341 if cc_check -ldivxencore -lm ; then |
2346 _mencoder=yes | 2342 _divx4linux_encore=yes |
2343 _def_encore='#define NEW_ENCORE 1' | |
2347 _ld_encore='-ldivxencore' | 2344 _ld_encore='-ldivxencore' |
2348 fi | 2345 else |
2349 fi | 2346 _def_encore='#undef NEW_ENCORE' |
2350 if test "$_mencoder" = yes ; then | 2347 fi |
2351 _def_encore='#define NEW_ENCORE 1' | 2348 echores "$_divx4linux_encore" |
2352 else | 2349 |
2353 _def_encore='#undef NEW_ENCORE' | 2350 test "$_mp3lame" = yes && test "$_divx4linux_encore" = yes && _mencoder=yes |
2354 fi | 2351 fi |
2355 echores "$_mencoder" | 2352 |
2356 | 2353 |
2357 echocheck "lirc" | 2354 echocheck "lirc" |
2358 if test "$_lirc" = auto ; then | 2355 if test "$_lirc" = auto ; then |
2359 _lirc=no | 2356 _lirc=no |
2360 if test -c /dev/lirc ; then | 2357 if test -c /dev/lirc ; then |
2682 EOF | 2679 EOF |
2683 | 2680 |
2684 ############################################################################# | 2681 ############################################################################# |
2685 echo "Creating config.h" | 2682 echo "Creating config.h" |
2686 cat > config.h << EOF | 2683 cat > config.h << EOF |
2687 /* -------- Generated by configure ----------- */ | 2684 /* -------- This file has been automatically generated by configure --------- |
2685 Note: Any changes in it will be lost when you run configure again. */ | |
2688 | 2686 |
2689 /* define this to use simple idct with patched libavcodec */ | 2687 /* define this to use simple idct with patched libavcodec */ |
2690 #define SIMPLE_IDCT 1 | 2688 #define SIMPLE_IDCT 1 |
2691 | 2689 |
2692 #define USE_OSD 1 | 2690 #define USE_OSD 1 |
2693 #define USE_SUB 1 | 2691 #define USE_SUB 1 |
2694 | 2692 |
2693 /* Toggles debugging informations */ | |
2695 $_def_debug | 2694 $_def_debug |
2696 | 2695 |
2696 /* Indicates is Ogle's libdvdread is available for DVD playback */ | |
2697 $_def_dvdread | 2697 $_def_dvdread |
2698 | 2698 |
2699 /* Common data directory (for fonts, etc) */ | 2699 /* Common data directory (for fonts, etc) */ |
2700 #define DATADIR "$_datadir" | 2700 #define DATADIR "$_datadir" |
2701 | 2701 |
2704 #define USE_STREAM_CACHE 1 | 2704 #define USE_STREAM_CACHE 1 |
2705 | 2705 |
2706 /* Define for using new DivX4Linux library, instead of open-source OpenDivX */ | 2706 /* Define for using new DivX4Linux library, instead of open-source OpenDivX */ |
2707 /* You have to change DECORE_LIBS in config.mak too! */ | 2707 /* You have to change DECORE_LIBS in config.mak too! */ |
2708 $_def_decore | 2708 $_def_decore |
2709 | |
2710 /* Indicates if Divx4linux encore is available | |
2711 Note: REQUIRED for mencoder */ | |
2709 $_def_encore | 2712 $_def_encore |
2710 | 2713 |
2714 /* Indicates if libmp3lame is available | |
2715 Note: REQUIRED for mencoder */ | |
2711 $_def_mp3lame | 2716 $_def_mp3lame |
2712 | 2717 |
2713 /* Define this to enable avg. byte/sec-based AVI sync method by default: | 2718 /* Define this to enable avg. byte/sec-based AVI sync method by default: |
2714 (use -bps or -nobps commandline option for run-time method selection) | 2719 (use -bps or -nobps commandline option for run-time method selection) |
2715 -bps gives better sync for vbr mp3 audio, it is now default */ | 2720 -bps gives better sync for vbr mp3 audio, it is now default */ |