1AC_DEFUN([AX_DOCS_TOOL_PROG], [
2dnl
3    AC_ARG_VAR([$1], [Path to $2 tool])
4    AC_PATH_PROG([$1], [$2])
5    AS_IF([! test -x "$ac_cv_path_$1"], [
6        AC_MSG_WARN([$2 is not available so some documentation won't be built])
7    ])
8])
9
10AC_DEFUN([AX_DOCS_TOOL_PROGS], [
11dnl
12    AC_ARG_VAR([$1], [Path to $2 tool])
13    AC_PATH_PROGS([$1], [$3])
14    AS_IF([! test -x "$ac_cv_path_$1"], [
15        AC_MSG_WARN([$2 is not available so some documentation won't be built])
16    ])
17])
18