+2005-08-13 Bruno Haible <bruno@clisp.org>
+
+ New configure options --disable-java, --disable-native-java.
+ * configure.ac: Invoke gt_JAVA_CHOICE.
+ (BUILDJAVA): Use it.
+
2005-08-10 Bruno Haible <bruno@clisp.org>
* configure.ac (SUBDIR_libasprintf, SUBDIR_glocale): Remove AC_SUBSTs.
AC_PROG_INSTALL
AC_PROG_YACC
+gt_JAVA_CHOICE
+
gt_JAVACOMP
AC_CHECK_PROG(JAR, jar, jar)
-if test -n "$HAVE_JAVACOMP" && test -n "$JAR"; then
+if test -n "$HAVE_JAVACOMP" && test -n "$JAR" && test "$JAVA_CHOICE" != no; then
BUILDJAVA=yes
else
BUILDJAVA=no
+2005-08-13 Bruno Haible <bruno@clisp.org>
+
+ New configure options --disable-java, --disable-native-java.
+ * configure.ac: Invoke gt_JAVA_CHOICE.
+ (BUILDJAVAEXE, BUILDJAVA): Use it.
+
2005-08-11 Bruno Haible <bruno@clisp.org>
* configure.ac: Accept --without-emacs option.
AC_PROG_INSTALL
AC_PROG_YACC
+gt_JAVA_CHOICE
+
gt_GCJ
-if test -n "$HAVE_GCJ"; then
+if test -n "$HAVE_GCJ" && test "$JAVA_CHOICE" = yes; then
BUILDJAVAEXE=yes
else
BUILDJAVAEXE=no
gt_JAVACOMP
AC_CHECK_PROG(JAR, jar, jar)
-if test -n "$HAVE_JAVACOMP" && test -n "$JAR"; then
+if test -n "$HAVE_JAVACOMP" && test -n "$JAR" && test "$JAVA_CHOICE" != no; then
BUILDJAVA=yes
else
BUILDJAVA=no
+2005-08-13 Bruno Haible <bruno@clisp.org>
+
+ * java.m4: New file.
+ * Makefile.am (EXTRA_DIST): Add it.
+
2005-08-16 Bruno Haible <bruno@clisp.org>
* strcase.m4: Remove file.
getopt.m4 \
hard-locale.m4 \
hostname.m4 \
+java.m4 \
javacomp.m4 \
javaexec.m4 \
locale-fr.m4 \
--- /dev/null
+# java.m4 serial 1 (gettext-0.15)
+dnl Copyright (C) 2005 Free Software Foundation, Inc.
+dnl This file is free software; the Free Software Foundation
+dnl gives unlimited permission to copy and/or distribute it,
+dnl with or without modifications, as long as this notice is preserved.
+
+# Sets JAVA_CHOICE to 'yes', 'bytecode' or 'no', depending on the preferred
+# use of Java.
+AC_DEFUN([gt_JAVA_CHOICE],
+[
+ AC_MSG_CHECKING([whether to use Java])
+ AC_ARG_ENABLE(java,
+ [ --disable-java do not build Java sources],
+ [JAVA_CHOICE="$enableval"],
+ [JAVA_CHOICE=yes])
+ AC_MSG_RESULT([$JAVA_CHOICE])
+ if test "$JAVA_CHOICE" = yes; then
+ AC_ARG_ENABLE(native-java,
+ [ --disable-native-java do not compile Java to native executables],
+ [test "$enableval" != no || JAVA_CHOICE=bytecode])
+ fi
+ AC_SUBST(JAVA_CHOICE)
+])