comparison configure.in @ 72:4210b3e74800

Fixed the PS2 GS detection
author Sam Lantinga <slouken@lokigames.com>
date Sat, 16 Jun 2001 06:35:36 +0000
parents f590dd383b5d
children b0ae59d0f3ee
comparison
equal deleted inserted replaced
71:cb4d780b41b6 72:4210b3e74800
587 fi 587 fi
588 } 588 }
589 CheckPHOTON() 589 CheckPHOTON()
590 { 590 {
591 AC_ARG_ENABLE(video-photon, 591 AC_ARG_ENABLE(video-photon,
592 [ --enable-video-photon use QNX Photonvideo driver [default=yes]], 592 [ --enable-video-photon use QNX Photon video driver [default=yes]],
593 , enable_video_photon=yes) 593 , enable_video_photon=yes)
594 if test x$enable_video = xyes -a x$enable_video_photon = xyes; then 594 if test x$enable_video = xyes -a x$enable_video_photon = xyes; then
595 AC_MSG_CHECKING(for QNX Photon support) 595 AC_MSG_CHECKING(for QNX Photon support)
596 video_photon=no 596 video_photon=no
597 AC_TRY_COMPILE([ 597 AC_TRY_COMPILE([
667 } 667 }
668 668
669 dnl See if we're running on PlayStation 2 hardware 669 dnl See if we're running on PlayStation 2 hardware
670 CheckPS2GS() 670 CheckPS2GS()
671 { 671 {
672 dnl AC_ARG_ENABLE(video-ps2gs, 672 AC_ARG_ENABLE(video-ps2gs,
673 dnl[ --enable-video-ps2gs use PlayStation 2 GS video driver [default=yes]], 673 [ --enable-video-ps2gs use PlayStation 2 GS video driver [default=yes]],
674 dnl , enable_video_ps2gs=yes) 674 , enable_video_ps2gs=yes)
675 enable_video_ps2gs=yes
676 if test x$enable_video = xyes -a x$enable_video_ps2gs = xyes; then 675 if test x$enable_video = xyes -a x$enable_video_ps2gs = xyes; then
677 dnl AC_MSG_CHECKING(for PlayStation 2 GS support) 676 AC_MSG_CHECKING(for PlayStation 2 GS support)
678 video_ps2gs=no 677 video_ps2gs=no
679 AC_TRY_COMPILE([ 678 AC_TRY_COMPILE([
680 #include <linux/ps2/dev.h> 679 #include <linux/ps2/dev.h>
681 #include <linux/ps2/gs.h> 680 #include <linux/ps2/gs.h>
682 ],[ 681 ],[
683 ],[ 682 ],[
684 video_ps2gs=yes 683 video_ps2gs=yes
685 ]) 684 ])
686 dnl AC_MSG_RESULT($video_ps2gs) 685 AC_MSG_RESULT($video_ps2gs)
687 if test x$video_ps2gs = xyes; then 686 if test x$video_ps2gs = xyes; then
688 CFLAGS="$CFLAGS -DENABLE_PS2GS" 687 CFLAGS="$CFLAGS -DENABLE_PS2GS"
689 VIDEO_SUBDIRS="$VIDEO_SUBDIRS ps2gs" 688 VIDEO_SUBDIRS="$VIDEO_SUBDIRS ps2gs"
690 VIDEO_DRIVERS="$VIDEO_DRIVERS ps2gs/libvideo_ps2gs.la" 689 VIDEO_DRIVERS="$VIDEO_DRIVERS ps2gs/libvideo_ps2gs.la"
691 fi 690 fi