configure.ac revision 6fae4e5d
16fae4e5dSmrg#
26fae4e5dSmrg#  Copyright © 2003 Keith Packard, Noah Levitt
36fae4e5dSmrg#
46fae4e5dSmrg#  Permission to use, copy, modify, distribute, and sell this software and its
56fae4e5dSmrg#  documentation for any purpose is hereby granted without fee, provided that
66fae4e5dSmrg#  the above copyright notice appear in all copies and that both that
76fae4e5dSmrg#  copyright notice and this permission notice appear in supporting
86fae4e5dSmrg#  documentation, and that the name of Keith Packard not be used in
96fae4e5dSmrg#  advertising or publicity pertaining to distribution of the software without
106fae4e5dSmrg#  specific, written prior permission.  Keith Packard makes no
116fae4e5dSmrg#  representations about the suitability of this software for any purpose.  It
126fae4e5dSmrg#  is provided "as is" without express or implied warranty.
136fae4e5dSmrg#
146fae4e5dSmrg#  KEITH PACKARD DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
156fae4e5dSmrg#  INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
166fae4e5dSmrg#  EVENT SHALL KEITH PACKARD BE LIABLE FOR ANY SPECIAL, INDIRECT OR
176fae4e5dSmrg#  CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
186fae4e5dSmrg#  DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
196fae4e5dSmrg#  TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
206fae4e5dSmrg#  PERFORMANCE OF THIS SOFTWARE.
216fae4e5dSmrg#
221f0ac6a5Smrg
236fae4e5dSmrg# Initialize Autoconf
249c9ff80cSmrgAC_PREREQ([2.60])
256fae4e5dSmrg#
266fae4e5dSmrg# Version should match the current Render version. XRenderQueryVersion
276fae4e5dSmrg# returns the version from render.h, NOT the version we set here. But we
286fae4e5dSmrg# try to keep these the same.  Note that the library has an extra
296fae4e5dSmrg# digit in the version number to track changes which don't affect the
306fae4e5dSmrg# protocol, so Xrender version l.n.m corresponds to protocol version l.n
316fae4e5dSmrg#
326fae4e5dSmrgAC_INIT(libXrender, [0.9.7],
336fae4e5dSmrg	[https://bugs.freedesktop.org/enter_bug.cgi?product=xorg], [libXrender])
346fae4e5dSmrgAC_CONFIG_SRCDIR([Makefile.am])
356fae4e5dSmrgAC_CONFIG_HEADERS([config.h])
361f0ac6a5Smrg
376fae4e5dSmrg# Initialize Automake
389c9ff80cSmrgAM_INIT_AUTOMAKE([foreign dist-bzip2])
391f0ac6a5SmrgAM_MAINTAINER_MODE
401f0ac6a5Smrg
416fae4e5dSmrg# Initialize libtool
426fae4e5dSmrgAC_PROG_LIBTOOL
436fae4e5dSmrg
446fae4e5dSmrg# Require X.Org macros 1.8 or later for AC_PROG_INSTALL
459c9ff80cSmrgm4_ifndef([XORG_MACROS_VERSION],
466fae4e5dSmrg          [m4_fatal([must install xorg-macros 1.8 or later before running autoconf/autogen])])
476fae4e5dSmrgXORG_MACROS_VERSION(1.8)
489c9ff80cSmrgXORG_DEFAULT_OPTIONS
496fae4e5dSmrgXORG_CHECK_MALLOC_ZERO
501f0ac6a5Smrg
511f0ac6a5Smrg# Check render configuration, strip extra digits from package version to
521f0ac6a5Smrg# find the required protocol version
531f0ac6a5Smrgif test "$VERSION" = "" ; then
541f0ac6a5Smrg       VERSION=$PACKAGE_VERSION;
551f0ac6a5Smrgfi
561f0ac6a5SmrgRENDER_VERSION=[`echo $VERSION | sed 's/^\([0-9][0-9]*\.[0-9][0-9]*\).*$/\1/'`]
571f0ac6a5SmrgAC_SUBST(RENDER_VERSION)
581f0ac6a5Smrg
596fae4e5dSmrg# Obtain compiler/linker options for depedencies
606fae4e5dSmrgPKG_CHECK_MODULES(RENDER, x11 renderproto >= $RENDER_VERSION)
611f0ac6a5Smrg
626fae4e5dSmrgAC_CONFIG_FILES([Makefile
636fae4e5dSmrg		src/Makefile
646fae4e5dSmrg		xrender.pc])
656fae4e5dSmrgAC_OUTPUT
66