diff options
author | mo <mo> | 2000-07-17 08:26:31 (GMT) |
---|---|---|
committer | mo <mo> | 2000-07-17 08:26:31 (GMT) |
commit | 247225ff4ff6cee54489ee55dc9911d459e1003d (patch) | |
tree | aac2afa6e405ee5016fcaa2591421a65c7254b76 /unix | |
parent | bd777f7b20703de4f0dd0b6b1e9b81073d1c951e (diff) | |
download | tcl-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')
-rw-r--r-- | unix/tcl.m4 | 4 |
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} |