Add a configure option to disable dga
Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com> Reviewed-by: Jamey Sharp <jamey@minilop.net> Signed-off-by: Jamey Sharp <jamey@minilop.net>
This commit is contained in:
parent
dd598ca433
commit
dd9be3b218
@ -47,6 +47,7 @@ AC_PROG_LIBTOOL
|
|||||||
AH_TOP([#include "xorg-server.h"])
|
AH_TOP([#include "xorg-server.h"])
|
||||||
|
|
||||||
# Define a configure option for an alternate module directory
|
# Define a configure option for an alternate module directory
|
||||||
|
AC_ARG_ENABLE(dga, AS_HELP_STRING([--disable-dga], [Build DGA extension (default: yes)]), [DGA=$enableval], [DGA=yes])
|
||||||
AC_ARG_WITH(xorg-module-dir, [ --with-xorg-module-dir=DIR ],
|
AC_ARG_WITH(xorg-module-dir, [ --with-xorg-module-dir=DIR ],
|
||||||
[ moduledir="$withval" ],
|
[ moduledir="$withval" ],
|
||||||
[ moduledir="$libdir/xorg/modules" ])
|
[ moduledir="$libdir/xorg/modules" ])
|
||||||
@ -57,7 +58,13 @@ AC_SUBST(moduledir)
|
|||||||
XORG_DRIVER_CHECK_EXT(RANDR, randrproto)
|
XORG_DRIVER_CHECK_EXT(RANDR, randrproto)
|
||||||
XORG_DRIVER_CHECK_EXT(RENDER, renderproto)
|
XORG_DRIVER_CHECK_EXT(RENDER, renderproto)
|
||||||
XORG_DRIVER_CHECK_EXT(XV, videoproto)
|
XORG_DRIVER_CHECK_EXT(XV, videoproto)
|
||||||
XORG_DRIVER_CHECK_EXT(XFreeXDGA, xf86dgaproto)
|
|
||||||
|
if test "x$DGA" = xyes; then
|
||||||
|
XORG_DRIVER_CHECK_EXT(XFreeXDGA, xf86dgaproto)
|
||||||
|
AC_DEFINE(XFreeXDGA, 1, [Support DGA extension])
|
||||||
|
fi
|
||||||
|
AC_SUBST([DGA])
|
||||||
|
AM_CONDITIONAL([DGA], [test "x$DGA" = xyes])
|
||||||
|
|
||||||
# Obtain compiler/linker options for the driver dependencies
|
# Obtain compiler/linker options for the driver dependencies
|
||||||
PKG_CHECK_MODULES(XORG, [xorg-server >= 1.0.99.901] xproto fontsproto $REQUIRED_MODULES)
|
PKG_CHECK_MODULES(XORG, [xorg-server >= 1.0.99.901] xproto fontsproto $REQUIRED_MODULES)
|
||||||
|
@ -33,6 +33,10 @@ dummy_drv_ladir = @moduledir@/drivers
|
|||||||
|
|
||||||
dummy_drv_la_SOURCES = \
|
dummy_drv_la_SOURCES = \
|
||||||
dummy_cursor.c \
|
dummy_cursor.c \
|
||||||
dummy_dga.c \
|
|
||||||
dummy_driver.c \
|
dummy_driver.c \
|
||||||
dummy.h
|
dummy.h
|
||||||
|
|
||||||
|
if DGA
|
||||||
|
dummy_drv_la_SOURCES += \
|
||||||
|
dummy_dga.c
|
||||||
|
endif
|
||||||
|
@ -592,7 +592,9 @@ DUMMYScreenInit(int scrnIndex, ScreenPtr pScreen, int argc, char **argv)
|
|||||||
|
|
||||||
xf86SetBlackWhitePixels(pScreen);
|
xf86SetBlackWhitePixels(pScreen);
|
||||||
|
|
||||||
|
#ifdef XFreeXDGA
|
||||||
DUMMYDGAInit(pScreen);
|
DUMMYDGAInit(pScreen);
|
||||||
|
#endif
|
||||||
|
|
||||||
if (dPtr->swCursor)
|
if (dPtr->swCursor)
|
||||||
xf86DrvMsg(scrnIndex, X_CONFIG, "Using Software Cursor.\n");
|
xf86DrvMsg(scrnIndex, X_CONFIG, "Using Software Cursor.\n");
|
||||||
|
Loading…
Reference in New Issue
Block a user