1 # ===========================================================================
2 # http://www.gnu.org/software/autoconf-archive/ax_prog_javadoc.html
3 # ===========================================================================
11 # AX_PROG_JAVADOC tests for an existing javadoc generator. It uses the
12 # environment variable JAVADOC then tests in sequence various common
15 # If you want to force a specific compiler:
17 # - at the configure.in level, set JAVADOC=yourgenerator before calling
20 # - at the configure level, setenv JAVADOC
22 # You can use the JAVADOC variable in your Makefile.in, with @JAVADOC@.
24 # Note: This macro depends on the autoconf M4 macros for Java programs. It
25 # is VERY IMPORTANT that you download that whole set, some macros depend
26 # on other. Unfortunately, the autoconf archive does not support the
27 # concept of set of macros, so I had to break it for submission.
29 # The general documentation of those macros, as well as the sample
30 # configure.in, is included in the AX_PROG_JAVA macro.
34 # Copyright (c) 2008 Egon Willighagen <e.willighagen@science.ru.nl>
36 # Copying and distribution of this file, with or without modification, are
37 # permitted in any medium without royalty provided the copyright notice
38 # and this notice are preserved. This file is offered as-is, without any
43 AU_ALIAS([AC_PROG_JAVADOC], [AX_PROG_JAVADOC])
44 AC_DEFUN([AX_PROG_JAVADOC],[
45 AS_IF([test "x$JAVAPREFIX" = x],
46 [test "x$JAVADOC" = x && AC_CHECK_PROGS([JAVADOC], [javadoc])],
47 [test "x$JAVADOC" = x && AC_CHECK_PROGS([JAVADOC], [javadoc], [], [$JAVAPREFIX/bin])])
48 test "x$JAVADOC" = x && AC_MSG_ERROR([no acceptable javadoc generator found in \$PATH])