* ltmain.in ($PATH): Expand any tildes in the users path to the

contents of $HOME to avoid problems with *_cmds splitting and
evaluation.
This commit is contained in:
Gary V. Vaughan 1999-03-25 08:58:47 +00:00
parent 64d868411f
commit 85e85038a1
2 changed files with 13 additions and 0 deletions

View File

@ -1,3 +1,9 @@
1999-03-25 Gary V. Vaughan <gvaughan@oranda.demon.co.uk>
* ltmain.in ($PATH): Expand any tildes in the users path to the
contents of $HOME to avoid problems with *_cmds splitting and
evaluation.
1999-03-24 Thomas Tanner <tanner@gmx.de>
* TODO: support -dlopen for libraries

View File

@ -90,6 +90,13 @@ if test "$build_libtool_libs" != yes && test "$build_old_libs" != yes; then
exit 1
fi
# A little paranoid perhaps...
[ "${HOME+set}" ] || HOME=`cd && pwd`
# Apparently some people optimistically hardcode `~' in their path, and
# hope that their tools will interpret it correctly. We mustn't disappoint!
eval PATH=`echo "$PATH" | sed 's,^~/,$HOME/,;s,:~/,:$HOME/,g'`
# Global variables.
mode=$default_mode
nonopt=