author | ladanyi |
Sun, 24 Apr 2005 22:26:37 +0000 | |
changeset 1385 | 49d1ca28ebd8 |
child 1404 | 17c80cb3754b |
permissions | -rw-r--r-- |
ladanyi@1370 | 1 |
AC_DEFUN([LX_ENABLE_DOCS], |
ladanyi@1370 | 2 |
[ |
ladanyi@1370 | 3 |
AC_ARG_ENABLE([docs], |
ladanyi@1370 | 4 |
AS_HELP_STRING([--enable-docs@<:@=yes|no|full@:>@], [build the documentation (full enables internal documentation too) @<:@default=yes@:>@]) |
ladanyi@1370 | 5 |
AS_HELP_STRING([--disable-docs], [do not build the documentation]), |
ladanyi@1370 | 6 |
[], [enable_docs=yes]) |
ladanyi@1370 | 7 |
|
ladanyi@1370 | 8 |
AC_MSG_CHECKING([whether to build the documention]) |
ladanyi@1370 | 9 |
case "$enable_docs" in |
ladanyi@1370 | 10 |
yes) |
ladanyi@1370 | 11 |
DOXYGEN_INTERNAL_DOCS=NO |
ladanyi@1370 | 12 |
AC_MSG_RESULT([yes]) |
ladanyi@1370 | 13 |
;; |
ladanyi@1370 | 14 |
full) |
ladanyi@1370 | 15 |
DOXYGEN_INTERNAL_DOCS=YES |
ladanyi@1370 | 16 |
AC_MSG_RESULT([full]) |
ladanyi@1370 | 17 |
;; |
ladanyi@1370 | 18 |
no) |
ladanyi@1370 | 19 |
DOXYGEN_INTERNAL_DOCS=NO |
ladanyi@1370 | 20 |
AC_MSG_RESULT([no]) |
ladanyi@1370 | 21 |
;; |
ladanyi@1370 | 22 |
*) |
ladanyi@1370 | 23 |
AC_MSG_ERROR([bad value $enable_docs for option --enable-docs]) |
ladanyi@1370 | 24 |
;; |
ladanyi@1370 | 25 |
esac |
ladanyi@1370 | 26 |
AC_SUBST(DOXYGEN_INTERNAL_DOCS) |
ladanyi@1370 | 27 |
AM_CONDITIONAL([WANT_DOCS], [test x"$enable_docs" != x"no"]) |
ladanyi@1370 | 28 |
]) |