summaryrefslogtreecommitdiffstats
path: root/configure.in
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1995-03-09 14:09:54 (GMT)
committerGuido van Rossum <guido@python.org>1995-03-09 14:09:54 (GMT)
commit03ad99f09fb1966e478910970503ff4dde2701fb (patch)
tree4f49152914525712431380773693aa4d66fc1a75 /configure.in
parent7849da863191895030ea103875b313a4f3f3276d (diff)
downloadcpython-03ad99f09fb1966e478910970503ff4dde2701fb.zip
cpython-03ad99f09fb1966e478910970503ff4dde2701fb.tar.gz
cpython-03ad99f09fb1966e478910970503ff4dde2701fb.tar.bz2
added test for CC value not matching cache
Diffstat (limited to 'configure.in')
-rw-r--r--configure.in7
1 files changed, 7 insertions, 0 deletions
diff --git a/configure.in b/configure.in
index 0ef0473..78ec997 100644
--- a/configure.in
+++ b/configure.in
@@ -17,6 +17,13 @@ AC_ARG_WITH(gcc, [--without-gcc never use gcc], [
esac], [without_gcc=no])
AC_MSG_RESULT($without_gcc)
+# If the user switches compilers, we can't believe the cache
+if test ! -z "$ac_cv_prog_CC" -a ! -z "$CC" -a "$CC" != "$ac_cv_prog_CC"
+then
+ AC_ERROR(cached CC is different -- throw away $cache_file
+(it is also a good idea to do 'make clean' before compiling))
+fi
+
AC_PROG_CC
AC_PROG_RANLIB
AC_SUBST(AR)