From c7de02d6195abb736b00c30fdf3010e242f93640 Mon Sep 17 00:00:00 2001 From: Spencer Oliver Date: Tue, 30 Sep 2014 11:22:40 +0100 Subject: [PATCH] build: make makeinfo optional This means the user does not have to install texinfo to build OpenOCD. Change-Id: Id9f42da798d3c2b79e95214c9e2559cf32802251 Signed-off-by: Spencer Oliver Reviewed-on: http://openocd.zylin.com/2325 Tested-by: jenkins Reviewed-by: Andreas Fritiofson --- configure.ac | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/configure.ac b/configure.ac index 6b61b1b2..ce286338 100644 --- a/configure.ac +++ b/configure.ac @@ -5,6 +5,14 @@ AC_CONFIG_SRCDIR([src/openocd.c]) m4_include([config_subdir.m4])dnl +# check for makeinfo before calling AM_INIT_AUTOMAKE +AC_CHECK_PROG([MAKEINFO], [makeinfo], [makeinfo]) +if test "x$MAKEINFO" = "x"; then + MAKEINFO='echo makeinfo missing; true' + AC_MSG_WARN([Info documentation will not be built.]) +fi +AC_SUBST([MAKEINFO]) + AM_INIT_AUTOMAKE([-Wall -Wno-portability dist-bzip2 dist-zip subdir-objects]) AC_CONFIG_HEADERS([config.h]) -- 2.39.5