# [PATCH] the ar tool is called gar on some systems

2 messages from 2007-10-03 to 2007-10-03. Participants: Robert Schiele, Junio C Hamano.
Thread: https://gitlist.dev/t/10122

## Robert Schiele, 2007-10-03 01:49

Subject: [PATCH] the ar tool is called gar on some systems
Message-ID: <20071003014934.GF20753@schiele.dyndns.org>
URL: https://gitlist.dev/e/20071003014934.GF20753%40schiele.dyndns.org

```
Some systems that have only installed the GNU toolchain (prefixed with "g")
do not provide "ar" but only "gar".  Make configure find this tool as well.

Signed-off-by: Robert Schiele <rschiele@gmail.com>
---
I sent that some weeks ago but it seems it got lost.

 configure.ac |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/configure.ac b/configure.ac
index 84fd7f1..ed7cc89 100644
--- a/configure.ac
+++ b/configure.ac
@@ -104,7 +104,7 @@ AC_MSG_NOTICE([CHECKS for programs])
 #
 AC_PROG_CC([cc gcc])
 #AC_PROG_INSTALL		# needs install-sh or install.sh in sources
-AC_CHECK_TOOL(AR, ar, :)
+AC_CHECK_TOOLS(AR, [gar ar], :)
 AC_CHECK_PROGS(TAR, [gtar tar])
 # TCLTK_PATH will be set to some value if we want Tcl/Tk
 # or will be empty otherwise.
-- 
1.5.2.3

```

## Junio C Hamano, 2007-10-03 04:55

Subject: Re: [PATCH] the ar tool is called gar on some systems
Message-ID: <7vlkakhk5g.fsf@gitster.siamese.dyndns.org>
URL: https://gitlist.dev/e/7vlkakhk5g.fsf%40gitster.siamese.dyndns.org
In-Reply-To: <20071003014934.GF20753@schiele.dyndns.org>

```
Robert Schiele <rschiele@gmail.com> writes:

> Some systems that have only installed the GNU toolchain (prefixed with "g")
> do not provide "ar" but only "gar".  Make configure find this tool as well.
>
> Signed-off-by: Robert Schiele <rschiele@gmail.com>
> ---
> I sent that some weeks ago but it seems it got lost.

I still have the original one in my mailbox.  Hasn't applied as
we hadn't heard anybody cheering or thanking for the patch, but
I do not see anything _wrong_ with it, so let's apply.

```
