Hello,
I'm having a problem building Japhar from CVS (as updated this
morning). Building the japhar executable fails with this message:
Making all in progs
make[1]: Entering directory `/home/brian/deb/lab/japhar/progs'
Making all in japhar
make[2]: Entering directory `/home/brian/deb/lab/japhar/progs/japhar'
gcc -DHAVE_CONFIG_H -I. -I. -I../../include -I../../include
-I../../
lib/libjni/include -I../../include
-I../../lib/libjni/include
-DLINUX -DDEBUG -DVERSION=\"0.08\" -c japhar.c
make[2]: *** No rule to make target
`../../lib/libnative/java.io/libjaphar_io-1.
1.la', needed by `japhar'. Stop.
Any ideas?
Attached is a patch which allows building japhard with an installed
readline library. Feel free to apply it to the CVS tree (it is against
0.08, but it applies to the CVS tree cleanly).
Also, I seem to remember it being possible to build Japhar without
slurping from the JDK. How would I go about doing this, or was I just
halucinating? (The reason I ask is that I'm trying to build the
combination of Japhar/Classpath for Debian.)
Keep up the good work,
Brian Bassett
Debian Developer
diff -u configure.in.orig configure.in
--- configure.in.orig Fri Feb 26 14:55:46 1999
+++ configure.in Sat Mar 6 21:57:30 1999
@@ -435,6 +435,15 @@
AM_CONDITIONAL(NEED_ZLIB, test x"$ZLIB" = "x" || test x"$ac_cv_header_zlib_h" = "xno")
AC_SUBST(ZLIB)
+# Check for an installed readline library
+AC_CHECK_LIB(readline, readline, READLINE="-lreadline", ,)
+
+if test x"$READLINE" = "x" || test x"$ac_cv_header_readline_h" = "xno"; then
+ AC_MSG_RESULT(Using included readline)
+fi
+AM_CONDITIONAL(NEED_READLINE, test x"$READLINE" = "x" || test
+x"$ac_cv_header_readline_h" = "xno")
+AC_SUBST(READLINE)
+
AC_SUBST(OS_DEFINE)
AC_SUBST(ARCHDIR)
diff -u progs/japhard/Makefile.am.orig progs/japhard/Makefile.am
--- progs/japhard/Makefile.am.orig Fri Feb 26 14:57:41 1999
+++ progs/japhard/Makefile.am Sun Mar 7 00:57:43 1999
@@ -9,11 +9,21 @@
ZLIB = @ZLIB@
endif
+if NEED_READLINE
+READLINE = $(top_builddir)/progs/japhard/readline/libreadline.a
+else
+READLINE = @READLINE@
+endif
+
if LIBFFI_SUPPORT
LIBFFI = $(top_builddir)/lib/libffi/src/libffi.la
endif
+if NEED_READLINE
+SUBDIRS=
+else
SUBDIRS= readline
+endif
bin_PROGRAMS= japhard
@@ -28,7 +38,7 @@
$(top_builddir)/lib/libjvmdi/src/libjvmdi.la \
$(top_builddir)/arch/libarch.la \
-L/usr/local/lib @X_PRE_LIBS@ @X_LIBS@ $(ZLIB) $(LIBFFI) \
- $(top_builddir)/progs/japhard/readline/libreadline.a \
+ $(READLINE) \
-ltermcap
INCLUDES += -I$(top_srcdir)/include \