diff options
Diffstat (limited to 'driver/xf86-video-radeonold')
-rw-r--r-- | driver/xf86-video-radeonold/configure.ac | 23 |
1 files changed, 21 insertions, 2 deletions
diff --git a/driver/xf86-video-radeonold/configure.ac b/driver/xf86-video-radeonold/configure.ac index 4c3ec7ccb..76368dc4b 100644 --- a/driver/xf86-video-radeonold/configure.ac +++ b/driver/xf86-video-radeonold/configure.ac @@ -121,8 +121,6 @@ CFLAGS="$XORG_CFLAGS" AC_CHECK_HEADER(xf86Modes.h,[XMODES=yes],[XMODES=no],[#include "xorg-server.h"]) CFLAGS="$save_CFLAGS" -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 @@ -199,6 +197,27 @@ if test "x$XSERVER_SOURCE" = x; then fi 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]) + if test -d "$XSERVER_SOURCE"; then case "$XSERVER_SOURCE" in /*) |