config/lx_enable_doc.m4
changeset 1489 f7e9cc3bc2da
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/config/lx_enable_doc.m4	Tue Jun 14 20:01:41 2005 +0000
     1.3 @@ -0,0 +1,28 @@
     1.4 +AC_DEFUN([LX_ENABLE_DOC],
     1.5 +[
     1.6 +  AC_ARG_ENABLE([doc],
     1.7 +AS_HELP_STRING([--enable-doc@<:@=yes|no|full@:>@], [build the documentation (full enables internal documentation too) @<:@default=yes@:>@])
     1.8 +AS_HELP_STRING([--disable-doc], [do not build the documentation]),
     1.9 +         [], [enable_doc=yes])
    1.10 +
    1.11 +  AC_MSG_CHECKING([whether to build the documention])
    1.12 +  case "$enable_doc" in
    1.13 +    yes)
    1.14 +      DOXYGEN_INTERNAL_DOCS=NO
    1.15 +      AC_MSG_RESULT([yes])
    1.16 +      ;;
    1.17 +    full)
    1.18 +      DOXYGEN_INTERNAL_DOCS=YES
    1.19 +      AC_MSG_RESULT([full])
    1.20 +      ;;
    1.21 +    no)
    1.22 +      DOXYGEN_INTERNAL_DOCS=NO
    1.23 +      AC_MSG_RESULT([no])
    1.24 +      ;;
    1.25 +    *)
    1.26 +      AC_MSG_ERROR([bad value $enable_doc for option --enable-doc])
    1.27 +      ;;
    1.28 +  esac
    1.29 +  AC_SUBST(DOXYGEN_INTERNAL_DOCS)
    1.30 +  AM_CONDITIONAL([WANT_DOC], [test x"$enable_doc" != x"no"])
    1.31 +])