summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorHenrik Rydberg <rydberg@euromail.se>2011-02-15 14:48:57 +0100
committerHenrik Rydberg <rydberg@euromail.se>2011-02-15 14:48:57 +0100
commit3244deffa1aedbb6c1af8c2dc993f1d771373c6a (patch)
tree2e5a234d628c7065d5a75620639b3a7305fa33ab /configure.ac
parent814bc7eb456af9439c88d9c7617816934183b959 (diff)
Optional XI2.1 support
This patchs adds optional XI2.1 support to utouch-frame. The utouch/frame-xi2.h header contains helper functions equivalent to utouch/frame-mtdev.h. In addition, the device-to-screen mapping is handled via XEvents and optionally XIPropertyEvent. The latter allows free device placement via xinput set-prop, useful in multi- head setups, thanks to Chase Douglas. Touch frame events can be tested using the utouch-frame-test-xi2 tool. Use --with-xi to enable. Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac9
1 files changed, 9 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 980a044..12b275e 100644
--- a/configure.ac
+++ b/configure.ac
@@ -25,6 +25,15 @@ AC_PROG_INSTALL
25PKG_CHECK_MODULES([MTDEV], [mtdev >= 1.1]) 25PKG_CHECK_MODULES([MTDEV], [mtdev >= 1.1])
26PKG_CHECK_MODULES([EVEMU], [utouch-evemu >= 1.0]) 26PKG_CHECK_MODULES([EVEMU], [utouch-evemu >= 1.0])
27 27
28AC_ARG_WITH([xi], AS_HELP_STRING([--with-xi], [Build with XI2.1 support]))
29AM_CONDITIONAL([HAVE_XI], [test "x$with_xi" != "x"])
30
31AS_IF([test "x$with_xi" = "xyes"], [
32 PKG_CHECK_MODULES([X11], [x11])
33 PKG_CHECK_MODULES(XINPUT, x11 xext [xi >= 1.2] [inputproto >= 1.5])
34 PKG_CHECK_MODULES(XI2_1, [xi >= 1.4.99.1] [inputproto >= 2.0.99.1])
35])
36
28AC_CHECK_PROG([ASCIIDOC], [a2x], [a2x]) 37AC_CHECK_PROG([ASCIIDOC], [a2x], [a2x])
29AM_CONDITIONAL([HAVE_DOCTOOLS], [test "x$ASCIIDOC" != "x"]) 38AM_CONDITIONAL([HAVE_DOCTOOLS], [test "x$ASCIIDOC" != "x"])
30AS_IF([test "x$ASCIIDOC" = "x"], 39AS_IF([test "x$ASCIIDOC" = "x"],