]> diplodocus.org Git - xorg-xinput/commitdiff
Clean up the detection of XI2
authorBenjamin Close <Benjamin.Close@clearchain.com>
Wed, 25 Jun 2008 05:43:54 +0000 (15:13 +0930)
committerPeter Hutterer <peter@cs.unisa.edu.au>
Wed, 25 Jun 2008 08:24:58 +0000 (17:54 +0930)
Signed-off-by: Peter Hutterer <peter@cs.unisa.edu.au>
configure.ac

index d6a19ba522d93081eaa024df110b77ed77771b0a..308bd259005a76b012bb9bfe9dd45471c28c41a0 100644 (file)
@@ -15,10 +15,8 @@ AC_PROG_INSTALL
 PKG_CHECK_MODULES(XINPUT, x11 xext xi [inputproto >= 1.4])
 
 LIBS="$XINPUT_LIBS $LIBS"
-AC_CHECK_LIB(Xi, XSetClientPointer,
-             have_xi2=yes AC_DEFINE(HAVE_XI2, 1, [Enabling XI 2 calls]),
-             have_xi2=no)
-AM_CONDITIONAL(HAVE_XI2, [test "x$have_xi2" = "xyes"])
+AC_CHECK_FUNC(XSetClientPointer,AC_DEFINE(HAVE_XI2,1,[XInput Version 2 Enabled]))
+AM_CONDITIONAL(HAVE_XI2, [test "x$ac_cv_func_XSetClientPointer" = "xyes"] )
 
 AC_SUBST(XINPUT_CFLAGS)
 AC_SUBST(XINPUT_LIBS)