]> diplodocus.org Git - xorg-xinput/blob - configure.ac
Add Peter and Red Hat's copyright notices and licenses to COPYING
[xorg-xinput] / configure.ac
1 dnl Copyright 2007 Peter Hutterer <peter@cs.unisa.edu.au>
2 dnl Process this file with autoconf to create configure.
3
4 AC_PREREQ([2.57])
5 AC_INIT(xinput,[1.5.0], [https://bugs.freedesktop.org/enter_bug.cgi?product=xorg],xinput)
6 AM_INIT_AUTOMAKE([foreign dist-bzip2])
7 AM_MAINTAINER_MODE
8
9 # Require xorg-macros: XORG_DEFAULT_OPTIONS
10 m4_ifndef([XORG_MACROS_VERSION],
11 [m4_fatal([must install xorg-macros 1.3 or later before running autoconf/autogen])])
12 XORG_MACROS_VERSION(1.3)
13 XORG_DEFAULT_OPTIONS
14
15 AM_CONFIG_HEADER(config.h)
16
17 AC_PROG_CC
18 AC_PROG_INSTALL
19
20
21 # Checks for pkg-config packages
22 PKG_CHECK_MODULES(XINPUT, x11 xext [xi >= 1.2] [inputproto >= 1.5])
23
24 # XI2 support
25 PKG_CHECK_MODULES(XI2, [xi >= 1.2.99.2] [inputproto >= 1.9.99.15],
26 HAVE_XI2="yes"; AC_DEFINE(HAVE_XI2, 1, [XI2 available]),
27 HAVE_XI2="no");
28 AM_CONDITIONAL(HAVE_XI2, [ test "$HAVE_XI2" = "yes" ])
29
30 AC_SUBST(XINPUT_CFLAGS)
31 AC_SUBST(XINPUT_LIBS)
32 AC_SUBST(HAVE_XI2)
33
34 AC_SUBST(VERSION)
35
36 AC_OUTPUT([Makefile
37 src/Makefile
38 man/Makefile])