build: grab full paths to host tools

This ensures that make will work even if PATH has changed, which is often the
case when cross-compiling.

Fixes cross-compiled builds when integrated into Bitcoin's repo.
This commit is contained in:
Cory Fields 2014-07-24 17:19:59 -04:00
parent 7d1956ff8d
commit 3ab1178d54
1 changed files with 4 additions and 0 deletions

View File

@ -15,6 +15,10 @@ AC_PROG_INSTALL
AC_PROG_SED
PKG_PROG_PKG_CONFIG
AC_PATH_TOOL(AR, ar)
AC_PATH_TOOL(RANLIB, ranlib)
AC_PATH_TOOL(STRIP, strip)
AC_PROG_CC_C99
if test x"$ac_cv_prog_cc_c99" == x"no"; then
AC_MSG_ERROR([c99 compiler support required])