+2005-05-21 Gary V. Vaughan <gary@gnu.org>,
+ Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
+
+ * libtool.m4 (AC_LIBTOOL_SETUP, AC_LIBTOOL_LANG_CXX_CONFIG,
+ AC_LIBTOOL_LANG_F77_CONFIG, AC_LIBTOOL_PROG_LD_SHLIBS):
+ 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-19 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
* tests/demo-nopic.test: Enhance status output
old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
fi
-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
case $deplibs_check_method in
CC=${CXX-"c++"}
compiler=$CC
_LT_AC_TAGVAR(compiler, $1)=$CC
-cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
+cc_basename=`$echo "X$compiler" \
+ | $Xsed -e 's%.*/%%;s%^[ ]*\([^ ]*\).*$%\1%'`
# We don't want -fno-exception wen compiling C++ code, so set the
# no_builtin_flag separately
CC=${F77-"f77"}
compiler=$CC
_LT_AC_TAGVAR(compiler, $1)=$CC
-cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
+cc_basename=`$echo "X$compiler" \
+ | $Xsed -e 's%.*/%%;s%^[ ]*\([^ ]*\).*$%\1%'`
AC_MSG_CHECKING([if libtool supports shared libraries])
AC_MSG_RESULT([$can_build_shared])
# preloaded symbol tables.
extract_expsyms_cmds=
# Just being paranoid about ensuring that cc_basename is set.
- cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
+ cc_basename=`$echo "X$compiler" \
+ | $Xsed -e 's%.*/%%;s%^[ ]*\([^ ]*\).*$%\1%'`
case $host_os in
cygwin* | mingw* | pw32*)
# FIXME: the MSVC++ port hasn't been tested in a loooong time
status=1
fi
+for s in "$srcdir/../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