configure.ac revision 92bb16f8
1AC_PREREQ([2.57]) 2AC_INIT([encodings], [1.0.2], [https://bugs.freedesktop.org/enter_bug.cgi?product=xorg]) 3AM_INIT_AUTOMAKE([foreign dist-bzip2]) 4 5m4_ifdef([AS_HELP_STRING], , [m4_define([AS_HELP_STRING], m4_defn([AC_HELP_STRING]))]) 6 7# mkfontscale 8 9AC_PATH_PROG(MKFONTSCALE, mkfontscale) 10if [[ -z $MKFONTSCALE ]]; then 11 AC_MSG_ERROR([mkfontscale is needed to build fontenc. Please install the app/mkfontscale package from X.Org.]) 12fi 13 14# Choose whether or not to compress encodings - default is to compress all 15 16AC_ARG_ENABLE(gzip-small-encodings, 17 AS_HELP_STRING([--disable-gzip-small-encodings], 18 [Disable compression of small encoding files]), 19 [GZIP_SMALL="$enableval"], [GZIP_SMALL="yes"]) 20AM_CONDITIONAL(GZIP_SMALL, [test x$GZIP_SMALL = xyes]) 21 22AC_ARG_ENABLE(gzip-large-encodings, 23 AS_HELP_STRING([--disable-gzip-large-encodings], 24 [Disable compression of large encoding files]), 25 [GZIP_LARGE="$enableval"], [GZIP_LARGE="yes"]) 26AM_CONDITIONAL(GZIP_LARGE, [test x$GZIP_LARGE = xyes]) 27 28# gzip 29 30if test x$GZIP_SMALL = xyes -o x$GZIP_LARGE = xyes ; then 31 AC_PATH_PROG(GZIP, gzip) 32 if [[ -z $GZIP ]]; then 33 AC_MSG_ERROR([gzip is needed to compress font encodings]) 34 fi 35fi 36 37DEFAULT_ENCODINGSDIR=${libdir}/X11/fonts/encodings 38AC_ARG_WITH(encodingsdir, 39 AS_HELP_STRING([--with-encodingsdir=ENCODINGSDIR], [Path to install font encodings]), 40 [ENCODINGSDIR="$withval"], 41 [ENCODINGSDIR="$DEFAULT_ENCODINGSDIR"]) 42AC_SUBST(ENCODINGSDIR) 43 44XORG_RELEASE_VERSION 45 46AC_OUTPUT([Makefile large/Makefile]) 47