xref: /OK3568_Linux_fs/buildroot/package/x11r7/xdriver_xf86-video-tdfx/0001-cross.patch (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun--- xf86-video-tdfx-1.3.0/configure.ac.orig	2007-06-10 21:01:54.000000000 +0200
2*4882a593Smuzhiyun+++ xf86-video-tdfx-1.3.0/configure.ac	2007-06-10 21:02:06.000000000 +0200
3*4882a593Smuzhiyun@@ -67,13 +67,20 @@
4*4882a593Smuzhiyun # Checks for header files.
5*4882a593Smuzhiyun AC_HEADER_STDC
6*4882a593Smuzhiyun
7*4882a593Smuzhiyun-if test "$DRI" != no; then
8*4882a593Smuzhiyun+if test "x$DRI" != xno; then
9*4882a593Smuzhiyun+	if test "$cross_compiling" = "no" ; then
10*4882a593Smuzhiyun         AC_CHECK_FILE([${sdkdir}/dri.h],
11*4882a593Smuzhiyun                       [have_dri_h="yes"], [have_dri_h="no"])
12*4882a593Smuzhiyun         AC_CHECK_FILE([${sdkdir}/sarea.h],
13*4882a593Smuzhiyun                       [have_sarea_h="yes"], [have_sarea_h="no"])
14*4882a593Smuzhiyun         AC_CHECK_FILE([${sdkdir}/dristruct.h],
15*4882a593Smuzhiyun                       [have_dristruct_h="yes"], [have_dristruct_h="no"])
16*4882a593Smuzhiyun+		AC_CHECK_HEADER
17*4882a593Smuzhiyun+	else
18*4882a593Smuzhiyun+		have_dri_h="yes"
19*4882a593Smuzhiyun+		have_sarea_h="yes"
20*4882a593Smuzhiyun+		have_dristruct_h="yes"
21*4882a593Smuzhiyun+	fi
22*4882a593Smuzhiyun fi
23*4882a593Smuzhiyun
24*4882a593Smuzhiyun AC_MSG_CHECKING([whether to include DRI support])
25