summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorKevin E Martin <kem@kem.org>2005-12-09 06:07:14 +0000
committerKevin E Martin <kem@kem.org>2005-12-09 06:07:14 +0000
commitd146b3a17228204ce0fe3bcca72de53cedebf5fb (patch)
treeee363cf5ebf3f68bbe3e3fcd6e6a450054723bff /configure.ac
parentacb0d67e5f0293f960a923cda6eb359a82f7036e (diff)
Bug #5175: Make encodingsdir configurable (David Coulthart and Kevin E.MODULAR_COPY
Martin)
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac9
1 files changed, 9 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 964fe3c..c5461a1 100644
--- a/configure.ac
+++ b/configure.ac
@@ -33,6 +33,15 @@ AM_CONFIG_HEADER(config.h)
AC_PROG_CC
AC_PROG_LIBTOOL
+m4_ifdef([AS_HELP_STRING], , [m4_define([AS_HELP_STRING], m4_defn([AC_HELP_STRING]))])
+
+DEFAULT_ENCODINGSDIR=${libdir}/X11/fonts/encodings
+AC_ARG_WITH(encodingsdir,
+ AS_HELP_STRING([--with-encodingsdir=ENCODINGSDIR], [Path to font encodings]),
+ [ENCODINGSDIR="$withval"],
+ [ENCODINGSDIR="$DEFAULT_ENCODINGSDIR"])
+AC_SUBST(ENCODINGSDIR)
+
# zlib
AC_CHECK_LIB(z, gzclose)