configure.ac: Set have_compiler based on whether gcc directory exists...
authorIan Lance Taylor <iant@google.com>
Tue, 26 Jul 2011 18:44:11 +0000 (18:44 +0000)
committerIan Lance Taylor <ian@gcc.gnu.org>
Tue, 26 Jul 2011 18:44:11 +0000 (18:44 +0000)
* configure.ac: Set have_compiler based on whether gcc directory
exists, rather than on whether gcc is in configdirs.
* configure: Rebuild.

From-SVN: r176800

ChangeLog
configure
configure.ac

index 6a27fb72e709113cf6ac9cd930b682ecbf6f4288..2b062ccdb16cc594b36dee1a61dcb22359b3e8b9 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -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.
index facf3e4781e29ce16131ff99d85ba76aa6a6316d..5366d713e0b698d6215fa20a6f1391cfd5a8743a 100755 (executable)
--- a/configure
+++ b/configure
@@ -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) ;;
index e64e5775f13a889e3ca45efe2c3e8bff8dd07333..4cf116073650e61b1494ebc52c99955d7fda5fa8 100644 (file)
@@ -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) ;;