configure.ac revision 89c04b6c
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# 3289c04b6cSmrgAC_INIT(libXrender, [0.9.8], 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]) 391f0ac6a5Smrg 406fae4e5dSmrg# Initialize libtool 416fae4e5dSmrgAC_PROG_LIBTOOL 426fae4e5dSmrg 436fae4e5dSmrg# Require X.Org macros 1.8 or later for AC_PROG_INSTALL 449c9ff80cSmrgm4_ifndef([XORG_MACROS_VERSION], 456fae4e5dSmrg [m4_fatal([must install xorg-macros 1.8 or later before running autoconf/autogen])]) 466fae4e5dSmrgXORG_MACROS_VERSION(1.8) 479c9ff80cSmrgXORG_DEFAULT_OPTIONS 486fae4e5dSmrgXORG_CHECK_MALLOC_ZERO 491f0ac6a5Smrg 501f0ac6a5Smrg# Check render configuration, strip extra digits from package version to 511f0ac6a5Smrg# find the required protocol version 521f0ac6a5Smrgif test "$VERSION" = "" ; then 531f0ac6a5Smrg VERSION=$PACKAGE_VERSION; 541f0ac6a5Smrgfi 551f0ac6a5SmrgRENDER_VERSION=[`echo $VERSION | sed 's/^\([0-9][0-9]*\.[0-9][0-9]*\).*$/\1/'`] 561f0ac6a5SmrgAC_SUBST(RENDER_VERSION) 571f0ac6a5Smrg 586fae4e5dSmrg# Obtain compiler/linker options for depedencies 596fae4e5dSmrgPKG_CHECK_MODULES(RENDER, x11 renderproto >= $RENDER_VERSION) 601f0ac6a5Smrg 6189c04b6cSmrg# Check for _XEatDataWords function that may be patched into older Xlib release 6289c04b6cSmrgSAVE_LIBS="$LIBS" 6389c04b6cSmrgLIBS="$RENDER_LIBS" 6489c04b6cSmrgAC_CHECK_FUNCS([_XEatDataWords]) 6589c04b6cSmrgLIBS="$SAVE_LIBS" 6689c04b6cSmrg 676fae4e5dSmrgAC_CONFIG_FILES([Makefile 686fae4e5dSmrg src/Makefile 696fae4e5dSmrg xrender.pc]) 706fae4e5dSmrgAC_OUTPUT 71