From: Roland McGrath Date: Sat, 11 Feb 1995 09:39:53 +0000 (+0000) Subject: Update AC_CHECK_TOOL description. New third argument (optional). X-Git-Tag: fsf-origin~317 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9b9cc5de63adbc4d45bc10ea482b998c96426894;p=thirdparty%2Fautoconf.git Update AC_CHECK_TOOL description. New third argument (optional). --- diff --git a/autoconf.texi b/autoconf.texi index bfef816d2..cef13d1ee 100644 --- a/autoconf.texi +++ b/autoconf.texi @@ -1606,18 +1606,19 @@ list are found, set @var{variable} to @var{value-if-not-found}; if is not changed. Calls @code{AC_SUBST} for @var{variable}. @end defmac -@defmac AC_CHECK_TOOL (@var{variable}, @var{prog-to-check-for}) +@defmac AC_CHECK_TOOL (@var{variable}, @var{prog-to-check-for} @r{[}, @var{value-if-not-found}@r{]}) @maindex CHECK_TOOL Like @code{AC_CHECK_PROG}, but first looks for @var{prog-to-check-for} with a prefix of the host type as determined by @code{AC_CANONICAL_HOST}, followed by a dash (@pxref{Canonicalizing}). For example, if the user runs @samp{configure --host=i386-gnu}, then this call: @example -AC_CHECK_TOOL(AR, ar) +AC_CHECK_TOOL(RANLIB, ranlib, :) @end example @noindent -sets @code{AR} to @file{i386-gnu-ar} if that program exists in -@code{PATH}, or to @samp{ar} if not. +sets @code{RANLIB} to @file{i386-gnu-ranlib} if that program exists in +@code{PATH}, or to @samp{ranlib} if that program exists in @code{PATH}, +or to @samp{:} if neither program exists. @end defmac @defmac AC_PATH_PROG (@var{variable}, @var{prog-to-check-for} @r{[}, @var{value-if-not-found}@r{]}) diff --git a/doc/autoconf.texi b/doc/autoconf.texi index bfef816d2..cef13d1ee 100644 --- a/doc/autoconf.texi +++ b/doc/autoconf.texi @@ -1606,18 +1606,19 @@ list are found, set @var{variable} to @var{value-if-not-found}; if is not changed. Calls @code{AC_SUBST} for @var{variable}. @end defmac -@defmac AC_CHECK_TOOL (@var{variable}, @var{prog-to-check-for}) +@defmac AC_CHECK_TOOL (@var{variable}, @var{prog-to-check-for} @r{[}, @var{value-if-not-found}@r{]}) @maindex CHECK_TOOL Like @code{AC_CHECK_PROG}, but first looks for @var{prog-to-check-for} with a prefix of the host type as determined by @code{AC_CANONICAL_HOST}, followed by a dash (@pxref{Canonicalizing}). For example, if the user runs @samp{configure --host=i386-gnu}, then this call: @example -AC_CHECK_TOOL(AR, ar) +AC_CHECK_TOOL(RANLIB, ranlib, :) @end example @noindent -sets @code{AR} to @file{i386-gnu-ar} if that program exists in -@code{PATH}, or to @samp{ar} if not. +sets @code{RANLIB} to @file{i386-gnu-ranlib} if that program exists in +@code{PATH}, or to @samp{ranlib} if that program exists in @code{PATH}, +or to @samp{:} if neither program exists. @end defmac @defmac AC_PATH_PROG (@var{variable}, @var{prog-to-check-for} @r{[}, @var{value-if-not-found}@r{]})