NONE/share/kaffe
Pavel.Roskin at ecsoft.co.uk
Pavel.Roskin at ecsoft.co.uk
Wed Aug 19 03:56:36 PDT 1998
Hello!
It seems that "configure" scripts contains some errors which prevent Kaffe
from finding Kaffe.jar in some situations. Namely, "kaffehome=`eval echo
$datadir`/kaffe" may define kaffehome as "NONE/share/kaffe". This value
goes to config/config.h and affects kaffe/kaffe/main.c. As result, Kaffe
reports that it can't find essential class Object unless classpath is
specified.
As far as I understand the situation, "configure" defines "prefix" after it
completes all checks unless "--prefix" option is given or prefix is defined
in config.site. I don't know whether this should be considered as a bug in
autoconf. Some packages use "-D" to pass paths to the compilers. It makes
it possible to specify "prefix" to "make" and build the program with
different prefixes without need to rerun "configure". Of course, it
increases screen output, so this is not the best solution. Another solution
could be to create some supplementary config1.h from Makefile. I'll ask
about it in automake at gnu.org. The best fix I can propose right now (do not
apply it!) is:
================================
--- kaffe/configure.in.orig Wed Aug 19 09:14:14 1998
+++ kaffe/configure.in Wed Aug 19 11:42:46 1998
@@ -706,8 +706,11 @@
dnl Define default classpath (not needed), kaffehome and libraryhome.
dnl ----------------------------------------------------------------------
---
-kaffehome=`eval echo $datadir`/kaffe
-AC_DEFINE_UNQUOTED(DEFAULT_KAFFEHOME, "$kaffehome")
+(
+ test "x$prefix" = xNONE && prefix=$ac_default_prefix
+ kaffehome=`eval echo $datadir`/kaffe
+ AC_DEFINE_UNQUOTED(DEFAULT_KAFFEHOME, "$kaffehome")
+)
AC_CONFIG_HEADER(config/config.h include/jtypes.h)
AC_OUTPUT($output)
================================
Better solutions are welcome!
Pavel Roskin <pavel.roskin at ecsoft.co.uk>
More information about the kaffe
mailing list