]> xenbits.xensource.com Git - qemu-xen-3.3-testing.git/commitdiff
ioemu: SDL rendering using OpenGL (lost fragment)
authorIan Jackson <iwj@mariner.uk.xensource.com>
Mon, 7 Jul 2008 14:49:50 +0000 (15:49 +0100)
committerIan Jackson <Ian.Jackson@eu.citrix.com>
Mon, 7 Jul 2008 14:49:50 +0000 (15:49 +0100)
Lost fragment of xen-unstable c/s 17225.  Thanks to Samuel Thibault
for checking.

Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
configure

index cf0badd8ea95ce37f73f06d23b23f3c5c6debf3d..b88e3a8a41f3e47614a4d0869e3a98c8a8ec9e6f 100755 (executable)
--- a/configure
+++ b/configure
@@ -825,6 +825,7 @@ echo "SDL support       $sdl"
 if test "$sdl" != "no" ; then
     echo "SDL static link   $sdl_static"
 fi
+echo "OpenGL support    $opengl"
 echo "curses support    $curses"
 echo "mingw32 support   $mingw32"
 echo "Adlib support     $adlib"
@@ -1100,6 +1101,14 @@ if test "$sdl1" = "yes" ; then
     echo "SDL_CFLAGS=`$sdl_config --cflags`" >> $config_mak
   fi
 fi
+if test $opengl = "yes"
+then
+    echo "#define CONFIG_OPENGL 1" >> $config_h
+    echo "CONFIG_OPENGL=yes" >> $config_mak
+    echo "SDL_CFLAGS+=-I/usr/include/GL" >> $config_mak
+    echo "SDL_LIBS+=-lXext" >> $config_mak
+    echo "SDL_LIBS+=-lGL" >> $config_mak
+fi
 if test "$cocoa" = "yes" ; then
   echo "#define CONFIG_COCOA 1" >> $config_h
   echo "CONFIG_COCOA=yes" >> $config_mak