From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ben Elliston To: binutils@sources.redhat.com, gcc-patches@gcc.gnu.org, gdb-patches@sources.redhat.com Subject: Top-level configure.in patch Date: Tue, 18 Sep 2001 20:55:00 -0000 Message-id: <15272.5937.195468.61032@scooby.brisbane.redhat.com> X-SW-Source: 2001-09/msg00244.html The ChangeLog entry for this patch ought to provide sufficient explanation. I have tested this with a wide variety of shells. Okay to commit? 2001-09-19 Ben Elliston * 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. Index: configure.in =================================================================== RCS file: /cvs/cvsfiles/devo/configure.in,v retrieving revision 1.728 diff -u -c -r1.728 configure.in *** configure.in 2001/09/13 13:28:37 1.728 --- configure.in 2001/09/19 03:53:16 *************** *** 1506,1512 **** case "${host}" in sparc-sun-solaris2*) 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 --- 1506,1512 ---- case "${host}" in sparc-sun-solaris2*) CCBASE="`echo ${CC-cc} | sed 's/ .*$//'`" ! 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