summaryrefslogtreecommitdiff
path: root/doc/autoconf.texi
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2021-02-22 11:09:16 -0500
committerZack Weinberg <zackw@panix.com>2022-01-24 09:33:20 -0500
commitc48fdb81191c8b7c7c0dde6141b861b178a6a284 (patch)
treee3ce8a899112643dbc29f7f44d86db044e3238b4 /doc/autoconf.texi
parentb0d5d2d3eb05cf765c44f0499a622a99319d629f (diff)
downloadautoconf-c48fdb81191c8b7c7c0dde6141b861b178a6a284.tar.gz
add new AC_PROG_AR helper
This mirrors the existing RANLIB and related toolchain macros that autoconf already exports. Some projects assume `ar` is available which isn't always safe, so provide a macro that probes the full toolchain settings. This also makes it easier to use AC_REQUIRE with the macro instead of duplicating the AC_CHECK_TOOL call in projects. * lib/autoconf/programs.m4 (AC_PROG_AR): New macro. * doc/autoconf.texi: Document it. * tests/local.at (_AT_CHECK_ENV): Allow $AR output variable.
Diffstat (limited to 'doc/autoconf.texi')
-rw-r--r--doc/autoconf.texi9
1 files changed, 9 insertions, 0 deletions
diff --git a/doc/autoconf.texi b/doc/autoconf.texi
index 06a98dd0..49ee61cd 100644
--- a/doc/autoconf.texi
+++ b/doc/autoconf.texi
@@ -4158,6 +4158,15 @@ general program-check macros.
These macros check for particular programs---whether they exist, and
in some cases whether they support certain features.
+@defmac AC_PROG_AR
+@acindex{PROG_AR}
+@ovindex AR
+@c @caindex prog_AR
+@c @caindex prog_ac_ct_AR
+Set output variable @code{AR} to @samp{ar} if @code{ar} is found, and
+otherwise to @samp{:} (do nothing).
+@end defmac
+
@defmac AC_PROG_AWK
@acindex{PROG_AWK}
@ovindex AWK