diff options
author | Peter Hutterer <peter@cs.unisa.edu.au> | 2008-05-29 12:45:57 +0930 |
---|---|---|
committer | Peter Hutterer <peter@cs.unisa.edu.au> | 2008-05-29 12:46:24 +0930 |
commit | 9831db88ee8e69dc6cf8fad0ac83d40bedd5c463 (patch) | |
tree | 64eb02e88b0583a3c7e509a65c8b6f13df246586 | |
parent | fd8198513c865f616be8059907550db7f777b089 (diff) |
Don't fail man build when missing xmlto.
If xmlto is missing during configure, print out a warning and just do an empty
man build with no man pages at all. Better than failing with obscure errors.
-rw-r--r-- | configure.ac | 3 | ||||
-rw-r--r-- | man/Makefile.am | 4 |
2 files changed, 5 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac index c5703ce..92ff3c8 100644 --- a/configure.ac +++ b/configure.ac @@ -24,6 +24,9 @@ AC_SUBST(XI_LIBS) AC_ARG_VAR([XMLTO], [Path to xmlto command]) AC_PATH_PROG([XMLTO], [xmlto]) AM_CONDITIONAL([HAVE_XMLTO], [test "x$XMLTO" != "x"]) +if test "x$XMLTO" = "x"; then + AC_MSG_WARN([xmlto not found - cannot create man pages without it]) +fi XORG_CHECK_MALLOC_ZERO XORG_MANPAGE_SECTIONS diff --git a/man/Makefile.am b/man/Makefile.am index 16de126..4a210c1 100644 --- a/man/Makefile.am +++ b/man/Makefile.am @@ -30,6 +30,7 @@ LIB_MAN_DIR_SUFFIX = $(LIB_MAN_DIR:@mandir@/man%=%) libman_xml = XI.xml +if HAVE_XMLTO XI_manpages = \ XAllowDeviceEvents \ XChangeKeyboardDevice \ @@ -83,6 +84,7 @@ XI_manpages = \ XGetDeviceFocus \ XWarpDevicePointer \ XWindowClearAccess +endif # HAVE_XMLTO libman_PRE = $(XI_manpages:%=%.man) @@ -115,7 +117,6 @@ SUFFIXES = .$(LIB_MAN_SUFFIX) .man dist-hook: $(libman_PRE) -if HAVE_XMLTO .PHONY: do_xmlto_stage $(libman_PRE): do_xmlto_stage @@ -125,4 +126,3 @@ do_xmlto_stage: $(libman_xml) for m in $(XI_manpages); do \ mv -f $$m.__libmansuffix__ $$m.man ; \ done -endif # HAVE_XMLTO |