chiark
/
gitweb
/
~mdw
/
anag
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
4ca2b0c
)
Find a suitable Java compiler. If there isn't one, don't compile the
author
mdw
<mdw>
Tue, 6 Feb 2001 10:06:25 +0000
(10:06 +0000)
committer
mdw
<mdw>
Tue, 6 Feb 2001 10:06:25 +0000
(10:06 +0000)
Java bits.
Makefile.am
patch
|
blob
|
blame
|
history
configure.in
patch
|
blob
|
blame
|
history
diff --git
a/Makefile.am
b/Makefile.am
index 84ea36f07dac929424a5c584b6bc0cebb863c38c..19dc30f4e64af478b2c9873f61625a6ca1419c10 100644
(file)
--- a/
Makefile.am
+++ b/
Makefile.am
@@
-1,6
+1,6
@@
## -*-makefile-*-
##
## -*-makefile-*-
##
-## $Id: Makefile.am,v 1.
4 2001/02/06 09:38:46
mdw Exp $
+## $Id: Makefile.am,v 1.
5 2001/02/06 10:06:25
mdw Exp $
##
## Makefile for Anag
##
##
## Makefile for Anag
##
@@
-28,6
+28,10
@@
##----- Revision history ----------------------------------------------------
##
## $Log: Makefile.am,v $
##----- Revision history ----------------------------------------------------
##
## $Log: Makefile.am,v $
+## Revision 1.5 2001/02/06 10:06:25 mdw
+## Find a suitable Java compiler. If there isn't one, don't compile the
+## Java bits.
+##
## Revision 1.4 2001/02/06 09:38:46 mdw
## Remove redundant rule.
##
## Revision 1.4 2001/02/06 09:38:46 mdw
## Remove redundant rule.
##
@@
-42,16
+46,19
@@
##
AUTOMAKE_OPTIONS = foreign
##
AUTOMAKE_OPTIONS = foreign
+javadir = datadir/java
+
+JAVAC = @JAVAC@
+
SUFFIXES = .java .class
SUFFIXES = .java .class
-JAVAC = javac
.java.class:; $(JAVAC) -d . $<
bin_PROGRAMS = anag
.java.class:; $(JAVAC) -d . $<
bin_PROGRAMS = anag
-anag_SOURCES = anag.c anag.h wildcard.c anagram.c trackword.c util.c
+java_DATA = @jarfiles@
-a
ll: anag.jar
+a
nag_SOURCES = anag.c anag.h wildcard.c anagram.c trackword.c util.c
anag.jar: AnagGUI.class
anag.jar: AnagGUI.class
- jar cf anag.jar *.class
+ jar cf anag.jar
AnagGUI
*.class
EXTRA_DIST = AnagGUI.java
CLEANFILES = *.class *.jar
EXTRA_DIST = AnagGUI.java
CLEANFILES = *.class *.jar
diff --git
a/configure.in
b/configure.in
index bbe801fc7f577848bb7490c696c0c0efb30f1ba1..d60c472ae0a291eaed4d79721616e394a76284d5 100644
(file)
--- a/
configure.in
+++ b/
configure.in
@@
-1,6
+1,6
@@
dnl -*-fundamental-*-
dnl
dnl -*-fundamental-*-
dnl
-dnl $Id: configure.in,v 1.
1 2001/02/04 17:14:42
mdw Exp $
+dnl $Id: configure.in,v 1.
2 2001/02/06 10:06:25
mdw Exp $
dnl
dnl Configuration script
dnl
dnl
dnl Configuration script
dnl
@@
-28,6
+28,10
@@
dnl Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
dnl ----- Revision history --------------------------------------------------
dnl
dnl $Log: configure.in,v $
dnl ----- Revision history --------------------------------------------------
dnl
dnl $Log: configure.in,v $
+dnl Revision 1.2 2001/02/06 10:06:25 mdw
+dnl Find a suitable Java compiler. If there isn't one, don't compile the
+dnl Java bits.
+dnl
dnl Revision 1.1 2001/02/04 17:14:42 mdw
dnl Initial checkin
dnl
dnl Revision 1.1 2001/02/04 17:14:42 mdw
dnl Initial checkin
dnl
@@
-37,6
+41,14
@@
AM_INIT_AUTOMAKE(anag, 1.0.0)
AM_CONFIG_HEADER(config.h)
AC_PROG_CC
mdw_GCC_FLAGS
AM_CONFIG_HEADER(config.h)
AC_PROG_CC
mdw_GCC_FLAGS
+AC_CHECK_PROGS(JAVAC, jikes javac, none)
+if test "$JAVAC" = "none"; then
+ AC_MSG_WARN([No Java compiler found])
+ jarfiles=""
+else
+ jarfiles=anag.jar
+fi
+AC_SUBST(jarfiles)
AC_ARG_WITH(dictionary,
[ --with-dictionary=DICT set default word list to be DICT],
[AC_DEFINE_UNQUOTED(DICTIONARY, "$withval")],
AC_ARG_WITH(dictionary,
[ --with-dictionary=DICT set default word list to be DICT],
[AC_DEFINE_UNQUOTED(DICTIONARY, "$withval")],