summaryrefslogtreecommitdiff
path: root/dev-libs/libindicate/files/libindicate-0.4.4-optional-doc.patch
blob: 857bc7acd236ccad474eea144b550c8978c59e66 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
--- configure.ac.orig	2010-09-20 23:15:36.692289201 +0200
+++ configure.ac	2010-09-20 23:26:30.159014141 +0200
@@ -171,8 +171,18 @@
 # GTK Doc 
 ###########################
 
+AC_ARG_ENABLE([doc],
+	AC_HELP_STRING([--disable-doc], [Disable doc generation]),
+	[enable_doc=$enableval], enable_doc=auto)
+AM_CONDITIONAL([WANT_DOC], [test "x$enable_doc" != "xno"])
+
 GTK_DOC_CHECK([1.4])
+if test "x$enable_doc" != "xno" ; then
 GNOME_DOC_INIT
+else
+# The initialisation is still needed for certain conditionals to be defined, just make it not output any error
+GNOME_DOC_INIT(,,[:])
+fi
 GNOME_COMPILE_WARNINGS
 
 ##############################
--- Makefile.am.orig	2010-09-20 23:12:10.442903362 +0200
+++ Makefile.am	2010-09-20 23:27:12.557785756 +0200
@@ -1,2 +1,6 @@
 
+if WANT_DOC
+DOC_SUBDIR = docs
+endif
+
 SUBDIRS = \
@@ -8,3 +12,3 @@
 	tests \
-	docs
+	$(DOC_SUBDIR)