summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2011-12-24 12:19:40 +1000
committerPeter Hutterer <peter.hutterer@who-t.net>2011-12-24 12:49:18 +1000
commitba9377c6d9e6d0d2813e471b516bb36902dae2ce (patch)
tree1a2fb00869dffa3ad6a26961183fcccefe4985c8 /configure.ac
parent7f7606fc461dca1f087a756c85e22f2cc773d008 (diff)
Remove need for --enable-multitouch
If we spot inputproto 2.1.99.3, we assume we have a capable X server. This should really be a server version check, but the server version hasn't been bumped yet. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac13
1 files changed, 4 insertions, 9 deletions
diff --git a/configure.ac b/configure.ac
index cfff2d4..5671193 100644
--- a/configure.ac
+++ b/configure.ac
@@ -48,16 +48,11 @@ XORG_DEFAULT_OPTIONS
PKG_CHECK_MODULES(XORG, [xorg-server >= 1.10] xproto inputproto)
PKG_CHECK_MODULES(UDEV, udev)
-# Whether to include support for experimental XI 2.2 multitouch
-AC_ARG_ENABLE(multitouch,
- AC_HELP_STRING([--enable-multitouch],
- [Enable experimental XI 2.2 multitouch support [[default: disabled]]]),
- [MULTITOUCH=$enableval],
- [MULTITOUCH=no])
-
-if test "x$MULTITOUCH" = xyes; then
- AC_DEFINE(MULTITOUCH, 1, [Enable experimental multitouch code])
+PKG_CHECK_MODULES(XI22, [inputproto >= 2.1.99.3],
+ HAVE_XI22="yes"; AC_DEFINE(MULTITOUCH, 1, [XI2.2 available]),
+ HAVE_XI22="no")
+if test "x$HAVE_XI22" = xyes; then
# Obtain compiler/linker options for mtdev
PKG_CHECK_MODULES(MTDEV, mtdev)
fi