configure.ac revision 49e108a1
1e0963edeSmrgdnl  Copyright 2005 Red Hat, Inc.
2e0963edeSmrgdnl 
3e0963edeSmrgdnl  Permission to use, copy, modify, distribute, and sell this software and its
4e0963edeSmrgdnl  documentation for any purpose is hereby granted without fee, provided that
5e0963edeSmrgdnl  the above copyright notice appear in all copies and that both that
6e0963edeSmrgdnl  copyright notice and this permission notice appear in supporting
7e0963edeSmrgdnl  documentation, and that the name of Red Hat not be used in
8e0963edeSmrgdnl  advertising or publicity pertaining to distribution of the software without
9e0963edeSmrgdnl  specific, written prior permission.  Red Hat makes no
10e0963edeSmrgdnl  representations about the suitability of this software for any purpose.  It
11e0963edeSmrgdnl  is provided "as is" without express or implied warranty.
12e0963edeSmrgdnl 
13e0963edeSmrgdnl  RED HAT DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
14e0963edeSmrgdnl  INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
15e0963edeSmrgdnl  EVENT SHALL RED HAT BE LIABLE FOR ANY SPECIAL, INDIRECT OR
16e0963edeSmrgdnl  CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
17e0963edeSmrgdnl  DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
18e0963edeSmrgdnl  TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
19e0963edeSmrgdnl  PERFORMANCE OF THIS SOFTWARE.
20e0963edeSmrgdnl
21e0963edeSmrgdnl Process this file with autoconf to create configure.
22e0963edeSmrg
2349e108a1SmrgAC_PREREQ([2.60])
24e0963edeSmrg
2549e108a1SmrgAC_INIT([libXinerama], [1.1.1],
2649e108a1Smrg        [https://bugs.freedesktop.org/enter_bug.cgi?product=xorg],
2749e108a1Smrg        [libXinerama])
2849e108a1SmrgAM_INIT_AUTOMAKE([foreign dist-bzip2])
29e0963edeSmrgAM_MAINTAINER_MODE
30e0963edeSmrg
3149e108a1Smrg# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
3249e108a1Smrgm4_ifndef([XORG_MACROS_VERSION],
3349e108a1Smrg          [m4_fatal([must install xorg-macros 1.8 or later before running autoconf/autogen])])
3449e108a1SmrgXORG_MACROS_VERSION(1.8)
3549e108a1SmrgXORG_DEFAULT_OPTIONS
36e0963edeSmrgAM_CONFIG_HEADER(config.h)
37e0963edeSmrg
38e0963edeSmrg# Check for progs
39e0963edeSmrgAC_PROG_CC
40e0963edeSmrgAC_PROG_LIBTOOL
41e0963edeSmrg
42e0963edeSmrg# Check for dependencies
43f05b35a2SmrgPKG_CHECK_MODULES(XINERAMA, x11 xext xextproto [xineramaproto >= 1.1.99.1])
44e0963edeSmrg
45e0963edeSmrgdnl Allow checking code with lint, sparse, etc.
46e0963edeSmrgXORG_WITH_LINT
47e0963edeSmrgLINT_FLAGS="${LINT_FLAGS} ${XINERAMA_CFLAGS}"
48e0963edeSmrg		  
49e0963edeSmrgXORG_CHECK_MALLOC_ZERO
50e0963edeSmrg
51e0963edeSmrgAC_OUTPUT([Makefile
52e0963edeSmrg	   src/Makefile
53e0963edeSmrg	   man/Makefile
54e0963edeSmrg           xinerama.pc])
55