summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMisono Tomohiro <misono.tomohiro@jp.fujitsu.com>2018-04-11 17:29:00 +0900
committerDavid Sterba <dsterba@suse.com>2018-04-24 13:00:12 +0200
commit3491d6277886ddc55643a133d0ebf05a4e0053ed (patch)
tree1851edb2cb9bec2a7b3769e884ef3ea190db7b29
parent944974b4854e3f274e1beaa8165765eb385d8558 (diff)
downloadbtrfs-progs-3491d6277886ddc55643a133d0ebf05a4e0053ed.tar.gz
btrfs-progs-3491d6277886ddc55643a133d0ebf05a4e0053ed.tar.bz2
btrfs-progs-3491d6277886ddc55643a133d0ebf05a4e0053ed.zip
btrfs-progs: configure: check if xmlto exists at configure time
AC_PATH_PROG won't fail even if it fails to find command path. xmlto is required for document build and we should report error if it doesn't exist at configure time. Signed-off-by: Tomohiro Misono <misono.tomohiro@jp.fujitsu.com> Reviewed-by: Qu Wenruo <wqu@suse.com> Signed-off-by: David Sterba <dsterba@suse.com>
-rw-r--r--configure.ac6
1 files changed, 5 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index af13a959..a4c98b31 100644
--- a/configure.ac
+++ b/configure.ac
@@ -93,7 +93,11 @@ AC_SUBST([DISABLE_DOCUMENTATION])
dnl detect tools to build documentation
ASCIIDOC_TOOL="none"
if test "x$enable_documentation" = xyes; then
- AC_PATH_PROG([XMLTO], [xmlto], [xmlto])
+ AC_PATH_PROG([XMLTO], [xmlto])
+ if test -z "$XMLTO"; then
+ AC_MSG_ERROR([cannot find xmlto, cannot build documentation])
+ fi
+
AC_PATH_PROG([GZIP], [gzip], [gzip])
AC_PATH_PROG([MV], [mv], [mv])
AC_PROG_SED