1bd23fbfaSmrg# 2bd23fbfaSmrg# Copyright © 2003 Keith Packard, Noah Levitt 3bd23fbfaSmrg# 4bd23fbfaSmrg# Permission to use, copy, modify, distribute, and sell this software and its 5bd23fbfaSmrg# documentation for any purpose is hereby granted without fee, provided that 6bd23fbfaSmrg# the above copyright notice appear in all copies and that both that 7bd23fbfaSmrg# copyright notice and this permission notice appear in supporting 8bd23fbfaSmrg# documentation, and that the name of Keith Packard not be used in 9bd23fbfaSmrg# advertising or publicity pertaining to distribution of the software without 10bd23fbfaSmrg# specific, written prior permission. Keith Packard makes no 11bd23fbfaSmrg# representations about the suitability of this software for any purpose. It 12bd23fbfaSmrg# is provided "as is" without express or implied warranty. 13bd23fbfaSmrg# 14bd23fbfaSmrg# KEITH PACKARD DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, 15bd23fbfaSmrg# INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO 16bd23fbfaSmrg# EVENT SHALL KEITH PACKARD BE LIABLE FOR ANY SPECIAL, INDIRECT OR 17bd23fbfaSmrg# CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, 18bd23fbfaSmrg# DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER 19bd23fbfaSmrg# TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR 20bd23fbfaSmrg# PERFORMANCE OF THIS SOFTWARE. 21bd23fbfaSmrg# 22b042e37fSmrg 23bd23fbfaSmrg# Initialize Autoconf 24706b6b52SmrgAC_PREREQ([2.60]) 25bd23fbfaSmrg# 26bd23fbfaSmrg# Version should match the current Randr version. XRRQueryVersion 27bd23fbfaSmrg# returns the version from randr.h, NOT the version we set here. But we 28bd23fbfaSmrg# try to keep these the same. Note that the library has an extra 29bd23fbfaSmrg# digit in the version number to track changes which don't affect the 30bd23fbfaSmrg# protocol, so Xrandr version l.n.m corresponds to protocol version l.n 31bd23fbfaSmrg# 320c674dbdSmrgAC_INIT([libXrandr], [1.5.4], 338d0bc965Smrg [https://gitlab.freedesktop.org/xorg/lib/libxrandr/-/issues], 348d0bc965Smrg [libXrandr]) 35bd23fbfaSmrgAC_CONFIG_SRCDIR([Makefile.am]) 36bd23fbfaSmrgAC_CONFIG_HEADERS([config.h]) 370c674dbdSmrgAC_CONFIG_MACRO_DIRS([m4]) 38bd23fbfaSmrg 39bd23fbfaSmrg# Initialize Automake 408d0bc965SmrgAM_INIT_AUTOMAKE([foreign dist-xz]) 41b042e37fSmrg 42bd23fbfaSmrg# Initialize libtool 430c674dbdSmrgLT_INIT 440597fb56Smrg 45706b6b52Smrg# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS 46706b6b52Smrgm4_ifndef([XORG_MACROS_VERSION], 47706b6b52Smrg [m4_fatal([must install xorg-macros 1.8 or later before running autoconf/autogen])]) 48706b6b52SmrgXORG_MACROS_VERSION(1.8) 49706b6b52SmrgXORG_DEFAULT_OPTIONS 50bd23fbfaSmrgXORG_CHECK_MALLOC_ZERO 51b042e37fSmrg 52b042e37fSmrg# Check randr configuration, strip extra digits from package version to 53b042e37fSmrg# find the required protocol version 54b042e37fSmrgRANDR_VERSION=[`echo $VERSION | sed 's/^\([0-9][0-9]*\.[0-9][0-9]*\).*$/\1/'`] 55b042e37fSmrgAC_SUBST(RANDR_VERSION) 56b042e37fSmrg 578d0bc965Smrg# Obtain compiler/linker options for dependencies 5867594505SmrgPKG_CHECK_MODULES(RANDR, [x11 >= 1.6] randrproto >= $RANDR_VERSION xext xextproto xrender renderproto) 598bd17e5fSmrg 60bd23fbfaSmrgAC_CONFIG_FILES([Makefile 61bd23fbfaSmrg src/Makefile 62bd23fbfaSmrg man/Makefile 63bd23fbfaSmrg xrandr.pc]) 64bd23fbfaSmrgAC_OUTPUT 65