Hi,

On Fri, 2001-11-16 at 23:59, Brian Jones wrote:
> Mark Wielaard <[EMAIL PROTECTED]> writes:
> > On Mon, Nov 12, 2001 at 11:11:43PM -0500, Brian Jones wrote:
> > > I'm noticing some problems trying to configure classpath for
> > > --with-gcj using automake 1.5 and autoconf 2.52.  It looks like for
> > > some reason autoconf is evaluating @FOUND_JIKES_FALSE@ and
> > > @FOUND_JIKES_TRUE@ both to "" at the same time.  Could someone else
> > > who has tried the --with-gcj option comment?
> > 
> > Are you talking about the following from lib/Makefile.am:
> 
> Yes.
> 
> > Which gets transformed to this lib/MAKEFILE.in:
> 
> Yes.
> 
> > Then, yes, I am seeing the same thing.
> 
> Bugger, any ideas about why autoconf is doing that?

I do not pretend that I really understand it, but the following patch
seems to fix it for me. Does it look right to you?

Cheers,

Mark
Index: acinclude.m4
===================================================================
RCS file: /cvsroot/classpath/classpath/acinclude.m4,v
retrieving revision 1.20
diff -u -r1.20 acinclude.m4
--- acinclude.m4        28 Oct 2001 01:15:04 -0000      1.20
+++ acinclude.m4        8 Jan 2002 21:27:11 -0000
@@ -255,15 +255,13 @@
   CLASSPATH_WITH_JIKES
   CLASSPATH_WITH_KJC
 
-  case "$user_specified_javac" in
-    gcj) AM_CONDITIONAL(FOUND_GCJ, test x = x) ;;
-    jikes) AM_CONDITIONAL(FOUND_JIKES, test x = x) ;;
-    kjc) AM_CONDITIONAL(FOUND_KJC, test x = x) ;;
-  esac
-
   if test "$user_specified_javac" = ""; then
     AM_CONDITIONAL(FOUND_GCJ, test "$GCJ" != "")
     AM_CONDITIONAL(FOUND_JIKES, test "$JIKES" != "")
+  else
+    AM_CONDITIONAL(FOUND_GCJ, test "$user_specified_javac" = "gcj")
+    AM_CONDITIONAL(FOUND_JIKES, test "$user_specified_javac" = "jikes")
+    AM_CONDITIONAL(FOUND_KJC, test "$user_specified_javac" = "kjc")
   fi
 
   if test "$GCJ" = "" && test "$JIKES" = "" && test "$user_specified_javac" != "kjc"; 
then

Reply via email to