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