[gtk+/multitouch: 1/57] configure: Detect XInput 2.1



commit e6b8bd59435642df45ad45f9cbf7543493def436
Author: Carlos Garnacho <carlosg gnome org>
Date:   Mon Feb 28 20:43:03 2011 +0100

    configure: Detect XInput 2.1

 configure.ac |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index fb5f8ed..521c17a 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1125,6 +1125,10 @@ if test "x$enable_x11_backend" = xyes; then
                     AC_DEFINE(XINPUT_2, 1, [Define to 1 if XInput 2.0 is available]),
                     X_EXTENSIONS="$X_EXTENSIONS XInput")
 
+    gtk_save_LIBS="$LIBS"
+    LIBS="$LIBS -lXi"
+    AC_CHECK_FUNC(XIAllowTouchEvents, AC_DEFINE(XINPUT_2_1, 1, [Define to 1 if XInput 2.1 is available]))
+    LIBS="$gtk_save_LIBS"
   else
     AC_DEFINE(XINPUT_NONE, 1,
               [Define to 1 if no XInput should be used])



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]