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