Mercurial > mplayer.hg
comparison configure @ 440:d19a3da6ac13
Pontscho's mixer, select, and hell-a-lot-of-stuff patch ;)
author | gabucino |
---|---|
date | Sun, 15 Apr 2001 18:35:17 +0000 |
parents | 1afdd7a8eaf9 |
children | 198b46b739d8 |
comparison
equal
deleted
inserted
replaced
439:fc760523e55a | 440:d19a3da6ac13 |
---|---|
3 # | 3 # |
4 # MPlayer configurator. (C) 2000 Pontscho/fresh!mindworkz | 4 # MPlayer configurator. (C) 2000 Pontscho/fresh!mindworkz |
5 # pontscho@makacs.poliod.hu | 5 # pontscho@makacs.poliod.hu |
6 # | 6 # |
7 # Changes in reversed order: | 7 # Changes in reversed order: |
8 # | |
9 # 2001/04/15 by Pontscho | |
10 # - added --disable-select option | |
11 # - added X11DIR variable in config.mak and fix syncfb Makefile -L/usr/X11/lib bug | |
8 # | 12 # |
9 # 2001/03/24 by Mike Graffam: | 13 # 2001/03/24 by Mike Graffam: |
10 # - added autodetect code for XF86VidMode, along with explicit --enable-vm | 14 # - added autodetect code for XF86VidMode, along with explicit --enable-vm |
11 # | 15 # |
12 # 2001/03/22 by Bivanbi: | 16 # 2001/03/22 by Bivanbi: |
87 --enable-fbdev build with FBDev render support [_not_ autodetected] | 91 --enable-fbdev build with FBDev render support [_not_ autodetected] |
88 --enable-mlib build with MLIB support ( only Solaris ) | 92 --enable-mlib build with MLIB support ( only Solaris ) |
89 | 93 |
90 --enable-termcap use termcap database for key codes | 94 --enable-termcap use termcap database for key codes |
91 --enable-xmmp use XMMP audio drivers | 95 --enable-xmmp use XMMP audio drivers |
92 --enable-lirc enable LIRC (remote control) support | 96 --enable-lirc enable LIRC ( remote control ) support |
97 | |
98 --disable-select disable audio select() support ( for example required this | |
99 option ALSA or Vortex2 driver ) | |
93 | 100 |
94 --with-x11libdir=DIR X library files are in DIR | 101 --with-x11libdir=DIR X library files are in DIR |
95 --with-win32libdir=DIR windows codec files | 102 --with-win32libdir=DIR windows codec files |
96 | 103 |
97 --size-x=SIZE default screen width | 104 --size-x=SIZE default screen width |
128 MCONF='config.mak' | 135 MCONF='config.mak' |
129 | 136 |
130 # --- Check for C compiler: | 137 # --- Check for C compiler: |
131 | 138 |
132 _cc=gcc | 139 _cc=gcc |
133 _x11=auto | |
134 | |
135 _x11libdir= | |
136 if [ -e /usr/X11R6 ]; then | |
137 _x11libdir=-L/usr/X11R6/lib | |
138 else | |
139 if [ -e /usr/X11 ]; then | |
140 _x11libdir=-L/usr/X11/lib | |
141 fi | |
142 fi | |
143 | 140 |
144 for ac_option | 141 for ac_option |
145 do | 142 do |
146 case "$ac_option" in | 143 case "$ac_option" in |
147 --cc=*) | 144 --cc=*) |
148 _cc=`echo $ac_option | cut -d '=' -f 2` | 145 _cc=`echo $ac_option | cut -d '=' -f 2` |
149 ;; | |
150 --with-x11libdir=*) | |
151 _x11libdir=-L`echo $ac_option | cut -d '=' -f 2` | |
152 ;; | |
153 --enable-x11) | |
154 _x11=yes | |
155 ;; | |
156 --disable-x11) | |
157 _x11=no | |
158 ;; | 146 ;; |
159 esac | 147 esac |
160 done | 148 done |
161 | 149 |
162 # --- | 150 # --- |
180 _mga=no | 168 _mga=no |
181 _gl=no | 169 _gl=no |
182 _sdl=no | 170 _sdl=no |
183 _xv=no | 171 _xv=no |
184 _vm=no | 172 _vm=no |
173 _x11=no | |
185 _3dfx=no | 174 _3dfx=no |
186 _syncfb=no | 175 _syncfb=no |
187 _mlib=no | 176 _mlib=no |
188 _mpg123=no | 177 _mpg123=no |
189 _xmga=no | 178 _xmga=no |
190 _dga=no | 179 _dga=no |
191 _dga2=no | 180 _dga2=no |
192 _svga=no | 181 _svga=no |
193 _fbdev=yes | 182 _fbdev=no |
194 _lirc=no | 183 _lirc=no |
195 _xdpms=no | 184 _xdpms=no |
196 | 185 |
197 _x=1 | 186 _x=1 |
198 _y=1 | 187 _y=1 |
199 | 188 |
200 _gllib= | 189 _gllib= |
201 _sdllib= | 190 _sdllib= |
191 _x11lib= | |
202 _xvlib= | 192 _xvlib= |
203 _x11lib= | 193 _xlibdir= |
194 | |
195 _select='#define HAVE_AUDIO_SELECT' | |
204 | 196 |
205 for i in `echo $pparam`; do | 197 for i in `echo $pparam`; do |
206 | 198 |
207 case "$i" in | 199 case "$i" in |
208 3dnow) | 200 3dnow) |
235 ;; | 227 ;; |
236 esac | 228 esac |
237 | 229 |
238 done | 230 done |
239 | 231 |
232 if [ -e /usr/X11R6 ]; then | |
233 _x11libdir=-L/usr/X11R6/lib | |
234 else | |
235 if [ -e /usr/X11 ]; then | |
236 _x11libdir=-L/usr/X11/lib | |
237 fi | |
238 fi | |
240 | 239 |
241 _win32libdirnotify=no | 240 _win32libdirnotify=no |
242 if [ -e /usr/lib/win32 ]; then | 241 if [ -e /usr/lib/win32 ]; then |
243 _win32libdir=/usr/lib/win32 | 242 _win32libdir=/usr/lib/win32 |
244 else | 243 else |
374 exit | 373 exit |
375 fi | 374 fi |
376 #echo "DONE (${proc})." | 375 #echo "DONE (${proc})." |
377 | 376 |
378 | 377 |
378 # check GL & X11 & Xext & Xv & SDL & termcap libs | |
379 | |
380 $_cc $TMPC -o $TMPO $_x11libdir/ -lGL &> /dev/null && _gl=yes | |
381 $_cc $TMPC -o $TMPO $_x11libdir/ -lXxf86vm &> /dev/null && _vm=yes | |
379 $_cc $TMPC -o $TMPO -lvgagl -lvga &> /dev/null && _svga=yes | 382 $_cc $TMPC -o $TMPO -lvgagl -lvga &> /dev/null && _svga=yes |
380 | 383 $_cc $TMPC -o $TMPO $_x11libdir -lX11 -lXext &> /dev/null && _x11=yes |
381 $_cc $TMPC -o $TMPO -lpthread &> /dev/null || \ | 384 $_cc $TMPC -o $TMPO $_x11libdir -lX11 -lXext -lXdpms &> /dev/null && _xdpms=yes |
385 $_cc $TMPC -o $TMPO $_x11libdir -lXv &> /dev/null && _xv=yes | |
386 $_cc $TMPC -o $TMPO $_x11libdir -L/usr/local/lib/ -lpthread &> /dev/null || \ | |
382 { echo "Lib pthread not found."; rm -f $TMPC $TMPO ; exit 1; } | 387 { echo "Lib pthread not found."; rm -f $TMPC $TMPO ; exit 1; } |
383 | 388 |
384 # SDL disabled by default (0.11pre22-) because of the compilation problems | 389 # SDL disabled by default (0.11pre22-) because of the compilation problems |
385 # this is very buggy & experimental code, use it only if you really need it!! | 390 # this is very buggy & experimental code, use it only if you really need it!! |
386 _have_sdl=no | 391 _have_sdl=no |
387 $_cc $TMPC -o $TMPO -L/usr/local/lib/ -lSDL -lpthread &> /dev/null && _have_sdl=yes | 392 $_cc $TMPC -o $TMPO $_x11libdir -L/usr/local/lib/ -lSDL -lpthread &> /dev/null && _have_sdl=yes |
388 | 393 |
389 _termcap=no | 394 _termcap=no |
390 $_cc $TMPC -o $TMPO -ltermcap &> /dev/null && _termcap=yes | 395 $_cc $TMPC -o $TMPO -ltermcap &> /dev/null && _termcap=yes |
391 | 396 |
392 _binutils=no | 397 _binutils=no |
393 as libac3/downmix/downmix_i386.S -o $TMPO &> /dev/null && _binutils=yes | 398 as libac3/downmix/downmix_i386.S -o $TMPO &> /dev/null && _binutils=yes |
394 | 399 |
395 # ----------- Check X11 and related libs (GL, Xxf86vm, Xv, DGA) -------------- | 400 # LGB: Check DGA |
396 | |
397 if [ $_x11 = auto ]; then | |
398 _x11=no | |
399 $_cc $TMPC -o $TMPO $_x11libdir -lX11 -lXext &> /dev/null && _x11=yes | |
400 fi | |
401 | |
402 if [ $_x11 = yes ]; then | |
403 | |
404 $_cc $TMPC -o $TMPO $_x11libdir -lX11 -lXext -lXdpms &> /dev/null && _xdpms=yes | |
405 $_cc $TMPC -o $TMPO $_x11libdir -lXv &> /dev/null && _xv=yes | |
406 | |
407 $_cc $TMPC -o $TMPO $_x11libdir -lGL &> /dev/null && _gl=yes | |
408 | |
409 cat > $TMPC << EOF | |
410 #include <GL/gl.h> | |
411 int main( void ) { return 0; } | |
412 EOF | |
413 $_cc $TMPC -o $TMPO $_x11libdir -lGL &> /dev/null || \ | |
414 { _gl=no; echo "GL includes not found!";} | |
415 | |
416 $_cc $TMPC -o $TMPO $_x11libdir -lXxf86vm &> /dev/null && _vm=yes | |
417 | 401 |
418 cat > $TMPC << EOF | 402 cat > $TMPC << EOF |
419 #include <stdio.h> | 403 #include <stdio.h> |
420 #include <X11/Xlib.h> | 404 #include <X11/Xlib.h> |
421 #include <X11/extensions/xf86dga.h> | 405 #include <X11/extensions/xf86dga.h> |
422 int main (void) { return 0;} | 406 int main (void) { return 0;} |
423 EOF | 407 EOF |
424 | 408 |
409 _dga=no | |
425 $_cc $TMPC -o $TMPO -L/usr/X11R6/lib -L/usr/X11/lib -lX11 -lXext -lXxf86dga -lXxf86vm &> /dev/null && _dga=yes | 410 $_cc $TMPC -o $TMPO -L/usr/X11R6/lib -L/usr/X11/lib -lX11 -lXext -lXxf86dga -lXxf86vm &> /dev/null && _dga=yes |
426 # Note: the -lXxf86vm library is the VideoMode extension and though it's | 411 # Note: the -lXxf86vm library is the VideoMode extension and though it's |
427 # not needed for DGA, AFAIK every distribution packages together with DGA | 412 # not needed for DGA, AFAIK every distribution packages together with DGA |
428 # stuffs named 'X extensions' or something similar. This check can be usefull | 413 # stuffs named 'X extensions' or something similar. This check can be usefull |
429 # for further mplayer versions to set resolution by mplayer itself. | 414 # for further mplayer versions to set resolution by mplayer itself. |
430 # If you run into problems, remove '-lXxf86vm'. | 415 # If you run into problems, remove '-lXxf86vm'. |
431 | 416 |
417 # --- | |
418 | |
432 # Check if DGA is 2.0 or greater | 419 # Check if DGA is 2.0 or greater |
433 cat > $TMPC << EOF | 420 cat > $TMPC << EOF |
434 #include <stdio.h> | 421 #include <stdio.h> |
435 #include <X11/Xlib.h> | 422 #include <X11/Xlib.h> |
436 #include <X11/extensions/xf86dga.h> | 423 #include <X11/extensions/xf86dga.h> |
438 EOF | 425 EOF |
439 | 426 |
440 _dga2=no | 427 _dga2=no |
441 $_cc $TMPC -o $TMPO -L/usr/X11R6/lib -L/usr/X11/lib -lX11 -lXext -lXxf86dga -lXxf86vm &> /dev/null && _dga2=yes | 428 $_cc $TMPC -o $TMPO -L/usr/X11R6/lib -L/usr/X11/lib -lX11 -lXext -lXxf86dga -lXxf86vm &> /dev/null && _dga2=yes |
442 | 429 |
443 fi | 430 |
431 cat > $TMPC << EOF | |
432 #include <GL/gl.h> | |
433 int main( void ) { return 0; } | |
434 EOF | |
435 | |
436 $_cc $TMPC -o $TMPO $_x11libdir/ -lGL &> /dev/null || \ | |
437 { _gl=no; echo "GL includes not found!";} | |
444 | 438 |
445 rm -f $TMPC $TMPO | 439 rm -f $TMPC $TMPO |
440 | |
441 | |
442 if [ $_x11 = 'yes' ]; then | |
443 if [ $_mga = 'yes' ]; then | |
444 _xmga=yes | |
445 fi | |
446 fi | |
446 | 447 |
447 # --- | 448 # --- |
448 | 449 |
449 # check for the parameters. | 450 # check for the parameters. |
450 | 451 |
491 _xv=yes | 492 _xv=yes |
492 ;; | 493 ;; |
493 --enable-vm) | 494 --enable-vm) |
494 _vm=yes | 495 _vm=yes |
495 ;; | 496 ;; |
497 --enable-x11) | |
498 _x11=yes | |
499 ;; | |
496 --enable-3dfx) | 500 --enable-3dfx) |
497 _3dfx=yes | 501 _3dfx=yes |
498 ;; | 502 ;; |
499 --enable-syncfb) | 503 --enable-syncfb) |
500 _syncfb=yes | 504 _syncfb=yes |
511 --enable-xmmp) | 515 --enable-xmmp) |
512 _xmmp=yes | 516 _xmmp=yes |
513 ;; | 517 ;; |
514 --enable-lirc) | 518 --enable-lirc) |
515 _lirc=yes | 519 _lirc=yes |
520 ;; | |
521 --enable-select) | |
522 _select='#define HAVE_AUDIO_SELECT' | |
516 ;; | 523 ;; |
517 --disable-sse) | 524 --disable-sse) |
518 _sse=no | 525 _sse=no |
519 ;; | 526 ;; |
520 --disable-3dnow) | 527 --disable-3dnow) |
543 _xv=no | 550 _xv=no |
544 ;; | 551 ;; |
545 --disable-vm) | 552 --disable-vm) |
546 _vm=no | 553 _vm=no |
547 ;; | 554 ;; |
555 --disable-x11) | |
556 _x11=no | |
557 ;; | |
548 --disable-mlib) | 558 --disable-mlib) |
549 _mlib=no | 559 _mlib=no |
550 ;; | 560 ;; |
551 --disable-svga) | 561 --disable-svga) |
552 _svga=no | 562 _svga=no |
561 _fbdev=no | 571 _fbdev=no |
562 ;; | 572 ;; |
563 --disable-termcap) | 573 --disable-termcap) |
564 _termcap=no | 574 _termcap=no |
565 ;; | 575 ;; |
576 --disable-select) | |
577 _select='#undef HAVE_AUDIO_SELECT' | |
578 ;; | |
579 --with-x11libdir=*) | |
580 _x11libdir=-L`echo $ac_option | cut -d '=' -f 2` | |
581 ;; | |
566 --with-win32libdir=*) | 582 --with-win32libdir=*) |
567 _win32libdir=`echo $ac_option | cut -d '=' -f 2` | 583 _win32libdir=`echo $ac_option | cut -d '=' -f 2` |
568 _win32libdirnotify=no | 584 _win32libdirnotify=no |
569 ;; | 585 ;; |
570 --size-x=*) | 586 --size-x=*) |
571 _x=`echo $ac_option | cut -d '=' -f 2` | 587 _x=`echo $ac_option | cut -d '=' -f 2` |
572 ;; | 588 ;; |
573 --size-y=*) | 589 --size-y=*) |
574 _y=`echo $ac_option | cut -d '=' -f 2` | 590 _y=`echo $ac_option | cut -d '=' -f 2` |
575 ;; | 591 ;; |
576 --with-x11libdir=*) | |
577 ;; | |
578 --cc=*) | 592 --cc=*) |
579 ;; | 593 ;; |
580 esac | 594 esac |
581 done | 595 done |
582 | |
583 if [ $_x11 = 'yes' ]; then | |
584 if [ $_mga = 'yes' ]; then | |
585 _xmga=yes | |
586 fi | |
587 fi | |
588 | 596 |
589 # to screen. | 597 # to screen. |
590 echo "Using C compiler: $_cc" | 598 echo "Using C compiler: $_cc" |
591 echo "Checking for cpu vendor ... $pvendor ( $pfamily:$pmodel:$pstepping )" | 599 echo "Checking for cpu vendor ... $pvendor ( $pfamily:$pmodel:$pstepping )" |
592 echo "Checking for cpu type ... $pname" | 600 echo "Checking for cpu type ... $pname" |
673 | 681 |
674 # -------- Generated by ./configure ----------- | 682 # -------- Generated by ./configure ----------- |
675 | 683 |
676 AR=ar | 684 AR=ar |
677 CC=$_cc | 685 CC=$_cc |
686 X11DIR=$_x11libdir | |
678 # OPTFLAGS=-O4 -march=$proc -mcpu=$proc -pipe -fomit-frame-pointer -ffast-math | 687 # OPTFLAGS=-O4 -march=$proc -mcpu=$proc -pipe -fomit-frame-pointer -ffast-math |
679 OPTFLAGS=-O4 -march=$proc -mcpu=$proc -pipe -ffast-math | 688 OPTFLAGS=-O4 -march=$proc -mcpu=$proc -pipe -ffast-math |
680 # LIBS=-L/usr/lib -L/usr/local/lib $_x11libdir $_gllib $_sdllib $_dgalib $_x11lib $_xvlib | 689 # LIBS=-L/usr/lib -L/usr/local/lib $_x11libdir $_gllib $_sdllib $_dgalib $_x11lib $_xvlib |
681 X_LIBS=$_x11libdir $_gllib $_sdllib $_dgalib $_x11lib $_xvlib $_vmlib $_svgalib | 690 # X_LIBS=$_x11libdir $_gllib $_sdllib $_dgalib $_x11lib $_xvlib $_vmlib $_svgalib |
691 X_LIBS=\$(X11DIR) $_gllib $_sdllib $_dgalib $_x11lib $_xvlib $_vmlib $_svgalib | |
682 TERMCAP_LIB=$_libtermcap | 692 TERMCAP_LIB=$_libtermcap |
683 XMM_LIBS = $_xmmplibs | 693 XMM_LIBS = $_xmmplibs |
684 LIRC_LIBS = $_lirclibs | 694 LIRC_LIBS = $_lirclibs |
685 WIN32_PATH=-DWIN32_PATH=\"$_win32libdir\" | 695 WIN32_PATH=-DWIN32_PATH=\"$_win32libdir\" |
686 | 696 |
835 #define ALSA_TIMER | 845 #define ALSA_TIMER |
836 | 846 |
837 /* Undefine this if your soundcard driver has no working select(). | 847 /* Undefine this if your soundcard driver has no working select(). |
838 If you have kernel Oops, player hangups, or just no audio, you should | 848 If you have kernel Oops, player hangups, or just no audio, you should |
839 try to recompile MPlayer with this option disabled! */ | 849 try to recompile MPlayer with this option disabled! */ |
840 #define HAVE_AUDIO_SELECT | 850 $_select |
841 | 851 |
842 /* You have a choice for MP3 decoding: mp3lib(mpg123) or Win32(l3codeca.acm) | 852 /* You have a choice for MP3 decoding: mp3lib(mpg123) or Win32(l3codeca.acm) |
843 #define this if you prefer mpg123 (with 3Dnow! support) than l3codeca.acm | 853 #define this if you prefer mpg123 (with 3Dnow! support) than l3codeca.acm |
844 (with mmx/sse optimizations) | 854 (with mmx/sse optimizations) |
845 You can still change it runtime using -afm 1 (mpg123) or -afm 4 (l3codeca)*/ | 855 You can still change it runtime using -afm 1 (mpg123) or -afm 4 (l3codeca)*/ |