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#
326ee7d557SmrgAC_INIT(libXrender, [0.9.12],
33d21ab8bcSmrg	[https://gitlab.freedesktop.org/xorg/lib/libxrender/-/issues],
34d21ab8bcSmrg	[libXrender])
356fae4e5dSmrgAC_CONFIG_SRCDIR([Makefile.am])
366fae4e5dSmrgAC_CONFIG_HEADERS([config.h])
376ee7d557SmrgAC_CONFIG_MACRO_DIRS([m4])
381f0ac6a5Smrg
39d21ab8bcSmrgPACKAGE_BRIEF="Library for the Render Extension to the X11 protocol"
40d21ab8bcSmrgAC_SUBST(PACKAGE_BRIEF)
41d21ab8bcSmrg
426fae4e5dSmrg# Initialize Automake
43d21ab8bcSmrgAM_INIT_AUTOMAKE([foreign dist-xz])
441f0ac6a5Smrg
456fae4e5dSmrg# Initialize libtool
466ee7d557SmrgLT_INIT
476fae4e5dSmrg
486fae4e5dSmrg# Require X.Org macros 1.8 or later for AC_PROG_INSTALL
499c9ff80cSmrgm4_ifndef([XORG_MACROS_VERSION],
506fae4e5dSmrg          [m4_fatal([must install xorg-macros 1.8 or later before running autoconf/autogen])])
516fae4e5dSmrgXORG_MACROS_VERSION(1.8)
529c9ff80cSmrgXORG_DEFAULT_OPTIONS
536fae4e5dSmrgXORG_CHECK_MALLOC_ZERO
541f0ac6a5Smrg
551f0ac6a5Smrg# Check render configuration, strip extra digits from package version to
561f0ac6a5Smrg# find the required protocol version
571f0ac6a5Smrgif test "$VERSION" = "" ; then
581f0ac6a5Smrg       VERSION=$PACKAGE_VERSION;
591f0ac6a5Smrgfi
601f0ac6a5SmrgRENDER_VERSION=[`echo $VERSION | sed 's/^\([0-9][0-9]*\.[0-9][0-9]*\).*$/\1/'`]
611f0ac6a5SmrgAC_SUBST(RENDER_VERSION)
621f0ac6a5Smrg
63d21ab8bcSmrg# Obtain compiler/linker options for dependencies
64b9867631SmrgPKG_CHECK_MODULES(RENDER, [x11 >= 1.6] renderproto >= $RENDER_VERSION)
6589c04b6cSmrg
666fae4e5dSmrgAC_CONFIG_FILES([Makefile
676fae4e5dSmrg		src/Makefile
68d21ab8bcSmrg		Doxyfile
696fae4e5dSmrg		xrender.pc])
706fae4e5dSmrgAC_OUTPUT
71