configure.ac revision b042e37f
1b042e37fSmrgdnl 
2b042e37fSmrgdnl  $Id: configure.ac,v 1.1.1.1 2008/07/30 02:55:51 mrg Exp $
3b042e37fSmrgdnl 
4b042e37fSmrgdnl  Copyright © 2003 Keith Packard, Noah Levitt
5b042e37fSmrgdnl 
6b042e37fSmrgdnl  Permission to use, copy, modify, distribute, and sell this software and its
7b042e37fSmrgdnl  documentation for any purpose is hereby granted without fee, provided that
8b042e37fSmrgdnl  the above copyright notice appear in all copies and that both that
9b042e37fSmrgdnl  copyright notice and this permission notice appear in supporting
10b042e37fSmrgdnl  documentation, and that the name of Keith Packard not be used in
11b042e37fSmrgdnl  advertising or publicity pertaining to distribution of the software without
12b042e37fSmrgdnl  specific, written prior permission.  Keith Packard makes no
13b042e37fSmrgdnl  representations about the suitability of this software for any purpose.  It
14b042e37fSmrgdnl  is provided "as is" without express or implied warranty.
15b042e37fSmrgdnl 
16b042e37fSmrgdnl  KEITH PACKARD DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
17b042e37fSmrgdnl  INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
18b042e37fSmrgdnl  EVENT SHALL KEITH PACKARD BE LIABLE FOR ANY SPECIAL, INDIRECT OR
19b042e37fSmrgdnl  CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
20b042e37fSmrgdnl  DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
21b042e37fSmrgdnl  TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
22b042e37fSmrgdnl  PERFORMANCE OF THIS SOFTWARE.
23b042e37fSmrgdnl
24b042e37fSmrgdnl Process this file with autoconf to create configure.
25b042e37fSmrg
26b042e37fSmrgAC_PREREQ([2.57])
27b042e37fSmrg
28b042e37fSmrgdnl
29b042e37fSmrgdnl Version should match the current Render version. XRenderQueryVersion
30b042e37fSmrgdnl returns the version from randr.h, NOT the version we set here. But we
31b042e37fSmrgdnl try to keep these the same.  Note that the library has an extra
32b042e37fSmrgdnl digit in the version number to track changes which don't affect the
33b042e37fSmrgdnl protocol, so Xrandr version l.n.m corresponds to protocol version l.n
34b042e37fSmrgdnl
35b042e37fSmrgAC_INIT(libXrandr, 1.2.2, [https://bugs.freedesktop.org/enter_bug.cgi?product=xorg], libXrandr)
36b042e37fSmrgAC_CONFIG_AUX_DIR(.)
37b042e37fSmrgAM_INIT_AUTOMAKE([dist-bzip2])
38b042e37fSmrgAM_MAINTAINER_MODE
39b042e37fSmrg
40b042e37fSmrgAM_CONFIG_HEADER(config.h)
41b042e37fSmrg
42b042e37fSmrg# Check for progs
43b042e37fSmrgAC_PROG_CC
44b042e37fSmrgAC_PROG_LIBTOOL
45b042e37fSmrg
46b042e37fSmrg# Check for X
47b042e37fSmrgPKG_CHECK_MODULES(X, x11)
48b042e37fSmrgAC_SUBST(X_CFLAGS)
49b042e37fSmrgAC_SUBST(X_LIBS)
50b042e37fSmrg		  
51b042e37fSmrg# Check randr configuration, strip extra digits from package version to
52b042e37fSmrg# find the required protocol version
53b042e37fSmrg
54b042e37fSmrgRANDR_VERSION=[`echo $VERSION | sed 's/^\([0-9][0-9]*\.[0-9][0-9]*\).*$/\1/'`]
55b042e37fSmrgAC_SUBST(RANDR_VERSION)
56b042e37fSmrgPKG_CHECK_MODULES(RANDR, randrproto >= $RANDR_VERSION xext xextproto xrender renderproto)
57b042e37fSmrgAC_SUBST(RANDR_CFLAGS)
58b042e37fSmrgAC_SUBST(RANDR_LIBS)
59b042e37fSmrg
60b042e37fSmrgXORG_CHECK_MALLOC_ZERO
61b042e37fSmrgXORG_MANPAGE_SECTIONS
62b042e37fSmrgXORG_RELEASE_VERSION
63b042e37fSmrg
64b042e37fSmrgAC_OUTPUT([Makefile
65b042e37fSmrg	   src/Makefile
66b042e37fSmrg	   man/Makefile
67b042e37fSmrg           xrandr.pc])
68