diff options
author | Bram Moolenaar <Bram@vim.org> | 2018-12-21 11:48:51 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2018-12-21 11:48:51 +0100 |
commit | 9d302ad4e31b4e20ce0b3af700f43edb6f5e6036 (patch) | |
tree | bf98d94b2534ef89d8287a9f18a13110937a1e22 /src/auto | |
parent | a79fd56923744e331b3a5badbf9186100818fb45 (diff) |
patch 8.1.0612: cannot use two global runtime dirs with configurev8.1.0612
Problem: Cannot use two global runtime dirs with configure.
Solution: Support a comma in --with-global-runtime. (James McCoy,
closes #3704)
Diffstat (limited to 'src/auto')
-rwxr-xr-x | src/auto/configure | 21 |
1 files changed, 15 insertions, 6 deletions
diff --git a/src/auto/configure b/src/auto/configure index 825d5da4f5..3a1495b918 100755 --- a/src/auto/configure +++ b/src/auto/configure @@ -1533,7 +1533,7 @@ Optional Packages: --with-vim-name=NAME what to call the Vim executable --with-ex-name=NAME what to call the Ex executable --with-view-name=NAME what to call the View executable - --with-global-runtime=DIR global runtime directory in 'runtimepath' + --with-global-runtime=DIR global runtime directory in 'runtimepath', comma-separated for multiple directories --with-modified-by=NAME name of who modified a release version --with-features=TYPE tiny, small, normal, big or huge (default: huge) --with-compiledby=NAME name to show in :version message @@ -4890,17 +4890,26 @@ $as_echo_n "checking --with-global-runtime argument... " >&6; } # Check whether --with-global-runtime was given. if test "${with_global_runtime+set}" = set; then : - withval=$with_global_runtime; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5 -$as_echo "$withval" >&6; }; cat >>confdefs.h <<_ACEOF -#define RUNTIME_GLOBAL "$withval" -_ACEOF - + withval=$with_global_runtime; RUNTIME_GLOBAL="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5 +$as_echo "$withval" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi +if test "X$RUNTIME_GLOBAL" != "X"; then + RUNTIME_GLOBAL_AFTER=$(printf -- "$RUNTIME_GLOBAL\\n" | $AWK -F, 'BEGIN { comma=0 } { for (i = NF; i > 0; i--) { if (comma) { printf ",%s/after", $i } else { printf "%s/after", $i; comma=1 } } } END { printf "\n" }') + cat >>confdefs.h <<_ACEOF +#define RUNTIME_GLOBAL "$RUNTIME_GLOBAL" +_ACEOF + + cat >>confdefs.h <<_ACEOF +#define RUNTIME_GLOBAL_AFTER "$RUNTIME_GLOBAL_AFTER" +_ACEOF + +fi + { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-modified-by argument" >&5 $as_echo_n "checking --with-modified-by argument... " >&6; } |