summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog6
-rw-r--r--configure.ac7
2 files changed, 11 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 9a891e4..a1c6472 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2006-04-25 Eric Anholt <anholt@FreeBSD.org>
+
+ * configure.ac:
+ Use a CPPFLAGS with XORG_CFLAGS so that the exa test can actually find
+ its headers and not fail. Also correct some nearby spelling.
+
2006-04-24 Benjamin Herrenschmidt <benh@kernel.crashing.org>
* src/radeon_driver.c: (RADEONInitCrtcRegisters),
diff --git a/configure.ac b/configure.ac
index ac23880..92dc830 100644
--- a/configure.ac
+++ b/configure.ac
@@ -183,10 +183,12 @@ else
echo "no"
fi
+SAVE_CPPFLAGS="$CPPFLAGS"
+CPPFLAGS="$CPPFLAGS $XORG_CFLAGS"
if test "x$have_exa_h" = xyes; then
- AC_MSG_CHECKING([wether EXA version is at least 2.0.0])
+ AC_MSG_CHECKING([whether EXA version is at least 2.0.0])
AC_PREPROC_IFELSE([AC_LANG_PROGRAM([[
-#include "${sdkdir}/exa.h"
+#include "exa.h"
#if EXA_VERSION_MAJOR < 2
#error OLD EXA!
#endif
@@ -200,6 +202,7 @@ if test "x$have_exa_h" = xyes; then
echo "no."
fi
fi
+CPPFLAGS="$SAVE_CPPFLAGS"
AM_CONDITIONAL(USE_EXA, test "x$USE_EXA" = xyes)