Blame configure.ac

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