167ab2ff2Smrg# Copyright 2005 Red Hat, Inc. 267ab2ff2Smrg# 367ab2ff2Smrg# Permission to use, copy, modify, distribute, and sell this software and its 467ab2ff2Smrg# documentation for any purpose is hereby granted without fee, provided that 567ab2ff2Smrg# the above copyright notice appear in all copies and that both that 667ab2ff2Smrg# copyright notice and this permission notice appear in supporting 767ab2ff2Smrg# documentation, and that the name of Red Hat not be used in 867ab2ff2Smrg# advertising or publicity pertaining to distribution of the software without 967ab2ff2Smrg# specific, written prior permission. Red Hat makes no 1067ab2ff2Smrg# representations about the suitability of this software for any purpose. It 1167ab2ff2Smrg# is provided "as is" without express or implied warranty. 1267ab2ff2Smrg# 1367ab2ff2Smrg# RED HAT DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, 1467ab2ff2Smrg# INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO 1567ab2ff2Smrg# EVENT SHALL RED HAT BE LIABLE FOR ANY SPECIAL, INDIRECT OR 1667ab2ff2Smrg# CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, 1767ab2ff2Smrg# DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER 1867ab2ff2Smrg# TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR 1967ab2ff2Smrg# PERFORMANCE OF THIS SOFTWARE. 2067ab2ff2Smrg# 21e0963edeSmrg 2267ab2ff2Smrg# Initialize Autoconf 2349e108a1SmrgAC_PREREQ([2.60]) 24c30f5000SmrgAC_INIT([libXinerama], [1.1.5], 25c30f5000Smrg [https://gitlab.freedesktop.org/xorg/lib/libxinerama/-/issues], 26c30f5000Smrg [libXinerama]) 2767ab2ff2SmrgAC_CONFIG_SRCDIR([Makefile.am]) 2867ab2ff2SmrgAC_CONFIG_HEADERS([config.h]) 29e0963edeSmrg 3067ab2ff2Smrg# Initialize Automake 31c30f5000SmrgAM_INIT_AUTOMAKE([foreign dist-xz]) 32e0963edeSmrg 3367ab2ff2Smrg# Initialize libtool 3467ab2ff2SmrgAC_PROG_LIBTOOL 3567ab2ff2Smrg 3649e108a1Smrg# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS 3749e108a1Smrgm4_ifndef([XORG_MACROS_VERSION], 3849e108a1Smrg [m4_fatal([must install xorg-macros 1.8 or later before running autoconf/autogen])]) 3949e108a1SmrgXORG_MACROS_VERSION(1.8) 4049e108a1SmrgXORG_DEFAULT_OPTIONS 4167ab2ff2SmrgXORG_CHECK_MALLOC_ZERO 42e0963edeSmrg 43c30f5000Smrg# Obtain compiler/linker options for dependencies 44b3a827e2SmrgPKG_CHECK_MODULES(XINERAMA, [x11 >= 1.6] xext xextproto [xineramaproto >= 1.1.99.1]) 45e494fffdSmrg 4667ab2ff2Smrg# Allow checking code with lint, sparse, etc. 47e0963edeSmrgXORG_WITH_LINT 48e0963edeSmrgLINT_FLAGS="${LINT_FLAGS} ${XINERAMA_CFLAGS}" 49e0963edeSmrg 5067ab2ff2SmrgAC_CONFIG_FILES([Makefile 5167ab2ff2Smrg src/Makefile 5267ab2ff2Smrg man/Makefile 5367ab2ff2Smrg xinerama.pc]) 5467ab2ff2SmrgAC_OUTPUT 55