comparison configure @ 209:26d2d4d3331a

Addes autodetection of XF86VidMode to configure, and adds a description of the -vm option to help_mp.h -- mgraffam
author mgraffam
date Sat, 24 Mar 2001 21:37:25 +0000
parents 9b82a3ef38ee
children 62ec84961b27
comparison
equal deleted inserted replaced
208:ae0f909ccc7c 209:26d2d4d3331a
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/03/24 by Mike Graffam:
10 # - added autodetect code for XF86VidMode, along with explicit --enable-vm
8 # 11 #
9 # 2001/03/22 by Bivanbi: 12 # 2001/03/22 by Bivanbi:
10 # - new option: --cc (to specify C compiler path+name) 13 # - new option: --cc (to specify C compiler path+name)
11 # 14 #
12 # 2001/03/08 by LGB: 15 # 2001/03/08 by LGB:
75 --enable-mga build with mga_vid support [autodetect, if /dev/mga_vid 78 --enable-mga build with mga_vid support [autodetect, if /dev/mga_vid
76 is available] 79 is available]
77 --enable-xmga build with mga_vid X Window support [autodetect, 80 --enable-xmga build with mga_vid X Window support [autodetect,
78 if both /dev/mga_vid and x11 are available] 81 if both /dev/mga_vid and x11 are available]
79 --enable-xv build with Xv render support for X 4.x [autodetect] 82 --enable-xv build with Xv render support for X 4.x [autodetect]
83 --enable-vm build with XF86VidMode support for x11 driver
80 --enable-x11 build with X11 render support [autodetect] 84 --enable-x11 build with X11 render support [autodetect]
81 --enable-mlib build with MLIB support ( only Solaris ) 85 --enable-mlib build with MLIB support ( only Solaris )
82 86
83 --enable-termcap use termcap database for key codes 87 --enable-termcap use termcap database for key codes
84 --enable-xmmp use XMMP audio drivers 88 --enable-xmmp use XMMP audio drivers
152 _sse=no 156 _sse=no
153 _mga=no 157 _mga=no
154 _gl=no 158 _gl=no
155 _sdl=no 159 _sdl=no
156 _xv=no 160 _xv=no
161 _vm=no
157 _x11=no 162 _x11=no
158 _3dfx=no 163 _3dfx=no
159 _syncfb=no 164 _syncfb=no
160 _mlib=no 165 _mlib=no
161 _mpg123=no 166 _mpg123=no
348 353
349 354
350 # check GL & X11 & Xext & Xv & SDL & termcap libs 355 # check GL & X11 & Xext & Xv & SDL & termcap libs
351 356
352 $_cc $TMPC -o $TMPO $_x11libdir/ -lGL &> /dev/null && _gl=yes 357 $_cc $TMPC -o $TMPO $_x11libdir/ -lGL &> /dev/null && _gl=yes
358 $_cc $TMPC -o $TMPO $_x11libdir/ -lXxf86vm &> /dev/null && _vm=yes
353 $_cc $TMPC -o $TMPO $_x11libdir -lX11 -lXext &> /dev/null && _x11=yes 359 $_cc $TMPC -o $TMPO $_x11libdir -lX11 -lXext &> /dev/null && _x11=yes
354 $_cc $TMPC -o $TMPO $_x11libdir -lXv &> /dev/null && _xv=yes 360 $_cc $TMPC -o $TMPO $_x11libdir -lXv &> /dev/null && _xv=yes
355 $_cc $TMPC -o $TMPO $_x11libdir -L/usr/local/lib/ -lpthread &> /dev/null || \ 361 $_cc $TMPC -o $TMPO $_x11libdir -L/usr/local/lib/ -lpthread &> /dev/null || \
356 { echo "Lib pthread not found."; rm -f $TMPC $TMPO ; exit 1; } 362 { echo "Lib pthread not found."; rm -f $TMPC $TMPO ; exit 1; }
357 363
437 _dga=yes 443 _dga=yes
438 ;; 444 ;;
439 --enable-xv) 445 --enable-xv)
440 _xv=yes 446 _xv=yes
441 ;; 447 ;;
448 --enable-vm)
449 _vm=yes
450 ;;
442 --enable-x11) 451 --enable-x11)
443 _x11=yes 452 _x11=yes
444 ;; 453 ;;
445 --enable-3dfx) 454 --enable-3dfx)
446 _3dfx=yes 455 _3dfx=yes
484 --disable-xmga) 493 --disable-xmga)
485 _xmga=no 494 _xmga=no
486 ;; 495 ;;
487 --disable-xv) 496 --disable-xv)
488 _xv=no 497 _xv=no
498 ;;
499 --disable-vm)
500 _vm=no
489 ;; 501 ;;
490 --disable-x11) 502 --disable-x11)
491 _x11=no 503 _x11=no
492 ;; 504 ;;
493 --disable-mlib) 505 --disable-mlib)
533 echo "Checking for SDL ... $_sdl" 545 echo "Checking for SDL ... $_sdl"
534 echo "Checking for OpenGL ... $_gl" 546 echo "Checking for OpenGL ... $_gl"
535 echo "Checking for Xv ... $_xv" 547 echo "Checking for Xv ... $_xv"
536 echo "Checking for X11 ... $_x11" 548 echo "Checking for X11 ... $_x11"
537 echo "Checking for DGA ... $_dga" 549 echo "Checking for DGA ... $_dga"
538 550 echo "Checking for Xf86VM ... $_vm"
539 # write conf files. 551 # write conf files.
540 552
541 if [ $_gl = yes ]; then 553 if [ $_gl = yes ]; then
542 _gllib='-lGL' 554 _gllib='-lGL'
543 fi 555 fi
556 568
557 if [ $_dga = yes ]; then 569 if [ $_dga = yes ]; then
558 _dgalib='-lXxf86dga' 570 _dgalib='-lXxf86dga'
559 fi 571 fi
560 572
573 if [ $_vm = yes ]; then
574 _vmlib='-lXxf86vm'
575 fi
561 576
562 if [ "$_termcap" = "yes" ]; then 577 if [ "$_termcap" = "yes" ]; then
563 _termcap='#define USE_TERMCAP' 578 _termcap='#define USE_TERMCAP'
564 _libtermcap='-ltermcap' 579 _libtermcap='-ltermcap'
565 else 580 else
592 AR=ar 607 AR=ar
593 CC=$_cc 608 CC=$_cc
594 # OPTFLAGS=-O4 -march=$proc -mcpu=$proc -pipe -fomit-frame-pointer -ffast-math 609 # OPTFLAGS=-O4 -march=$proc -mcpu=$proc -pipe -fomit-frame-pointer -ffast-math
595 OPTFLAGS=-O4 -march=$proc -mcpu=$proc -pipe -ffast-math 610 OPTFLAGS=-O4 -march=$proc -mcpu=$proc -pipe -ffast-math
596 # LIBS=-L/usr/lib -L/usr/local/lib $_x11libdir $_gllib $_sdllib $_dgalib $_x11lib $_xvlib 611 # LIBS=-L/usr/lib -L/usr/local/lib $_x11libdir $_gllib $_sdllib $_dgalib $_x11lib $_xvlib
597 X_LIBS=$_x11libdir $_gllib $_sdllib $_dgalib $_x11lib $_xvlib 612 X_LIBS=$_x11libdir $_gllib $_sdllib $_dgalib $_x11lib $_xvlib $_vmlib
598 TERMCAP_LIB=$_libtermcap 613 TERMCAP_LIB=$_libtermcap
599 XMM_LIBS = $_xmmplibs 614 XMM_LIBS = $_xmmplibs
600 LIRC_LIBS = $_lirclibs 615 LIRC_LIBS = $_lirclibs
601 WIN32_PATH=-DWIN32_PATH=\"$_win32libdir\" 616 WIN32_PATH=-DWIN32_PATH=\"$_win32libdir\"
602 617
660 if [ $_xv = yes ]; then 675 if [ $_xv = yes ]; then
661 _xv='#define HAVE_XV' 676 _xv='#define HAVE_XV'
662 _vosrc=$_vosrc' vo_xv.c' 677 _vosrc=$_vosrc' vo_xv.c'
663 else 678 else
664 _xv='#undef HAVE_XV' 679 _xv='#undef HAVE_XV'
680 fi
681
682 if [ $_vm = yes ]; then
683 _vm='#define HAVE_XF86VM'
684 else
685 _vm='#undef HAVE_XF86VM'
665 fi 686 fi
666 687
667 # --- 688 # ---
668 689
669 if [ $_mga = yes ]; then 690 if [ $_mga = yes ]; then
765 /* libvo options */ 786 /* libvo options */
766 #define SCREEN_SIZE_X $_x 787 #define SCREEN_SIZE_X $_x
767 #define SCREEN_SIZE_Y $_y 788 #define SCREEN_SIZE_Y $_y
768 $_x11 789 $_x11
769 $_xv 790 $_xv
791 $_vm
770 $_gl 792 $_gl
771 $_dga 793 $_dga
772 $_sdldef 794 $_sdldef
773 $_3dfx 795 $_3dfx
774 $_mga 796 $_mga