From 764013ec61b9043f1487513658e374569f7154a9 Mon Sep 17 00:00:00 2001 From: Tilman Sauerbeck Date: Fri, 16 Jun 2006 10:56:02 +0200 Subject: Use AC_CHECK_HEADER() to check for exa.h --- configure.ac | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index c4df2c1..ddb9dca 100644 --- a/configure.ac +++ b/configure.ac @@ -186,8 +186,12 @@ AC_DEFINE(USE_XAA, 1, [Build support for XAA]) AC_MSG_CHECKING([whether to enable EXA support]) if test "x$EXA" = xyes; then AC_MSG_RESULT(yes) - AC_CHECK_FILE([${sdkdir}/exa.h], - [have_exa_h="yes"], [have_exa_h="no"]) + + SAVE_CPPFLAGS="$CPPFLAGS" + CPPFLAGS="$CPPFLAGS $XORG_CFLAGS" + AC_CHECK_HEADER(exa.h, + [have_exa_h="yes"], [have_exa_h="no"]) + CPPFLAGS="$SAVE_CPPFLAGS" else AC_MSG_RESULT(no) fi -- cgit v1.2.3