This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Support --enable-libgcj and --disable-libgcj
- To: gcc-patches at gcc dot gnu dot org, java at gcc dot gnu dot org
- Subject: Support --enable-libgcj and --disable-libgcj
- From: Alexandre Oliva <aoliva at redhat dot com>
- Date: 24 Apr 2001 08:59:05 -0300
- Organization: GCC Team, Red Hat
This patch introduces two new flags to the top-level configure.in:
--disable-libgcj: don't build the Java libraries even if the Java
front-end is enabled.
--enable-libgcj: build the Java libraries even if they are not known
to work on the selected target. (no effect if the Java front-end is
disabled)
I'm not sure we should document these. If so, where?
Ok to install?
Index: ChangeLog
from Alexandre Oliva <aoliva@redhat.com>
* configure.in (libgcj_saved): Copy from $libgcj.
(libgcj): Zero out if --enable-libgcj; add to noconfigdirs is
--disable-libgcj.
Index: configure.in
===================================================================
RCS file: /cvs/gcc/egcs/configure.in,v
retrieving revision 1.98
diff -u -p -r1.98 configure.in
--- configure.in 2001/04/13 05:41:45 1.98
+++ configure.in 2001/04/24 11:53:21
@@ -588,6 +588,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-librx target-newlib target-libiberty target-libgloss ${libgcj}"
Index: gcc/java/ChangeLog
from Alexandre Oliva <aoliva@redhat.com>
* config-lang.in (target_libs): Copy from $libgcj_saved.
Index: gcc/java/config-lang.in
===================================================================
RCS file: /cvs/gcc/egcs/gcc/java/config-lang.in,v
retrieving revision 1.10
diff -u -p -r1.10 config-lang.in
--- gcc/java/config-lang.in 2001/04/12 03:06:00 1.10
+++ gcc/java/config-lang.in 2001/04/24 11:53:25
@@ -37,7 +37,7 @@ compilers="jc1\$(exeext) jvgenmain\$(exe
stagestuff="jc1\$(exeext) gcj\$(exeext) jvgenmain\$(exeext) gcjh\$(exeext) jv-scan\$(exeext) jcf-dump\$(exeext)"
-target_libs=${libgcj}
+target_libs=${libgcj_saved}
lang_dirs="zlib fastjar"
#build_by_default=no
lang_requires=c++
--
Alexandre Oliva Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist *Please* write to mailing lists, not to me