diff options
author | Mike Frysinger <vapier@gentoo.org> | 2021-02-21 19:26:47 -0500 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2021-02-28 03:03:44 -0500 |
commit | a3e2cc64a6ff8e4f10a9263155a409b736e0e9b8 (patch) | |
tree | 3efbeeaee586fa328db1b7f219886b4936b18535 /sim/m4 | |
parent | ebe9564b997e678650405339840f0c9ab55ef6b8 (diff) | |
download | gdb-a3e2cc64a6ff8e4f10a9263155a409b736e0e9b8.zip gdb-a3e2cc64a6ff8e4f10a9263155a409b736e0e9b8.tar.gz gdb-a3e2cc64a6ff8e4f10a9263155a409b736e0e9b8.tar.bz2 |
sim: use AC_CHECK_TOOL to find ar
Rather than require $AR be set and then default to `ar`, use the
standard AC_CHECK_TOOL helper to find a good prefixed tool. In
practice this shouldn't change much as we seem to have macros in
the tree that were already setting it up, but we shouldn't rely
on that implicitly.
Diffstat (limited to 'sim/m4')
-rw-r--r-- | sim/m4/sim_ac_common.m4 | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sim/m4/sim_ac_common.m4 b/sim/m4/sim_ac_common.m4 index 32d7f14..0f3052a 100644 --- a/sim/m4/sim_ac_common.m4 +++ b/sim/m4/sim_ac_common.m4 @@ -41,8 +41,7 @@ fi AC_SUBST(CC_FOR_BUILD) AC_SUBST(CFLAGS) -AR=${AR-ar} -AC_SUBST(AR) +AC_CHECK_TOOL(AR, ar) AC_PROG_RANLIB # Require C11 or newer. Autoconf-2.70 provides ac_cv_prog_cc_c11 when using |