Make it possible to build radeon drivers without XAA.
This commit is contained in:
parent
5675f61d57
commit
2548fbc088
@ -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)
|
||||
|
@ -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
|
||||
/*)
|
||||
|
Loading…
Reference in New Issue
Block a user