author | hegyi |
Wed, 15 Jun 2005 11:15:01 +0000 | |
changeset 1496 | c60369a1c987 |
permissions | -rw-r--r-- |
ladanyi@1489 | 1 |
AC_DEFUN([LX_ENABLE_DOC], |
ladanyi@1489 | 2 |
[ |
ladanyi@1489 | 3 |
AC_ARG_ENABLE([doc], |
ladanyi@1489 | 4 |
AS_HELP_STRING([--enable-doc@<:@=yes|no|full@:>@], [build the documentation (full enables internal documentation too) @<:@default=yes@:>@]) |
ladanyi@1489 | 5 |
AS_HELP_STRING([--disable-doc], [do not build the documentation]), |
ladanyi@1489 | 6 |
[], [enable_doc=yes]) |
ladanyi@1489 | 7 |
|
ladanyi@1489 | 8 |
AC_MSG_CHECKING([whether to build the documention]) |
ladanyi@1489 | 9 |
case "$enable_doc" in |
ladanyi@1489 | 10 |
yes) |
ladanyi@1489 | 11 |
DOXYGEN_INTERNAL_DOCS=NO |
ladanyi@1489 | 12 |
AC_MSG_RESULT([yes]) |
ladanyi@1489 | 13 |
;; |
ladanyi@1489 | 14 |
full) |
ladanyi@1489 | 15 |
DOXYGEN_INTERNAL_DOCS=YES |
ladanyi@1489 | 16 |
AC_MSG_RESULT([full]) |
ladanyi@1489 | 17 |
;; |
ladanyi@1489 | 18 |
no) |
ladanyi@1489 | 19 |
DOXYGEN_INTERNAL_DOCS=NO |
ladanyi@1489 | 20 |
AC_MSG_RESULT([no]) |
ladanyi@1489 | 21 |
;; |
ladanyi@1489 | 22 |
*) |
ladanyi@1489 | 23 |
AC_MSG_ERROR([bad value $enable_doc for option --enable-doc]) |
ladanyi@1489 | 24 |
;; |
ladanyi@1489 | 25 |
esac |
ladanyi@1489 | 26 |
AC_SUBST(DOXYGEN_INTERNAL_DOCS) |
ladanyi@1489 | 27 |
AM_CONDITIONAL([WANT_DOC], [test x"$enable_doc" != x"no"]) |
ladanyi@1489 | 28 |
]) |