+2005-05-21 Gary V. Vaughan <gary@gnu.org>,
+ Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
+
+ * m4/libtool.m4 (_LT_SETUP, _LT_LANG_CXX_CONFIG, * _LT_LANG_F77_CONFIG):
+ For matching compiler names: Pick only first word, allow leading white
+ space..
+ * tests/sh.test: ..and test for missing `*' at end of patterns.
+
2005-03-20 Peter Ekberg <peda@lysator.liu.se>
* m4/libtool.m4 (_LT_LINKER_SHLIBS) [ irix5, irix6, nonstopux ]:
test -z "$LD" && LD=ld
test -z "$ac_objext" && ac_objext=o
-cc_basename=`$ECHO X"$compiler" | $Xsed -e 's%^.*/%%'`
+cc_basename=`$ECHO "X$compiler" \
+ | $Xsed -e 's%.*/%%;s%^[ ]*\([^ ]*\).*$%\1%'`
# Only perform the check for file, if the check method requires it
test -z "$MAGIC_CMD" && MAGIC_CMD=file
CC=${CXX-"c++"}
compiler=$CC
_LT_TAGVAR(compiler, $1)=$CC
- cc_basename=`$ECHO X"$compiler" | $Xsed -e 's%^.*/%%'`
+ cc_basename=`$ECHO "X$compiler" \
+ | $Xsed -e 's%.*/%%;s%^[ ]*\([^ ]*\).*$%\1%'`
if test -n "$compiler"; then
# We don't want -fno-exception when compiling C++ code, so set the
CC=${F77-"f77"}
compiler=$CC
_LT_TAGVAR(compiler, $1)=$CC
- cc_basename=`$ECHO X"$compiler" | $Xsed -e 's%^.*/%%'`
+ cc_basename=`$ECHO "X$compiler" \
+ | $Xsed -e 's%.*/%%;s%^[ ]*\([^ ]*\).*$%\1%'`
if test -n "$compiler"; then
AC_MSG_CHECKING([if libtool supports shared libraries])
fi
done
+for s in "$srcdir/../m4/libtool.m4"
+do
+ if $SED -n '/case \$cc_basename in/,/esac/ {
+ /^[ ]*[a-zA-Z][a-zA-Z0-9+]*[^*][ ]*)/p
+ };' $s | $EGREP .; then
+ echo "\$cc_basename matches should include a trailing \`*' in $s."
+ status=$EXIT_FAILURE
+ fi
+done
+
exit $status