From 91c364d87b88a89dc991f9effbf4d537ca19192a Mon Sep 17 00:00:00 2001 From: Henrik Rydberg Date: Tue, 15 Feb 2011 18:56:17 +0100 Subject: Optional XI2.1 support This patch adds XI2.1 support to mtview. Several instances of the the program can be open simultaneously, each one being a window into the device, which is mapped onto the whole screen. On a touchscreen, paiting can occur simultaneously in each window. The device mapping is automatically modified in multi-head setups, and xinput set-prop can be used to map the device to a portion of the screen. Thanks to Chase Douglas for fixing this. Signed-off-by: Henrik Rydberg --- configure.ac | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index 5e177c7..8e107ff 100644 --- a/configure.ac +++ b/configure.ac @@ -27,6 +27,15 @@ PKG_CHECK_MODULES([EVEMU], [utouch-evemu >= 1.0]) PKG_CHECK_MODULES([FRAME], [utouch-frame >= 1.0]) PKG_CHECK_MODULES([X11], [x11]) +AC_ARG_WITH([xi], AS_HELP_STRING([--with-xi], [Build with XI2.1 support])) +AM_CONDITIONAL([HAVE_XI], [test "x$with_xi" != "x"]) + +AS_IF([test "x$with_xi" = "xyes"], [ + PKG_CHECK_MODULES(XINPUT, x11 xext [xi >= 1.2] [inputproto >= 1.5]) + PKG_CHECK_MODULES(XI2_1, [xi >= 1.4.99.1] [inputproto >= 2.0.99.1]) + AC_DEFINE([HAVE_XI], [1], [XI2.1 support]) +]) + AC_CONFIG_FILES([Makefile tools/Makefile mtview.pc]) -- cgit v1.2.3