/build/m4/shamrock/monodoc.m4
http://github.com/hbons/SparkleShare · m4 · 25 lines · 21 code · 4 blank · 0 comment · 0 complexity · dc46759bff577957dad15b3a063ee41a MD5 · raw file
- AC_DEFUN([SHAMROCK_CHECK_MONODOC],
- [
- AC_ARG_ENABLE(docs, AC_HELP_STRING([--disable-docs],
- [Do not build documentation]), , enable_docs=yes)
- if test "x$enable_docs" = "xyes"; then
- AC_PATH_PROG(MONODOCER, monodocer, no)
- if test "x$MONODOCER" = "xno"; then
- AC_MSG_ERROR([You need to install monodoc, or pass --disable-docs to configure to skip documentation installation])
- fi
- AC_PATH_PROG(MDASSEMBLER, mdassembler, no)
- if test "x$MDASSEMBLER" = "xno"; then
- AC_MSG_ERROR([You need to install mdassembler, or pass --disable-docs to configure to skip documentation installation])
- fi
- DOCDIR=`$PKG_CONFIG monodoc --variable=sourcesdir`
- AC_SUBST(DOCDIR)
- AM_CONDITIONAL(BUILD_DOCS, true)
- else
- AC_MSG_NOTICE([not building ${PACKAGE} API documentation])
- AM_CONDITIONAL(BUILD_DOCS, false)
- fi
- ])