configure.ac revision ff63a143
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#
35ff63a143SmrgAC_INIT(libXfixes, [5.0],
36ff63a143Smrg	[https://bugs.freedesktop.org/enter_bug.cgi?product=xorg], [libXfixes])
37ff63a143SmrgAC_CONFIG_SRCDIR([Makefile.am])
38ff63a143SmrgAC_CONFIG_HEADERS([config.h])
39ff63a143Smrg
40ff63a143Smrg# Initialize Automake
41521070a0SmrgAM_INIT_AUTOMAKE([foreign dist-bzip2])
424456fccdSmrgAM_MAINTAINER_MODE
434456fccdSmrg
44ff63a143Smrg# Initialize libtool
45ff63a143SmrgAC_PROG_LIBTOOL
46ff63a143Smrg
47521070a0Smrg# Require xorg-macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
4842d69509Smrgm4_ifndef([XORG_MACROS_VERSION],
49521070a0Smrg	  [m4_fatal([must install xorg-macros 1.8 or later before running autoconf/autogen])])
50521070a0SmrgXORG_MACROS_VERSION(1.8)
5142d69509SmrgXORG_DEFAULT_OPTIONS
52ff63a143Smrg
534456fccdSmrg# Check fixesext configuration, strip extra digits from package version to
544456fccdSmrg# find the required protocol version
554456fccdSmrgFIXESEXT_VERSION=[`echo $VERSION | sed 's/^\([0-9][0-9]*\.[0-9][0-9]*\).*$/\1/'`]
564456fccdSmrgAC_SUBST(FIXESEXT_VERSION)
574456fccdSmrg
58ff63a143Smrg# Obtain compiler/linker options for depedencies
59ff63a143SmrgPKG_CHECK_MODULES(FIXESEXT, xproto [fixesproto >= $FIXESEXT_VERSION] xextproto x11)
604456fccdSmrg
61ff63a143SmrgAC_CONFIG_FILES([Makefile
62ff63a143Smrg		src/Makefile
63ff63a143Smrg		man/Makefile
64ff63a143Smrg		xfixes.pc])
65ff63a143SmrgAC_OUTPUT
66