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
46
47
48
49
50
51
52
53
54
55
56
57
|
--- configure.in
+++ configure.in
@@ -505,8 +505,15 @@
AC_PATH_PROGS(TEST, test)
AC_PATH_PROGS(PKGCONFIG, pkg-config)
-dnl xsltproc is required for building the man pages
-AC_PATH_PROGS(XSLTPROC, xsltproc)
+AC_ARG_ENABLE([doc],
+ AS_HELP_STRING([--enable-doc],[Build documentation]
+))
+AS_IF([test "x$enable_doc" = "xyes"], [
+ AC_PATH_PROGS(XSLTPROC, xsltproc)
+])
+AM_CONDITIONAL([BUILD_DOC], [test "x$enable_doc" = "xyes"] )
+AC_SUBST(XSLTPROC)
+
dnl ************************************************************************
dnl Check whether non-root user can chown.
--- doc/Makefile.am
+++ doc/Makefile.am
@@ -33,11 +33,12 @@
doc_DATA = $(OTHER_DOCS)
+if BUILD_DOC
man_MANS = heartbeat.8 apphbd.8 cl_status.1 \
hb_standby.1 hb_takeover.1 hb_addnode.1 hb_delnode.1 \
ha.cf.5 authkeys.5
-STYLESHEET_PREFIX ?= http://docbook.sourceforge.net/release/xsl/current
+STYLESHEET_PREFIX ?= /usr/share/sgml/docbook/xsl-stylesheets
MANPAGES_STYLESHEET ?= $(STYLESHEET_PREFIX)/manpages/docbook.xsl
HTML_STYLESHEET ?= $(STYLESHEET_PREFIX)/xhtml/docbook.xsl
FO_STYLESHEET ?= $(STYLESHEET_PREFIX)/fo/docbook.xsl
@@ -47,6 +48,12 @@
XSLTPROC_HTML_OPTIONS ?= $(XSLTPROC_OPTIONS)
XSLTPROC_FO_OPTIONS ?= $(XSLTPROC_OPTIONS)
+%.5 %.8 %.1: %.xml
+ $(XSLTPROC) \
+ $(XSLTPROC_MANPAGES_OPTIONS) \
+ $(MANPAGES_STYLESHEET) $<
+endif
+
EXTRA_DIST = $(txtfiles) $(htmlfiles) $(man_MANS) $(OTHER_DOCS)
ChangeLog: $(SPECSRC)
@@ -56,7 +63,3 @@
.html.txt:
if [ "X$(HTML2TXT)" = "X" ]; then echo "Lynx or w3m or user-defined HTML2TXT required to convert $< to $@" >$@ ; else $(HTML2TXT) -dump $< >$@ ; fi
-%.5 %.8 %.1: %.xml
- $(XSLTPROC) \
- $(XSLTPROC_MANPAGES_OPTIONS) \
- $(MANPAGES_STYLESHEET) $<
|