aboutsummaryrefslogtreecommitdiff
path: root/configure.in
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>1994-07-25 15:16:36 +0000
committerIan Lance Taylor <ian@airs.com>1994-07-25 15:16:36 +0000
commit866cdf6cf67c144170f61bb60320d399dc1589b9 (patch)
tree8e31061eb82d3a1ca376721c60d5ebf689303515 /configure.in
parentdedd81f1590dbc21aba6446e67bf9a1ef2fce674 (diff)
downloadgdb-866cdf6cf67c144170f61bb60320d399dc1589b9.zip
gdb-866cdf6cf67c144170f61bb60320d399dc1589b9.tar.gz
gdb-866cdf6cf67c144170f61bb60320d399dc1589b9.tar.bz2
* configure.in: Warn about use of /usr/ucb/cc on Solaris. From
Bill Cox <bill@cygnus.com>.
Diffstat (limited to 'configure.in')
-rw-r--r--configure.in27
1 files changed, 27 insertions, 0 deletions
diff --git a/configure.in b/configure.in
index f8dd1da..0f163d5 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