bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH 2/2] use AC_CHECK_TOOL with `ar` rather than AC_CHECK_PROG


From: Mike Frysinger
Subject: [PATCH 2/2] use AC_CHECK_TOOL with `ar` rather than AC_CHECK_PROG
Date: Thu, 31 Jan 2013 00:33:17 -0500

The TOOL variant will automatically search for a $host prefixed program
(e.g. x86_64-pc-linux-gnu) rather than looking for `ar` only.  This is
useful when cross-compiling and it matches the behavior of the other
tools that configure relies on (e.g. cc & ranlib).

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
---
 configure.ac | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/configure.ac b/configure.ac
index ef49e0b..cbe84cf 100644
--- a/configure.ac
+++ b/configure.ac
@@ -625,7 +625,7 @@ dnl END READLINE and HISTORY LIBRARY SECTION
 
 dnl programs needed by the build and install process
 AC_PROG_INSTALL
-AC_CHECK_PROG(AR, ar, , ar)
+AC_CHECK_TOOL(AR, ar)
 dnl Set default for ARFLAGS, since autoconf does not have a macro for it.
 dnl This allows people to set it when running configure or make
 test -n "$ARFLAGS" || ARFLAGS="cr"
-- 
1.8.0.2




reply via email to

[Prev in Thread] Current Thread [Next in Thread]