summaryrefslogtreecommitdiff
path: root/configure.ac
blob: 445947fc66724c24ae1f40536fcd1c53ac980dd4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
dnl  Copyright 2005 Red Hat, Inc.
dnl
dnl  Permission to use, copy, modify, distribute, and sell this software
dnl  and its documentation for any purpose is hereby granted without
dnl  fee, provided that the above copyright notice appear in all copies
dnl  and that both that copyright notice and this permission notice
dnl  appear in supporting documentation, and that the name of Red Hat
dnl  not be used in advertising or publicity pertaining to distribution
dnl  of the software without specific, written prior permission.  Red
dnl  Hat makes no representations about the suitability of this software
dnl  for any purpose.  It is provided "as is" without express or implied
dnl  warranty.
dnl
dnl  RED HAT DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
dnl  INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN
dnl  NO EVENT SHALL RED HAT BE LIABLE FOR ANY SPECIAL, INDIRECT OR
dnl  CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS
dnl  OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
dnl  NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
dnl  CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
dnl
dnl Process this file with autoconf to create configure.

AC_PREREQ([2.57])
AC_INIT(font-schumacher-misc, [0.99.2], [https://bugs.freedesktop.org/enter_bug.cgi?product=xorg], font-schumacher-misc)
AM_INIT_AUTOMAKE([foreign dist-bzip2])
AM_MAINTAINER_MODE

AC_PROG_INSTALL

AC_PATH_PROGS(PERL, perl perl5)
AC_PATH_PROG(BDFTOPCF, bdftopcf)
AC_PATH_PROG(BDFTRUNCATE, bdftruncate)
AC_PATH_PROG(UCS2ANY, ucs2any)
AC_PATH_PROG(MKFONTSCALE, mkfontscale)
AC_PATH_PROG(MKFONTDIR, mkfontdir)

m4_ifdef([AS_HELP_STRING], , [m4_define([AS_HELP_STRING], m4_defn([AC_HELP_STRING]))])

DEFAULT_FONTDIR=${libdir}/X11/fonts/misc
AC_ARG_WITH(fontdir,
	AS_HELP_STRING([--with-fontdir=FONTDIR], [Path to install fonts]),
	[FONTDIR="$withval"],
	[FONTDIR="$DEFAULT_FONTDIR"])
AC_SUBST(FONTDIR)

PKG_CHECK_MODULES(MAPS, [fontutil])
MAPFILES_PATH=$(pkg-config --variable=mapdir fontutil)
AC_SUBST(MAPFILES_PATH)

XORG_FONT_CHECK_ISO8859_1
XORG_FONT_CHECK_ISO8859_2
XORG_FONT_CHECK_ISO8859_3
XORG_FONT_CHECK_ISO8859_4
XORG_FONT_CHECK_ISO8859_5
XORG_FONT_CHECK_ISO8859_7
XORG_FONT_CHECK_ISO8859_8
XORG_FONT_CHECK_ISO8859_9
XORG_FONT_CHECK_ISO8859_10
XORG_FONT_CHECK_ISO8859_13
XORG_FONT_CHECK_ISO8859_14
XORG_FONT_CHECK_ISO8859_15
XORG_FONT_CHECK_ISO8859_16
XORG_FONT_CHECK_KOI8_R

XORG_RELEASE_VERSION

AC_OUTPUT([Makefile])