configure.ac revision 5bcb6992
1bd1da9d7Smrgdnl 2bd1da9d7Smrgdnl Copyright © 2003 Keith Packard, Noah Levitt 3bd1da9d7Smrgdnl 4bd1da9d7Smrgdnl Permission to use, copy, modify, distribute, and sell this software and its 5bd1da9d7Smrgdnl documentation for any purpose is hereby granted without fee, provided that 6bd1da9d7Smrgdnl the above copyright notice appear in all copies and that both that 7bd1da9d7Smrgdnl copyright notice and this permission notice appear in supporting 8bd1da9d7Smrgdnl documentation, and that the name of Keith Packard not be used in 9bd1da9d7Smrgdnl advertising or publicity pertaining to distribution of the software without 10bd1da9d7Smrgdnl specific, written prior permission. Keith Packard makes no 11bd1da9d7Smrgdnl representations about the suitability of this software for any purpose. It 12bd1da9d7Smrgdnl is provided "as is" without express or implied warranty. 13bd1da9d7Smrgdnl 14bd1da9d7Smrgdnl KEITH PACKARD DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, 15bd1da9d7Smrgdnl INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO 16bd1da9d7Smrgdnl EVENT SHALL KEITH PACKARD BE LIABLE FOR ANY SPECIAL, INDIRECT OR 17bd1da9d7Smrgdnl CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, 18bd1da9d7Smrgdnl DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER 19bd1da9d7Smrgdnl TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR 20bd1da9d7Smrgdnl PERFORMANCE OF THIS SOFTWARE. 21bd1da9d7Smrgdnl 22bd1da9d7Smrgdnl Process this file with autoconf to create configure. 23bd1da9d7Smrg 24bd1da9d7SmrgAC_PREREQ([2.57]) 25bd1da9d7Smrg 26bd1da9d7Smrgdnl 27bd1da9d7Smrgdnl Version should match the current XRes version. XResQueryVersion 28bd1da9d7Smrgdnl returns the version from XResproto.h, NOT the version we set here. But we 29bd1da9d7Smrgdnl try to keep these the same. Note that the library has an extra 30bd1da9d7Smrgdnl digit in the version number to track changes which don't affect the 31bd1da9d7Smrgdnl protocol, so XRes version l.n.m corresponds to protocol version l.n 32bd1da9d7Smrgdnl 335bcb6992SmrgAC_INIT(libXres, 1.0.4, [https://bugs.freedesktop.org/enter_bug.cgi?product=xorg], libXres) 34bd1da9d7SmrgAC_CONFIG_AUX_DIR(.) 35bd1da9d7SmrgAM_INIT_AUTOMAKE([dist-bzip2]) 365bcb6992Smrg 375bcb6992Smrg# Require xorg-macros 1.3 or later: XORG_DEFAULT_OPTIONS 385bcb6992Smrgm4_ifndef([XORG_MACROS_VERSION], 395bcb6992Smrg [m4_fatal([must install xorg-macros 1.3 or later before running autoconf/autogen])]) 405bcb6992SmrgXORG_MACROS_VERSION(1.3) 415bcb6992Smrg 42bd1da9d7SmrgAM_CONFIG_HEADER(config.h) 43bd1da9d7Smrg 44bd1da9d7Smrg# Check for progs 45bd1da9d7SmrgAC_PROG_CC 46bd1da9d7SmrgAC_PROG_LIBTOOL 47bd1da9d7Smrg 485bcb6992SmrgXORG_DEFAULT_OPTIONS 49bd1da9d7Smrg 505bcb6992Smrg# get modules 51bd1da9d7Smrg 52bd1da9d7Smrg# Check xres configuration, strip extra digits from package version to 53bd1da9d7Smrg# find the required protocol version 54bd1da9d7SmrgRES_VERSION=[`echo $VERSION | sed 's/^\([0-9][0-9]*\.[0-9][0-9]*\).*$/\1/'`] 555bcb6992SmrgPKG_CHECK_MODULES(XRES, x11 xext xextproto [resourceproto >= $RES_VERSION]) 565bcb6992SmrgXRES_CFLAGS="$CWARNFLAGS $XRES_CFLAGS" 575bcb6992SmrgAC_SUBST(XRES_CFLAGS) 585bcb6992SmrgAC_SUBST(XRES_LIBS) 59bd1da9d7Smrg 60bd1da9d7SmrgXORG_CHECK_MALLOC_ZERO 61bd1da9d7Smrg 62bd1da9d7SmrgAC_OUTPUT([Makefile 63bd1da9d7Smrg src/Makefile 64bd1da9d7Smrg man/Makefile 65bd1da9d7Smrg xres.pc]) 66bd1da9d7Smrg 67