diff options
author | Harshavardhana <harsha@zresearch.com> | 2009-02-27 05:03:50 -0800 |
---|---|---|
committer | Anand V. Avati <avati@amp.gluster.com> | 2009-03-03 11:43:39 +0530 |
commit | b29a555c0be1c0db47c290d61f8c4dfe1e6fecbf (patch) | |
tree | f6b601f2b9b061e25aeafbd44c92578a8e1982e8 | |
parent | 7d7610007aeb3e31e9d51996a2234659de792a25 (diff) |
now user-guide.info is built only when "makeinfo" found
user-guide info is built only when "makeinfo" found
Signed-off-by: Anand V. Avati <avati@amp.gluster.com>
-rw-r--r-- | configure.ac | 20 | ||||
-rw-r--r-- | doc/Makefile.am | 3 | ||||
-rw-r--r-- | doc/user-guide/Makefile.am | 2 |
3 files changed, 24 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac index 4d90307023f..c5e0da84a8e 100644 --- a/configure.ac +++ b/configure.ac @@ -134,6 +134,26 @@ AC_CANONICAL_HOST AC_PROG_CC AC_PROG_LIBTOOL +# texinfo check +AC_CHECK_PROG([INFO], [makeinfo], [yes], [no]) +if test "x$INFO" = "xno"; then + AC_MSG_WARN([ +*** Makeinfo is missing. Info documentation will not be built.]) + BUILD_INFO= +else + BUILD_INFO=user-guide + case "$INFO" in + */missing\ makeinfo*) + BUILD_INFO= + AC_MSG_WARN([ +*** Makeinfo is missing. Info documentation will not be built.]) + ;; + *) + esac +fi +AC_SUBST(INFO) +AC_SUBST(BUILD_INFO) + # LEX needs a check AC_PROG_LEX if test "x${LEX}" != "xflex" -a "x${FLEX}" != "xlex"; then diff --git a/doc/Makefile.am b/doc/Makefile.am index 83f88320c94..0934c1c2767 100644 --- a/doc/Makefile.am +++ b/doc/Makefile.am @@ -1,7 +1,8 @@ EXTRA_DIST = glusterfs.vol.sample glusterfsd.vol.sample glusterfs.8 \ porting_guide.txt authentication.txt coding-standard.pdf get_put_api_using_xattr.txt \ translator-options.txt mac-related-xattrs.txt replicate.pdf -SUBDIRS = examples hacker-guide user-guide + +SUBDIRS = examples hacker-guide $(BUILD_INFO) voldir = $(sysconfdir)/glusterfs vol_DATA = glusterfs.vol.sample glusterfsd.vol.sample diff --git a/doc/user-guide/Makefile.am b/doc/user-guide/Makefile.am index 8d7068f14aa..800e7321d79 100644 --- a/doc/user-guide/Makefile.am +++ b/doc/user-guide/Makefile.am @@ -1 +1,3 @@ info_TEXINFOS = user-guide.texi +CLEANFILES = *~ +DISTCLEANFILES = .deps/*.P *.info *vti |