summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulien Cristau <jcristau@debian.org>2008-08-20 15:33:59 +0800
committerZhenyu Wang <zhenyu.z.wang@intel.com>2008-08-22 13:25:51 +0800
commit7fbbafc8fc2b027ec12215ce13d814e339d01a68 (patch)
treee4f3fc7efda33bcd0cba398ebac520fb10f72b81
parentdc295d2b3cbdc5b4ca1f46b1c5a8e5f83faeb878 (diff)
Don't skip the checks for DRI headers with --enable-dri
(cherry picked from commit 5eccb5ec7ea78b5800f98decd4216d39b9ebe5ec)
-rw-r--r--configure.ac7
1 files changed, 4 insertions, 3 deletions
diff --git a/configure.ac b/configure.ac
index 0e155ce0..fcdd33c5 100644
--- a/configure.ac
+++ b/configure.ac
@@ -91,8 +91,7 @@ sdkdir=$(pkg-config --variable=sdkdir xorg-server)
# Checks for header files.
AC_HEADER_STDC
-AC_MSG_CHECKING([whether to include DRI support])
-if test x$DRI = xauto; then
+if test x$DRI != xno; then
AC_CHECK_FILE([${sdkdir}/dri.h],
[have_dri_h="yes"], [have_dri_h="no"])
AC_CHECK_FILE([${sdkdir}/sarea.h],
@@ -101,7 +100,9 @@ if test x$DRI = xauto; then
[have_dristruct_h="yes"], [have_dristruct_h="no"])
AC_CHECK_FILE([${sdkdir}/damage.h],
[have_damage_h="yes"], [have_damage_h="no"])
-
+fi
+AC_MSG_CHECKING([whether to include DRI support])
+if test x$DRI = xauto; then
if test "$have_dri_h" = yes -a \
"$have_sarea_h" = yes -a \
"$have_dristruct_h" = yes; then