summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--unix/tcl.m44
2 files changed, 8 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 511a294..bde1de1 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2000-07-17 Mo DeJong <mdejong@redhat.com>
+
+ * unix/tcl.m4 (SC_ENABLE_GCC): Don't set CC=gcc
+ before running AC_PROG_CC if CC is already set.
+
2000-07-13 André Pönitz <poenitz@mathematik.tu-chemnitz.de>
* doc/lappend.n:
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}