mirror of
https://github.com/python/cpython.git
synced 2025-11-11 14:44:57 +00:00
added test for CC value not matching cache
This commit is contained in:
parent
7849da8631
commit
03ad99f09f
1 changed files with 7 additions and 0 deletions
|
|
@ -17,6 +17,13 @@ AC_ARG_WITH(gcc, [--without-gcc never use gcc], [
|
||||||
esac], [without_gcc=no])
|
esac], [without_gcc=no])
|
||||||
AC_MSG_RESULT($without_gcc)
|
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_CC
|
||||||
AC_PROG_RANLIB
|
AC_PROG_RANLIB
|
||||||
AC_SUBST(AR)
|
AC_SUBST(AR)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue