📄 ac_prog_java.ac
字号:
dnl @synopsis AC_PROG_JAVAdnldnl Here is a summary of the main macros:dnldnl AC_PROG_JAVAC: finds a Java compiler.dnldnl AC_PROG_JAVA: finds a Java virtual machine.dnldnl AC_CHECK_CLASS: finds if we have the given class (beware of CLASSPATH!).dnldnl AC_CHECK_RQRD_CLASS: finds if we have the given class and stops otherwise.dnldnl AC_TRY_COMPILE_JAVA: attempt to compile user given source.dnldnl AC_TRY_RUN_JAVA: attempt to compile and run user given source.dnldnl AC_JAVA_OPTIONS: adds Java configure options.dnldnl AC_PROG_JAVA tests an existing Java virtual machine. It uses thednl environment variable JAVA then tests in sequence various common Javadnl virtual machines. For political reasons, it starts with the free ones.dnl You *must* call [AC_PROG_JAVAC] before.dnldnl If you want to force a specific VM:dnldnl - at the configure.in level, set JAVA=yourvm before calling AC_PROG_JAVAdnl (but after AC_INIT)dnldnl - at the configure level, setenv JAVAdnldnl You can use the JAVA variable in your Makefile.in, with @JAVA@.dnldnl *Warning*: its success or failure can depend on a proper setting of thednl CLASSPATH env. variable.dnldnl TODO: allow to exclude virtual machines (rationale: most Java programsdnl cannot run with some VM like kaffe).dnldnl 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, somednl macros depend on other. Unfortunately, the autoconf archive does notdnl support the concept of set of macros, so I had to break it fordnl submission.dnldnl A Web page, with a link to the latest CVS snapshot is atdnl <http://www.internatif.org/bortzmeyer/autoconf-Java/>.dnldnl This is a sample configure.indnl Process this file with autoconf to produce a configure script.dnldnl AC_INIT(UnTag.java)dnldnl dnl Checks for programs.dnl AC_CHECK_CLASSPATHdnl AC_PROG_JAVACdnl AC_PROG_JAVAdnldnl dnl Checks for classesdnl AC_CHECK_RQRD_CLASS(org.xml.sax.Parser)dnl AC_CHECK_RQRD_CLASS(com.jclark.xml.sax.Driver)dnldnl AC_OUTPUT(Makefile)dnldnl @author Stephane Bortzmeyer <bortzmeyer@pasteur.fr>dnl @version $Id: ac_prog_java.ac,v 1.1 2001/08/23 16:58:43 dda Exp $dnlAC_DEFUN([AC_PROG_JAVA],[AC_REQUIRE([AC_EXEEXT])dnlif test x$JAVAPREFIX = x; then test x$JAVA = x && AC_CHECK_PROGS(JAVA, kaffe$EXEEXT java$EXEEXT)else test x$JAVA = x && AC_CHECK_PROGS(JAVA, kaffe$EXEEXT java$EXEEXT, $JAVAPREFIX)fitest x$JAVA = x && AC_MSG_ERROR([no acceptable Java virtual machine found in \$PATH])AC_PROG_JAVA_WORKSAC_PROVIDE([$0])dnl])
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -