configure.ac revision f05b35a2
1dnl Copyright 2005 Red Hat, Inc. 2dnl 3dnl Permission to use, copy, modify, distribute, and sell this software and its 4dnl documentation for any purpose is hereby granted without fee, provided that 5dnl the above copyright notice appear in all copies and that both that 6dnl copyright notice and this permission notice appear in supporting 7dnl documentation, and that the name of Red Hat not be used in 8dnl advertising or publicity pertaining to distribution of the software without 9dnl specific, written prior permission. Red Hat makes no 10dnl representations about the suitability of this software for any purpose. It 11dnl is provided "as is" without express or implied warranty. 12dnl 13dnl RED HAT DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, 14dnl INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO 15dnl EVENT SHALL RED HAT BE LIABLE FOR ANY SPECIAL, INDIRECT OR 16dnl CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, 17dnl DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER 18dnl TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR 19dnl PERFORMANCE OF THIS SOFTWARE. 20dnl 21dnl Process this file with autoconf to create configure. 22 23AC_PREREQ([2.57]) 24 25AC_INIT(libXinerama, 1.1, [https://bugs.freedesktop.org/enter_bug.cgi?product=xorg], libXinerama) 26AM_INIT_AUTOMAKE([dist-bzip2]) 27AM_MAINTAINER_MODE 28 29# Require xorg-macros: XORG_CWARNFLAGS, XORG_CHANGELOG, XORG_WITH_LINT 30m4_ifndef([XORG_MACROS_VERSION], [AC_FATAL([must install xorg-macros 1.3 or later before running autoconf/autogen])]) 31XORG_MACROS_VERSION(1.3) 32AM_CONFIG_HEADER(config.h) 33 34# Check for progs 35AC_PROG_CC 36AC_PROG_LIBTOOL 37XORG_DEFAULT_OPTIONS 38 39# Check for dependencies 40PKG_CHECK_MODULES(XINERAMA, x11 xext xextproto [xineramaproto >= 1.1.99.1]) 41XINERAMA_CFLAGS="$CWARNFLAGS $XINERAMA_CFLAGS" 42AC_SUBST(XINERAMA_CFLAGS) 43AC_SUBST(XINERAMA_LIBS) 44 45dnl Allow checking code with lint, sparse, etc. 46XORG_WITH_LINT 47LINT_FLAGS="${LINT_FLAGS} ${XINERAMA_CFLAGS}" 48 49XORG_CHECK_MALLOC_ZERO 50 51AC_OUTPUT([Makefile 52 src/Makefile 53 man/Makefile 54 xinerama.pc]) 55