summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2004-12-25 23:10:06 +0000
committerTom Tromey <tromey@redhat.com>2004-12-25 23:10:06 +0000
commit5cd62667d09b2caa9bee01019cea3d42f0fcf857 (patch)
treeed4d28074e635b30a4b16b8793d3327210a6fc1d /examples
parent3d0e00b0ae27a432eba8714205a66866d48fcfd8 (diff)
downloadclasspath-5cd62667d09b2caa9bee01019cea3d42f0fcf857.tar.gz
* lib/Makefile.am (JAVAC): Handle GCJX.
(GCJ): Removed. (JIKES): Likewise. (USER_JABBA): Likewise. (USER_JAVAH): Likewise. (FIND): Likewise. (USER_CLASSLIB): Likewise. * examples/Makefile.am (JCOMPILER): Handle gcjx. (GCJ): Removed. (JIKES): Likewise. * acinclude.m4 (CLASSPATH_WITH_GCJX): New macro. (CLASSPATH_CHECK_GCJX): Likewise. (CLASSPATH_FIND_JAVAC): Use it.
Diffstat (limited to 'examples')
-rw-r--r--examples/Makefile.am6
1 files changed, 4 insertions, 2 deletions
diff --git a/examples/Makefile.am b/examples/Makefile.am
index a4cd8e234..afe19ea06 100644
--- a/examples/Makefile.am
+++ b/examples/Makefile.am
@@ -1,17 +1,19 @@
## Input file for automake to generate the Makefile.in used by configure
# Setup the compiler to use the GNU Classpath library we just build
-GCJ = @GCJ@
-JIKES = @JIKES@
if FOUND_GCJ
JCOMPILER = $(GCJ) --bootclasspath '$(top_builddir)/lib' --classpath . -C
else
if FOUND_JIKES
JCOMPILER = $(JIKES) -bootclasspath '' -extdirs '' -sourcepath '' --classpath $(top_builddir)/lib:.
else
+if FOUND_GCJX
+JCOMPILER = $(GCJX) -bootclasspath '' -sourcepath '' -classpath $(top_builddir)/lib:.
+else
error dunno how to setup the JCOMPILER and compile
endif
endif
+endif
# All our example java source files
EXAMPLE_JAVA_FILES = $(srcdir)/gnu/classpath/examples/*/*.java