[m-rev.] diff: pass `-C' to gcj
Fergus Henderson
fjh at cs.mu.OZ.AU
Thu Feb 19 17:54:09 AEDT 2004
Estimated hours taken: 0.5
Branches: main
aclocal.m4:
Fix a bug: if we're using "gcj" as the Java compiler for JAVAC,
we need to pass it the "-C" option, so that it generates Java class
files, not native code ".o" files.
Workspace: /home/jupiter/fjh/ws-jupiter/mercury
Index: aclocal.m4
===================================================================
RCS file: /home/mercury1/repository/mercury/aclocal.m4,v
retrieving revision 1.22
diff -u -d -r1.22 aclocal.m4
--- aclocal.m4 11 Feb 2004 03:49:56 -0000 1.22
+++ aclocal.m4 19 Feb 2004 06:36:36 -0000
@@ -289,6 +289,9 @@
# then that's what we'd get. If the user has jikes installed, then that
# probably means that they want to use it, so we check for jikes before javac.
AC_PATH_PROGS(JAVAC, jikes javac gcj)
+case "$JAVAC" in *gcj)
+ JAVAC="$JAVAC -C" ;;
+esac
AC_PATH_PROG(JAVA_INTERPRETER, java)
AC_PATH_PROG(JAR, jar)
--
Fergus Henderson <fjh at cs.mu.oz.au> | "I have always known that the pursuit
The University of Melbourne | of excellence is a lethal habit"
WWW: <http://www.cs.mu.oz.au/~fjh> | -- the last words of T. S. Garp.
--------------------------------------------------------------------------
mercury-reviews mailing list
post: mercury-reviews at cs.mu.oz.au
administrative address: owner-mercury-reviews at cs.mu.oz.au
unsubscribe: Address: mercury-reviews-request at cs.mu.oz.au Message: unsubscribe
subscribe: Address: mercury-reviews-request at cs.mu.oz.au Message: subscribe
--------------------------------------------------------------------------
More information about the reviews
mailing list