configure.ac: detect AR tool with AM_PROG_AR

Before the change configure refers to 'ar' tool. After the change it
refers to 'x86_64-pc-linux-gnu-ar'. This helps user to consistently pick
'ar' tool implementation.

Reported-by: Agostino Sarubbo
Bug: https://bugs.gentoo.org/754861
This commit is contained in:
Jakov Smolic 2020-11-16 08:57:12 +01:00 committed by Alexander Kojevnikov
parent 61cc6650a2
commit 4e1ca71aa8
2 changed files with 2 additions and 0 deletions

1
.gitignore vendored
View File

@ -13,6 +13,7 @@ Makefile.in
Makefile.in.in
aclocal.m4
autom4te.cache
ar-lib
compile
config.*
configure

View File

@ -5,6 +5,7 @@ AM_INIT_AUTOMAKE([1.11.1 foreign no-dist-gzip dist-xz serial-tests])
AM_SILENT_RULES([yes])
AC_LANG([C++])
AM_PROG_AR
AC_PROG_CXX
CXXFLAGS="$CXXFLAGS -std=gnu++11 -Wall -Wextra"
AC_PROG_CXXCPP