summaryrefslogtreecommitdiff
path: root/dev-libs/libindicate/files/libindicate-0.4.4-optional-doc.patch
blob: 13c09f90fc8673b939e9f0f4299bd9471d748bf5 (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
36
37
38
39
40
41
42
43
44
45
--- 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])
+AS_IF([test "x$enable_doc" != "xno"],[
 GNOME_DOC_INIT
+],[
+# The initialisation is still needed for certain conditionals to be defined, just make it not output any error
+GNOME_DOC_INIT(,,[:])
+])
 GNOME_COMPILE_WARNINGS
 
 ##############################
@@ -271,2 +281,7 @@
-	GObject Introspection:  $enable_introspection
-])
+	GObject Introspection:  $enable_introspection
+])
+
+AM_COND_IF([HAVE_GNOME_DOC_UTILS],
+	[AC_MSG_NOTICE([	Documentation:          yes])],
+	[AC_MSG_NOTICE([	Documentation:          no])]
+)
--- 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)