From 336f24465a106553dae26ac84a3c43f9ad939a57 Mon Sep 17 00:00:00 2001 From: Bradley Smith Date: Sun, 18 Mar 2012 18:44:31 -0700 Subject: Improves configure checks for XCB. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The XCB plugin requries libxcb >= 1.5. Configure and config.tests/qpa/xcb now check for this. Change-Id: I96c688b79bf5b49fd3ecc4ddc12ebdc2d3788790 Reviewed-by: Samuel Rødal Reviewed-by: Oswald Buddenhagen --- config.tests/qpa/xcb/xcb.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'config.tests') diff --git a/config.tests/qpa/xcb/xcb.cpp b/config.tests/qpa/xcb/xcb.cpp index c594d4f38b..6037f15e82 100644 --- a/config.tests/qpa/xcb/xcb.cpp +++ b/config.tests/qpa/xcb/xcb.cpp @@ -58,5 +58,8 @@ int main(int, char **) xcb_connection_t *connection = xcb_connect("", &primaryScreen); + // This won't compile unless libxcb >= 1.5 which defines XCB_ATOM_PRIMARY. + int xcbAtomPrimary = XCB_ATOM_PRIMARY; + return 0; } -- cgit v1.2.3