Last change
on this file since 30206 was 30206, checked in by jmt12, 9 years ago |
A m4 directory containing a number of M4 packages used to compile this project. Running aclocal will cause the other (default) M4 packages to be linked into here too (so there is a .svnignore to ignore them)
|
File size:
1.1 KB
|
Rev | Line | |
---|
[30206] | 1 | dnl @synopsis AC_PROG_JAVAC_WORKS
|
---|
| 2 | dnl
|
---|
| 3 | dnl Internal use ONLY.
|
---|
| 4 | dnl
|
---|
| 5 | dnl Note: This is part of the set of autoconf M4 macros for Java
|
---|
| 6 | dnl programs. It is VERY IMPORTANT that you download the whole set,
|
---|
| 7 | dnl some macros depend on other. Unfortunately, the autoconf archive
|
---|
| 8 | dnl does not support the concept of set of macros, so I had to break it
|
---|
| 9 | dnl for submission. The general documentation, as well as the sample
|
---|
| 10 | dnl configure.in, is included in the AC_PROG_JAVA macro.
|
---|
| 11 | dnl
|
---|
| 12 | dnl @category Java
|
---|
| 13 | dnl @author Stephane Bortzmeyer <[email protected]>
|
---|
| 14 | dnl @version 2000-07-19
|
---|
| 15 | dnl @license GPLWithACException
|
---|
| 16 |
|
---|
| 17 | AC_DEFUN([AC_PROG_JAVAC_WORKS],[
|
---|
| 18 | AC_CACHE_CHECK([if $JAVAC works], ac_cv_prog_javac_works, [
|
---|
| 19 | JAVA_TEST=Test.java
|
---|
| 20 | CLASS_TEST=Test.class
|
---|
| 21 | cat << \EOF > $JAVA_TEST
|
---|
| 22 | /* [#]line __oline__ "configure" */
|
---|
| 23 | public class Test {
|
---|
| 24 | }
|
---|
| 25 | EOF
|
---|
| 26 | if AC_TRY_COMMAND($JAVAC $JAVACFLAGS $JAVA_TEST) >/dev/null 2>&1; then
|
---|
| 27 | ac_cv_prog_javac_works=yes
|
---|
| 28 | else
|
---|
| 29 | AC_MSG_ERROR([The Java compiler $JAVAC failed (see config.log, check the CLASSPATH?)])
|
---|
| 30 | echo "configure: failed program was:" >&AC_FD_CC
|
---|
| 31 | cat $JAVA_TEST >&AC_FD_CC
|
---|
| 32 | fi
|
---|
| 33 | rm -f $JAVA_TEST $CLASS_TEST
|
---|
| 34 | ])
|
---|
| 35 | AC_PROVIDE([$0])dnl
|
---|
| 36 | ])
|
---|
Note:
See
TracBrowser
for help on using the repository browser.