Fix sh.test regression in last patch.

* libltdl/config/ltmain.m4sh (func_mode_link): Quote $#.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
This commit is contained in:
Ralf Wildenhues 2008-08-21 22:03:02 +02:00
parent 739b7e4349
commit 59f927914c
2 changed files with 3 additions and 1 deletions

View File

@ -1,5 +1,7 @@
2008-08-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
* libltdl/config/ltmain.m4sh (func_mode_link): Quote $#.
Disallow `-L path', do not misparse it silently.
* libltdl/config/ltmain.m4sh (func_mode_link): Diagnose `-L'
without argument, and `-L path', i.e., with a space.

View File

@ -4036,7 +4036,7 @@ func_mode_link ()
func_stripname '-L' '' "$arg"
dir=$func_stripname_result
if test -z "$dir"; then
if test $# -gt 0; then
if test "$#" -gt 0; then
func_fatal_error "require no space between \`-L' and \`$1'"
else
func_fatal_error "need path for \`-L' option"