From 00815b3e5223e822f306db45cd4884a22ac9f7ed Mon Sep 17 00:00:00 2001 From: Julien Cristau Date: Mon, 21 Apr 2008 14:34:39 +0200 Subject: [PATCH] Don't set DRI2=yes if we can't find dri2proto or libdrm --- configure.ac | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/configure.ac b/configure.ac index 04d976c83..995a652a4 100644 --- a/configure.ac +++ b/configure.ac @@ -379,7 +379,7 @@ case $host_os in AC_DEFINE(PCVT_SUPPORT, 1, [System has PCVT console]) AC_DEFINE(SYSCONS_SUPPORT, 1, [System has syscons console]) DRI=yes - DRI2=yes + PKG_CHECK_EXISTS([dri2proto >= 1.1 libdrm >= 2.3.1], DRI2=yes, DRI2=no) ;; *netbsd*) AC_DEFINE(CSRG_BASED, 1, [System is BSD-like]) @@ -387,7 +387,7 @@ case $host_os in AC_DEFINE(PCVT_SUPPORT, 1, [System has PCVT console]) AC_DEFINE(WSCONS_SUPPORT, 1, [System has wscons console]) DRI=yes - DRI2=yes + PKG_CHECK_EXISTS([dri2proto >= 1.1 libdrm >= 2.3.1], DRI2=yes, DRI2=no) ;; *openbsd*) AC_DEFINE(CSRG_BASED, 1, [System is BSD-like]) @@ -396,7 +396,7 @@ case $host_os in ;; *linux*) DRI=yes - DRI2=yes + PKG_CHECK_EXISTS([dri2proto >= 1.1 libdrm >= 2.3.1], DRI2=yes, DRI2=no) KDRIVE_HW=yes ;; *solaris*)