summaryrefslogtreecommitdiff
path: root/driver/xf86-video-ati/configure.ac
diff options
context:
space:
mode:
authorMatthieu Herrb <matthieu@cvs.openbsd.org>2012-11-11 15:49:44 +0000
committerMatthieu Herrb <matthieu@cvs.openbsd.org>2012-11-11 15:49:44 +0000
commita26a9fdb10a5cb05e17902d85c861e4775eb8a4c (patch)
tree2d2b0eec655f1cdc5a4f357ea7bdf6d71e9f20d6 /driver/xf86-video-ati/configure.ac
parente0ec3b3335e3f2b6461f6c9510f10dabbb381d94 (diff)
Make it possible to build radeon drivers without XAA.
Diffstat (limited to 'driver/xf86-video-ati/configure.ac')
-rw-r--r--driver/xf86-video-ati/configure.ac23
1 files changed, 21 insertions, 2 deletions
diff --git a/driver/xf86-video-ati/configure.ac b/driver/xf86-video-ati/configure.ac
index 88769184b..947a1facb 100644
--- a/driver/xf86-video-ati/configure.ac
+++ b/driver/xf86-video-ati/configure.ac
@@ -163,8 +163,6 @@ fi
AM_CONDITIONAL(DRM_MODE, test x$DRM_MODE = xyes)
AM_CONDITIONAL(LIBUDEV, test x$LIBUDEV = xyes)
-AC_DEFINE(USE_XAA, 1, [Build support for XAA])
-
# Properly handle EXA.
AC_MSG_CHECKING([whether to enable EXA support])
if test "x$EXA" = xyes; then
@@ -246,6 +244,27 @@ if test "x$have_list_h" = xyes; then
#include "list.h"])
fi
+AC_ARG_ENABLE(xaa,
+ AS_HELP_STRING([--enable-xaa],
+ [Enable legacy X Acceleration Architecture (XAA) [default=auto]]),
+ [XAA="$enableval"],
+ [XAA=auto])
+if test "x$XAA" != xno; then
+ save_CFLAGS=$CFLAGS
+ save_CPPFLAGS=$CPPFLAGS
+ CFLAGS=$XORG_CFLAGS
+ CPPFLAGS="$XORG_CFLAGS"
+ AC_CHECK_HEADERS([xaa.h], XAA=yes, XAA=no)
+ CFLAGS=$save_CFLAGS
+ CPPFLAGS=$save_CPPFLAGS
+fi
+AC_MSG_CHECKING([whether to include XAA support])
+AM_CONDITIONAL(XAA, test "x$XAA" = xyes)
+if test "x$XAA" = xyes; then
+ AC_DEFINE(USE_XAA, test "x$XAA" = xyes, [Build support for XAA])
+fi
+AC_MSG_RESULT([$XAA])
+
CPPFLAGS="$SAVE_CPPFLAGS"
AM_CONDITIONAL(USE_EXA, test "x$USE_EXA" = xyes)