[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug-cpio] [PATCH] configure.ac: look for host-prefixed ar
From: |
Benedikt Morbach |
Subject: |
[Bug-cpio] [PATCH] configure.ac: look for host-prefixed ar |
Date: |
Tue, 26 Aug 2014 00:55:25 +0200 |
This patch changes configure.ac to look for '${host}-ar' before looking for the
unprefixed 'ar'.
This is useful when cross-compiling when all your binutils are prefixed.
I used AC_CHECK_TOOLS instead of AC_CHECK_TOOL, since autoconf docs say
that the former calls AC_SUBST, which saves a line.
---
configure.ac | 1 +
1 file changed, 1 insertion(+)
diff --git a/configure.ac b/configure.ac
index 1d3d985..6ddf528 100644
--- a/configure.ac
+++ b/configure.ac
@@ -34,6 +34,7 @@ AC_PROG_GCC_TRADITIONAL
AC_PROG_INSTALL
AC_PROG_RANLIB
AC_PROG_YACC
+AC_CHECK_TOOLS([AR], [ar])
gl_EARLY
AC_C_PROTOTYPES
--
2.0.4
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Bug-cpio] [PATCH] configure.ac: look for host-prefixed ar,
Benedikt Morbach <=