This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: Bootstrap failure with --enable-debug
- To: Tom Tromey <tromey at redhat dot com>
- Subject: Re: Bootstrap failure with --enable-debug
- From: Jeff Sturm <jsturm at one-point dot com>
- Date: Thu, 31 May 2001 02:17:09 -0400 (EDT)
- cc: java at gcc dot gnu dot org
On 26 May 2001, Tom Tromey wrote:
> Jeff> While looking at a mysterious bootstrap failure today, I
> Jeff> realized that configuring with --enable-debug causes libffi to
> Jeff> disable its raw API, breaking the interpreter. Is that
> Jeff> intentional?
>
> We should change it either way. I can't imagine how this would be
> useful.
It seems to me the use of AC_ARG_ENABLE in libffi/configure.in is just
plain wrong. Here's my attempt at fixing it. Can someone familiar with
autoconf tell me if I'm doing the right thing here?
Also, what is the normal version of autoconf for regenerating these?
The last release (2.13) results in a diff larger than expected.
2000-05-31 Jeff Sturm <jsturm@one-point.com>
* configure.in: Fix AC_ARG_ENABLE usage.
Index: configure.in
===================================================================
RCS file: /cvs/gcc/gcc/libffi/configure.in,v
retrieving revision 1.10.4.4
diff -u -r1.10.4.4 configure.in
--- configure.in 2001/05/06 12:54:48 1.10.4.4
+++ configure.in 2001/05/31 05:45:41
@@ -95,14 +95,29 @@
AC_SUBST(SHELL)
-AC_ARG_ENABLE(debug,[ --enable-debug debugging mode], AC_DEFINE(FFI_DEBUG))
+AC_ARG_ENABLE(debug,
+[ --enable-debug debugging mode],
+ if test "$enable_debug" = "yes"; then
+ AC_DEFINE(FFI_DEBUG)
+ fi)
-AC_ARG_ENABLE(debug,[ --disable-structs omit code for struct support], AC_DEFINE(FFI_NO_STRUCTS))
+AC_ARG_ENABLE(structs,
+[ --disable-structs omit code for struct support],
+ if test "$enable_structs" = "no"; then
+ AC_DEFINE(FFI_NO_STRUCTS)
+ fi)
-AC_ARG_ENABLE(debug,[ --disable-raw-api make the raw api unavailable], AC_DEFINE(FFI_NO_RAW_API))
+AC_ARG_ENABLE(raw-api,
+[ --disable-raw-api make the raw api unavailable],
+ if test "$enable_raw_api" = "no"; then
+ AC_DEFINE(FFI_NO_RAW_API)
+ fi)
AC_ARG_ENABLE(purify-safety,
-[ --enable-purify-safety purify-safe mode], AC_DEFINE(USING_PURIFY))
+[ --enable-purify-safety purify-safe mode],
+ if test "$enable_purify_safety" = "yes"; then
+ AC_DEFINE(USING_PURIFY)
+ fi)
AM_CONDITIONAL(USE_LIBDIR, test -z "$with_cross_host")