📄 ac_prog_javac_works.ac
字号:
dnl @synopsis AC_PROG_JAVAC_WORKSdnldnl Internal use ONLY.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_works.ac,v 1.1 2001/08/23 16:58:44 dda Exp $dnlAC_DEFUN([AC_PROG_JAVAC_WORKS],[AC_CACHE_CHECK([if $JAVAC works], ac_cv_prog_javac_works, [JAVA_TEST=Test.javaCLASS_TEST=Test.classcat << \EOF > $JAVA_TEST/* [#]line __oline__ "configure" */public class Test {}EOFif AC_TRY_COMMAND($JAVAC $JAVACFLAGS $JAVA_TEST) >/dev/null 2>&1; then ac_cv_prog_javac_works=yeselse 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_CCfirm -f $JAVA_TEST $CLASS_TEST])AC_PROVIDE([$0])dnl])
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -