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>
This commit is contained in:
Harshavardhana 2009-02-27 05:03:50 -08:00 committed by Anand V. Avati
parent 7d7610007a
commit b29a555c0b
3 changed files with 24 additions and 1 deletions

View File

@ -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

View File

@ -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

View File

@ -1 +1,3 @@
info_TEXINFOS = user-guide.texi
CLEANFILES = *~
DISTCLEANFILES = .deps/*.P *.info *vti