[Bug 2352] also look for host-prefixed ar, to avoid using ie /usr/bin/ar when cross compiling

bugzilla-daemon at mindrot.org bugzilla-daemon at mindrot.org
Mon Apr 13 18:53:59 AEST 2015


https://bugzilla.mindrot.org/show_bug.cgi?id=2352

Darren Tucker <dtucker at zip.com.au> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Blocks|                            |2360
                 CC|                            |dtucker at zip.com.au

--- Comment #1 from Darren Tucker <dtucker at zip.com.au> ---
The proposed change to configure.ac is:

-AC_PATH_PROG([AR], [ar])
+AC_CHECK_TOOLS([AR], [ar])

The autoconf man page says:

"Like AC_CHECK_PROG, but first looks for prog-to-check-for with a
prefix of the host type as specified by --host, followed by a dash."

compared to AC_PATH_PROG which says:

"Like AC_CHECK_PROG, but set variable to the absolute name of
prog-to-check-for if found. The result of this test can be overridden
by setting the variable variable. A positive result of this test is
cached in the ac_cv_path_variable variable."

I think we just use AR in the Makefile so I don't see a reason it could
not be changed.

-- 
You are receiving this mail because:
You are watching the assignee of the bug.
You are watching someone on the CC list of the bug.


More information about the openssh-bugs mailing list