~lastrosade/jsthttpd

32540107c238d0be0452f763cc146e8b3f989e89 — Michael Mair-Keimberger 8 years ago 7f9eabd
configure.ac: use the env variable for ar

This replaces 'AR = ar' with 'AR = @@AR@@' in Makefile.in so that
the environment value of ar found by AC_CHECK_TOOL is used.  This
is important for cross compiling.

X-gentoo-Bug: 462758
X-gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=462758

Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
1 files changed, 4 insertions(+), 0 deletions(-)

M configure.ac
M configure.ac => configure.ac +4 -0
@@ 7,6 7,10 @@ AM_INIT_AUTOMAKE([1.11 foreign])
# Checks for programs.
AC_PROG_CC
AC_PROG_INSTALL
AN_MAKEVAR([AR], [AC_PROG_AR])
AN_PROGRAM([ar], [AC_PROG_AR])
AC_DEFUN([AC_PROG_AR], [AC_CHECK_TOOL(AR, ar, :)])
AC_PROG_AR

# Checks for libraries.
AC_CHECK_LIB(crypt, crypt)