OSDN Git Service

* configure.in (libgcj_saved): Copy from $libgcj.
authoraoliva <aoliva@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 25 Apr 2001 21:29:48 +0000 (21:29 +0000)
committeraoliva <aoliva@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 25 Apr 2001 21:29:48 +0000 (21:29 +0000)
(libgcj): Zero out if --enable-libgcj; add to noconfigdirs is
--disable-libgcj.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@41551 138bc75d-0d04-0410-961f-82ee72b054a4

ChangeLog
configure.in

index 2e20f9f..6c73eb0 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2001-04-25  Alexandre Oliva  <aoliva@redhat.com>
+
+       * configure.in (libgcj_saved): Copy from $libgcj.
+       (libgcj): Zero out if --enable-libgcj; add to noconfigdirs is
+       --disable-libgcj.
+
 2001-04-25  Gavin Romig-Koch  <gavin@redhat.com>
 
        * MAINTAINERS: Remove self as MIPS maintainer and
index d9f2bb1..056d7d2 100644 (file)
@@ -585,6 +585,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
   *-*-chorusos)
     noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"