/usr/share/aclocal/llnl_prog_java.m4 is in libsidl-dev 1.4.0.dfsg-8build3.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 | dnl @synopsis LLNL_PROG_JAVA
dnl
dnl Here is a summary of the main macros:
dnl
dnl AC_PROG_JAVAC: finds a Java compiler.
dnl
dnl LLNL_PROG_JAVA: finds a Java virtual machine.
dnl
dnl AC_CHECK_CLASS: finds if we have the given class (beware of CLASSPATH!).
dnl
dnl AC_CHECK_RQRD_CLASS: finds if we have the given class and stops otherwise.
dnl
dnl AC_TRY_COMPILE_JAVA: attempt to compile user given source.
dnl
dnl AC_TRY_RUN_JAVA: attempt to compile and run user given source.
dnl
dnl AC_JAVA_OPTIONS: adds Java configure options.
dnl
dnl LLNL_PROG_JAVA tests an existing Java virtual machine. It uses the
dnl environment variable JAVA then tests in sequence various common Java
dnl virtual machines. For political reasons, it starts with the free ones.
dnl You *must* call [AC_PROG_JAVAC] before.
dnl
dnl If you want to force a specific VM:
dnl
dnl - at the configure.in level, set JAVA=yourvm before calling LLNL_PROG_JAVA
dnl (but after AC_INIT)
dnl
dnl - at the configure level, setenv JAVA
dnl
dnl You can use the JAVA variable in your Makefile.in, with @JAVA@.
dnl
dnl *Warning*: its success or failure can depend on a proper setting of the
dnl CLASSPATH env. variable.
dnl
dnl TODO: allow to exclude virtual machines (rationale: most Java programs
dnl cannot run with some VM like kaffe).
dnl
dnl Note: This is part of the set of autoconf M4 macros for Java programs.
dnl It is VERY IMPORTANT that you download the whole set, some
dnl macros depend on other. Unfortunately, the autoconf archive does not
dnl support the concept of set of macros, so I had to break it for
dnl submission.
dnl
dnl A Web page, with a link to the latest CVS snapshot is at
dnl <http://www.internatif.org/bortzmeyer/autoconf-Java/>.
dnl
dnl This is a sample configure.in
dnl Process this file with autoconf to produce a configure script.
dnl
dnl AC_INIT
dnl AC_CONFIG_SRCDIR([UnTag.java])
dnl
dnl dnl Checks for programs.
dnl AC_CHECK_CLASSPATH
dnl AC_PROG_JAVAC
dnl LLNL_PROG_JAVA
dnl
dnl dnl Checks for classes
dnl AC_CHECK_RQRD_CLASS(org.xml.sax.Parser)
dnl AC_CHECK_RQRD_CLASS(com.jclark.xml.sax.Driver)
dnl
dnl AC_CONFIG_FILES([Makefile])
dnl AC_OUTPUT
dnl
dnl @author Stephane Bortzmeyer <bortzmeyer@pasteur.fr>
dnl @version $Id: llnl_prog_java.m4 5816 2007-01-29 21:45:13Z epperly $
dnl
AC_DEFUN([LLNL_PROG_JAVA],[
AC_REQUIRE([AC_EXEEXT])dnl
if test x$JAVAPREFIX = x; then
if test x$JAVA = x; then
AC_PATH_PROGS(JAVA, java kaffe)
fi
else
if test x$JAVA = x; then
AC_PATH_PROGS(JAVA, java kaffe,,"${JAVAPREFIX}/bin:${JAVAPREFIX}:${PATH}")
fi
fi
if test x$JAVA = x; then
AC_MSG_ERROR([no acceptable Java virtual machine found in \$PATH])
fi
LLNL_PROG_JAVA_WORKS
AC_PROVIDE([$0])dnl
])
dnl *** Downloaded from http://gnu.wwc.edu/software/ac-archive/Java_Support/ac_prog_java_works.m4***
dnl @synopsis LLNL_PROG_JAVA_WORKS
dnl
dnl Internal use ONLY.
dnl
dnl Note: This is part of the set of autoconf M4 macros for Java programs.
dnl It is VERY IMPORTANT that you download the whole set, some
dnl macros depend on other. Unfortunately, the autoconf archive does not
dnl support the concept of set of macros, so I had to break it for
dnl submission.
dnl The general documentation, as well as the sample configure.in, is
dnl included in the LLNL_PROG_JAVA macro.
dnl
dnl @author Stephane Bortzmeyer <bortzmeyer@pasteur.fr>
dnl @version $Id: llnl_prog_java.m4 5816 2007-01-29 21:45:13Z epperly $
dnl
dnl Additional Mods by Gary Kumfert
dnl
AC_DEFUN([LLNL_PROG_JAVA_WORKS], [
AC_REQUIRE([AC_PROG_JAVAC])
AC_CACHE_CHECK(if $JAVA works, ac_cv_prog_java_works, [
JAVA_TEST=Test.java
CLASS_TEST=Test.class
TEST=Test
changequote(, )dnl
cat << \EOF > $JAVA_TEST
/* [#]line __oline__ "configure" */
public class Test {
public static void main (String args[]) {
System.exit (0);
} }
EOF
changequote([, ])dnl
if AC_TRY_COMMAND($JAVAC $JAVACFLAGS $JAVA_TEST) && test -s $CLASS_TEST; then
:
else
echo "configure: failed program was:" >&AS_MESSAGE_LOG_FD()
cat $JAVA_TEST >&AS_MESSAGE_LOG_FD()
AC_MSG_ERROR([The Java compiler $JAVAC failed (see config.log, check the CLASSPATH? If set CLASSPATH should have the current directory, '.', in it.)])
fi
if AC_TRY_COMMAND($JAVA $JAVAFLAGS $TEST) >/dev/null 2>&1; then
ac_cv_prog_java_works=yes
else
ac_cv_prog_java_works=no
echo "configure: failed program was:" >&AS_MESSAGE_LOG_FD()
cat $JAVA_TEST >&AS_MESSAGE_LOG_FD()
AC_MSG_ERROR(The Java VM $JAVA failed (see config.log, check the CLASSPATH?))
fi
rm -fr $JAVA_TEST $CLASS_TEST Test.uue
])
AC_PROVIDE([$0])dnl
]
)
|