diff options
Diffstat (limited to 'configure.in')
-rw-r--r-- | configure.in | 20 |
1 files changed, 18 insertions, 2 deletions
diff --git a/configure.in b/configure.in index 68413fad7..02abcc67b 100644 --- a/configure.in +++ b/configure.in @@ -104,7 +104,7 @@ AC_ARG_ENABLE(lfs, [ --enable-lfs turn on support for large files]) dnl Pathnames for global zsh scripts -undefine([zshenv])dnl +undefine([etcdir])dnl AC_ARG_ENABLE(etcdir, [ --enable-etcdir=directory default directory for global zsh scripts], [etcdir="$enableval"], [etcdir=/etc]) @@ -201,6 +201,21 @@ fi], AC_DEFINE(RESTRICTED_R) ) +undefine([fndir])dnl +AC_ARG_ENABLE(fndir, +[ --enable-fndir=DIR where functions go (default DATADIR/zsh-fns)], +[fndir="$enableval"], [fndir=${datadir}/zsh/functions]) + +if test x${FUNCTIONS_INSTALL+set} != xset; then + FUNCTIONS_INSTALL="Core/* Base/* Builtins/* User/* Commands/*" + if test $dynamic != no; then + FUNCTIONS_INSTALL="${FUNCTIONS_INSTALL} Zftp/*" + fi +fi + +AC_SUBST(fndir)dnl +AC_SUBST(FUNCTIONS_INSTALL)dnl + dnl ------------------ dnl CHECK THE COMPILER dnl ------------------ @@ -1293,7 +1308,8 @@ AC_SUBST_FILE(VERSION_MK)dnl real_no_create=$no_create no_create=yes -AC_OUTPUT(Config/defs.mk Makefile Doc/Makefile Etc/Makefile Src/Makefile, \ +AC_OUTPUT(Config/defs.mk Makefile Doc/Makefile Etc/Makefile Src/Makefile \ +Completion/Makefile Functions/Makefile, \ [test -z "$CONFIG_HEADERS" || echo > stamp-h]) dnl The standard config.status is missing some essential features. |