PageRenderTime 10ms CodeModel.GetById 7ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

/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
 1AC_DEFUN([SHAMROCK_CHECK_GNOME_DOC_UTILS],
 2[
 3    AC_ARG_ENABLE([user-help],
 4           AC_HELP_STRING([--enable-user-help], [Enable building the user-help [[default=auto]]]),,
 5           enable_user_help=auto)
 6
 7    if test "x$enable_user_help" = "xauto"; then
 8        PKG_CHECK_MODULES(GNOME_DOC_UTILS,
 9            gnome-doc-utils,
10            enable_user_help=yes, enable_user_help=no)
11    elif test "x$enable_user_help" = "xyes"; then
12        PKG_CHECK_MODULES(GNOME_DOC_UTILS, gnome-doc-utils)
13    fi
14
15    # GNOME_DOC_INIT sets ENABLE_SK, but if we have disabled
16    # user docs, then this needs to be defined manually.
17    AM_CONDITIONAL(ENABLE_SK, false)
18    if test "x$enable_user_help" = "xyes"; then
19        GNOME_DOC_INIT([$1], enable_user_help=yes, enable_user_help=no)
20    fi
21
22    AM_CONDITIONAL(HAVE_GNOME_DOC_UTILS, test "x$enable_user_help" = "xyes")
23])