configure.in
changeset 70 f590dd383b5d
parent 68 ac6645260d31
child 72 4210b3e74800
     1.1 --- a/configure.in	Sat Jun 16 02:48:39 2001 +0000
     1.2 +++ b/configure.in	Sat Jun 16 03:17:45 2001 +0000
     1.3 @@ -666,6 +666,32 @@
     1.4      fi
     1.5  }
     1.6  
     1.7 +dnl See if we're running on PlayStation 2 hardware
     1.8 +CheckPS2GS()
     1.9 +{
    1.10 +dnl    AC_ARG_ENABLE(video-ps2gs,
    1.11 +dnl[  --enable-video-ps2gs    use PlayStation 2 GS video driver [default=yes]],
    1.12 +dnl                  , enable_video_ps2gs=yes)
    1.13 +enable_video_ps2gs=yes
    1.14 +    if test x$enable_video = xyes -a x$enable_video_ps2gs = xyes; then
    1.15 +        dnl AC_MSG_CHECKING(for PlayStation 2 GS support)
    1.16 +        video_ps2gs=no
    1.17 +        AC_TRY_COMPILE([
    1.18 +         #include <linux/ps2/dev.h>
    1.19 +         #include <linux/ps2/gs.h>
    1.20 +        ],[
    1.21 +        ],[
    1.22 +        video_ps2gs=yes
    1.23 +        ])
    1.24 +        dnl AC_MSG_RESULT($video_ps2gs)
    1.25 +        if test x$video_ps2gs = xyes; then
    1.26 +            CFLAGS="$CFLAGS -DENABLE_PS2GS"
    1.27 +            VIDEO_SUBDIRS="$VIDEO_SUBDIRS ps2gs"
    1.28 +            VIDEO_DRIVERS="$VIDEO_DRIVERS ps2gs/libvideo_ps2gs.la"
    1.29 +        fi
    1.30 +    fi
    1.31 +}
    1.32 +
    1.33  dnl Find the GGI includes
    1.34  CheckGGI()
    1.35  {
    1.36 @@ -1111,6 +1137,7 @@
    1.37          CheckNANOX
    1.38          CheckDGA
    1.39          CheckFBCON
    1.40 +        CheckPS2GS
    1.41          CheckGGI
    1.42          CheckSVGA
    1.43          CheckAAlib
    1.44 @@ -2011,6 +2038,7 @@
    1.45  src/video/dga/Makefile
    1.46  src/video/nanox/Makefile
    1.47  src/video/fbcon/Makefile
    1.48 +src/video/ps2gs/Makefile
    1.49  src/video/ggi/Makefile
    1.50  src/video/maccommon/Makefile
    1.51  src/video/macdsp/Makefile