resetting manifest requested domain to floor
[platform/upstream/mkfontscale.git] / configure.ac
1 dnl  Copyright 2005 Red Hat, Inc.
2 dnl
3 dnl  Permission to use, copy, modify, distribute, and sell this software
4 dnl  and its documentation for any purpose is hereby granted without fee,
5 dnl  provided that the above copyright notice appear in all copies and
6 dnl  that both that copyright notice and this permission notice appear in
7 dnl  supporting documentation, and that the name of Red Hat not be used in
8 dnl  advertising or publicity pertaining to distribution of the software
9 dnl  without specific, written prior permission.  Red Hat makes no
10 dnl  representations about the suitability of this software for any
11 dnl  purpose.  It is provided "as is" without express or implied warranty.
12 dnl
13 dnl  RED HAT DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
14 dnl  INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN
15 dnl  NO EVENT SHALL RED HAT BE LIABLE FOR ANY SPECIAL, INDIRECT OR
16 dnl  CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS
17 dnl  OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
18 dnl  OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE
19 dnl  USE OR PERFORMANCE OF THIS SOFTWARE.
20 dnl
21 dnl Process this file with autoconf to create configure.
22
23 # Initialize Autoconf
24 AC_PREREQ([2.60])
25 AC_INIT([mkfontscale], [1.1.0],
26         [https://bugs.freedesktop.org/enter_bug.cgi?product=xorg],
27         [mkfontscale])
28 AC_CONFIG_SRCDIR([Makefile.am])
29 AC_CONFIG_HEADERS([config.h])
30
31 # Initialize Automake
32 AM_INIT_AUTOMAKE([foreign dist-bzip2])
33 AM_MAINTAINER_MODE
34
35 # Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
36 m4_ifndef([XORG_MACROS_VERSION],
37           [m4_fatal([must install xorg-macros 1.8 or later before running autoconf/autogen])])
38 XORG_MACROS_VERSION(1.8)
39 XORG_DEFAULT_OPTIONS
40
41 AC_CHECK_LIB(z, gzopen, [],
42         [AC_MSG_ERROR([zlib is required, but was not found.])])
43
44 AC_ARG_WITH(bzip2,
45         AS_HELP_STRING([--with-bzip2],
46                         [Support bzip2 compressed bitmap fonts]),
47         [], [with_bzip2=no])
48 if test "x$with_bzip2" = xyes; then
49         AC_CHECK_LIB(bz2, BZ2_bzopen, [],
50                 AC_MSG_ERROR([*** libbz2 is required for bzip2 support]))
51         AC_DEFINE(X_BZIP2_FONT_COMPRESSION,1,[Support bzip2 for bitmap fonts])
52 fi
53
54 # Checks for pkg-config packages
55 PKG_CHECK_MODULES(MKFONTSCALE, fontenc freetype2)
56 PKG_CHECK_MODULES(X11, xproto)
57
58 dnl Allow checking code with lint, sparse, etc.
59 XORG_WITH_LINT
60
61 AC_CONFIG_FILES([
62         Makefile
63         man/Makefile])
64 AC_OUTPUT