configure: Report which version (lib or module) of glamor is used

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
Chris Wilson 2014-04-10 09:12:02 +01:00
parent b771b41f0a
commit d364a881ef
1 changed files with 4 additions and 1 deletions

View File

@ -344,9 +344,12 @@ if test "x$GLAMOR" != "xno"; then
if test "x$UXA" != "xyes"; then
AC_MSG_ERROR([Glamor acceleration requested but UXA is not enabled])
fi
if ! pkg-config --exists "xorg-server >= 1.15.99.901"; then
if pkg-config --exists "xorg-server >= 1.15.99.901"; then
GLAMOR="yes (using Xorg glamor module)"
else
PKG_CHECK_MODULES(LIBGLAMOR, [glamor >= 0.6.0])
PKG_CHECK_MODULES(LIBGLAMOR_EGL, [glamor-egl])
GLAMOR="yes (using libglamor)"
fi
AC_DEFINE(USE_GLAMOR, 1, [Enable glamor acceleration])
fi