xenocara/font/encodings/configure.ac

53 lines
1.7 KiB
Plaintext
Raw Normal View History

2010-10-31 14:32:53 -06:00
AC_PREREQ([2.60])
AC_INIT([encodings], [1.0.4],
[https://bugs.freedesktop.org/enter_bug.cgi?product=xorg])
2006-11-26 08:41:08 -07:00
AM_INIT_AUTOMAKE([foreign dist-bzip2])
2010-10-31 14:32:53 -06:00
AM_MAINTAINER_MODE
2006-11-26 08:41:08 -07:00
2010-07-24 14:54:34 -06:00
# Require xorg-macros: XORG_DEFAULT_OPTIONS
m4_ifndef([XORG_MACROS_VERSION],
[m4_fatal([must install xorg-macros 1.3 or later before running autoconf/autogen])])
XORG_MACROS_VERSION(1.3)
XORG_DEFAULT_OPTIONS
2006-11-26 08:41:08 -07:00
2010-07-24 14:54:34 -06:00
AC_PROG_INSTALL
2006-11-26 08:41:08 -07:00
2010-10-31 14:32:53 -06:00
# Require X.Org's font util macros 1.2 or later
2010-07-24 14:54:34 -06:00
m4_ifndef([XORG_FONT_MACROS_VERSION],
2010-10-31 14:32:53 -06:00
[m4_fatal([must install X.Org font-util 1.2 or later before running autoconf/autogen])])
XORG_FONT_MACROS_VERSION(1.2)
2010-07-24 14:54:34 -06:00
# mkfontscale
XORG_FONT_REQUIRED_PROG(MKFONTSCALE, mkfontscale)
2006-11-26 08:41:08 -07:00
# Choose whether or not to compress encodings - default is to compress all
2010-07-24 14:54:34 -06:00
AC_MSG_CHECKING([if small encodings should be compressed])
2006-11-26 08:41:08 -07:00
AC_ARG_ENABLE(gzip-small-encodings,
2010-07-24 14:54:34 -06:00
AC_HELP_STRING([--disable-gzip-small-encodings],
2006-11-26 08:41:08 -07:00
[Disable compression of small encoding files]),
[GZIP_SMALL="$enableval"], [GZIP_SMALL="yes"])
AM_CONDITIONAL(GZIP_SMALL, [test x$GZIP_SMALL = xyes])
2010-07-24 14:54:34 -06:00
AC_MSG_RESULT([${GZIP_SMALL}])
2006-11-26 08:41:08 -07:00
2010-07-24 14:54:34 -06:00
AC_MSG_CHECKING([if large encodings should be compressed])
2006-11-26 08:41:08 -07:00
AC_ARG_ENABLE(gzip-large-encodings,
2010-07-24 14:54:34 -06:00
AC_HELP_STRING([--disable-gzip-large-encodings],
2006-11-26 08:41:08 -07:00
[Disable compression of large encoding files]),
[GZIP_LARGE="$enableval"], [GZIP_LARGE="yes"])
AM_CONDITIONAL(GZIP_LARGE, [test x$GZIP_LARGE = xyes])
2010-07-24 14:54:34 -06:00
AC_MSG_RESULT([${GZIP_LARGE}])
2006-11-26 08:41:08 -07:00
# gzip
if test x$GZIP_SMALL = xyes -o x$GZIP_LARGE = xyes ; then
AC_PATH_PROG(GZIP, gzip)
if [[ -z $GZIP ]]; then
AC_MSG_ERROR([gzip is needed to compress font encodings])
fi
fi
2010-07-24 14:54:34 -06:00
XORG_FONTSUBDIR([ENCODINGSDIR], [encodingsdir], [encodings])
2006-11-26 08:41:08 -07:00
AC_OUTPUT([Makefile large/Makefile])