* libltdl/config/ltmain.m4sh (func_mode_link): Quote $#.
Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
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.
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"