* configure.in (libgcj_saved): Copy from $libgcj.
[deliverable/binutils-gdb.git] / configure.in
index cc8f34f879530af81a357aeb9e646c646eb61121..d5db06585780fe0d06eb435033e802a07564c77c 100644 (file)
@@ -572,6 +572,22 @@ case "${host}" in
 esac
 
 
+# Save it here so that, even in case of --enable-libgcj, if the Java
+# front-end isn't enabled, we still get libgcj disabled.
+libgcj_saved=$libgcj
+case $enable_libgcj in
+yes)
+  # If we reset it here, it won't get added to noconfigdirs in the
+  # target-specific build rules, so it will be forcibly enabled
+  # (unless the Java language itself isn't enabled).
+  libgcj=
+  ;;
+no)
+  # Make sure we get it printed in the list of not supported target libs.
+  noconfigdirs="$noconfigdirs ${libgcj}"
+  ;;
+esac
+
 case "${target}" in
   *-*-netware)
     noconfigdirs="$noconfigdirs ${libstdcxx_version} target-newlib target-libiberty target-libgloss target-libffi"
This page took 0.024641 seconds and 4 git commands to generate.