]> diplodocus.org Git - xorg-xinput/commitdiff
Require libXi 1.2 and inputproto 1.5.
authorPeter Hutterer <peter.hutterer@who-t.net>
Thu, 15 Jan 2009 23:06:54 +0000 (09:06 +1000)
committerPeter Hutterer <peter.hutterer@who-t.net>
Thu, 15 Jan 2009 23:16:01 +0000 (09:16 +1000)
Device properties are available in a released libXi version now, so there's no
need to keep them conditional, make 1.5 mandatory.

We also have the explicit check for XI2 functions in libXi, so there's no need
to have requirements for inputproto 1.9.99.5.

configure.ac
src/Makefile.am
src/xinput.c

index 24df61f048b5185f0df86556a01d93de29e95da9..a439c68ec89623f65023aaddea7b6731f269318e 100644 (file)
@@ -12,7 +12,7 @@ AC_PROG_CC
 AC_PROG_INSTALL
 
 # Checks for pkg-config packages
 AC_PROG_INSTALL
 
 # Checks for pkg-config packages
-PKG_CHECK_MODULES(XINPUT, x11 xext xi [inputproto >= 1.9.99.5])
+PKG_CHECK_MODULES(XINPUT, x11 xext [xi >= 1.2] [inputproto >= 1.5])
 
 LIBS="$XINPUT_LIBS $LIBS"
 AC_CHECK_FUNC(XSetClientPointer,AC_DEFINE(HAVE_XI2,1,[XInput Version 2 Enabled]))
 
 LIBS="$XINPUT_LIBS $LIBS"
 AC_CHECK_FUNC(XSetClientPointer,AC_DEFINE(HAVE_XI2,1,[XInput Version 2 Enabled]))
index 6ab00f36567d37797eb4314319fcb10741b74480..1efddb888b263ff048b09dca267572e87e43990f 100644 (file)
@@ -26,7 +26,7 @@ xinput_LDADD = $(XINPUT_LIBS)
 
 
 if HAVE_XI2
 
 
 if HAVE_XI2
-    xinput2_files = hierarchy.c setcp.c property.c
+    xinput2_files = hierarchy.c setcp.c
 endif # HAVE_XI2
 
 xinput_SOURCES = \
 endif # HAVE_XI2
 
 xinput_SOURCES = \
@@ -37,6 +37,7 @@ xinput_SOURCES = \
     setmode.c \
     setptr.c \
     state.c \
     setmode.c \
     setptr.c \
     state.c \
+    property.c \
     test.c \
     version.c \
     xinput.c \
     test.c \
     version.c \
     xinput.c \
index ce19aae4fe05b9aaf984258d76112925acf30660..6f416191bd68f0f3eb0896d681a2a6b3542bc04a 100644 (file)
@@ -106,6 +106,7 @@ static entry drivers[] =
       "<window> <device>",
       set_clientpointer
     },
       "<window> <device>",
       set_clientpointer
     },
+#endif
     { "list-props",
       "<device> [<device> ...]",
       list_props
     { "list-props",
       "<device> [<device> ...]",
       list_props
@@ -126,7 +127,6 @@ static entry drivers[] =
       "<device> <property>",
       delete_prop
     },
       "<device> <property>",
       delete_prop
     },
-#endif
     {0, 0, 0
     }
 };
     {0, 0, 0
     }
 };