This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Top-level configure.in patch
- To: binutils at sources dot redhat dot com, gcc-patches at gcc dot gnu dot org, gdb-patches at sources dot redhat dot com
- Subject: Top-level configure.in patch
- From: Ben Elliston <bje at redhat dot com>
- Date: Wed, 19 Sep 2001 13:55:29 +1000 (EST)
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 <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.
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