/build/m4/shamrock/gnome-doc.m4
http://github.com/hbons/SparkleShare · m4 · 23 lines · 18 code · 3 blank · 2 comment · 0 complexity · d1a7f741a0cf6520bcbc67d98cfa66b4 MD5 · raw file
- AC_DEFUN([SHAMROCK_CHECK_GNOME_DOC_UTILS],
- [
- AC_ARG_ENABLE([user-help],
- AC_HELP_STRING([--enable-user-help], [Enable building the user-help [[default=auto]]]),,
- enable_user_help=auto)
- if test "x$enable_user_help" = "xauto"; then
- PKG_CHECK_MODULES(GNOME_DOC_UTILS,
- gnome-doc-utils,
- enable_user_help=yes, enable_user_help=no)
- elif test "x$enable_user_help" = "xyes"; then
- PKG_CHECK_MODULES(GNOME_DOC_UTILS, gnome-doc-utils)
- fi
- # GNOME_DOC_INIT sets ENABLE_SK, but if we have disabled
- # user docs, then this needs to be defined manually.
- AM_CONDITIONAL(ENABLE_SK, false)
- if test "x$enable_user_help" = "xyes"; then
- GNOME_DOC_INIT([$1], enable_user_help=yes, enable_user_help=no)
- fi
- AM_CONDITIONAL(HAVE_GNOME_DOC_UTILS, test "x$enable_user_help" = "xyes")
- ])