25 lines
816 B
Plaintext
25 lines
816 B
Plaintext
|
dnl GEANY_CHECK_DOXYGEN
|
||
|
dnl Check for Doxygen availability to generate API docs
|
||
|
dnl
|
||
|
AC_DEFUN([GEANY_CHECK_DOXYGEN],
|
||
|
[
|
||
|
AC_ARG_ENABLE([api-docs],
|
||
|
[AS_HELP_STRING([--enable-api-docs],
|
||
|
[generate API documentation using Doxygen [default=no]])],
|
||
|
[geany_with_doxygen="$enableval"],
|
||
|
[geany_with_doxygen="no"])
|
||
|
|
||
|
AC_ARG_VAR([DOXYGEN], [Path to Doxygen executable])
|
||
|
|
||
|
AS_IF([test "x$geany_with_doxygen" != "xno"],
|
||
|
[
|
||
|
AS_IF([test "x$DOXYGEN" != "x"],
|
||
|
[geany_doxygen_path="$DOXYGEN"], [geany_doxygen_path="doxygen"])
|
||
|
AC_PATH_PROG([DOXYGEN], [$geany_doxygen_path], [no])
|
||
|
AS_IF([test "x$DOXYGEN" != "xno"], [geany_with_doxygen=yes], [geany_with_doxygen=no])
|
||
|
])
|
||
|
|
||
|
AM_CONDITIONAL([WITH_DOXYGEN], [test "x$geany_with_doxygen" != "xno"])
|
||
|
GEANY_STATUS_ADD([Build API documentation], [$geany_with_doxygen])
|
||
|
])
|