summaryrefslogtreecommitdiff
blob: 3ba023ba933f2535825b1a1049c40bb5c8b48ff2 (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
http://code.google.com/p/libkate/issues/detail?id=5

Index: libkate-0.2.0/Makefile.am
===================================================================
--- libkate-0.2.0.orig/Makefile.am
+++ libkate-0.2.0/Makefile.am
@@ -1,4 +1,7 @@
-SUBDIRS=. tools doc
+SUBDIRS=. tools 
+if HAVE_DOXYGEN
+SUBDIRS+=doc
+endif
 
 OGGDIR=built-streams
 kateincdir=$(includedir)/kate
Index: libkate-0.2.0/configure.ac
===================================================================
--- libkate-0.2.0.orig/configure.ac
+++ libkate-0.2.0/configure.ac
@@ -68,7 +68,13 @@ AC_CHECK_HEADERS(
 AC_TYPE_SIZE_T
 
 AC_CHECK_PROG(HAVE_PKG_CONFIG,pkg-config,yes)
-AC_CHECK_PROG(HAVE_DOXYGEN,doxygen,yes)
+AC_ARG_ENABLE(doc, [  --disable-doc	Disable building documentation (default enabled)])
+if test "x$enable_doc" != "xno"
+then
+  AC_CHECK_PROG(HAVE_DOXYGEN,doxygen,yes)
+else
+  HAVE_DOXYGEN="no"
+fi
 AM_CONDITIONAL(HAVE_DOXYGEN,test "${HAVE_DOXYGEN}" = "yes")
 
 AC_ARG_ENABLE(valgrind, [  --enable-valgrind       Run the tests with Valgrind (default disabled)])