From 866cdf6cf67c144170f61bb60320d399dc1589b9 Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Mon, 25 Jul 1994 15:16:36 +0000 Subject: [PATCH] * configure.in: Warn about use of /usr/ucb/cc on Solaris. From Bill Cox . --- ChangeLog | 5 +++++ configure.in | 27 +++++++++++++++++++++++++++ 2 files changed, 32 insertions(+) diff --git a/ChangeLog b/ChangeLog index 3b9b6e0a547..acc0fa9adba 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Mon Jul 25 11:10:06 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com) + + * configure.in: Warn about use of /usr/ucb/cc on Solaris. From + Bill Cox . + Sat Jul 23 12:19:46 1994 Per Bothner (bothner@kalessin.cygnus.com) * config.guess: Recognize ISC. Patch from kwzh@gnu.ai.mit.edu. diff --git a/configure.in b/configure.in index f8dd1daeeae..0f163d57e00 100644 --- a/configure.in +++ b/configure.in @@ -122,6 +122,33 @@ case "${host}" in esac fi +# 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 + could_use= + [ -d /opt/SUNWspro/bin ] && could_use="/opt/SUNWspro/bin" + if [ -d /opt/cygnus/bin ] ; then + if [ "$could_use" == "" ] ; then + could_use="/opt/cygnus/bin" + else + could_use="$could_use or /opt/cygnus/bin" + fi + fi + if [ "$could_use" = "" ] ; then + echo "Warning: compilation may fail because you're using" + echo "/usr/ucb/cc. You should change your PATH or CC " + echo "variable and rerun configure." + else + echo "Warning: compilation may fail because you're using" + echo "/usr/ucb/cc, when you should use the C compiler from" + echo "$could_use. You should change your" + echo "PATH or CC variable and rerun configure." + fi + fi + ;; +esac + # per-target: case "${target}" in -- 2.30.2