configure.ac: require dri2proto for overlay
authorBen Widawsky <benjamin.widawsky@intel.com>
Sat, 5 Oct 2013 23:21:11 +0000 (16:21 -0700)
committerBen Widawsky <benjamin.widawsky@intel.com>
Sat, 5 Oct 2013 23:21:11 +0000 (16:21 -0700)
With the introduction of

commit f9a50de3dcc501e930de6c60983a4feb57121e7e
Author: Chris Wilson <chris@chris-wilson.co.uk>
Date:   Sat Aug 17 11:12:07 2013 +0100

    Introduce intel-gpu-overlay

dri2proto became a dependency (and there is no way to disable overlay
explicitly. The actual version chosen was arbitrarily stolen from mesa.

Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
configure.ac

index d5c65c2..741dd74 100644 (file)
@@ -80,9 +80,11 @@ AM_CONDITIONAL(BUILD_OVERLAY_XLIB, [test "x$enable_overlay_xlib" = xyes])
 AM_CONDITIONAL(BUILD_OVERLAY, [test "x$enable_overlay_xlib" = xyes -o "x$enable_overlay_xvlib"])
 if test x$enable_overlay_xvlib = xyes; then
        AC_DEFINE(HAVE_OVERLAY_XVLIB, 1, [Enable XV backend])
+       PKG_CHECK_MODULES(DRI2PROTO, [dri2proto >= 2.6])
 fi
 if test x$enable_overlay_xlib = xyes; then
        AC_DEFINE(HAVE_OVERLAY_XLIB, 1, [Enable X backend])
+       PKG_CHECK_MODULES(DRI2PROTO, [dri2proto >= 2.6])
 fi
 PKG_CHECK_MODULES(XRANDR, xrandr >= 1.3, AC_DEFINE(HAVE_XRANDR, 1, [Have libXrandr]), [have_xrandr=no])