diff options
author | Nick Clifton <nickc@redhat.com> | 2010-02-15 10:54:09 +0000 |
---|---|---|
committer | Nick Clifton <nickc@gcc.gnu.org> | 2010-02-15 10:54:09 +0000 |
commit | ff78880a17ca1412a232d5e8d3b41aa64d08a31f (patch) | |
tree | 786f83a0e10f95f14f6ec1ab942eda406d5105d6 /configure.ac | |
parent | 653958e8be5d66a3441423d4e10b443a593a59cb (diff) | |
download | gcc-ff78880a17ca1412a232d5e8d3b41aa64d08a31f.tar.gz |
configure.ac: Delete config.cache files in sub-directories when deleting Makefiles.
* configure.ac: Delete config.cache files in sub-directories when
deleting Makefiles.
* configure: Regenerate.
From-SVN: r156769
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index 34641667339..371b6e2bc5b 100644 --- a/configure.ac +++ b/configure.ac @@ -2710,6 +2710,12 @@ for module in ${build_configdirs} ; do echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure" rm -f ${build_subdir}/${module}/Makefile fi + # PR 11238: Also remove config.cache files. + if test -z "${no_recursion}" \ + && test -f ${build_subdir}/${module}/config.cache; then + echo 1>&2 "*** removing ${build_subdir}/${module}/config.cache to allow reconfigure" + rm -f ${build_subdir}/${module}/config.cache + fi extrasub_build="$extrasub_build /^@if build-$module\$/d /^@endif build-$module\$/d @@ -2725,6 +2731,11 @@ for module in ${configdirs} ; do rm -f ${file} fi done + # PR 11238: Also remove config.cache files. + if test -f ${module}/config.cache; then + echo 1>&2 "*** removing ${module}/config.cache to allow reconfigure" + rm -f ${module}/config.cache + fi fi extrasub_host="$extrasub_host /^@if $module\$/d @@ -2739,6 +2750,12 @@ for module in ${target_configdirs} ; do echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure" rm -f ${target_subdir}/${module}/Makefile fi + # PR 11238: Also remove config.cache files. + if test -z "${no_recursion}" \ + && test -f ${target_subdir}/${module}/config.cache; then + echo 1>&2 "*** removing ${target_subdir}/${module}/config.cache to allow reconfigure" + rm -f ${target_subdir}/${module}/config.cache + fi # We only bootstrap target libraries listed in bootstrap_target_libs. case $bootstrap_target_libs in |