changeset 287:abc78352e35e

svgalib detection
author arpi_esp
date Thu, 05 Apr 2001 19:02:02 +0000
parents b2f3f2ab3787
children abe56b2561b1
files configure
diffstat 1 files changed, 23 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/configure	Thu Apr 05 19:01:27 2001 +0000
+++ b/configure	Thu Apr 05 19:02:02 2001 +0000
@@ -74,6 +74,7 @@
         --enable-sse            build with sse support [autodetect]
         --enable-gl             build with OpenGL render support [autodetect]
         --enable-dga            build with DGA support [autodetect]
+        --enable-svga           build with SVGAlib support [autodetect]
         --enable-sdl            build with SDL render support [def.: disabled!]
         --enable-mga            build with mga_vid support [autodetect, if /dev/mga_vid
                                 is available]
@@ -168,6 +169,7 @@
 _xmga=no
 _dga=no
 _dga2=no
+_svga=no
 _fbdev=no
 _lirc=no
 
@@ -359,6 +361,7 @@
 
 $_cc $TMPC -o $TMPO $_x11libdir/ -lGL &> /dev/null && _gl=yes
 $_cc $TMPC -o $TMPO $_x11libdir/ -lXxf86vm &> /dev/null && _vm=yes
+$_cc $TMPC -o $TMPO -lvga -lvgagl &> /dev/null && _svga=yes
 $_cc $TMPC -o $TMPO $_x11libdir -lX11 -lXext &> /dev/null && _x11=yes
 $_cc $TMPC -o $TMPO $_x11libdir -lXv &> /dev/null && _xv=yes
 $_cc $TMPC -o $TMPO $_x11libdir -L/usr/local/lib/ -lpthread &> /dev/null || \
@@ -454,6 +457,9 @@
   --enable-xmga)
         _xmga=yes
         ;;	
+  --enable-svga)
+        _svga=yes
+        ;;
   --enable-dga)
         _dga=yes
         ;;
@@ -526,6 +532,9 @@
   --disable-mlib)
 	_mlib=no
 	;;
+  --disable-svga)
+	_svga=no
+	;;
   --disable-dga)
 	_dga=no
 	;;
@@ -576,6 +585,7 @@
 echo "Checking for DGA ... $_dga"
 echo "Checking for DGA 2.0 .. $_dga2"
 echo "Checking for Xf86VM ... $_vm"
+echo "Checking for SVGAlib ... $_svga"
 echo "Checking for FBDev ... $_fbdev"
 # write conf files.
 
@@ -599,6 +609,10 @@
   _dgalib='-lXxf86dga'
 fi
 
+if [ $_svga = yes ]; then
+  _svgalib='-lvga -lvgagl'
+fi
+
 if [ $_vm = yes ]; then
   _vmlib='-lXxf86vm'
 fi
@@ -638,7 +652,7 @@
 # OPTFLAGS=-O4 -march=$proc -mcpu=$proc -pipe -fomit-frame-pointer -ffast-math
 OPTFLAGS=-O4 -march=$proc -mcpu=$proc -pipe -ffast-math
 # LIBS=-L/usr/lib -L/usr/local/lib $_x11libdir $_gllib $_sdllib $_dgalib $_x11lib $_xvlib
-X_LIBS=$_x11libdir $_gllib $_sdllib $_dgalib $_x11lib $_xvlib $_vmlib
+X_LIBS=$_x11libdir $_gllib $_sdllib $_dgalib $_x11lib $_xvlib $_vmlib $_svgalib
 TERMCAP_LIB=$_libtermcap
 XMM_LIBS = $_xmmplibs
 LIRC_LIBS = $_lirclibs
@@ -740,6 +754,13 @@
  _3dfx='#undef HAVE_3DFX'
 fi
 
+if [ $_svga = yes ]; then
+ _svga='#define HAVE_SVGALIB'
+ _vosrc=$_vosrc' vo_svga.c'
+else
+ _svga='#undef HAVE_SVGALIB'
+fi
+
 if [ $_dga = yes ]; then
  _dga='#define HAVE_DGA'
  _vosrc=$_vosrc' vo_dga.c vo_fsdga.c'
@@ -840,6 +861,7 @@
 $_mga
 $_syncfb
 $_fbdev
+$_svga
 
 #if defined(HAVE_GL)||defined(HAVE_X11)||defined(HAVE_XV)
 #define X11_FULLSCREEN