diff options
author | P. F. Chimento <philip.chimento@gmail.com> | 2013-05-06 16:19:50 +0200 |
---|---|---|
committer | P. F. Chimento <philip.chimento@gmail.com> | 2013-05-06 16:19:50 +0200 |
commit | 7c5f7963dae6a6e9f9b1dec70b235fc78d465d77 (patch) | |
tree | 86648ede30c6f7662d6f2602967c384b0cfca5f4 /configure.ac | |
parent | 9405254d99d849d4ca9856e032244d1de22071f6 (diff) |
Build Javascript API documentation
g-ir-doc-tool is buggy, and doesn't build very good documentation,
but it is better than nothing. Building the JS documentation is
turned off by default and turned on for 'make distcheck'.
[endlessm/eos-sdk#18]
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index 301b78f..2841fa8 100644 --- a/configure.ac +++ b/configure.ac @@ -94,6 +94,8 @@ AS_ALL_LINGUAS # Required build tools # -------------------- +# Make sure we can create directory hierarchies +AC_PROG_MKDIR_P # C compiler AC_PROG_CC # Make sure the C compiler supports per-target CFLAGS @@ -107,6 +109,11 @@ AM_GNU_GETTEXT_VERSION([0.18.1]) GTK_DOC_CHECK([1.18], [--flavour no-tmpl]) # GObject Introspection GOBJECT_INTROSPECTION_REQUIRE([1.30]) +# Various tools +AC_PATH_PROG([GIRDOCTOOL], [g-ir-doc-tool], [notfound]) +AC_ARG_VAR([GIRDOCTOOL], [Path to g-ir-doc-tool]) +AC_PATH_PROG([YELPBUILD], [yelp-build], [notfound]) +AC_ARG_VAR([YELPBUILD], [Path to yelp-build]) AC_CACHE_SAVE @@ -153,6 +160,18 @@ dnl Strip leading spaces STRICT_CFLAGS=${STRICT_CFLAGS#* } AC_SUBST(STRICT_CFLAGS) +# --enable-gir-doc: Build GIR documentation for Javascript. Done automatically +# during 'make distcheck'. +AC_ARG_ENABLE([gir-doc], + [AS_HELP_STRING([--enable-gir-doc], + [Build GIR documentation for Javascript @<:@default=no@:>@])]) +AS_IF([test "x$enable_gir_doc" = "xyes"], [ + AS_IF([test "x$GIRDOCTOOL" = "xnotfound"], + [AC_MSG_ERROR([g-ir-doc-tool must be installed for --enable-gir-doc])]) + AS_IF([test "x$YELPBUILD" = "xnotfound"], + [AC_MSG_ERROR([yelp-build must be installed for --enable-gir-doc])])]) +AM_CONDITIONAL([ENABLE_GIR_DOC], [test "x$enable_gir_doc" = "xyes"]) + # Required libraries # ------------------ PKG_CHECK_MODULES([EOS_SDK], [ |