* configure.in (host==solaris): Pass only the first word of $CC
authorJason Molenda <crash@cygnus>
Fri, 5 Apr 1996 16:32:37 +0000 (16:32 +0000)
committerJason Molenda <crash@cygnus>
Fri, 5 Apr 1996 16:32:37 +0000 (16:32 +0000)
to /usr/bin/which when checking if we're using /usr/ccs/bin/cc.

/usr/ucb/which on Solaris barfs out an error if $CC is set to
seomthing like "cc -xcg92" or "gcc -mv8".  It is harmless, but it looks
bad.

ChangeLog
configure.in

index 558f3a29dfc6577a9d26c981f7fcde32f82875f7..b6aa1410f28b88973ed33ab0b9dc606f13c4ff14 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+Fri Apr  5 08:17:57 1996  Jason Molenda  (crash@phydeaux.cygnus.com)
+
+       * configure.in (host==solaris): Pass only the first word of $CC
+       to /usr/bin/which when checking if we're using /usr/ccs/bin/cc.
+
 Fri Apr  5 03:16:13 1996  Jason Molenda  (crash@phydeaux.cygnus.com)
 
        * Makefile.in (BASE_FLAGS_TO_PASS): pass down $(MAKE).
index c668cc47a6b2ce63e3422c1d2df62d72fc5b0de4..534999c75c0f39f404827294b58d9632bef9316b 100644 (file)
@@ -693,7 +693,8 @@ rm -f conftest*
 # The Solaris /usr/ucb/cc compiler does not appear to work.
 case "${host}" in
   sparc-sun-solaris2*)
-      if [ "`/usr/bin/which ${CC-cc}`" = "/usr/ucb/cc" ] ; then
+      CCBASE="`echo ${CC-cc} | sed 's/ .*$//'`"
+      if [ "`/usr/bin/which $CCBASE`" = "/usr/ucb/cc" ] ; then
           could_use=
           [ -d /opt/SUNWspro/bin ] && could_use="/opt/SUNWspro/bin"
           if [ -d /opt/cygnus/bin ] ; then