X-Git-Url: https://diplodocus.org/git/xorg-xinput/blobdiff_plain/7d930a42e6c294ecaaf42585e37b8dc24be8a805..ea196bdcb912505277166aa12a21ca8739cdc8fb:/configure.ac?ds=sidebyside diff --git a/configure.ac b/configure.ac index 2521f3e..05c2a1b 100644 --- a/configure.ac +++ b/configure.ac @@ -1,37 +1,59 @@ -dnl Copyright 2007 Peter Hutterer -dnl Process this file with autoconf to create configure. - -AC_PREREQ([2.57]) -AC_INIT(xinput,[1.4.99.3], [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 - +# Copyright © 2007 Peter Hutterer +# Copyright © 2009 Red Hat, Inc. +# +# Permission is hereby granted, free of charge, to any person obtaining a +# copy of this software and associated documentation files (the "Software"), +# to deal in the Software without restriction, including without limitation +# the rights to use, copy, modify, merge, publish, distribute, sublicense, +# and/or sell copies of the Software, and to permit persons to whom the +# Software is furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice (including the next +# paragraph) shall be included in all copies or substantial portions of the +# Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL +# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +# DEALINGS IN THE SOFTWARE. + +# Initialize Autoconf +AC_PREREQ([2.60]) +AC_INIT([xinput], [1.6.3], + [https://gitlab.freedesktop.org/xorg/app/xinput/issues], [xinput]) +AC_CONFIG_SRCDIR([Makefile.am]) +AC_CONFIG_HEADERS([config.h]) + +# Initialize Automake +AM_INIT_AUTOMAKE([foreign dist-xz]) + +# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS +m4_ifndef([XORG_MACROS_VERSION], + [m4_fatal([must install xorg-macros 1.8 or later before running autoconf/autogen])]) +XORG_MACROS_VERSION(1.8) XORG_DEFAULT_OPTIONS -# Checks for pkg-config packages -PKG_CHECK_MODULES(XINPUT, x11 xext [xi >= 1.2] [inputproto >= 1.5]) +# Obtain compiler/linker options for dependencies +PKG_CHECK_MODULES(XINPUT, x11 xext [xi >= 1.2] [inputproto >= 1.5] xrandr xinerama) # 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) AC_SUBST(HAVE_XI2) -AC_SUBST(VERSION) +# XI2.1 support +PKG_CHECK_MODULES(XI21, [xi >= 1.4.99.1] [inputproto >= 2.0.99.1], + AC_DEFINE(HAVE_XI21, 1, [XI2.1 available])); +# XI2.2 support +PKG_CHECK_MODULES(XI22, [xi >= 1.5.99.1] [inputproto >= 2.1.99.1], + AC_DEFINE(HAVE_XI22, 1, [XI2.2 available])); -AC_OUTPUT([Makefile +AC_CONFIG_FILES([Makefile src/Makefile man/Makefile]) +AC_OUTPUT