comparison configure.in @ 167:cb384ef627f6

Added support for DirectFB video on Linux (thanks Denis!)
author Sam Lantinga <slouken@libsdl.org>
date Tue, 04 Sep 2001 22:53:46 +0000
parents 39877400bd1e
children e92aa316c517
comparison
equal deleted inserted replaced
166:39877400bd1e 167:cb384ef627f6
693 VIDEO_DRIVERS="$VIDEO_DRIVERS fbcon/libvideo_fbcon.la" 693 VIDEO_DRIVERS="$VIDEO_DRIVERS fbcon/libvideo_fbcon.la"
694 fi 694 fi
695 fi 695 fi
696 } 696 }
697 697
698 dnl Find DirectFB
699 CheckDirectFB()
700 {
701 AC_ARG_ENABLE(video-directfb,
702 [ --enable-video-directfb use DirectFB video driver [default=yes]],
703 , enable_video_directfb=yes)
704 if test x$enable_video = xyes -a x$enable_video_directfb = xyes; then
705 video_directfb=no
706
707 AC_PATH_PROG(PKG_CONFIG, pkg-config, no)
708 if test x$PKG_CONFIG = xno ; then
709 AC_MSG_WARN([*** pkg-config is required to build the DirectFB video driver.])
710 else
711 AC_MSG_CHECKING(for DirectFB support)
712
713 if ! pkg-config --atleast-pkgconfig-version 0.5 ; then
714 AC_MSG_ERROR([*** pkg-config too old; version 0.5 or better required.])
715 fi
716
717 DIRECTFB_REQUIRED_VERSION=0.9.5
718
719 if $PKG_CONFIG --atleast-version $DIRECTFB_REQUIRED_VERSION directfb ; then
720 DIRECTFB_CFLAGS=`$PKG_CONFIG --cflags directfb`
721 DIRECTFB_LIBS=`$PKG_CONFIG --libs directfb`
722 video_directfb=yes
723 fi
724 fi
725
726 AC_MSG_RESULT($video_directfb)
727 if test x$video_directfb = xyes; then
728 CFLAGS="$CFLAGS -DENABLE_DIRECTFB"
729 VIDEO_SUBDIRS="$VIDEO_SUBDIRS directfb"
730 VIDEO_DRIVERS="$VIDEO_DRIVERS directfb/libvideo_directfb.la"
731
732 AC_SUBST(DIRECTFB_CFLAGS)
733 AC_SUBST(DIRECTFB_LIBS)
734 fi
735 fi
736 }
737
698 dnl See if we're running on PlayStation 2 hardware 738 dnl See if we're running on PlayStation 2 hardware
699 CheckPS2GS() 739 CheckPS2GS()
700 { 740 {
701 AC_ARG_ENABLE(video-ps2gs, 741 AC_ARG_ENABLE(video-ps2gs,
702 [ --enable-video-ps2gs use PlayStation 2 GS video driver [default=yes]], 742 [ --enable-video-ps2gs use PlayStation 2 GS video driver [default=yes]],
1217 CheckNAS 1257 CheckNAS
1218 CheckX11 1258 CheckX11
1219 CheckNANOX 1259 CheckNANOX
1220 CheckDGA 1260 CheckDGA
1221 CheckFBCON 1261 CheckFBCON
1262 CheckDirectFB
1222 CheckPS2GS 1263 CheckPS2GS
1223 CheckGGI 1264 CheckGGI
1224 CheckSVGA 1265 CheckSVGA
1225 CheckAAlib 1266 CheckAAlib
1226 CheckOpenGL 1267 CheckOpenGL
2172 src/video/cybergfx/Makefile 2213 src/video/cybergfx/Makefile
2173 src/video/x11/Makefile 2214 src/video/x11/Makefile
2174 src/video/dga/Makefile 2215 src/video/dga/Makefile
2175 src/video/nanox/Makefile 2216 src/video/nanox/Makefile
2176 src/video/fbcon/Makefile 2217 src/video/fbcon/Makefile
2218 src/video/directfb/Makefile
2177 src/video/ps2gs/Makefile 2219 src/video/ps2gs/Makefile
2178 src/video/ggi/Makefile 2220 src/video/ggi/Makefile
2179 src/video/maccommon/Makefile 2221 src/video/maccommon/Makefile
2180 src/video/macdsp/Makefile 2222 src/video/macdsp/Makefile
2181 src/video/macrom/Makefile 2223 src/video/macrom/Makefile