mirror of
https://github.com/X11Libre/xf86-video-nouveau.git
synced 2026-03-24 01:24:20 +00:00
glamor: fix build without glamor.h
xorg-server can be built without glamor, which leads to: CC nouveau_xv.lo In file included from nouveau_xv.c:41:0: nouveau_glamor.h:12:20: fatal error: glamor.h: No such file or directory compilation terminated. Signed-off-by: Marcin Slusarz <marcin.slusarz@gmail.com> Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
This commit is contained in:
committed by
Ben Skeggs
parent
f0fa831371
commit
41c1c4ee86
@@ -128,7 +128,13 @@ XORG_MANPAGE_SECTIONS
|
||||
XORG_RELEASE_VERSION
|
||||
|
||||
AC_MSG_CHECKING([whether to include GLAMOR support])
|
||||
if pkg-config --exists "xorg-server >= 1.15.99.901"
|
||||
|
||||
AC_COMPILE_IFELSE(AC_LANG_PROGRAM(
|
||||
[[
|
||||
#include <glamor.h>
|
||||
]],[[]]),[found_glamor_header=yes],[found_glamor_header=no])
|
||||
|
||||
if test "$found_glamor_header" = "yes" && pkg-config --exists "xorg-server >= 1.15.99.901"
|
||||
then
|
||||
AC_DEFINE(HAVE_GLAMOR, 1, [Build support for glamor acceleration])
|
||||
AC_MSG_RESULT([yes])
|
||||
|
||||
Reference in New Issue
Block a user