1
dnl @synopsis AC_PROG_JAVADOC
3
dnl AC_PROG_JAVADOC tests for an existing javadoc generator. It uses the environment
4
dnl variable JAVADOC then tests in sequence various common javadoc generator.
6
dnl If you want to force a specific compiler:
8
dnl - at the configure.in level, set JAVADOC=yourgenerator before calling
11
dnl - at the configure level, setenv JAVADOC
13
dnl You can use the JAVADOC variable in your Makefile.in, with @JAVADOC@.
15
dnl Note: This macro depends on the autoconf M4 macros for Java programs.
16
dnl It is VERY IMPORTANT that you download that whole set, some
17
dnl macros depend on other. Unfortunately, the autoconf archive does not
18
dnl support the concept of set of macros, so I had to break it for
21
dnl The general documentation of those macros, as well as the sample
22
dnl configure.in, is included in the AC_PROG_JAVA macro.
24
dnl @author Egon Willighagen <egonw@sci.kun.nl>
27
AC_DEFUN([AC_PROG_JAVADOC],[
28
AC_REQUIRE([AC_EXEEXT])dnl
29
if test "x$JAVAPREFIX" = x; then
30
test "x$JAVADOC" = x && AC_CHECK_PROGS(JAVADOC, javadoc$EXEEXT)
32
test "x$JAVADOC" = x && AC_CHECK_PROGS(JAVADOC, javadoc, $JAVAPREFIX)
34
test "x$JAVADOC" = x && AC_MSG_ERROR([no acceptable javadoc generator found in \$PATH])