]> git.ipfire.org Git - thirdparty/gcc.git/blobdiff - configure.in
re PR other/27063 (Fail to build gcc-core-4.2 snapshots)
[thirdparty/gcc.git] / configure.in
index 21a464d5bddadd9e3349d275c94d3ce6f34810c9..b472484116ea724ef614566302e6231626ac9290 100644 (file)
@@ -1219,6 +1219,7 @@ if test -d ${srcdir}/gcc; then
         language=
         target_libs=
         lang_dirs=
+        subdir_requires=
         boot_language=
         build_by_default=
         need_gmp=
@@ -1252,6 +1253,21 @@ if test -d ${srcdir}/gcc; then
             ;;
         esac
 
+        # Disable languages that need other directories if these aren't available.
+       for i in $subdir_requires .; do
+         test -d gcc/$i && continue
+         case ,${enable_languages}, in
+            *,${language},*)
+              # Specifically requested language; tell them.
+              AC_MSG_ERROR([The gcc/$i directory contains parts of $language but is missing])
+              ;;
+            *)
+              # Silently disable.
+              add_this_lang=no
+              ;;
+          esac
+       done
+
         # Disable languages that need GMP if it isn't available.
         case ,${enable_languages},:${have_gmp}:${need_gmp} in
           *,${language},*:no:yes)