board/csky: fixup gdb instructions in readme.txt
[buildroot-gz.git] / package / x11r7 / xdriver_xf86-video-savage / 0001-cross-compile.patch
blobb9c296b6b5d7764b4aace844144fba0283fbfa8f
1 --- a/configure.ac 2008-05-21 16:04:23.000000000 -0400
2 +++ b/configure.ac 2008-06-23 11:41:50.000000000 -0400
3 @@ -68,12 +68,18 @@ sdkdir=$(pkg-config --variable=sdkdir xo
4 AC_HEADER_STDC
6 if test "$DRI" != no; then
7 - AC_CHECK_FILE([${sdkdir}/dri.h],
8 - [have_dri_h="yes"], [have_dri_h="no"])
9 - AC_CHECK_FILE([${sdkdir}/sarea.h],
10 - [have_sarea_h="yes"], [have_sarea_h="no"])
11 - AC_CHECK_FILE([${sdkdir}/dristruct.h],
12 - [have_dristruct_h="yes"], [have_dristruct_h="no"])
13 + if test "$cross_compiling" = "no" ; then
14 + AC_CHECK_FILE([${sdkdir}/dri.h],
15 + [have_dri_h="yes"], [have_dri_h="no"])
16 + AC_CHECK_FILE([${sdkdir}/sarea.h],
17 + [have_sarea_h="yes"], [have_sarea_h="no"])
18 + AC_CHECK_FILE([${sdkdir}/dristruct.h],
19 + [have_dristruct_h="yes"], [have_dristruct_h="no"])
20 + else
21 + have_dri_h="yes"
22 + have_sarea_h="yes"
23 + have_dristruct_h="yes"
24 + fi
27 AC_MSG_CHECKING([whether to include DRI support])