Make gtk-doc.m4 optional
authorFrank Zschockelt <lm@freakysoft.de>
Thu, 04 Feb 2016 21:01:46 +0100
changeset 696 ffe575f5c205
parent 695 7ca0db71e445
child 697 e7e6fc88e6b8
Make gtk-doc.m4 optional
configure.ac
--- a/configure.ac	Thu Feb 04 21:01:46 2016 +0100
+++ b/configure.ac	Thu Feb 04 21:01:46 2016 +0100
@@ -112,7 +112,11 @@
 fi
 
 dnl Gtk doc
-GTK_DOC_CHECK(1.0)
+m4_ifdef([GTK_DOC_CHECK], [
+GTK_DOC_CHECK([1.14],[--flavour no-tmpl])
+],[
+AM_CONDITIONAL([ENABLE_GTK_DOC], false)
+])
 
 dnl define a MAINT-like variable REBUILD which is set if Perl
 dnl and awk are found, so autogenerated sources can be rebuilt