fontutil.m4.in revision a9274bcd
1a9274bcdSmrgdnl @configure_input@ 2a9274bcdSmrgdnl 3a9274bcdSmrgdnl This file comes from X.Org's @PACKAGE_STRING@ 4a9274bcdSmrgdnl 5a9274bcdSmrgdnl Copyright 2005 Red Hat, Inc 6a9274bcdSmrgdnl 7a9274bcdSmrgdnl Permission to use, copy, modify, distribute, and sell this software and its 8a9274bcdSmrgdnl documentation for any purpose is hereby granted without fee, provided that 9a9274bcdSmrgdnl the above copyright notice appear in all copies and that both that 10a9274bcdSmrgdnl copyright notice and this permission notice appear in supporting 11a9274bcdSmrgdnl documentation. 12a9274bcdSmrgdnl 13a9274bcdSmrgdnl The above copyright notice and this permission notice shall be included 14a9274bcdSmrgdnl in all copies or substantial portions of the Software. 15a9274bcdSmrgdnl 16a9274bcdSmrgdnl THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS 17a9274bcdSmrgdnl OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 18a9274bcdSmrgdnl MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 19a9274bcdSmrgdnl IN NO EVENT SHALL THE OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR 20a9274bcdSmrgdnl OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, 21a9274bcdSmrgdnl ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 22a9274bcdSmrgdnl OTHER DEALINGS IN THE SOFTWARE. 23a9274bcdSmrgdnl 24a9274bcdSmrgdnl Except as contained in this notice, the name of the copyright holders shall 25a9274bcdSmrgdnl not be used in advertising or otherwise to promote the sale, use or 26a9274bcdSmrgdnl other dealings in this Software without prior written authorization 27a9274bcdSmrgdnl from the copyright holders. 28a9274bcdSmrgdnl 29a9274bcdSmrgdnl -------------------------------------------------------------------- 30a9274bcdSmrgdnl 31a9274bcdSmrgdnl Copyright 2009 Sun Microsystems, Inc. All rights reserved. 32a9274bcdSmrgdnl 33a9274bcdSmrgdnl Permission is hereby granted, free of charge, to any person obtaining a 34a9274bcdSmrgdnl copy of this software and associated documentation files (the 35a9274bcdSmrgdnl "Software"), to deal in the Software without restriction, including 36a9274bcdSmrgdnl without limitation the rights to use, copy, modify, merge, publish, 37a9274bcdSmrgdnl distribute, and/or sell copies of the Software, and to permit persons 38a9274bcdSmrgdnl to whom the Software is furnished to do so, provided that the above 39a9274bcdSmrgdnl copyright notice(s) and this permission notice appear in all copies of 40a9274bcdSmrgdnl the Software and that both the above copyright notice(s) and this 41a9274bcdSmrgdnl permission notice appear in supporting documentation. 42a9274bcdSmrgdnl 43a9274bcdSmrgdnl THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS 44a9274bcdSmrgdnl OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 45a9274bcdSmrgdnl MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT 46a9274bcdSmrgdnl OF THIRD PARTY RIGHTS. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR 47a9274bcdSmrgdnl HOLDERS INCLUDED IN THIS NOTICE BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL 48a9274bcdSmrgdnl INDIRECT OR CONSEQUENTIAL DAMAGES, OR ANY DAMAGES WHATSOEVER RESULTING 49a9274bcdSmrgdnl FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, 50a9274bcdSmrgdnl NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION 51a9274bcdSmrgdnl WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 52a9274bcdSmrgdnl 53a9274bcdSmrgdnl Except as contained in this notice, the name of a copyright holder 54a9274bcdSmrgdnl shall not be used in advertising or otherwise to promote the sale, use 55a9274bcdSmrgdnl or other dealings in this Software without prior written authorization 56a9274bcdSmrgdnl of the copyright holder. 57a9274bcdSmrg 58a9274bcdSmrg# XORG_FONT_MACROS_VERSION(required-version) 59a9274bcdSmrg# ------------------------------------------ 60a9274bcdSmrg# Minimum version: 1.1.0 61a9274bcdSmrg# 62a9274bcdSmrg# If you're using a macro added in Version 1.1 or newer, include this in 63a9274bcdSmrg# your configure.ac with the minimum required version, such as: 64a9274bcdSmrg# XORG_FONT_MACROS_VERSION(1.1) 65a9274bcdSmrg# 66a9274bcdSmrg# To ensure that this macro is defined, also add: 67a9274bcdSmrg# m4_ifndef([XORG_FONT_MACROS_VERSION], 68a9274bcdSmrg# [m4_fatal([must install X.Org font-util 1.1 or later before running autoconf/autogen])]) 69a9274bcdSmrg# 70a9274bcdSmrg# 71a9274bcdSmrg# See the "minimum version" comment for each macro you use to see what 72a9274bcdSmrg# version you require. 73a9274bcdSmrgm4_defun([XORG_FONT_MACROS_VERSION],[ 74a9274bcdSmrgm4_define([vers_have], [@VERSION@]) 75a9274bcdSmrgm4_define([maj_have], m4_substr(vers_have, 0, m4_index(vers_have, [.]))) 76a9274bcdSmrgm4_define([maj_needed], m4_substr([$1], 0, m4_index([$1], [.]))) 77a9274bcdSmrgm4_if(m4_cmp(maj_have, maj_needed), 0,, 78a9274bcdSmrg [m4_fatal([font-util major version ]maj_needed[ is required but ]vers_have[ found])]) 79a9274bcdSmrgm4_if(m4_version_compare(vers_have, [$1]), -1, 80a9274bcdSmrg [m4_fatal([font-util version $1 or higher is required but ]vers_have[ found])]) 81a9274bcdSmrgm4_undefine([vers_have]) 82a9274bcdSmrgm4_undefine([maj_have]) 83a9274bcdSmrgm4_undefine([maj_needed]) 84a9274bcdSmrg]) # XORG_FONT_MACROS_VERSION 85a9274bcdSmrg 86a9274bcdSmrg# XORG_FONT_CHECK_{maps}() 87a9274bcdSmrg# ------------------------ 88a9274bcdSmrg# Minimum version: 1.0.0 89a9274bcdSmrg# These macros add --enable/disable-{maps} where {maps} are ISO8859-*, 90a9274bcdSmrg# JISX0201 or KOI8_R. By default, they are all enabled. 91a9274bcdSmrg 92a9274bcdSmrgAC_DEFUN([XORG_FONT_CHECK_ISO8859_1], [XORG_FONT_CHECK_ENCODING(ISO8859-1)]) 93a9274bcdSmrgAC_DEFUN([XORG_FONT_CHECK_ISO8859_2], [XORG_FONT_CHECK_ENCODING(ISO8859-2)]) 94a9274bcdSmrgAC_DEFUN([XORG_FONT_CHECK_ISO8859_3], [XORG_FONT_CHECK_ENCODING(ISO8859-3)]) 95a9274bcdSmrgAC_DEFUN([XORG_FONT_CHECK_ISO8859_4], [XORG_FONT_CHECK_ENCODING(ISO8859-4)]) 96a9274bcdSmrgAC_DEFUN([XORG_FONT_CHECK_ISO8859_5], [XORG_FONT_CHECK_ENCODING(ISO8859-5)]) 97a9274bcdSmrgAC_DEFUN([XORG_FONT_CHECK_ISO8859_6], [XORG_FONT_CHECK_ENCODING(ISO8859-6)]) 98a9274bcdSmrgAC_DEFUN([XORG_FONT_CHECK_ISO8859_7], [XORG_FONT_CHECK_ENCODING(ISO8859-7)]) 99a9274bcdSmrgAC_DEFUN([XORG_FONT_CHECK_ISO8859_8], [XORG_FONT_CHECK_ENCODING(ISO8859-8)]) 100a9274bcdSmrgAC_DEFUN([XORG_FONT_CHECK_ISO8859_9], [XORG_FONT_CHECK_ENCODING(ISO8859-9)]) 101a9274bcdSmrgAC_DEFUN([XORG_FONT_CHECK_ISO8859_10],[XORG_FONT_CHECK_ENCODING(ISO8859-10)]) 102a9274bcdSmrgAC_DEFUN([XORG_FONT_CHECK_ISO8859_11],[XORG_FONT_CHECK_ENCODING(ISO8859-11)]) 103a9274bcdSmrgAC_DEFUN([XORG_FONT_CHECK_ISO8859_12],[XORG_FONT_CHECK_ENCODING(ISO8859-12)]) 104a9274bcdSmrgAC_DEFUN([XORG_FONT_CHECK_ISO8859_13],[XORG_FONT_CHECK_ENCODING(ISO8859-13)]) 105a9274bcdSmrgAC_DEFUN([XORG_FONT_CHECK_ISO8859_14],[XORG_FONT_CHECK_ENCODING(ISO8859-14)]) 106a9274bcdSmrgAC_DEFUN([XORG_FONT_CHECK_ISO8859_15],[XORG_FONT_CHECK_ENCODING(ISO8859-15)]) 107a9274bcdSmrgAC_DEFUN([XORG_FONT_CHECK_ISO8859_16],[XORG_FONT_CHECK_ENCODING(ISO8859-16)]) 108a9274bcdSmrgAC_DEFUN([XORG_FONT_CHECK_JISX0201], [XORG_FONT_CHECK_ENCODING(JISX0201)]) 109a9274bcdSmrgAC_DEFUN([XORG_FONT_CHECK_KOI8_R], [XORG_FONT_CHECK_ENCODING(KOI8-R)]) 110a9274bcdSmrg 111a9274bcdSmrg# XORG_FONT_CHECK_ENCODING(encoding) 112a9274bcdSmrg# ---------------------------------- 113a9274bcdSmrg# Minimum version: 1.1.0 114a9274bcdSmrg# This macro adds --enable/disable-<encoding>, enabled by default. 115a9274bcdSmrg# It replaced individual copies of this code in the above macros in 1.1. 116a9274bcdSmrg# Currently assumes encoding names will be all upper-case - add m4_toupper 117a9274bcdSmrg# calls if this is not true in the future. 118a9274bcdSmrg 119a9274bcdSmrgAC_DEFUN([XORG_FONT_CHECK_ENCODING],[ 120a9274bcdSmrg AC_ARG_ENABLE(m4_tolower($1), 121a9274bcdSmrg AS_HELP_STRING(m4_join([-], [--disable], m4_tolower($1)), 122a9274bcdSmrg [Build $1 fonts (default: yes)]), 123a9274bcdSmrg [AS_TR_SH($1)=$enableval], [AS_TR_SH($1)=yes]) 124a9274bcdSmrg AC_MSG_CHECKING([whether to build $1 fonts]) 125a9274bcdSmrg AC_MSG_RESULT($[AS_TR_SH($1)]) 126a9274bcdSmrg AM_CONDITIONAL(AS_TR_SH($1), [test "x$AS_TR_SH($1)" = xyes]) 127a9274bcdSmrg]) # XORG_FONT_CHECK_ENCODING 128a9274bcdSmrg 129a9274bcdSmrg# XORG_FONT_CHECK_ENCODING_LIST(encoding1 encoding2....) 130a9274bcdSmrg# ----------------------------------------------------- 131a9274bcdSmrg# Minimum version: 1.1.0 132a9274bcdSmrg# Call XORG_FONT_CHECK_ENCODING for multiple encodings at once 133a9274bcdSmrg 134a9274bcdSmrgAC_DEFUN([XORG_FONT_CHECK_ENCODING_LIST],[ 135a9274bcdSmrg m4_foreach_w([enc], [$1], [XORG_FONT_CHECK_ENCODING(enc)]) 136a9274bcdSmrg]) # XORG_FONT_CHECK_ENCODING_LIST 137a9274bcdSmrg 138a9274bcdSmrg# XORG_FONT_REQUIRED_PROG(VARNAME, progname) 139a9274bcdSmrg# ------------------------------------------ 140a9274bcdSmrg# Minimum version: 1.1.0 141a9274bcdSmrg# 142a9274bcdSmrg# Simple wrapper around AC_PATH_PROG that errors if not found 143a9274bcdSmrg# 144a9274bcdSmrg 145a9274bcdSmrgAC_DEFUN([XORG_FONT_REQUIRED_PROG],[ 146a9274bcdSmrg AC_PATH_PROG($1, $2) 147a9274bcdSmrg if test x"$1" = x; then 148a9274bcdSmrg AC_MSG_ERROR([$2 is required to build $PACKAGE_NAME.]) 149a9274bcdSmrg fi 150a9274bcdSmrg]) 151a9274bcdSmrg 152a9274bcdSmrg 153a9274bcdSmrg# XORG_FONT_FCCACHE() 154a9274bcdSmrg# ------------------- 155a9274bcdSmrg# Minimum version: 1.1.0 156a9274bcdSmrg# 157a9274bcdSmrg# Set FCCACHE to path to fc-cache (fontconfig cache builder) if found 158a9274bcdSmrg# Set RUN_FCCACHE to a rule suitable for substituting into a makefile 159a9274bcdSmrg# to run fc-cache if found and not installing to $DESTDIR 160a9274bcdSmrg# 161a9274bcdSmrg# fc-cache is optional, not required, and should be skipped when making 162a9274bcdSmrg# packages (installing to $DESTDIR). 163a9274bcdSmrg# 164a9274bcdSmrgAC_DEFUN([XORG_FONT_FCCACHE],[ 165a9274bcdSmrg AC_PATH_PROG(FCCACHE, fc-cache) 166a9274bcdSmrg FCCACHE_WARN='echo "** Warning: fonts.cache not built" ; echo "** Generate this file manually on host system using fc-cache"' 167a9274bcdSmrg if test x"$FCCACHE" = x ; then 168a9274bcdSmrg RUN_FCCACHE="${FCCACHE_WARN}" 169a9274bcdSmrg else 170a9274bcdSmrg RUN_FCCACHE='@(if test -z "$(DESTDIR)"; then echo $(FCCACHE) $(fontdir); $(FCCACHE) $(fontdir); else' 171a9274bcdSmrg RUN_FCCACHE="${RUN_FCCACHE} ${FCCACHE_WARN} ; fi)" 172a9274bcdSmrg fi 173a9274bcdSmrg AC_SUBST([RUN_FCCACHE]) 174a9274bcdSmrg]) 175a9274bcdSmrg 176a9274bcdSmrg 177a9274bcdSmrg# XORG_FONT_COMMON_UTILS() 178a9274bcdSmrg# ------------------------ 179a9274bcdSmrg# Minimum version: 1.1.0 180a9274bcdSmrg# 181a9274bcdSmrg# Call XORG_FONT_REQUIRED_PROG for programs needed for all font types 182a9274bcdSmrg 183a9274bcdSmrgAC_DEFUN([XORG_FONT_COMMON_UTILS],[ 184a9274bcdSmrg XORG_FONT_FCCACHE 185a9274bcdSmrg XORG_FONT_REQUIRED_PROG(MKFONTDIR, mkfontdir) 186a9274bcdSmrg]) 187a9274bcdSmrg 188a9274bcdSmrg# XORG_FONT_SCALED_UTILS() 189a9274bcdSmrg# ------------------------ 190a9274bcdSmrg# Minimum version: 1.1.0 191a9274bcdSmrg# 192a9274bcdSmrg# Call XORG_FONT_REQUIRED_PROG for programs needed for scalable fonts 193a9274bcdSmrg# (TrueType, OpenType, Type1) 194a9274bcdSmrg 195a9274bcdSmrgAC_DEFUN([XORG_FONT_SCALED_UTILS],[ 196a9274bcdSmrg XORG_FONT_COMMON_UTILS 197a9274bcdSmrg XORG_FONT_REQUIRED_PROG(MKFONTSCALE, mkfontscale) 198a9274bcdSmrg]) 199a9274bcdSmrg 200a9274bcdSmrg# XORG_FONT_BDF_UTILS() 201a9274bcdSmrg# --------------------- 202a9274bcdSmrg# Minimum version: 1.1.0 203a9274bcdSmrg# 204a9274bcdSmrg# Call XORG_FONT_REQUIRED_PROG for programs needed for BDF format bitmap fonts 205a9274bcdSmrg# Also call XORG_FONT_CHECK_COMPRESSION to determine how to compress the 206a9274bcdSmrg# PCF output files created by bdftopcf 207a9274bcdSmrg 208a9274bcdSmrgAC_DEFUN([XORG_FONT_BDF_UTILS],[ 209a9274bcdSmrg XORG_FONT_COMMON_UTILS 210a9274bcdSmrg XORG_FONT_REQUIRED_PROG(BDFTOPCF, bdftopcf) 211a9274bcdSmrg XORG_FONT_CHECK_COMPRESSION 212a9274bcdSmrg]) 213a9274bcdSmrg 214a9274bcdSmrg# XORG_FONT_CHECK_COMPRESSION() 215a9274bcdSmrg# ----------------------------- 216a9274bcdSmrg# Minimum version: 1.1.0 217a9274bcdSmrg# 218a9274bcdSmrg# Offer a --with-compression flag to control what compression method is 219a9274bcdSmrg# used for pcf font files. Offers all the methods currently supported 220a9274bcdSmrg# by libXfont, including no compression. 221a9274bcdSmrg 222a9274bcdSmrgAC_DEFUN([XORG_FONT_CHECK_COMPRESSION],[ 223a9274bcdSmrg AC_MSG_CHECKING([font compression method]) 224a9274bcdSmrg AC_ARG_WITH(compression, 225a9274bcdSmrg [AS_HELP_STRING([--with-compression=<no|compress|gzip|bzip2>], 226a9274bcdSmrg [compression method to use on pcf fonts])], 227a9274bcdSmrg [compression="$withval"], [compression="yes"]) 228a9274bcdSmrg if test x"$compression" = "xyes" ; then 229a9274bcdSmrg compression="gzip" 230a9274bcdSmrg fi 231a9274bcdSmrg AC_MSG_RESULT([${compression}]) 232a9274bcdSmrg case ${compression} in 233a9274bcdSmrg *compress) COMPRESS_SUFFIX=".Z" ;; 234a9274bcdSmrg *gzip) COMPRESS_SUFFIX=".gz" ;; 235a9274bcdSmrg *bzip2) COMPRESS_SUFFIX=".bz2" ;; 236a9274bcdSmrg no|none) COMPRESS_SUFFIX="" ; COMPRESS="cat" ;; 237a9274bcdSmrg *) AC_MSG_ERROR([${compression} is not a supported compression method]) ;; 238a9274bcdSmrg esac 239a9274bcdSmrg if test x"$COMPRESS_SUFFIX" != "x" ; then 240a9274bcdSmrg XORG_FONT_REQUIRED_PROG(COMPRESS, ${compression}) 241a9274bcdSmrg fi 242a9274bcdSmrg AC_SUBST([COMPRESS_SUFFIX]) 243a9274bcdSmrg]) 244a9274bcdSmrg 245a9274bcdSmrg# XORG_FONT_UCS2ANY() 246a9274bcdSmrg# ------------------- 247a9274bcdSmrg# Minimum version: 1.1.0 248a9274bcdSmrg# 249a9274bcdSmrg# Call XORG_FONT_REQUIRED_PROG for ucs2any program needed for splitting 250a9274bcdSmrg# Unicode-encoded BDF format bitmap fonts into subsets for older encodings. 251a9274bcdSmrg# Also call pkg-config to find the directory with the encoding files needed 252a9274bcdSmrg# by ucs2any, and export it as MAPFILES_PATH to the Makefiles 253a9274bcdSmrg 254a9274bcdSmrgAC_DEFUN([XORG_FONT_UCS2ANY],[ 255a9274bcdSmrg XORG_FONT_REQUIRED_PROG(UCS2ANY, ucs2any) 256a9274bcdSmrg PKG_CHECK_MODULES(MAPS, [fontutil]) 257a9274bcdSmrg AC_MSG_CHECKING([for ucs2any encoding data files]) 258a9274bcdSmrg MAPFILES_PATH=`pkg-config --variable=mapdir fontutil` 259a9274bcdSmrg AC_SUBST(MAPFILES_PATH) 260a9274bcdSmrg AC_MSG_RESULT([${MAPFILES_PATH}]) 261a9274bcdSmrg]) 262a9274bcdSmrg 263a9274bcdSmrg 264a9274bcdSmrg 265a9274bcdSmrg# XORG_FONTROOTDIR() 266a9274bcdSmrg# -------------------- 267a9274bcdSmrg# Minimum version: 1.1.0 268a9274bcdSmrg# 269a9274bcdSmrg# Sets FONTROOTDIR to the root directory for font files. Uses the first 270a9274bcdSmrg# found from: 271a9274bcdSmrg# --with-fontrootdir 272a9274bcdSmrg# pkg-config --variable=fontrootdir fontutil 273a9274bcdSmrg# ${datadir}/fonts/X11 274a9274bcdSmrg 275a9274bcdSmrgAC_DEFUN([XORG_FONTROOTDIR],[ 276a9274bcdSmrg dnl Ensure $PKG_CONFIG is set first 277a9274bcdSmrg AC_REQUIRE([PKG_PROG_PKG_CONFIG]) 278a9274bcdSmrg 279a9274bcdSmrg AC_MSG_CHECKING([for root directory for font files]) 280a9274bcdSmrg AC_ARG_WITH(fontrootdir, 281a9274bcdSmrg AS_HELP_STRING([--with-fontrootdir=DIR], 282a9274bcdSmrg [Path to root directory for font files]), 283a9274bcdSmrg [FONTROOTDIR="$withval"]) 284a9274bcdSmrg # if --with-fontrootdir not specified... 285a9274bcdSmrg if test "x${FONTROOTDIR}" = "x"; then 286a9274bcdSmrg FONTROOTDIR=`$PKG_CONFIG --variable=fontrootdir fontutil` 287a9274bcdSmrg fi 288a9274bcdSmrg # ...and if pkg-config didn't find fontdir in fontutil.pc... 289a9274bcdSmrg if test "x${FONTROOTDIR}" = "x"; then 290a9274bcdSmrg FONTROOTDIR="${datadir}/fonts/X11" 291a9274bcdSmrg fi 292a9274bcdSmrg AC_SUBST(FONTROOTDIR) 293a9274bcdSmrg AC_MSG_RESULT([${FONTROOTDIR}]) 294a9274bcdSmrg]) 295a9274bcdSmrg 296a9274bcdSmrg# XORG_FONTSUBDIR(variable, flag, subdir) 297a9274bcdSmrg# --------------------------------------- 298a9274bcdSmrg# Minimum version: 1.1.0 299a9274bcdSmrg# 300a9274bcdSmrg# Offer a --with-<flag> flag to control directory for font installation 301a9274bcdSmrg# Default is the specified <subdir> of the font root directory. 302a9274bcdSmrg# Sets <variable> to the selected directory 303a9274bcdSmrg 304a9274bcdSmrgAC_DEFUN([XORG_FONTSUBDIR],[ 305a9274bcdSmrg AC_REQUIRE([XORG_FONTROOTDIR]) 306a9274bcdSmrg 307a9274bcdSmrg AC_MSG_CHECKING([for directory for $3 files]) 308a9274bcdSmrg AC_ARG_WITH($2, 309a9274bcdSmrg [AS_HELP_STRING([--with-$2=DIR], 310a9274bcdSmrg [Path to $3 files [FONTROOTDIR/$3]])], 311a9274bcdSmrg [$1="${withval}"], [$1='${FONTROOTDIR}/$3']) 312a9274bcdSmrg AC_SUBST($1) 313a9274bcdSmrg AC_MSG_RESULT([${$1}]) 314a9274bcdSmrg]) # XORG_FONTSUBDIR 315a9274bcdSmrg 316a9274bcdSmrg# XORG_FONTDIR(subdir) 317a9274bcdSmrg# -------------------- 318a9274bcdSmrg# Minimum version: 1.1.0 319a9274bcdSmrg# 320a9274bcdSmrg# Offer a --with-fontdir flag to control directory for font installation 321a9274bcdSmrg# Default is the specified subdir of the font root directory. 322a9274bcdSmrg# Sets FONTDIR to the selected directory 323a9274bcdSmrg 324a9274bcdSmrgAC_DEFUN([XORG_FONTDIR],[XORG_FONTSUBDIR([FONTDIR], [fontdir], [$1])]) 325