summaryrefslogtreecommitdiffstats
path: root/unix/tcl.m4
diff options
context:
space:
mode:
authormo <mo>2000-07-17 08:26:31 (GMT)
committermo <mo>2000-07-17 08:26:31 (GMT)
commit247225ff4ff6cee54489ee55dc9911d459e1003d (patch)
treeaac2afa6e405ee5016fcaa2591421a65c7254b76 /unix/tcl.m4
parentbd777f7b20703de4f0dd0b6b1e9b81073d1c951e (diff)
downloadtcl-247225ff4ff6cee54489ee55dc9911d459e1003d.zip
tcl-247225ff4ff6cee54489ee55dc9911d459e1003d.tar.gz
tcl-247225ff4ff6cee54489ee55dc9911d459e1003d.tar.bz2
Don't set CC=gcc before running AC_PROG_CC if CC is already set.
Diffstat (limited to 'unix/tcl.m4')
-rw-r--r--unix/tcl.m44
1 files changed, 3 insertions, 1 deletions
diff --git a/unix/tcl.m4 b/unix/tcl.m4
index 8bfded3..2454bd4 100644
--- a/unix/tcl.m4
+++ b/unix/tcl.m4
@@ -277,7 +277,9 @@ AC_DEFUN(SC_ENABLE_GCC, [
AC_ARG_ENABLE(gcc, [ --enable-gcc allow use of gcc if available [--disable-gcc]],
[ok=$enableval], [ok=no])
if test "$ok" = "yes"; then
- CC=gcc
+ if test -z "$CC"; then
+ CC=gcc
+ fi
AC_PROG_CC
else
CC=${CC-cc}