configure.ac: Use AC_CHECK_TOOL for cross-compiling support.

When cross-compiling the ar program has the appropriate prefix prepended.
Respect that here and have autotools autodetect the appropriate tool.
pull/1/head
Thomas Anderson 9 years ago
parent 344264da2f
commit 2dc984dcaa

@ -24,7 +24,7 @@ test "x$GCC" = "xyes" && CFLAGS="$CFLAGS -Wall"
AC_PROG_MAKE_SET AC_PROG_MAKE_SET
AC_LIBTOOL_WIN32_DLL AC_LIBTOOL_WIN32_DLL
AC_PROG_LIBTOOL AC_PROG_LIBTOOL
AC_PATH_PROG([AR], [ar], [/usr/bin/ar], AC_CHECK_TOOL([AR], [ar], [/usr/bin/ar],
[$PATH:/usr/ccs/bin]) [$PATH:/usr/ccs/bin])
# Options # Options

Loading…
Cancel
Save