From df2f28ed34955bb5b23e9714c074146d9f2b9f6d Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?S=C3=A9bastien=20Villemot?= <sebastien.villemot@ens.fr>
Date: Thu, 20 Jan 2011 15:13:32 -0500
Subject: [PATCH] If default 'ar' is not available, try to find one with a host
 prefix (closes #145)

---
 configure.ac | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/configure.ac b/configure.ac
index b0761df849..af3ed1834b 100644
--- a/configure.ac
+++ b/configure.ac
@@ -49,6 +49,9 @@ AC_LANG([C++])
 
 CXXFLAGS="$CXXFLAGS -Wall -Wno-parentheses"
 
+# If default 'ar' is not available, try to find one with a host prefix (see ticket #145)
+AC_CHECK_PROGS([AR], [ar ${host_alias}-ar])
+
 AC_PROG_RANLIB
 
 AX_PROG_LN_S
-- 
GitLab