Mercurial > mplayer.hg
comparison configure @ 3079:d8d342750ed5
(on atmos's suggestions I found good :)
default is autodetection (if lame and divxencore libs found then compile it)
use --enable-mencoder or --disable-mencoder to alter this behavior
Makefile modified accordingly (uninstall and other ifeq...)
removed XMM_* since XMMP no longer there
author | pl |
---|---|
date | Fri, 23 Nov 2001 00:21:51 +0000 |
parents | c649cfd313e1 |
children | 79b3ce698c15 |
comparison
equal
deleted
inserted
replaced
3078:c649cfd313e1 | 3079:d8d342750ed5 |
---|---|
106 --prefix=DIR use this prefix for installing mplayer [/usr/local] | 106 --prefix=DIR use this prefix for installing mplayer [/usr/local] |
107 --datadir=DIR use this prefix for installing machine independent | 107 --datadir=DIR use this prefix for installing machine independent |
108 data [/usr/local/share/mplayer] | 108 data [/usr/local/share/mplayer] |
109 | 109 |
110 Optional features: | 110 Optional features: |
111 --disable-mencoder disable mencoder [autodetect] | |
111 --enable-largefiles enable support for files >2^32 bytes long [disable] | 112 --enable-largefiles enable support for files >2^32 bytes long [disable] |
112 --enable-termcap use termcap database for key codes [autodetect] | 113 --enable-termcap use termcap database for key codes [autodetect] |
113 --enable-lirc enable LIRC (remote control) support [autodetect] | 114 --enable-lirc enable LIRC (remote control) support [autodetect] |
114 --enable-gui enable GUI [disable] | 115 --enable-gui enable GUI [disable] |
115 --enable-tv enable TV Interface (tv/dvb grabbers) [disable] | 116 --enable-tv enable TV Interface (tv/dvb grabbers) [disable] |
627 _prefix="/usr/local" | 628 _prefix="/usr/local" |
628 | 629 |
629 _libavcodec=auto | 630 _libavcodec=auto |
630 _libavcodecso=auto | 631 _libavcodecso=auto |
631 | 632 |
633 _mencoder=auto | |
632 _x11=auto | 634 _x11=auto |
633 _dga=auto | 635 _dga=auto |
634 _dga2=auto | 636 _dga2=auto |
635 _xv=auto | 637 _xv=auto |
636 _sdl=auto | 638 _sdl=auto |
689 --with-extraincdir=*) ;; | 691 --with-extraincdir=*) ;; |
690 --with-extralibdir=*) ;; | 692 --with-extralibdir=*) ;; |
691 | 693 |
692 | 694 |
693 # Real 2nd pass | 695 # Real 2nd pass |
696 --enable-mencoder) _mencoder=yes ;; | |
697 --disable-mencoder) _mencoder=no ;; | |
694 --enable-x11) _x11=yes ;; | 698 --enable-x11) _x11=yes ;; |
695 --disable-x11) _x11=no ;; | 699 --disable-x11) _x11=no ;; |
696 --enable-dga) _dga=yes ;; | 700 --enable-dga) _dga=yes ;; |
697 --disable-dga) _dga=no ;; | 701 --disable-dga) _dga=no ;; |
698 --enable-dga2) _dga2=yes ;; | 702 --enable-dga2) _dga2=yes ;; |
2146 else | 2150 else |
2147 _divx4linux_decore='not found' | 2151 _divx4linux_decore='not found' |
2148 fi | 2152 fi |
2149 echores "$_divx4linux_decore" | 2153 echores "$_divx4linux_decore" |
2150 test "$_divx4linux_decore" = yes && _divx4linux=yes | 2154 test "$_divx4linux_decore" = yes && _divx4linux=yes |
2151 echocheck "Divx4linux encore (for mencoder)" | |
2152 cat > $TMPC <<EOF | |
2153 #include <encore2.h> | |
2154 int main(void) { (void) encore(0, 0, 0, 0); return 0; } | |
2155 EOF | |
2156 _divx4linux_encore=no | |
2157 cc_check -ldivxencore -lm && _divx4linux_encore=yes | |
2158 echores "$_divx4linux_encore" | |
2159 fi | 2155 fi |
2160 _def_decore='#undef NEW_DECORE' | 2156 _def_decore='#undef NEW_DECORE' |
2161 _ld_decore='-Lopendivx -ldecore' | 2157 _ld_decore='-Lopendivx -ldecore' |
2162 _def_encore='#undef NEW_ENCORE' | |
2163 if test "$_divx4linux_decore" = yes ; then | 2158 if test "$_divx4linux_decore" = yes ; then |
2164 _def_decore='#define NEW_DECORE 1' | 2159 _def_decore='#define NEW_DECORE 1' |
2165 _ld_decore='-ldivxdecore opendivx/postprocess.o' | 2160 _ld_decore='-ldivxdecore opendivx/postprocess.o' |
2166 if test "$_divx4linux_encore" = yes ; then | 2161 fi |
2167 _def_encore='#define NEW_ENCORE 1' | 2162 |
2168 _ld_encore='-ldivxencore' | 2163 |
2169 fi | 2164 echocheck "lame and encore (for mencoder)" |
2170 fi | 2165 #mencoder requires those libs |
2166 if test "$_mencoder" != no ; then | |
2167 cat > $TMPC <<EOF | |
2168 #include <encore2.h> | |
2169 #include <lame/lame.h> | |
2170 int main(void) { (void) lame_init(); (void) encore(0, 0, 0, 0); return 0; } | |
2171 EOF | |
2172 _mencoder=no | |
2173 if cc_check -lmp3lame -ldivxencore -lm ; then | |
2174 _mencoder=yes | |
2175 _ld_encore='-lmp3lame -ldivxencore -lm' | |
2176 elif cc_check -lmp3lame $_ld_vorbis -ldivxencore -lm ; then | |
2177 _mencoder=yes | |
2178 _ld_encore="-lmp3lame -ldivxencore -lm $_ld_vorbis" | |
2179 fi | |
2180 fi | |
2181 if test "$_mencoder" = yes ; then | |
2182 _def_encore='#define NEW_ENCORE 1' | |
2183 else | |
2184 _def_encore='#undef NEW_ENCORE' | |
2185 fi | |
2186 echores "$_mencoder" | |
2171 | 2187 |
2172 | 2188 |
2173 echocheck "lirc" | 2189 echocheck "lirc" |
2174 if test "$_lirc" = auto ; then | 2190 if test "$_lirc" = auto ; then |
2175 _lirc=no | 2191 _lirc=no |
2409 ALSA_LIB = $_ld_alsa | 2425 ALSA_LIB = $_ld_alsa |
2410 SGI_AUDIO_LIB = $_ld_sgiaudio | 2426 SGI_AUDIO_LIB = $_ld_sgiaudio |
2411 ARCH_LIBS = $_ld_static $_ld_arch $_ld_iconv | 2427 ARCH_LIBS = $_ld_static $_ld_arch $_ld_iconv |
2412 DIVX4LINUX = $_ld_static $_divx4linux | 2428 DIVX4LINUX = $_ld_static $_divx4linux |
2413 DECORE_LIBS = $_ld_static $_ld_decore | 2429 DECORE_LIBS = $_ld_static $_ld_decore |
2414 ENCORE_LIBS = $_ld_static $_ld_encore | 2430 MENCODER = $_mencoder |
2431 ENCORE_LIBS = $_ld_static $_ld_encore | |
2415 HAVE_MLIB = $_mlib | 2432 HAVE_MLIB = $_mlib |
2416 MLIB_INC = $_inc_mlib | 2433 MLIB_INC = $_inc_mlib |
2417 MLIB_LIB = $_ld_static $_ld_mlib | 2434 MLIB_LIB = $_ld_static $_ld_mlib |
2418 MADLIB_LIB = $_madlibdir | 2435 MADLIB_LIB = $_madlibdir |
2419 STATIC = $_ld_static | 2436 STATIC = $_ld_static |