summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--hints/hpux.sh2
-rw-r--r--hints/irix_6.sh2
-rw-r--r--hints/solaris_2.sh4
3 files changed, 6 insertions, 2 deletions
diff --git a/hints/hpux.sh b/hints/hpux.sh
index 462d74b5e6..b1758eda83 100644
--- a/hints/hpux.sh
+++ b/hints/hpux.sh
@@ -105,6 +105,8 @@ EOM
;;
esac
+cc=${cc:-cc}
+
case `$cc -v 2>&1`"" in
*gcc*) ccisgcc="$define" ;;
*) ccisgcc=''
diff --git a/hints/irix_6.sh b/hints/irix_6.sh
index 9190ceed01..32335a0bb8 100644
--- a/hints/irix_6.sh
+++ b/hints/irix_6.sh
@@ -49,7 +49,7 @@ case "$cc" in
esac
esac
-test -z "$cc" && cc=cc
+cc=${cc:-cc}
case "$cc" in
*gcc*) ;;
diff --git a/hints/solaris_2.sh b/hints/solaris_2.sh
index 8fe516a85e..e8175f241a 100644
--- a/hints/solaris_2.sh
+++ b/hints/solaris_2.sh
@@ -45,7 +45,9 @@ case "$archname" in
;;
esac
-ccversion="`${cc:-cc} -V 2>&1|head -1|sed 's/^cc: //'`"
+cc=${cc:-cc}
+
+ccversion="`$cc -V 2>&1|head -1|sed 's/^cc: //'`"
case "$ccversion" in
*WorkShop*) ccname=workshop ;;
*) ccversion='' ;;