Blame configure.ac

Packit 23ca31
#
Packit 23ca31
#  Copyright © 2003 Keith Packard, Noah Levitt
Packit 23ca31
#
Packit 23ca31
#  Permission to use, copy, modify, distribute, and sell this software and its
Packit 23ca31
#  documentation for any purpose is hereby granted without fee, provided that
Packit 23ca31
#  the above copyright notice appear in all copies and that both that
Packit 23ca31
#  copyright notice and this permission notice appear in supporting
Packit 23ca31
#  documentation, and that the name of Keith Packard not be used in
Packit 23ca31
#  advertising or publicity pertaining to distribution of the software without
Packit 23ca31
#  specific, written prior permission.  Keith Packard makes no
Packit 23ca31
#  representations about the suitability of this software for any purpose.  It
Packit 23ca31
#  is provided "as is" without express or implied warranty.
Packit 23ca31
#
Packit 23ca31
#  KEITH PACKARD DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
Packit 23ca31
#  INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
Packit 23ca31
#  EVENT SHALL KEITH PACKARD BE LIABLE FOR ANY SPECIAL, INDIRECT OR
Packit 23ca31
#  CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
Packit 23ca31
#  DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
Packit 23ca31
#  TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
Packit 23ca31
#  PERFORMANCE OF THIS SOFTWARE.
Packit 23ca31
#
Packit 23ca31
Packit 23ca31
# Initialize Autoconf
Packit 23ca31
AC_PREREQ([2.60])
Packit 23ca31
#
Packit 23ca31
# Version should match the current XComposite version. XCompositeQueryVersion
Packit 23ca31
# returns the version from xcompositewire.h, NOT the version we set here.
Packit 23ca31
# But we try to keep these the same.  Note that the library has an extra
Packit 23ca31
# digit in the version number to track changes which don't affect the
Packit 23ca31
# protocol, so Xcomposite version l.n.m corresponds to protocol version l.n
Packit 23ca31
# that 'revision' number appears in Xcomposite.h and has to be manually
Packit 23ca31
# synchronized.
Packit 23ca31
#
Packit 23ca31
AC_INIT(libXcomposite, [0.4.4],
Packit 23ca31
	[https://bugs.freedesktop.org/enter_bug.cgi?product=xorg], [libXcomposite])
Packit 23ca31
AC_CONFIG_SRCDIR([Makefile.am])
Packit 23ca31
AC_CONFIG_HEADERS([config.h])
Packit 23ca31
Packit 23ca31
# Initialize Automake
Packit 23ca31
AM_INIT_AUTOMAKE([foreign dist-bzip2])
Packit 23ca31
AM_MAINTAINER_MODE
Packit 23ca31
Packit 23ca31
# Initialize libtool
Packit 23ca31
AC_PROG_LIBTOOL
Packit 23ca31
Packit 23ca31
# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
Packit 23ca31
m4_ifndef([XORG_MACROS_VERSION],
Packit 23ca31
	  [m4_fatal([must install xorg-macros 1.8 or later before running autoconf/autogen])])
Packit 23ca31
XORG_MACROS_VERSION(1.8)
Packit 23ca31
XORG_DEFAULT_OPTIONS
Packit 23ca31
XORG_WITH_XMLTO(0.0.20)
Packit 23ca31
Packit 23ca31
# Determine if the source for man pages is available
Packit 23ca31
# It may already be present (tarball) or can be generated using xmlto
Packit 23ca31
AM_CONDITIONAL([INSTALL_MANPAGES],
Packit 23ca31
	[test -f "$srcdir/man/Xcomposite.man" || test "x$have_xmlto" = xyes])
Packit 23ca31
Packit 23ca31
# Check compositeext configuration, strip extra digits from package version to
Packit 23ca31
# find the required protocol version
Packit 23ca31
if test "$VERSION" = "" ; then
Packit 23ca31
       VERSION=$PACKAGE_VERSION;
Packit 23ca31
fi
Packit 23ca31
COMPOSITEEXT_VERSION=[`echo $VERSION | sed 's/^\([0-9][0-9]*\.[0-9][0-9]*\).*$/\1/'`]
Packit 23ca31
AC_SUBST(COMPOSITEEXT_VERSION)
Packit 23ca31
Packit 23ca31
# Obtain compiler/linker options for depedencies
Packit 23ca31
PKG_CHECK_MODULES(XCOMPOSITE, [compositeproto >= $COMPOSITEEXT_VERSION] x11)
Packit 23ca31
PKG_CHECK_MODULES(XFIXES, xfixes)
Packit 23ca31
Packit 23ca31
AC_CONFIG_FILES([Makefile
Packit 23ca31
		src/Makefile
Packit 23ca31
		man/Makefile
Packit 23ca31
		xcomposite.pc])
Packit 23ca31
AC_OUTPUT