diff options
author | Ian Lance Taylor <iant@google.com> | 2011-07-26 18:44:11 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@gcc.gnu.org> | 2011-07-26 18:44:11 +0000 |
commit | bf03b9ffeca63804bbdaafe308279b42caa0e2be (patch) | |
tree | 2f153be45922d17bc5bb0a5852e47d6bfa8d2456 | |
parent | e207e41f47355476c36f5833796e62dcdeab1482 (diff) | |
download | gcc-bf03b9ffeca63804bbdaafe308279b42caa0e2be.zip gcc-bf03b9ffeca63804bbdaafe308279b42caa0e2be.tar.gz gcc-bf03b9ffeca63804bbdaafe308279b42caa0e2be.tar.bz2 |
configure.ac: Set have_compiler based on whether gcc directory exists...
* configure.ac: Set have_compiler based on whether gcc directory
exists, rather than on whether gcc is in configdirs.
* configure: Rebuild.
From-SVN: r176800
-rw-r--r-- | ChangeLog | 6 | ||||
-rwxr-xr-x | configure | 9 | ||||
-rw-r--r-- | configure.ac | 9 |
3 files changed, 16 insertions, 8 deletions
@@ -1,3 +1,9 @@ +2011-07-26 Ian Lance Taylor <iant@google.com> + + * configure.ac: Set have_compiler based on whether gcc directory + exists, rather than on whether gcc is in configdirs. + * configure: Rebuild. + 2011-07-21 Joseph Myers <joseph@codesourcery.com> * MAINTAINERS (Global Reviewers): Add self. @@ -4992,10 +4992,11 @@ fi # Issue errors and warnings for invalid/strange bootstrap combinations. -case "$configdirs" in - *gcc*) have_compiler=yes ;; - *) have_compiler=no ;; -esac +if test -r $srcdir/gcc/configure; then + have_compiler=yes +else + have_compiler=no +fi case "$have_compiler:$host:$target:$enable_bootstrap" in *:*:*:no) ;; diff --git a/configure.ac b/configure.ac index e64e577..4cf1160 100644 --- a/configure.ac +++ b/configure.ac @@ -1139,10 +1139,11 @@ AC_ARG_ENABLE([bootstrap], enable_bootstrap=default) # Issue errors and warnings for invalid/strange bootstrap combinations. -case "$configdirs" in - *gcc*) have_compiler=yes ;; - *) have_compiler=no ;; -esac +if test -r $srcdir/gcc/configure; then + have_compiler=yes +else + have_compiler=no +fi case "$have_compiler:$host:$target:$enable_bootstrap" in *:*:*:no) ;; |