346 |
]) |
]) |
347 |
|
|
348 |
dnl ----------------------------------------------------------- |
dnl ----------------------------------------------------------- |
349 |
dnl Enable generation of API documentation, assumes gjdoc |
dnl Enable generation of API documentation, with gjdoc if it |
350 |
dnl has been compiled to an executable or a suitable script |
dnl has been compiled to an executable (or a suitable script |
351 |
dnl is in your PATH |
dnl is in your PATH) or using the argument as gjdoc executable. |
352 |
dnl ----------------------------------------------------------- |
dnl ----------------------------------------------------------- |
353 |
AC_DEFUN([CLASSPATH_ENABLE_GJDOC], |
AC_DEFUN([CLASSPATH_WITH_GJDOC], |
354 |
[ |
[ |
355 |
AC_ARG_ENABLE([gjdoc], |
AC_ARG_WITH([gjdoc], |
356 |
[AS_HELP_STRING([--enable-gjdoc],[enable API doc. generation [default=no]])], |
AS_HELP_STRING([--with-gjdoc], |
357 |
[ |
[generate documentation using gjdoc (default is NO)]), |
358 |
case "${enableval}" in |
[if test "x${withval}" = xno; then |
359 |
yes) ENABLE_GJDOC=yes ;; |
WITH_GJDOC=no; |
360 |
no) ENABLE_GJDOC=no ;; |
elif test "x${withval}" = xyes -o "x{withval}" = x; then |
361 |
*) ENABLE_GJDOC=yes ;; |
WITH_GJDOC=yes; |
362 |
esac |
AC_PATH_PROG(GJDOC, gjdoc, "no") |
363 |
if test "x${ENABLE_GJDOC}" = xyes; then |
if test "x${JAY}" = xno; then |
364 |
AC_PATH_PROG(GJDOC, gjdoc) |
AC_MSG_ERROR("jay executable not found"); |
365 |
AC_PATH_PROG(XMLCATALOG, xmlcatalog) |
fi |
366 |
AC_PATH_PROG(XSLTPROC, xsltproc) |
else |
367 |
fi |
WITH_GJDOC=yes |
368 |
], |
GJDOC="${withval}" |
369 |
[ENABLE_GJDOC=no]) |
AC_CHECK_FILE(${GJDOC}, AC_SUBST(GJDOC), |
370 |
|
AC_MSG_ERROR("Cannot use ${withval} as gjdoc executable since it doesn't exist")) |
371 |
|
fi], |
372 |
|
[WITH_GJDOC=no]) |
373 |
|
|
374 |
AM_CONDITIONAL(CREATE_API_DOCS, test "x${ENABLE_GJDOC}" = xyes) |
AM_CONDITIONAL(CREATE_API_DOCS, test "x${WITH_GJDOC}" = xyes) |
375 |
]) |
]) |
376 |
|
|
377 |
dnl ----------------------------------------------------------- |
dnl ----------------------------------------------------------- |