[gtk+] configure.ac: Fix build if no XInput libraries are available.



commit 4c3a829bb6f45ae054e73b0af6f01b3191d6026f
Author: Carlos Garnacho <carlosg gnome org>
Date:   Tue Jun 15 23:24:34 2010 +0200

    configure.ac: Fix build if no XInput libraries are available.

 configure.ac |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 8db352d..7f95a56 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1562,6 +1562,8 @@ if test "x$gdktarget" = "xx11"; then
 
   # set up things for XInput
   if test "x$with_xinput" != "xno" && $PKG_CONFIG --exists "xi" ; then
+    have_xinput=yes
+
     AC_DEFINE(XINPUT_XFREE, 1,
               [Define to 1 if XFree XInput should be used])
 
@@ -1574,7 +1576,7 @@ if test "x$gdktarget" = "xx11"; then
               [Define to 1 if no XInput should be used])
   fi
 
-  AM_CONDITIONAL(XINPUT_XFREE, test "x$with_xinput" != "xno")
+  AM_CONDITIONAL(XINPUT_XFREE, test "x$have_xinput" = "xyes")
   AM_CONDITIONAL(XINPUT_2,     test "x$have_xinput2" = "xyes")
 
   # Check for the RANDR extension



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