Collection of DPF-based plugins for packaging
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

51 lines
1.8KB

  1. # ===========================================================================
  2. # https://www.gnu.org/software/autoconf-archive/ax_prog_javadoc.html
  3. # ===========================================================================
  4. #
  5. # SYNOPSIS
  6. #
  7. # AX_PROG_JAVADOC
  8. #
  9. # DESCRIPTION
  10. #
  11. # AX_PROG_JAVADOC tests for an existing javadoc generator. It uses the
  12. # environment variable JAVADOC then tests in sequence various common
  13. # javadoc generator.
  14. #
  15. # If you want to force a specific compiler:
  16. #
  17. # - at the configure.in level, set JAVADOC=yourgenerator before calling
  18. # AX_PROG_JAVADOC
  19. #
  20. # - at the configure level, setenv JAVADOC
  21. #
  22. # You can use the JAVADOC variable in your Makefile.in, with @JAVADOC@.
  23. #
  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.
  28. #
  29. # The general documentation of those macros, as well as the sample
  30. # configure.in, is included in the AX_PROG_JAVA macro.
  31. #
  32. # LICENSE
  33. #
  34. # Copyright (c) 2008 Egon Willighagen <e.willighagen@science.ru.nl>
  35. #
  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
  39. # warranty.
  40. #serial 9
  41. AU_ALIAS([AC_PROG_JAVADOC], [AX_PROG_JAVADOC])
  42. AC_DEFUN([AX_PROG_JAVADOC],[
  43. AS_IF([test "x$JAVAPREFIX" = x],
  44. [test "x$JAVADOC" = x && AC_CHECK_PROGS([JAVADOC], [javadoc])],
  45. [test "x$JAVADOC" = x && AC_CHECK_PROGS([JAVADOC], [javadoc], [], [$JAVAPREFIX/bin])])
  46. test "x$JAVADOC" = x && AC_MSG_ERROR([no acceptable javadoc generator found in \$PATH])
  47. AC_PROVIDE([$0])dnl
  48. ])