summaryrefslogtreecommitdiffstats
path: root/recipes-extended/xen/files/ioemu-cross-gl-check.patch
blob: a1363ea0bbd03f93a40e8036bc0b6b307cc5414e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
--- qemu-xen-4.1-testing/configure	2012-02-20 09:01:08.219798969 -0700
+++ xen-4.1-testing.hg/../git/configure	2012-02-20 09:03:27.876749305 -0700
@@ -289,7 +289,7 @@
             kqemu="yes"
         fi
     fi
-    if test -f /usr/include/sys/soundcard.h ; then
+    if test -f ${CROSS_SYS_ROOT}/usr/include/sys/soundcard.h ; then
         audio_drv_list="oss"
     fi
     audio_possible_drivers="oss sdl"
@@ -872,7 +872,7 @@
 #endif
 int main( void ) { return (int) glGetString(GL_EXTENSIONS); }
 EOF
-if $cc $ARCH_CFLAGS -o $TMPE `$sdl_config --cflags --libs 2> /dev/null` -I/usr/include/GL $TMPC -lXext -lGL 2> /dev/null
+if $cc $ARCH_CFLAGS -o $TMPE `$sdl_config --cflags --libs 2> /dev/null` -I${CROSS_SYS_ROOT}/usr/include/GL $TMPC -lXext -lGL 2> /dev/null
 then
 opengl="yes"
 else
@@ -1450,7 +1450,7 @@
 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_CFLAGS+=-I${CROSS_SYS_ROOT}/usr/include/GL" >> $config_mak
     echo "SDL_LIBS+=-lXext" >> $config_mak
     echo "SDL_LIBS+=-lGL" >> $config_mak
 fi