diff options
author | Ben Elliston <bje@gnu.org> | 2001-09-19 10:07:36 +0400 |
---|---|---|
committer | Ben Elliston <bje@gnu.org> | 2001-09-19 10:07:36 +0400 |
commit | 5df2a48314f46b960b3a97be9493fe574a40fb4e (patch) | |
tree | d015e17da4b3aabaf795149ae579055ebb2c3362 /configure.in | |
parent | 5733509e25f40d3640c1648dcb89ae5234d097e8 (diff) |
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.
Diffstat (limited to 'configure.in')
-rw-r--r-- | configure.in | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/configure.in b/configure.in index 6b7a0cd43..4102e594b 100644 --- a/configure.in +++ b/configure.in @@ -1212,7 +1212,7 @@ rm -f conftest* 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 |