Mercurial > mplayer.hg
comparison configure @ 233:f62ccacbe1e5
Changes to configure to autodetect DGA 2.0 functionality, and to only use
DGA video mode switching when DGA 2.0 is present
author | mgraffam |
---|---|
date | Wed, 28 Mar 2001 19:58:45 +0000 |
parents | 62ec84961b27 |
children | abc78352e35e |
comparison
equal
deleted
inserted
replaced
232:6ec35ac3c74c | 233:f62ccacbe1e5 |
---|---|
165 _syncfb=no | 165 _syncfb=no |
166 _mlib=no | 166 _mlib=no |
167 _mpg123=no | 167 _mpg123=no |
168 _xmga=no | 168 _xmga=no |
169 _dga=no | 169 _dga=no |
170 _dga2=no | |
170 _fbdev=no | 171 _fbdev=no |
171 _lirc=no | 172 _lirc=no |
172 | 173 |
173 _x=1 | 174 _x=1 |
174 _y=1 | 175 _y=1 |
391 # for further mplayer versions to set resolution by mplayer itself. | 392 # for further mplayer versions to set resolution by mplayer itself. |
392 # If you run into problems, remove '-lXxf86vm'. | 393 # If you run into problems, remove '-lXxf86vm'. |
393 | 394 |
394 # --- | 395 # --- |
395 | 396 |
397 # Check if DGA is 2.0 or greater | |
398 cat > $TMPC << EOF | |
399 #include <stdio.h> | |
400 #include <X11/Xlib.h> | |
401 #include <X11/extensions/xf86dga.h> | |
402 int main (void) { XDGAMode mode; XDGADevice device; return 0;} | |
403 EOF | |
404 | |
405 _dga2=no | |
406 $_cc $TMPC -o $TMPO -L/usr/X11R6/lib -L/usr/X11/lib -lX11 -lXext -lXxf86dga -lXxf86vm &> /dev/null && _dga2=yes | |
407 | |
408 | |
396 cat > $TMPC << EOF | 409 cat > $TMPC << EOF |
397 #include <GL/gl.h> | 410 #include <GL/gl.h> |
398 int main( void ) { return 0; } | 411 int main( void ) { return 0; } |
399 EOF | 412 EOF |
400 | 413 |
441 --enable-xmga) | 454 --enable-xmga) |
442 _xmga=yes | 455 _xmga=yes |
443 ;; | 456 ;; |
444 --enable-dga) | 457 --enable-dga) |
445 _dga=yes | 458 _dga=yes |
446 ;; | 459 ;; |
460 --enable-dga2) | |
461 _dga2=yes | |
462 ;; | |
447 --enable-xv) | 463 --enable-xv) |
448 _xv=yes | 464 _xv=yes |
449 ;; | 465 ;; |
450 --enable-vm) | 466 --enable-vm) |
451 _vm=yes | 467 _vm=yes |
511 _mlib=no | 527 _mlib=no |
512 ;; | 528 ;; |
513 --disable-dga) | 529 --disable-dga) |
514 _dga=no | 530 _dga=no |
515 ;; | 531 ;; |
532 --disable-dga2) | |
533 _dga2=no | |
534 ;; | |
516 --disable-fbdev) | 535 --disable-fbdev) |
517 _fbdev=no | 536 _fbdev=no |
518 ;; | 537 ;; |
519 --disable-termcap) | 538 --disable-termcap) |
520 _termcap=no | 539 _termcap=no |
553 echo "Checking for SDL ... $_sdl" | 572 echo "Checking for SDL ... $_sdl" |
554 echo "Checking for OpenGL ... $_gl" | 573 echo "Checking for OpenGL ... $_gl" |
555 echo "Checking for Xv ... $_xv" | 574 echo "Checking for Xv ... $_xv" |
556 echo "Checking for X11 ... $_x11" | 575 echo "Checking for X11 ... $_x11" |
557 echo "Checking for DGA ... $_dga" | 576 echo "Checking for DGA ... $_dga" |
577 echo "Checking for DGA 2.0 .. $_dga2" | |
558 echo "Checking for Xf86VM ... $_vm" | 578 echo "Checking for Xf86VM ... $_vm" |
559 echo "Checking for FBDev ... $_fbdev" | 579 echo "Checking for FBDev ... $_fbdev" |
560 # write conf files. | 580 # write conf files. |
561 | 581 |
562 if [ $_gl = yes ]; then | 582 if [ $_gl = yes ]; then |
725 _vosrc=$_vosrc' vo_dga.c vo_fsdga.c' | 745 _vosrc=$_vosrc' vo_dga.c vo_fsdga.c' |
726 else | 746 else |
727 _dga='#undef HAVE_DGA' | 747 _dga='#undef HAVE_DGA' |
728 fi | 748 fi |
729 | 749 |
750 if [ $_dga2 = yes ]; then | |
751 _dga2='#define HAVE_DGA2' | |
752 _vosrc=$_vosrc' vo_dga.c vo_fsdga.c' | |
753 else | |
754 _dga2='#undef HAVE_DGA2' | |
755 fi | |
756 | |
730 if [ $_fbdev = yes ]; then | 757 if [ $_fbdev = yes ]; then |
731 _fbdev='#define HAVE_FBDEV' | 758 _fbdev='#define HAVE_FBDEV' |
732 _vosrc=$_vosrc' vo_fbdev.c' | 759 _vosrc=$_vosrc' vo_fbdev.c' |
733 else | 760 else |
734 _fbdev='#undef HAVE_FBDEV' | 761 _fbdev='#undef HAVE_FBDEV' |
805 $_x11 | 832 $_x11 |
806 $_xv | 833 $_xv |
807 $_vm | 834 $_vm |
808 $_gl | 835 $_gl |
809 $_dga | 836 $_dga |
837 $_dga2 | |
810 $_sdldef | 838 $_sdldef |
811 $_3dfx | 839 $_3dfx |
812 $_mga | 840 $_mga |
813 $_syncfb | 841 $_syncfb |
814 $_fbdev | 842 $_fbdev |