]> rtime.felk.cvut.cz Git - coffee/buildroot.git/blob - package/libxmlrpc/0003-fix-ar-ranlib-handling.patch
lrzsz: install symlinks for XMODEM and YMODEM
[coffee/buildroot.git] / package / libxmlrpc / 0003-fix-ar-ranlib-handling.patch
1 Fix detection of AR and RANLIB
2
3 The configure.in script assumes that ranlib and ar are necessarily
4 prefixed by ${ac_tool_prefix}, which is the value of --host. However,
5 it's not necessarily the case.
6
7 So instead, use AC_CHECK_TOOL to check for AR, and AC_PROG_RANLIB to
8 check for RANLIB.
9
10 Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
11
12 Index: b/configure.in
13 ===================================================================
14 --- a/configure.in
15 +++ b/configure.in
16 @@ -621,10 +621,8 @@
17  BUILDDIR=$(pwd)
18  AC_SUBST(BUILDDIR)
19  
20 -AR=${ac_tool_prefix}ar
21 -AC_SUBST([AR])
22 -RANLIB=${ac_tool_prefix}ranlib
23 -AC_SUBST([RANLIB])
24 +AC_CHECK_TOOL([AR], [ar])
25 +AC_PROG_RANLIB
26  
27  dnl =======================================================================
28  dnl Output our results.