📄 ac_prog_javac.ac
字号:
dnl @synopsis AC_PROG_JAVACdnldnl AC_PROG_JAVAC tests an existing Java compiler. It uses the environmentdnl variable JAVAC then tests in sequence various common Java compilers. Fordnl political reasons, it starts with the free ones.dnldnl If you want to force a specific compiler:dnldnl - at the configure.in level, set JAVAC=yourcompiler before callingdnl AC_PROG_JAVACdnldnl - at the configure level, setenv JAVACdnldnl You can use the JAVAC variable in your Makefile.in, with @JAVAC@.dnldnl *Warning*: its success or failure can depend on a proper setting of thednl CLASSPATH env. variable.dnldnl TODO: allow to exclude compilers (rationale: most Java programs cannot compilednl with some compilers like guavac).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.dnl The general documentation, as well as the sample configure.in, isdnl included in the AC_PROG_JAVA macro.dnldnl @author Stephane Bortzmeyer <bortzmeyer@pasteur.fr>dnl @version $Id: ac_prog_javac.ac,v 1.3 2001/08/23 17:08:22 dda Exp $dnlAC_DEFUN([AC_PROG_JAVAC],[AC_REQUIRE([AC_EXEEXT])dnlif test "x$JAVAPREFIX" = x; then test "x$JAVAC" = x && AC_CHECK_PROGS(JAVAC, javac$EXEEXT "gcj$EXEEXT -C" guavac$EXEEXT jikes$EXEEXT)else test "x$JAVAC" = x && AC_CHECK_PROGS(JAVAC, javac$EXEEXT "gcj$EXEEXT -C" guavac$EXEEXT jikes$EXEEXT, $JAVAPREFIX)fitest "x$JAVAC" = x && AC_MSG_ERROR([no acceptable Java compiler found in \$PATH])AC_PROG_JAVAC_WORKSAC_PROVIDE([$0])dnl])
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -