And only build pod2man documentatino if it is available

Signed-off-by: Simon Horman <[email protected]>

Index: cluster-agents-1.0.really.1.0.2.rc1/configure.in
===================================================================
--- cluster-agents-1.0.really.1.0.2.rc1.orig/configure.in       2010-02-04 
16:40:47.000000000 +0900
+++ cluster-agents-1.0.really.1.0.2.rc1/configure.in    2010-02-04 
16:38:54.000000000 +0900
@@ -488,6 +488,13 @@ if test "x$XSLTPROC" = "x"; then
 fi
 AC_SUBST(XSLTPROC)
 
+AC_PATH_PROGS(POD2MAN, pod2man)
+AM_CONDITIONAL(BUILD_POD_DOC, test "x$POD2MAN" != "x" )
+if test "x$POD2MAN" = "x"; then
+   AC_MSG_WARN([pod2man not installed, unable to (re-)build ldirector manual 
page])
+fi
+AC_SUBST(POD2MAN)
+
 dnl ========================================================================
 dnl Functions
 dnl ========================================================================
Index: cluster-agents-1.0.really.1.0.2.rc1/ldirectord/Makefile.am
===================================================================
--- cluster-agents-1.0.really.1.0.2.rc1.orig/ldirectord/Makefile.am     
2010-02-04 16:40:47.000000000 +0900
+++ cluster-agents-1.0.really.1.0.2.rc1/ldirectord/Makefile.am  2010-02-04 
16:39:04.000000000 +0900
@@ -28,7 +28,10 @@ ldirectord.8: ldirectord
        $(POD2MAN) --section=8 $< > $@
 
 sbin_SCRIPTS           = ldirectord
+
+if BUILD_POD_DOC
 man_MANS               = ldirectord.8
+endif
 
 harddir                        = $(sysconfdir)/ha.d/resource.d
 

_______________________________________________________
Linux-HA-Dev: [email protected]
http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev
Home Page: http://linux-ha.org/

Reply via email to