configure.ac revision 8c4a8e55
1dnl 2dnl Copyright © 2003 Keith Packard, Noah Levitt 3dnl 4dnl Permission to use, copy, modify, distribute, and sell this software and its 5dnl documentation for any purpose is hereby granted without fee, provided that 6dnl the above copyright notice appear in all copies and that both that 7dnl copyright notice and this permission notice appear in supporting 8dnl documentation, and that the name of Keith Packard not be used in 9dnl advertising or publicity pertaining to distribution of the software without 10dnl specific, written prior permission. Keith Packard makes no 11dnl representations about the suitability of this software for any purpose. It 12dnl is provided "as is" without express or implied warranty. 13dnl 14dnl KEITH PACKARD DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, 15dnl INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO 16dnl EVENT SHALL KEITH PACKARD BE LIABLE FOR ANY SPECIAL, INDIRECT OR 17dnl CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, 18dnl DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER 19dnl TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR 20dnl PERFORMANCE OF THIS SOFTWARE. 21dnl 22dnl Process this file with autoconf to create configure. 23 24AC_PREREQ([2.57]) 25 26dnl 27dnl Version should match the current Render version. XRenderQueryVersion 28dnl returns the version from randr.h, NOT the version we set here. But we 29dnl try to keep these the same. Note that the library has an extra 30dnl digit in the version number to track changes which don't affect the 31dnl protocol, so Xrandr version l.n.m corresponds to protocol version l.n 32dnl 33AC_INIT(libXrandr, 1.3.0, [https://bugs.freedesktop.org/enter_bug.cgi?product=xorg], libXrandr) 34AC_CONFIG_AUX_DIR(.) 35AM_INIT_AUTOMAKE([dist-bzip2]) 36AM_MAINTAINER_MODE 37 38# Require xorg-macros: XORG_CWARNFLAGS, XORG_CHANGELOG 39m4_ifndef([XORG_MACROS_VERSION], [AC_FATAL([must install xorg-macros 1.2 or later before running autoconf/autogen])]) 40XORG_MACROS_VERSION(1.2) 41AM_CONFIG_HEADER(config.h) 42 43# Check for progs 44AC_PROG_CC 45AC_PROG_LIBTOOL 46XORG_CWARNFLAGS 47 48# Check randr configuration, strip extra digits from package version to 49# find the required protocol version 50 51RANDR_VERSION=[`echo $VERSION | sed 's/^\([0-9][0-9]*\.[0-9][0-9]*\).*$/\1/'`] 52AC_SUBST(RANDR_VERSION) 53PKG_CHECK_MODULES(RANDR, x11 randrproto >= $RANDR_VERSION xext xextproto xrender renderproto) 54RANDR_CFLAGS="$CWARNFLAGS $RANDR_CFLAGS" 55AC_SUBST(RANDR_CFLAGS) 56AC_SUBST(RANDR_LIBS) 57 58XORG_CHECK_MALLOC_ZERO 59XORG_MANPAGE_SECTIONS 60XORG_RELEASE_VERSION 61XORG_CHANGELOG 62 63AC_OUTPUT([Makefile 64 src/Makefile 65 man/Makefile 66 xrandr.pc]) 67