summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorM Joonas Pihlaja <jpihlaja@cc.helsinki.fi>2010-03-01 01:23:17 +0200
committerM Joonas Pihlaja <jpihlaja@cc.helsinki.fi>2010-03-01 01:23:17 +0200
commit1a7ba1a8061c373cd66d15b3a1c8dfada92745ef (patch)
tree0003bd7906e38a3bde07c63e334010e33450a0c0 /configure.ac
parent5b7f4bb241f3191c1589cd714f373719efded56e (diff)
xcb: Update minimum required versions of libxcb.
The new xcb surface uses xcb_writev() and xcb_take_socket() which were introduced in libxcb 1.1.92. The boilerplate in turn uses the major_code and minor_code fields in xcb_generic_error_t, which were introduced in 1.4.
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac5
1 files changed, 4 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index 7d0cde0be..b483dd245 100644
--- a/configure.ac
+++ b/configure.ac
@@ -116,10 +116,13 @@ CAIRO_ENABLE_SURFACE_BACKEND(xlib_xrender, Xlib Xrender, auto, [
dnl ===========================================================================
CAIRO_ENABLE_SURFACE_BACKEND(xcb, XCB, no, [
- xcb_REQUIRES="xcb >= 0.9.92 xcb-render >= 0.9.92"
+ xcb_REQUIRES="xcb >= 1.1.92 xcb-render >= 0.9.92"
PKG_CHECK_MODULES(xcb, $xcb_REQUIRES, ,
[AC_MSG_RESULT(no)
use_xcb="no (requires $xcb_REQUIRES http://xcb.freedesktop.org)"])
+ if $PKG_CONFIG --atleast-version=1.4 xcb; then
+ CAIRO_CFLAGS="$CAIRO_CFLAGS -DXCB_GENERIC_ERROR_HAS_MAJOR_MINOR_CODES"
+ fi
])
CAIRO_ENABLE_FUNCTIONS(xlib_xcb, Xlib/XCB, no, [