* configure.in (sparc-sun-solaris2*): Don't use /usr/bin/which on
Solaris when testing for the /usr/ucb/cc compiler; it has incorrect
semantics. Use the shell built-in "type" command instead.
+2001-09-19 Ben Elliston <bje@redhat.com>
+
+ * configure.in (sparc-sun-solaris2*): Don't use /usr/bin/which on
+ Solaris when testing for the /usr/ucb/cc compiler; it has incorrect
+ semantics. Use the shell built-in "type" command instead.
+
2001-09-15 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
* config.sub: Reverted the earlier change, this version is not the
case "${host}" in
sparc-sun-solaris2*)
CCBASE="`echo ${CC-cc} | sed 's/ .*$//'`"
- if [ "`/usr/bin/which $CCBASE`" = "/usr/ucb/cc" ] ; then
+ if [ "`type $CCBASE | sed 's/^[^/]*//'`" = "/usr/ucb/cc" ] ; then
could_use=
[ -d /opt/SUNWspro/bin ] && could_use="/opt/SUNWspro/bin"
if [ -d /opt/cygnus/bin ] ; then