configure.ac revision 52b01e16
14b0ead49Smrgdnl 24b0ead49Smrgdnl Copyright © 2003 Keith Packard, Noah Levitt 34b0ead49Smrgdnl 44b0ead49Smrgdnl Permission to use, copy, modify, distribute, and sell this software and its 54b0ead49Smrgdnl documentation for any purpose is hereby granted without fee, provided that 64b0ead49Smrgdnl the above copyright notice appear in all copies and that both that 74b0ead49Smrgdnl copyright notice and this permission notice appear in supporting 84b0ead49Smrgdnl documentation, and that the name of Keith Packard not be used in 94b0ead49Smrgdnl advertising or publicity pertaining to distribution of the software without 104b0ead49Smrgdnl specific, written prior permission. Keith Packard makes no 114b0ead49Smrgdnl representations about the suitability of this software for any purpose. It 124b0ead49Smrgdnl is provided "as is" without express or implied warranty. 134b0ead49Smrgdnl 144b0ead49Smrgdnl KEITH PACKARD DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, 154b0ead49Smrgdnl INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO 164b0ead49Smrgdnl EVENT SHALL KEITH PACKARD BE LIABLE FOR ANY SPECIAL, INDIRECT OR 174b0ead49Smrgdnl CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, 184b0ead49Smrgdnl DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER 194b0ead49Smrgdnl TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR 204b0ead49Smrgdnl PERFORMANCE OF THIS SOFTWARE. 214b0ead49Smrgdnl 224b0ead49Smrgdnl Process this file with autoconf to create configure. 234b0ead49Smrg 244b0ead49SmrgAC_PREREQ([2.57]) 254b0ead49Smrg 264b0ead49Smrgdnl 274b0ead49Smrgdnl Version should match the current XComposite version. XCompositeQueryVersion 2852b01e16Smrgdnl returns the version from xcompositewire.h, NOT the version we set here. 2952b01e16Smrgdnl But we try to keep these the same. Note that the library has an extra 304b0ead49Smrgdnl digit in the version number to track changes which don't affect the 314b0ead49Smrgdnl protocol, so Xcomposite version l.n.m corresponds to protocol version l.n 324b0ead49Smrgdnl that 'revision' number appears in Xcomposite.h and has to be manually 334b0ead49Smrgdnl synchronized. 344b0ead49Smrgdnl 3552b01e16SmrgAC_INIT(libXcomposite, 0.4.1, [https://bugs.freedesktop.org/enter_bug.cgi?product=xorg], libXcomposite) 364b0ead49SmrgAM_INIT_AUTOMAKE([dist-bzip2]) 374b0ead49SmrgAM_MAINTAINER_MODE 384b0ead49Smrg 3952b01e16Smrg# Require xorg-macros 1.3 or later: XORG_DEFAULT_OPTIONS 4052b01e16Smrgm4_ifndef([XORG_MACROS_VERSION], 4152b01e16Smrg [m4_fatal([must install xorg-macros 1.3 or later before running autoconf/autogen])]) 4252b01e16SmrgXORG_MACROS_VERSION(1.3) 434b0ead49SmrgAM_CONFIG_HEADER(config.h) 444b0ead49Smrg 454b0ead49Smrg# Check for progs 464b0ead49SmrgAC_PROG_CC 474b0ead49SmrgAC_PROG_LIBTOOL 484b0ead49Smrg 4952b01e16SmrgXORG_DEFAULT_OPTIONS 5052b01e16Smrg 514b0ead49SmrgAC_ARG_VAR([XMLTO], [Path to xmlto command]) 524b0ead49SmrgAC_PATH_PROG([XMLTO], [xmlto]) 534b0ead49SmrgAM_CONDITIONAL([HAVE_XMLTO], [test "x$XMLTO" != "x"]) 544b0ead49Smrgif test "x$XMLTO" = "x" -a ! -f $srcdir/man/Xcomposite.man ; then 554b0ead49Smrg AC_MSG_WARN([xmlto not found - cannot create man pages without it]) 564b0ead49Smrgfi 574b0ead49Smrg 584b0ead49Smrg# Check compositeext configuration, strip extra digits from package version to 594b0ead49Smrg# find the required protocol version 604b0ead49Smrg 614b0ead49Smrgif test "$VERSION" = "" ; then 624b0ead49Smrg VERSION=$PACKAGE_VERSION; 634b0ead49Smrgfi 644b0ead49SmrgCOMPOSITEEXT_VERSION=[`echo $VERSION | sed 's/^\([0-9][0-9]*\.[0-9][0-9]*\).*$/\1/'`] 654b0ead49SmrgAC_SUBST(COMPOSITEEXT_VERSION) 664b0ead49SmrgPKG_CHECK_MODULES(XCOMPOSITE, [compositeproto >= $COMPOSITEEXT_VERSION] x11 xfixes xext fixesproto) 674b0ead49SmrgAC_SUBST(XCOMPOSITE_CFLAGS) 684b0ead49SmrgAC_SUBST(XCOMPOSITE_LIBS) 694b0ead49Smrg 704b0ead49SmrgAC_OUTPUT([Makefile 714b0ead49Smrg src/Makefile 724b0ead49Smrg man/Makefile 734b0ead49Smrg xcomposite.pc]) 744b0ead49Smrg 75