configure.ac revision 47e89262
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 2447e89262SmrgAC_PREREQ([2.60]) 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 3347e89262SmrgAC_INIT([libXres], [1.0.5], 3447e89262Smrg [https://bugs.freedesktop.org/enter_bug.cgi?product=xorg], [libXres]) 35bd1da9d7SmrgAC_CONFIG_AUX_DIR(.) 3647e89262SmrgAM_INIT_AUTOMAKE([foreign dist-bzip2]) 3747e89262SmrgAM_MAINTAINER_MODE 385bcb6992Smrg 3947e89262Smrg# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS 405bcb6992Smrgm4_ifndef([XORG_MACROS_VERSION], 4147e89262Smrg [m4_fatal([must install xorg-macros 1.8 or later before running autoconf/autogen])]) 4247e89262SmrgXORG_MACROS_VERSION(1.8) 435bcb6992Smrg 44bd1da9d7SmrgAM_CONFIG_HEADER(config.h) 45bd1da9d7Smrg 46bd1da9d7Smrg# Check for progs 47bd1da9d7SmrgAC_PROG_CC 48bd1da9d7SmrgAC_PROG_LIBTOOL 49bd1da9d7Smrg 505bcb6992SmrgXORG_DEFAULT_OPTIONS 51bd1da9d7Smrg 525bcb6992Smrg# get modules 53bd1da9d7Smrg 54bd1da9d7Smrg# Check xres configuration, strip extra digits from package version to 55bd1da9d7Smrg# find the required protocol version 56bd1da9d7SmrgRES_VERSION=[`echo $VERSION | sed 's/^\([0-9][0-9]*\.[0-9][0-9]*\).*$/\1/'`] 575bcb6992SmrgPKG_CHECK_MODULES(XRES, x11 xext xextproto [resourceproto >= $RES_VERSION]) 58bd1da9d7Smrg 59bd1da9d7SmrgXORG_CHECK_MALLOC_ZERO 60bd1da9d7Smrg 61bd1da9d7SmrgAC_OUTPUT([Makefile 62bd1da9d7Smrg src/Makefile 63bd1da9d7Smrg man/Makefile 64bd1da9d7Smrg xres.pc]) 65bd1da9d7Smrg 66