build: Work without gtk-doc installed

This follows the pattern used by e.g. glib.  If people (commonly
embedded systems) don't want docs, we should support that.

Pull request: #235
Approved by: jlebon
This commit is contained in:
Colin Walters 2016-03-15 14:03:32 -04:00 committed by Colin Walters (automation)
parent 429487231f
commit 9f3f1ad06a

View File

@ -79,7 +79,11 @@ m4_ifdef([GOBJECT_INTROSPECTION_CHECK], [
]) ])
AM_CONDITIONAL(BUILDOPT_INTROSPECTION, test "x$found_introspection" = xyes) AM_CONDITIONAL(BUILDOPT_INTROSPECTION, test "x$found_introspection" = xyes)
m4_ifdef([GTK_DOC_CHECK], [
GTK_DOC_CHECK([1.15], [--flavour no-tmpl]) GTK_DOC_CHECK([1.15], [--flavour no-tmpl])
],[
AM_CONDITIONAL([ENABLE_GTK_DOC],[false])
])
AC_ARG_ENABLE(installed_tests, AC_ARG_ENABLE(installed_tests,
AS_HELP_STRING([--enable-installed-tests], AS_HELP_STRING([--enable-installed-tests],