diff --git a/scripts/ax_init_standard_project.m4 b/scripts/ax_init_standard_project.m4 index c0981af..f72bd88 100644 --- a/scripts/ax_init_standard_project.m4 +++ b/scripts/ax_init_standard_project.m4 @@ -545,6 +545,11 @@ AC_DEFUN([AX_USE_SCRIPTS], [ # use this in configure.ac to support PlantUML in Doxygen generation AC_DEFUN([AX_USE_PLANTUML], [ + if test -f "${srcdir}/doc/plantuml.jar"; then + PLANTUML="doc/plantuml.jar" + AX_SUBST(PLANTUML) + fi + AM_CONDITIONAL(HAVE_PLANTUML, test -n "$PLANTUML") ]) # use this in configure.ac to support Doxygen documentation generation @@ -552,11 +557,6 @@ AC_DEFUN([AX_USE_DOXYGEN], [ AC_CHECK_PROG(have_doxygen, doxygen, yes, no) AC_CHECK_PROG(have_dot, dot, yes, no) AC_CHECK_PROG(have_mscgen, mscgen, yes, no) - if test -f "${srcdir}/doc/plantuml.jar"; then - PLANTUML="doc/plantuml.jar" - AX_SUBST(PLANTUML) - fi - AM_CONDITIONAL(HAVE_PLANTUML, test -n "$PLANTUML") PDF_DOC=${PACKAGE_NAME}-${PACKAGE_VERSION}.pdf AC_SUBST(PDF_DOC) if test "$have_doxygen" = "no"; then @@ -581,21 +581,10 @@ AC_DEFUN([AX_USE_DOXYGEN], [ AX_ADD_MAKEFILE_TARGET_DEP([.PHONY], [pdf gen-uml-images], [doc/makefile.in]) test -f doc/makefile.in && cat >> doc/makefile.in <@AUTHOR_NAME@"' if testtag AX_USE_PLANTUML; then - doxyadd ALIASES '"startuml{1}=@image html \\1\\n@image latex \\1\\n\\if DontIgnorePlantUMLCode"' - doxyadd ALIASES '"enduml=\\endif"' - doxyadd IMAGE_PATH '"gen-uml-images"' + doxyreplace PLANTUML_JAR_PATH '"@top_srcdir@/@PLANTUML@"' fi doxyreplace ENABLE_PREPROCESSING YES doxyreplace MACRO_EXPANSION YES