+2004-11-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
+
+ * config/ltmain.m4sh (func_mode_link), tests/objectlist.test:
+ Make sure the argument to `-objectlist' may contain spaces.
+
2004-11-19 Gary V. Vaughan <gary@gnu.org>
* config/m4general.m4sh, config/mailnotify.m4sh,
#! /bin/sh
# objectlist.test - make sure that a nonexisting objectlist file is
-# properly mentioned
+# properly mentioned and that the argument may contain spaces.
# Copyright (C) 2003, 2004 Free Software Foundation, Inc.
# This is free software; see the source for copying conditions. There is NO
linkresult=`$LIBTOOL -n --mode=link $CC -objectlist nonexistant 2>&1`
test $? -eq 0 && exit $EXIT_FAILURE
-echo ".$linkresult."
echo "$linkresult" | ${EGREP} "nonexistant" >/dev/null 2>&1 && {
func_msg "$progname: error message contains -objectlist argument as expected"
- exit $EXIT_SUCCESS
-}
+} || exit $EXIT_FAILURE
-exit $EXIT_FAILURE
+
+objlist="object list with spaces"
+: > "$objlist"
+linkresult=`$LIBTOOL -n --mode=link $CC -o a.out -objectlist "$objlist" 2>&1`
+rm -f "$objlist"
+
+echo "$linkresult" | ${EGREP} "spaces" >/dev/null 2>&1 && {
+ func_msg "$progname: -objectlist with spaces in filename not recognized."
+ exit $EXIT_FAILURE
+}
+
+exit $EXIT_SUCCESS