[mutter/wip/multitouch: 1/73] configure: Check for XInput2
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter/wip/multitouch: 1/73] configure: Check for XInput2
- Date: Mon, 31 Oct 2011 00:16:44 +0000 (UTC)
commit f5aab9398b30fa05f6c64d147ef4678dbab043a3
Author: Carlos Garnacho <carlosg gnome org>
Date: Wed Jun 8 01:01:31 2011 +0200
configure: Check for XInput2
configure.in | 26 ++++++++++++++++++++++++++
1 files changed, 26 insertions(+), 0 deletions(-)
---
diff --git a/configure.in b/configure.in
index 4b90287..a965121 100644
--- a/configure.in
+++ b/configure.in
@@ -225,6 +225,31 @@ if test x$have_xcursor = xyes; then
AC_DEFINE(HAVE_XCURSOR, , [Building with Xcursor support])
fi
+XINPUT2_VERSION=1.4.0
+
+AC_ARG_ENABLE(xinput2,
+ AC_HELP_STRING([--disable-xinput2],
+ [disable XInput2 usage]),,
+ enable_xinput2=yes)
+
+if test x$enable_xinput2 = xyes; then
+ AC_MSG_CHECKING([XInput2])
+ if $PKG_CONFIG --atleast-version $XINPUT2_VERSION xi; then
+ have_xinput2=yes
+ else
+ have_xinput2=no
+ fi
+ AC_MSG_RESULT($have_xinput2)
+else
+ have_xinput2=no
+fi
+
+if test x$have_xinput2 = xyes; then
+ echo "Building with XInput2"
+ MUTTER_PC_MODULES="$MUTTER_PC_MODULES xi"
+ AC_DEFINE(HAVE_XINPUT2, , [Building with XInput2 support])
+fi
+
PKG_CHECK_MODULES(MUTTER, $MUTTER_PC_MODULES)
AC_PATH_XTRA
@@ -544,6 +569,7 @@ mutter-$VERSION
Shape extension: ${found_shape}
Xsync: ${found_xsync}
Xcursor: ${have_xcursor}
+ XInput2: ${have_xinput2}
"
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]