From: Ian Campbell Subject: Re: [PATCH 1 of 2 v3] tools: check for documentation generation tools at configure time Date: Mon, 10 Sep 2012 17:09:10 +0100 Message-ID: <1347293350.5305.113.camel@zakaz.uk.xensource.com> References: <3b3582f4dc423daa8040.1346992558@u002268147cd4502c336d.ant.amazon.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <3b3582f4dc423daa8040.1346992558@u002268147cd4502c336d.ant.amazon.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Matt Wilson Cc: Ian Jackson , "xen-devel@lists.xen.org" List-Id: xen-devel@lists.xenproject.org > diff -r d7e4efa17fb0 -r 3b3582f4dc42 tools/m4/docs_tool.m4 > --- /dev/null Thu Jan 01 00:00:00 1970 +0000 > +++ b/tools/m4/docs_tool.m4 Thu Sep 06 21:31:51 2012 -0700 > @@ -0,0 +1,10 @@ > +# $1: autoconf variable name > +# $2: list of programs to check for > +AC_DEFUN([AX_DOCS_TOOL_PROGS], [ > +dnl > + AC_ARG_VAR([$1], [Path to ] m4_tolower($1) [ tool]) > + AC_PATH_PROGS([$1], [$2]) > + AS_IF([! test -x "$ac_cv_path_$1"], [ > + AC_MSG_WARN([$2 is not available so some documentation won't be built]) Did you mean m4_tolower($1) for this last $2 as well? Since $2 is the list of potential command names this will look a bit odd I think?