Stephane Bortzmeyer <bortzmeyer@pasteur.fr>
GPLWithACException 
This program is free software; you can
        redistribute it and/or modify it under the terms of the GNU General Public License
        as published by the Free Software Foundation. As a special exception, the respective
        Autoconf Macro's copyright owner gives unlimited permission to copy, distribute and modify
        the configure scripts that are the output of Autoconf when processing the Macro. You
        need not follow the terms of the
        
        GNU General Public License when using or distributing such scripts
cryp.to ac-archive's Java Support (released)
Internal use ONLY.
Note: This is part of the set of autoconf M4 macros for Java
programs. It is VERY IMPORTANT that you download the whole set,
some macros depend on other. Unfortunately, the autoconf archive
does not support the concept of set of macros, so I had to break it
for submission. The general documentation, as well as the sample
configure.in, is included in the AC_PROG_JAVA macro.
AC_DEFUN([AC_PROG_JAVAC_WORKS],[
AC_CACHE_CHECK([if $JAVAC works], ac_cv_prog_javac_works, [
JAVA_TEST=Test.java
CLASS_TEST=Test.class
cat << \EOF > $JAVA_TEST
/* [#]line __oline__ "configure" */
public class Test {
}
EOF
if AC_TRY_COMMAND($JAVAC $JAVACFLAGS $JAVA_TEST) >/dev/null 2>&1; then
  ac_cv_prog_javac_works=yes
else
  AC_MSG_ERROR([The Java compiler $JAVAC failed (see config.log, check the CLASSPATH?)])
  echo "configure: failed program was:" >&AC_FD_CC
  cat $JAVA_TEST >&AC_FD_CC
fi
rm -f $JAVA_TEST $CLASS_TEST
])
AC_PROVIDE([$0])dnl
])