configure.ac revision 25b89263
1
2dnl  Copyright 2005 Red Hat, Inc.
3dnl 
4dnl  Permission to use, copy, modify, distribute, and sell this software and its
5dnl  documentation for any purpose is hereby granted without fee, provided that
6dnl  the above copyright notice appear in all copies and that both that
7dnl  copyright notice and this permission notice appear in supporting
8dnl  documentation, and that the name of Red Hat not be used in
9dnl  advertising or publicity pertaining to distribution of the software without
10dnl  specific, written prior permission.  Red Hat makes no
11dnl  representations about the suitability of this software for any purpose.  It
12dnl  is provided "as is" without express or implied warranty.
13dnl 
14dnl  RED HAT DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
15dnl  INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
16dnl  EVENT SHALL RED HAT BE LIABLE FOR ANY SPECIAL, INDIRECT OR
17dnl  CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
18dnl  DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
19dnl  TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
20dnl  PERFORMANCE OF THIS SOFTWARE.
21dnl
22dnl Process this file with autoconf to create configure.
23
24AC_PREREQ([2.60])
25
26AC_INIT([libXtst], [1.2.0],
27        [https://bugs.freedesktop.org/enter_bug.cgi?product=xorg], [libXtst])
28AM_INIT_AUTOMAKE([foreign dist-bzip2])
29AM_MAINTAINER_MODE
30
31# Require xorg-macros minimum of 1.10 for DocBook XML documentation
32m4_ifndef([XORG_MACROS_VERSION],
33          [m4_fatal([must install xorg-macros 1.10 or later before running autoconf/autogen])])
34XORG_MACROS_VERSION(1.10)
35XORG_DEFAULT_OPTIONS
36XORG_ENABLE_SPECS
37XORG_WITH_XMLTO(0.0.20)
38XORG_WITH_FOP
39XORG_CHECK_SGML_DOCTOOLS(1.5)
40AM_CONFIG_HEADER(config.h)
41
42# Check for progs
43AC_PROG_CC
44AC_PROG_LIBTOOL
45
46# Check for dependencies
47PKG_CHECK_MODULES(XTST, x11 [xext >= 1.0.99.4] xi [recordproto >= 1.13.99.1] [xextproto >= 7.0.99.3] inputproto)
48
49# Determine if the source for man pages is available
50# It may already be present (tarball) or can be generated using xmlto
51AM_CONDITIONAL([INSTALL_MANPAGES],
52	[test -f "$srcdir/man/XTestQueryExtension.man" || test "x$have_xmlto" = xyes])
53
54dnl Allow checking code with lint, sparse, etc.
55XORG_WITH_LINT
56XORG_LINT_LIBRARY([Xtst])
57LINT_FLAGS="${LINT_FLAGS} ${XTST_CFLAGS}"
58
59AC_OUTPUT([Makefile
60	   man/Makefile
61	   src/Makefile
62	   specs/Makefile
63	   xtst.pc])
64