Blame configure.ac

Packit 1f38fa
#
Packit 1f38fa
#  Copyright © 2003 Keith Packard, Noah Levitt
Packit 1f38fa
#
Packit 1f38fa
#  Permission to use, copy, modify, distribute, and sell this software and its
Packit 1f38fa
#  documentation for any purpose is hereby granted without fee, provided that
Packit 1f38fa
#  the above copyright notice appear in all copies and that both that
Packit 1f38fa
#  copyright notice and this permission notice appear in supporting
Packit 1f38fa
#  documentation, and that the name of Keith Packard not be used in
Packit 1f38fa
#  advertising or publicity pertaining to distribution of the software without
Packit 1f38fa
#  specific, written prior permission.  Keith Packard makes no
Packit 1f38fa
#  representations about the suitability of this software for any purpose.  It
Packit 1f38fa
#  is provided "as is" without express or implied warranty.
Packit 1f38fa
#
Packit 1f38fa
#  KEITH PACKARD DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
Packit 1f38fa
#  INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
Packit 1f38fa
#  EVENT SHALL KEITH PACKARD BE LIABLE FOR ANY SPECIAL, INDIRECT OR
Packit 1f38fa
#  CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
Packit 1f38fa
#  DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
Packit 1f38fa
#  TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
Packit 1f38fa
#  PERFORMANCE OF THIS SOFTWARE.
Packit 1f38fa
#
Packit 1f38fa
Packit 1f38fa
# Initialize Autoconf
Packit 1f38fa
AC_PREREQ([2.60])
Packit 1f38fa
#
Packit 1f38fa
# Version should match the current XDamage version. XDamageQueryVersion
Packit 1f38fa
# returns the version from damagewire.h, NOT the version we set here. But we
Packit 1f38fa
# try to keep these the same.  Note that the library has an extra
Packit 1f38fa
# digit in the version number to track changes which don't affect the
Packit 1f38fa
# protocol, so Xdamage version l.n.m corresponds to protocol version l.n
Packit 1f38fa
#
Packit 1f38fa
AC_INIT(libXdamage, [1.1.4],
Packit 1f38fa
	[https://bugs.freedesktop.org/enter_bug.cgi?product=xorg], [libXdamage])
Packit 1f38fa
AC_CONFIG_SRCDIR([Makefile.am])
Packit 1f38fa
AC_CONFIG_HEADERS([config.h])
Packit 1f38fa
Packit 1f38fa
# Initialize Automake
Packit 1f38fa
AM_INIT_AUTOMAKE([foreign dist-bzip2])
Packit 1f38fa
AM_MAINTAINER_MODE
Packit 1f38fa
Packit 1f38fa
# Initialize libtool
Packit 1f38fa
AC_PROG_LIBTOOL
Packit 1f38fa
Packit 1f38fa
# Require X.Org macros 1.8 or later
Packit 1f38fa
m4_ifndef([XORG_MACROS_VERSION],
Packit 1f38fa
          [m4_fatal([must install xorg-macros 1.8 or later before running autoconf/autogen])])
Packit 1f38fa
XORG_MACROS_VERSION(1.8)
Packit 1f38fa
XORG_DEFAULT_OPTIONS
Packit 1f38fa
Packit 1f38fa
# Check damageext configuration, strip extra digits from package version to
Packit 1f38fa
# find the required protocol version
Packit 1f38fa
DAMAGEEXT_VERSION=[`echo $VERSION | sed 's/^\([0-9][0-9]*\.[0-9][0-9]*\).*$/\1/'`]
Packit 1f38fa
AC_SUBST(DAMAGEEXT_VERSION)
Packit 1f38fa
Packit 1f38fa
# Obtain compiler/linker options for depedencies
Packit 1f38fa
PKG_CHECK_MODULES(XDAMAGE, [damageproto >= $DAMAGEEXT_VERSION] xfixes fixesproto xextproto x11)
Packit 1f38fa
Packit 1f38fa
AC_CONFIG_FILES([Makefile
Packit 1f38fa
		src/Makefile
Packit 1f38fa
		xdamage.pc])
Packit 1f38fa
AC_OUTPUT