]> git.ipfire.org Git - thirdparty/autoconf.git/commitdiff
Fix descriptions of AC_PROGRAM_CHECK and AC_PROGRAM_PATH.
authorDavid MacKenzie <djm@djmnet.org>
Tue, 10 May 1994 16:27:26 +0000 (16:27 +0000)
committerDavid MacKenzie <djm@djmnet.org>
Tue, 10 May 1994 16:27:26 +0000 (16:27 +0000)
autoconf.texi
doc/autoconf.texi

index 6ec8dad15ccc151f92a9257faddfa724fe03cb54..28752320c2b3d038c517bc676854119b08c40404 100644 (file)
@@ -1630,12 +1630,12 @@ almost always detect them by simply using @code{#ifdef} directives in
 your programs.
 @end defmac
 
-@defmac AC_PROGRAM_CHECK (@var{variable}, @var{prog-to-check-for}, @var{value-if-found}, @var{value-if-not-found})
+@defmac AC_PROGRAM_CHECK (@var{variable}, @var{prog-to-check-for}, @var{value-if-found} @r{[}, @var{value-if-not-found}@r{]})
 @maindex PROGRAM_CHECK
 Check whether program @var{prog-to-check-for} exists in @code{PATH}.  If
 it is found, set @var{variable} to @var{value-if-found}, otherwise to
-@var{value-if-not-found}.  If @var{variable} was already set, do nothing.
-Calls @code{AC_SUBST} for @var{variable}.
+@var{value-if-not-found}, if given.  If @var{variable} was already set,
+do nothing.  Calls @code{AC_SUBST} for @var{variable}.
 @end defmac
 
 @defmac AC_PROGRAM_EGREP (@var{pattern}, @var{program}, @var{action-if-found} @r{[}, @var{action-if-not-found}@r{]})
@@ -1653,13 +1653,12 @@ on which language is current, @pxref{Language Choice}), if it hasn't
 been called already.
 @end defmac
 
-@defmac AC_PROGRAM_PATH (@var{variable}, @var{prog-to-check-for}, @var{value-if-not-found})
+@defmac AC_PROGRAM_PATH (@var{variable}, @var{prog-to-check-for} @r{[}, @var{value-if-not-found}@r{]})
 @maindex PROGRAM_PATH
 Similar to @code{AC_PROGRAM_CHECK}, but set @var{variable} to the entire
 path of @var{prog-to-check-for} if found.  Otherwise, set @var{variable}
-to the value @var{value-if-not-found} and perform no path checking.
-If @var{variable} was already set, do nothing.
-Calls @code{AC_SUBST} for @var{variable}.
+to @var{value-if-not-found}, if given.  If @var{variable} was already
+set, do nothing.  Calls @code{AC_SUBST} for @var{variable}.
 @end defmac
 
 @defmac AC_PROGRAMS_CHECK (@var{variable}, @var{progs-to-check-for} @r{[}, @var{value-if-not-found}@r{]})
@@ -1670,7 +1669,7 @@ Check for each program in the whitespace-separated list
 checking the next program in the list.  If none of the programs in the
 list are found, set @var{variable} to @var{value-if-not-found}; if
 @var{value-if-not-found} is not specified, the value of @var{variable}
-will not be changed.  Calls @code{AC_SUBST} for @var{variable}.
+is not changed.  Calls @code{AC_SUBST} for @var{variable}.
 @end defmac
 
 @defmac AC_PROGRAMS_PATH (@var{variable}, @var{progs-to-check-for} @r{[}, @var{value-if-not-found}@r{]})
index 6ec8dad15ccc151f92a9257faddfa724fe03cb54..28752320c2b3d038c517bc676854119b08c40404 100644 (file)
@@ -1630,12 +1630,12 @@ almost always detect them by simply using @code{#ifdef} directives in
 your programs.
 @end defmac
 
-@defmac AC_PROGRAM_CHECK (@var{variable}, @var{prog-to-check-for}, @var{value-if-found}, @var{value-if-not-found})
+@defmac AC_PROGRAM_CHECK (@var{variable}, @var{prog-to-check-for}, @var{value-if-found} @r{[}, @var{value-if-not-found}@r{]})
 @maindex PROGRAM_CHECK
 Check whether program @var{prog-to-check-for} exists in @code{PATH}.  If
 it is found, set @var{variable} to @var{value-if-found}, otherwise to
-@var{value-if-not-found}.  If @var{variable} was already set, do nothing.
-Calls @code{AC_SUBST} for @var{variable}.
+@var{value-if-not-found}, if given.  If @var{variable} was already set,
+do nothing.  Calls @code{AC_SUBST} for @var{variable}.
 @end defmac
 
 @defmac AC_PROGRAM_EGREP (@var{pattern}, @var{program}, @var{action-if-found} @r{[}, @var{action-if-not-found}@r{]})
@@ -1653,13 +1653,12 @@ on which language is current, @pxref{Language Choice}), if it hasn't
 been called already.
 @end defmac
 
-@defmac AC_PROGRAM_PATH (@var{variable}, @var{prog-to-check-for}, @var{value-if-not-found})
+@defmac AC_PROGRAM_PATH (@var{variable}, @var{prog-to-check-for} @r{[}, @var{value-if-not-found}@r{]})
 @maindex PROGRAM_PATH
 Similar to @code{AC_PROGRAM_CHECK}, but set @var{variable} to the entire
 path of @var{prog-to-check-for} if found.  Otherwise, set @var{variable}
-to the value @var{value-if-not-found} and perform no path checking.
-If @var{variable} was already set, do nothing.
-Calls @code{AC_SUBST} for @var{variable}.
+to @var{value-if-not-found}, if given.  If @var{variable} was already
+set, do nothing.  Calls @code{AC_SUBST} for @var{variable}.
 @end defmac
 
 @defmac AC_PROGRAMS_CHECK (@var{variable}, @var{progs-to-check-for} @r{[}, @var{value-if-not-found}@r{]})
@@ -1670,7 +1669,7 @@ Check for each program in the whitespace-separated list
 checking the next program in the list.  If none of the programs in the
 list are found, set @var{variable} to @var{value-if-not-found}; if
 @var{value-if-not-found} is not specified, the value of @var{variable}
-will not be changed.  Calls @code{AC_SUBST} for @var{variable}.
+is not changed.  Calls @code{AC_SUBST} for @var{variable}.
 @end defmac
 
 @defmac AC_PROGRAMS_PATH (@var{variable}, @var{progs-to-check-for} @r{[}, @var{value-if-not-found}@r{]})