1ff63a143Smrg# 2ff63a143Smrg# Copyright © 2003 Keith Packard, Noah Levitt 3ff63a143Smrg# 4ff63a143Smrg# Permission to use, copy, modify, distribute, and sell this software and its 5ff63a143Smrg# documentation for any purpose is hereby granted without fee, provided that 6ff63a143Smrg# the above copyright notice appear in all copies and that both that 7ff63a143Smrg# copyright notice and this permission notice appear in supporting 8ff63a143Smrg# documentation, and that the name of Keith Packard not be used in 9ff63a143Smrg# advertising or publicity pertaining to distribution of the software without 10ff63a143Smrg# specific, written prior permission. Keith Packard makes no 11ff63a143Smrg# representations about the suitability of this software for any purpose. It 12ff63a143Smrg# is provided "as is" without express or implied warranty. 13ff63a143Smrg# 14ff63a143Smrg# KEITH PACKARD DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, 15ff63a143Smrg# INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO 16ff63a143Smrg# EVENT SHALL KEITH PACKARD BE LIABLE FOR ANY SPECIAL, INDIRECT OR 17ff63a143Smrg# CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, 18ff63a143Smrg# DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER 19ff63a143Smrg# TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR 20ff63a143Smrg# PERFORMANCE OF THIS SOFTWARE. 21ff63a143Smrg# 224456fccdSmrg 23ff63a143Smrg# Initialize Autoconf 24521070a0SmrgAC_PREREQ([2.60]) 254456fccdSmrg 26ff63a143Smrg# 27ff63a143Smrg# Version should match the current XFixes version. XFixesQueryVersion 28ff63a143Smrg# returns the version from xfixeswire.h, NOT the version we set here. But we 29ff63a143Smrg# try to keep these the same. Note that the library has an extra 30ff63a143Smrg# digit in the version number to track changes which don't affect the 31ff63a143Smrg# protocol, so Xfixes version l.n.m corresponds to protocol version l.n, 32ff63a143Smrg# that 'revision' number appears in Xfixes.h and has to be manually 33ff63a143Smrg# synchronized. 34ff63a143Smrg# 35a7e741d5SmrgAC_INIT(libXfixes, [6.0.1], 36a7e741d5Smrg [https://gitlab.freedesktop.org/xorg/lib/libxfixes/-/issues], 37a7e741d5Smrg [libXfixes]) 38ff63a143SmrgAC_CONFIG_SRCDIR([Makefile.am]) 39ff63a143SmrgAC_CONFIG_HEADERS([config.h]) 40a7e741d5SmrgAC_CONFIG_MACRO_DIRS([m4]) 41ff63a143Smrg 42ff63a143Smrg# Initialize Automake 43a7e741d5SmrgAM_INIT_AUTOMAKE([foreign dist-xz]) 444456fccdSmrg 45ff63a143Smrg# Initialize libtool 46a7e741d5SmrgLT_INIT 47ff63a143Smrg 48521070a0Smrg# Require xorg-macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS 4942d69509Smrgm4_ifndef([XORG_MACROS_VERSION], 50521070a0Smrg [m4_fatal([must install xorg-macros 1.8 or later before running autoconf/autogen])]) 51521070a0SmrgXORG_MACROS_VERSION(1.8) 5242d69509SmrgXORG_DEFAULT_OPTIONS 53ff63a143Smrg 544456fccdSmrg# Check fixesext configuration, strip extra digits from package version to 554456fccdSmrg# find the required protocol version 564456fccdSmrgFIXESEXT_VERSION=[`echo $VERSION | sed 's/^\([0-9][0-9]*\.[0-9][0-9]*\).*$/\1/'`] 574456fccdSmrgAC_SUBST(FIXESEXT_VERSION) 584456fccdSmrg 59a7e741d5Smrg# Obtain compiler/linker options for dependencies 60a7e741d5SmrgPKG_CHECK_MODULES(FIXESEXT, 61a7e741d5Smrg [xproto >= 7.0.22] [fixesproto >= $FIXESEXT_VERSION] xextproto [x11 >= 1.6]) 623e6c936aSmrg 633e6c936aSmrg 64ff63a143SmrgAC_CONFIG_FILES([Makefile 65ff63a143Smrg src/Makefile 66ff63a143Smrg man/Makefile 67ff63a143Smrg xfixes.pc]) 68ff63a143SmrgAC_OUTPUT 69