X-Git-Url: https://diplodocus.org/git/xorg-xinput/blobdiff_plain/6f444b5d063452e7a8705c756269960e509241d8..2ba793d412608dcad61dbca1c8c76740d4982e2b:/configure.ac diff --git a/configure.ac b/configure.ac index 27788c4..1719113 100644 --- a/configure.ac +++ b/configure.ac @@ -2,21 +2,29 @@ dnl Copyright 2007 Peter Hutterer dnl Process this file with autoconf to create configure. AC_PREREQ([2.57]) -AC_INIT(xinput,[1.4.0], [https://bugs.freedesktop.org/enter_bug.cgi?product=xorg],xinput) +AC_INIT(xinput,[1.4.99.2], [https://bugs.freedesktop.org/enter_bug.cgi?product=xorg],xinput) AM_INIT_AUTOMAKE([dist-bzip2]) AM_MAINTAINER_MODE +# Require xorg-macros: XORG_DEFAULT_OPTIONS +m4_ifndef([XORG_MACROS_VERSION], [AC_FATAL([must install xorg-macros 1.3 or later before running autoconf/autogen])]) +XORG_MACROS_VERSION(1.3) + AM_CONFIG_HEADER(config.h) AC_PROG_CC AC_PROG_INSTALL +XORG_DEFAULT_OPTIONS + # Checks for pkg-config packages 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])) -AM_CONDITIONAL(HAVE_XI2, [test "x$ac_cv_func_XSetClientPointer" = "xyes"] ) +# XI2 support +PKG_CHECK_MODULES(XI2, [xi >= 1.2.99.2] [inputproto >= 1.9.99.15], + HAVE_XI2="yes"; AC_DEFINE(HAVE_XI2, 1, [XI2 available]), + HAVE_XI2="no"); +AM_CONDITIONAL(HAVE_XI2, [ test "$HAVE_XI2" = "yes" ]) AC_SUBST(XINPUT_CFLAGS) AC_SUBST(XINPUT_LIBS) @@ -24,9 +32,6 @@ AC_SUBST(HAVE_XI2) AC_SUBST(VERSION) -XORG_MANPAGE_SECTIONS -XORG_RELEASE_VERSION - AC_OUTPUT([Makefile src/Makefile man/Makefile])