Improve making-a-release a little
[geany-mirror.git] / m4 / geany-doxygen.m4
blobcfb3436c91c2c6f3751c6803cef4607ce206615c
1 dnl GEANY_CHECK_DOXYGEN
2 dnl Check for Doxygen availability to generate API docs
3 dnl
4 AC_DEFUN([GEANY_CHECK_DOXYGEN],
6         AC_ARG_ENABLE([api-docs],
7                         [AS_HELP_STRING([--enable-api-docs],
8                                         [generate API documentation using Doxygen [default=no]])],
9                         [geany_with_doxygen="$enableval"],
10                         [geany_with_doxygen="auto"])
12         AC_ARG_VAR([DOXYGEN], [Path to Doxygen executable])
14         AS_IF([test "x$geany_with_doxygen" != "xno"],
15         [
16                 AC_PATH_PROG([DOXYGEN], [doxygen], [no])
17                 AS_IF([test "x$DOXYGEN" != "xno"],
18                           [geany_with_doxygen=yes],
19                           [test "x$geany_with_doxygen" = xyes],
20                           [AC_MSG_ERROR([API documentation enabled but doxygen not found])],
21                           [geany_with_doxygen=no])
22         ])
24         AM_CONDITIONAL([WITH_DOXYGEN], [test "x$geany_with_doxygen" != "xno"])
25         GEANY_STATUS_ADD([Build API documentation], [$geany_with_doxygen])