about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--configure.in5
1 files changed, 3 insertions, 2 deletions
diff --git a/configure.in b/configure.in
index 3263710b1..bcf34458e 100644
--- a/configure.in
+++ b/configure.in
@@ -213,11 +213,12 @@ AC_DEFINE(CONFIG_LOCALE)
 undefine([fndir])dnl
 AC_ARG_ENABLE(fndir,
 [  --enable-fndir=DIR         where functions go (default DATADIR/zsh/functions)],
+dnl ${VERSION} to be determined at compile time.
 [if test $enableval = yes; then
-  fndir=${datadir}/${tzsh_name}/${VERSION}/functions
+  fndir=${datadir}/${tzsh_name}/'${VERSION}'/functions
 else
   fndir="$enableval"
-fi], [fndir=${datadir}/${tzsh_name}/${VERSION}/functions])
+fi], [fndir=${datadir}/${tzsh_name}/'${VERSION}'/functions])
 
 undefine([function_subdirs])
 AC_ARG_ENABLE(function-subdirs,