configure.ac revision ba6a1819
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 26AC_INIT(libFS, 1.0.1, [https://bugs.freedesktop.org/enter_bug.cgi?product=xorg], libFS) 27AM_INIT_AUTOMAKE([dist-bzip2]) 28AM_MAINTAINER_MODE 29 30AM_CONFIG_HEADER(config.h) 31 32# Require xorg-macros version 1.1.0 or newer for XORG_WITH_LINT macro 33m4_ifndef([XORG_MACROS_VERSION], [AC_FATAL([must install xorg-macros 1.1 or later before running autoconf/autogen])]) 34XORG_MACROS_VERSION(1.1) 35 36# Check for progs 37AC_PROG_CC 38AC_PROG_LIBTOOL 39 40# Check for dependencies 41PKG_CHECK_MODULES(FS, xproto fontsproto) 42AC_SUBST(FS_CFLAGS) 43AC_SUBST(FS_LIBS) 44# 45# Split out so we don't include xtrans C flags in fs.pc 46# 47PKG_CHECK_MODULES(XTRANS, xtrans) 48AC_SUBST(XTRANS_CFLAGS) 49AC_SUBST(XTRANS_LIBS) 50 51XTRANS_CONNECTION_FLAGS 52 53XORG_CHECK_MALLOC_ZERO 54 55dnl Allow checking code with lint, sparse, etc. 56XORG_WITH_LINT 57XORG_LINT_LIBRARY([FS]) 58 59XORG_RELEASE_VERSION 60 61AC_OUTPUT([Makefile 62 src/Makefile 63 libfs.pc]) 64