[lvm-devel] master - configure: search for (a possibly prefixed) ar

Zdenek Kabelac zkabelac at sourceware.org
Fri Jun 9 20:56:44 UTC 2017


Gitweb:        https://sourceware.org/git/?p=lvm2.git;a=commitdiff;h=4b4a210e8397a37446fe7229242868055af9cd81
Commit:        4b4a210e8397a37446fe7229242868055af9cd81
Parent:        5ef20d2168176f598d13e0b7bcc658b976813d5c
Author:        Heiko Becker <heirecka at exherbo.org>
AuthorDate:    Thu Apr 13 09:07:49 2017 +0200
Committer:     Zdenek Kabelac <zkabelac at redhat.com>
CommitterDate: Fri Jun 9 22:49:39 2017 +0200

configure: search for (a possibly prefixed) ar

e.g. when cross compiling.

Signed-off-by: Heiko Becker <heirecka at exherbo.org>
---
 configure.in |    1 +
 make.tmpl.in |    2 +-
 2 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/configure.in b/configure.in
index ae5baa5..2e5e015 100644
--- a/configure.in
+++ b/configure.in
@@ -84,6 +84,7 @@ AC_PROG_LN_S
 AC_PROG_MAKE_SET
 AC_PROG_MKDIR_P
 AC_PROG_RANLIB
+AC_CHECK_TOOL(AR, ar)
 AC_PATH_TOOL(CFLOW_CMD, cflow)
 AC_PATH_TOOL(CSCOPE_CMD, cscope)
 AC_PATH_TOOL(CHMOD, chmod)
diff --git a/make.tmpl.in b/make.tmpl.in
index a40eaaa..cb5953a 100644
--- a/make.tmpl.in
+++ b/make.tmpl.in
@@ -44,7 +44,7 @@ EGREP = @EGREP@
 GREP = @GREP@
 SORT = @SORT@
 WC = @WC@
-AR = ar
+AR = @AR@
 RM = rm -f
 
 PYTHON2 = @PYTHON2@




More information about the lvm-devel mailing list