comparison configure.in @ 1307:1c775d9abd2c

We're no longer doing compile checks on the X11 extensions which we include. (Resolves bug #114)
author Sam Lantinga <slouken@libsdl.org>
date Tue, 31 Jan 2006 19:09:09 +0000
parents 0c105755b110
children a557f907de1e
comparison
equal deleted inserted replaced
1306:0c105755b110 1307:1c775d9abd2c
652 fi 652 fi
653 653
654 VIDEO_SUBDIRS="$VIDEO_SUBDIRS x11" 654 VIDEO_SUBDIRS="$VIDEO_SUBDIRS x11"
655 VIDEO_DRIVERS="$VIDEO_DRIVERS x11/libvideo_x11.la" 655 VIDEO_DRIVERS="$VIDEO_DRIVERS x11/libvideo_x11.la"
656 656
657 AC_ARG_ENABLE(dga,
658 [ --enable-dga allow use of X11 DGA code [default=yes]],
659 , enable_dga=yes)
660 if test x$enable_dga = xyes; then
661 VIDEO_SUBDIRS="$VIDEO_SUBDIRS Xext/Xxf86dga"
662 VIDEO_DRIVERS="$VIDEO_DRIVERS Xext/Xxf86dga/libXFree86_Xxf86dga.la"
663 fi
664 AC_ARG_ENABLE(video-dga,
665 [ --enable-video-dga use DGA 2.0 video driver [default=yes]],
666 , enable_video_dga=yes)
667 if test x$enable_dga = xyes -a x$enable_video_dga = xyes; then
668 CFLAGS="$CFLAGS -DENABLE_DGA"
669 VIDEO_SUBDIRS="$VIDEO_SUBDIRS dga"
670 VIDEO_DRIVERS="$VIDEO_DRIVERS dga/libvideo_dga.la"
671 fi
672 AC_ARG_ENABLE(video-x11-dgamouse,
673 [ --enable-video-x11-dgamouse use X11 DGA for mouse events [default=yes]],
674 , enable_video_x11_dgamouse=yes)
675 if test x$enable_dga = xyes -a x$enable_video_x11_dgamouse = xyes; then
676 CFLAGS="$CFLAGS -DXFREE86_DGAMOUSE -DDEFAULT_DGAMOUSE"
677 fi
657 AC_ARG_ENABLE(video-x11-vm, 678 AC_ARG_ENABLE(video-x11-vm,
658 [ --enable-video-x11-vm use X11 VM extension for fullscreen [default=yes]], 679 [ --enable-video-x11-vm use X11 VM extension for fullscreen [default=yes]],
659 , enable_video_x11_vm=yes) 680 , enable_video_x11_vm=yes)
660 if test x$enable_video_x11_vm = xyes; then 681 if test x$enable_video_x11_vm = xyes; then
661 AC_MSG_CHECKING(for XFree86 VidMode 1.0 support) 682 CFLAGS="$CFLAGS -DXFREE86_VM -DXFREE86_VMGAMMA"
662 video_x11_vm=no 683 VIDEO_SUBDIRS="$VIDEO_SUBDIRS Xext/Xxf86vm"
663 AC_TRY_COMPILE([ 684 VIDEO_DRIVERS="$VIDEO_DRIVERS Xext/Xxf86vm/libXFree86_Xxf86vm.la"
664 #include <X11/Xlib.h>
665 #include <XFree86/extensions/xf86vmode.h>
666 ],[
667 ],[
668 video_x11_vm=yes
669 ])
670 AC_MSG_RESULT($video_x11_vm)
671 if test x$video_x11_vm = xyes; then
672 CFLAGS="$CFLAGS -DXFREE86_VM"
673 VIDEO_SUBDIRS="$VIDEO_SUBDIRS Xext/Xxf86vm"
674 VIDEO_DRIVERS="$VIDEO_DRIVERS Xext/Xxf86vm/libXFree86_Xxf86vm.la"
675 AC_MSG_CHECKING(for XFree86 VidMode gamma support)
676 video_x11_vmgamma=no
677 AC_TRY_COMPILE([
678 #include <X11/Xlib.h>
679 #include <XFree86/extensions/xf86vmode.h>
680 ],[
681 SDL_NAME(XF86VidModeGamma) gamma;
682 ],[
683 video_x11_vmgamma=yes
684 ])
685 AC_MSG_RESULT($video_x11_vmgamma)
686 if test x$video_x11_vmgamma = xyes; then
687 CFLAGS="$CFLAGS -DXFREE86_VMGAMMA"
688 fi
689 fi
690 fi
691 AC_ARG_ENABLE(dga,
692 [ --enable-dga allow use of X11 DGA code [default=yes]],
693 , enable_dga=yes)
694 AC_ARG_ENABLE(video-x11-dgamouse,
695 [ --enable-video-x11-dgamouse use X11 DGA for mouse events [default=yes]],
696 , enable_video_x11_dgamouse=yes)
697 if test x$enable_dga = xyes; then
698 AC_MSG_CHECKING(for XFree86 DGA 1.0 support)
699 video_x11_dga=no
700 AC_TRY_COMPILE([
701 #include <X11/Xlib.h>
702 #include <XFree86/extensions/xf86dga.h>
703 ],[
704 ],[
705 video_x11_dga=yes
706 ])
707 AC_MSG_RESULT($video_x11_dga)
708 if test x$video_x11_dga = xyes; then
709 CFLAGS="$CFLAGS -DXFREE86_DGAMOUSE"
710 if test x$enable_video_x11_dgamouse = xyes; then
711 CFLAGS="$CFLAGS -DDEFAULT_DGAMOUSE"
712 fi
713 VIDEO_SUBDIRS="$VIDEO_SUBDIRS Xext/Xxf86dga"
714 VIDEO_DRIVERS="$VIDEO_DRIVERS Xext/Xxf86dga/libXFree86_Xxf86dga.la"
715 fi
716 fi 685 fi
717 AC_ARG_ENABLE(video-x11-xv, 686 AC_ARG_ENABLE(video-x11-xv,
718 [ --enable-video-x11-xv use X11 XvImage extension for video [default=yes]], 687 [ --enable-video-x11-xv use X11 XvImage extension for video [default=yes]],
719 , enable_video_x11_xv=yes) 688 , enable_video_x11_xv=yes)
720 if test x$enable_video_x11_xv = xyes; then 689 if test x$enable_video_x11_xv = xyes; then
721 AC_MSG_CHECKING(for XFree86 XvImage support) 690 CFLAGS="$CFLAGS -DXFREE86_XV"
722 video_x11_xv=no 691 VIDEO_SUBDIRS="$VIDEO_SUBDIRS Xext/Xv"
723 AC_TRY_COMPILE([ 692 VIDEO_DRIVERS="$VIDEO_DRIVERS Xext/Xv/libXFree86_Xv.la"
724 #include <X11/Xlib.h>
725 #include <sys/ipc.h>
726 #include <sys/shm.h>
727 #include <X11/extensions/XShm.h>
728 #include <XFree86/extensions/Xvlib.h>
729 ],[
730 SDL_NAME(XvImage) *image;
731 ],[
732 video_x11_xv=yes
733 ])
734 AC_MSG_RESULT($video_x11_xv)
735 if test x$video_x11_xv = xyes; then
736 CFLAGS="$CFLAGS -DXFREE86_XV"
737 VIDEO_SUBDIRS="$VIDEO_SUBDIRS Xext/Xv"
738 VIDEO_DRIVERS="$VIDEO_DRIVERS Xext/Xv/libXFree86_Xv.la"
739 fi
740 fi 693 fi
741 AC_ARG_ENABLE(video-x11-xinerama, 694 AC_ARG_ENABLE(video-x11-xinerama,
742 [ --enable-video-x11-xinerama enable X11 Xinerama support [default=yes]], 695 [ --enable-video-x11-xinerama enable X11 Xinerama support [default=yes]],
743 , enable_video_x11_xinerama=yes) 696 , enable_video_x11_xinerama=yes)
744 if test x$enable_video_x11_xinerama = xyes; then 697 if test x$enable_video_x11_xinerama = xyes; then
745 AC_MSG_CHECKING(for X11 Xinerama support) 698 CFLAGS="$CFLAGS -DHAVE_XINERAMA"
746 video_x11_xinerama=no 699 VIDEO_SUBDIRS="$VIDEO_SUBDIRS Xext/Xinerama"
747 AC_TRY_COMPILE([ 700 VIDEO_DRIVERS="$VIDEO_DRIVERS Xext/Xinerama/libXFree86_Xinerama.la"
748 #include <X11/Xlib.h>
749 #include <XFree86/extensions/Xinerama.h>
750 ],[
751 SDL_NAME(XineramaScreenInfo) *xinerama;
752 ],[
753 video_x11_xinerama=yes
754 ])
755 AC_MSG_RESULT($video_x11_xinerama)
756 if test x$video_x11_xinerama = xyes; then
757 CFLAGS="$CFLAGS -DHAVE_XINERAMA"
758 VIDEO_SUBDIRS="$VIDEO_SUBDIRS Xext/Xinerama"
759 VIDEO_DRIVERS="$VIDEO_DRIVERS Xext/Xinerama/libXFree86_Xinerama.la"
760 fi
761 fi 701 fi
762 AC_ARG_ENABLE(video-x11-xme, 702 AC_ARG_ENABLE(video-x11-xme,
763 [ --enable-video-x11-xme enable Xi Graphics XME for fullscreen [default=yes]], 703 [ --enable-video-x11-xme enable Xi Graphics XME for fullscreen [default=yes]],
764 , enable_video_x11_xme=yes) 704 , enable_video_x11_xme=yes)
765 if test x$enable_video_x11_xme = xyes; then 705 if test x$enable_video_x11_xme = xyes; then
766 AC_MSG_CHECKING(for Xi Graphics XiGMiscExtension support) 706 CFLAGS="$CFLAGS -DHAVE_XIGXME"
767 video_x11_xme=yes 707 VIDEO_SUBDIRS="$VIDEO_SUBDIRS Xext/XME"
768 AC_MSG_RESULT($video_x11_xme) 708 VIDEO_DRIVERS="$VIDEO_DRIVERS Xext/XME/libXME.la"
769 if test x$video_x11_xme = xyes; then 709 fi
770 CFLAGS="$CFLAGS -DHAVE_XIGXME"
771 VIDEO_SUBDIRS="$VIDEO_SUBDIRS Xext/XME"
772 VIDEO_DRIVERS="$VIDEO_DRIVERS Xext/XME/libXME.la"
773 fi
774 fi
775 fi
776 fi
777 }
778
779 dnl Find the X11 DGA 2.0 include and library directories
780 CheckDGA()
781 {
782 AC_ARG_ENABLE(video-dga,
783 [ --enable-video-dga use DGA 2.0 video driver [default=yes]],
784 , enable_video_dga=yes)
785 if test x$video_x11_dga = xyes -a x$enable_video_dga = xyes; then
786 save_CFLAGS="$CFLAGS"; CFLAGS="$CFLAGS -Isrc/video"
787 AC_MSG_CHECKING(for XFree86 DGA 2.0 support)
788 video_x11_dga2=no
789 AC_TRY_COMPILE([
790 #include <X11/Xlib.h>
791 #include <XFree86/extensions/xf86dga.h>
792 ],[
793 SDL_NAME(XDGAEvent) xevent;
794 ],[
795 video_x11_dga2=yes
796 ])
797 AC_MSG_RESULT($video_x11_dga2)
798 if test x$video_x11_dga2 = xyes; then
799 CFLAGS="$CFLAGS -DENABLE_DGA"
800 VIDEO_SUBDIRS="$VIDEO_SUBDIRS dga"
801 VIDEO_DRIVERS="$VIDEO_DRIVERS dga/libvideo_dga.la"
802 fi 710 fi
803 fi 711 fi
804 } 712 }
805 713
806 CheckPHOTON() 714 CheckPHOTON()
2085 CheckARTSC 1993 CheckARTSC
2086 CheckESD 1994 CheckESD
2087 CheckNAS 1995 CheckNAS
2088 CheckX11 1996 CheckX11
2089 CheckNANOX 1997 CheckNANOX
2090 CheckDGA
2091 CheckFBCON 1998 CheckFBCON
2092 CheckDirectFB 1999 CheckDirectFB
2093 CheckPS2GS 2000 CheckPS2GS
2094 CheckGGI 2001 CheckGGI
2095 CheckSVGA 2002 CheckSVGA
2173 CheckOSS 2080 CheckOSS
2174 CheckARTSC 2081 CheckARTSC
2175 CheckESD 2082 CheckESD
2176 CheckNAS 2083 CheckNAS
2177 CheckX11 2084 CheckX11
2178 CheckDGA
2179 CheckSVGA 2085 CheckSVGA
2180 CheckAAlib 2086 CheckAAlib
2181 CheckOpenGLX11 2087 CheckOpenGLX11
2182 CheckPTHREAD 2088 CheckPTHREAD
2183 CheckSIGACTION 2089 CheckSIGACTION
2219 CheckOSS 2125 CheckOSS
2220 CheckARTSC 2126 CheckARTSC
2221 CheckESD 2127 CheckESD
2222 CheckNAS 2128 CheckNAS
2223 CheckX11 2129 CheckX11
2224 CheckDGA
2225 CheckSVGA 2130 CheckSVGA
2226 CheckAAlib 2131 CheckAAlib
2227 CheckOpenGLX11 2132 CheckOpenGLX11
2228 CheckPTHREAD 2133 CheckPTHREAD
2229 CheckSIGACTION 2134 CheckSIGACTION