+2023-06-10 Bruno Haible <bruno@clisp.org>
+
+ javacomp: Simplify after gcj support was removed.
+ * m4/javacomp.m4 (gt_JAVACOMP): Don't create conftestlib.java.
+ * lib/javacomp.c (compile_java_class): Remove local variables
+ no_assert_option, fsource_option, ftarget_option.
+
2023-06-09 Bruno Haible <bruno@clisp.org>
doc: Document <stdatomic.h>.
if (javac != NULL && javac[0] != '\0')
{
bool usable = false;
- bool no_assert_option = false;
bool source_option = false;
bool target_option = false;
- bool fsource_option = false;
- bool ftarget_option = false;
const char *source_version_for_javac;
if (target_version == NULL)
set_classpath (classpaths, classpaths_count, false, verbose);
javac_with_options =
- (no_assert_option
- ? xasprintf ("%s -fno-assert", javac)
- : xasprintf ("%s%s%s%s%s%s%s%s%s",
- javac,
- source_option ? " -source " : "",
- source_option ? source_version_for_javac : "",
- target_option ? " -target " : "",
- target_option ? target_version : "",
- fsource_option ? " -fsource=" : "",
- fsource_option ? source_version : "",
- ftarget_option ? " -ftarget=" : "",
- ftarget_option ? target_version : ""));
+ xasprintf ("%s%s%s%s%s",
+ javac,
+ source_option ? " -source " : "",
+ source_option ? source_version_for_javac : "",
+ target_option ? " -target " : "",
+ target_option ? target_version : "");
assume (javac_with_options != NULL);
err = compile_using_envjavac (javac_with_options,
HAVE_JAVAC_ENVVAR=
HAVE_JAVAC=
HAVE_JAVACOMP=
-changequote(,)dnl
- cat > conftestlib.java <<EOF
-public class conftestlib {
- public static void main (String[] args) {
- }
-}
-EOF
-changequote([,])dnl
echo "$goodcode" > conftest.java
echo "$failcode" > conftestfail.java
dnl If the user has set the JAVAC environment variable, use that, if it