From 4e1ca71aa86111107766ee38eaf40a943034844e Mon Sep 17 00:00:00 2001 From: Jakov Smolic Date: Mon, 16 Nov 2020 08:57:12 +0100 Subject: [PATCH] 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 --- .gitignore | 1 + configure.ac | 1 + 2 files changed, 2 insertions(+) diff --git a/.gitignore b/.gitignore index 7d412ed..c971ad2 100644 --- a/.gitignore +++ b/.gitignore @@ -13,6 +13,7 @@ Makefile.in Makefile.in.in aclocal.m4 autom4te.cache +ar-lib compile config.* configure diff --git a/configure.ac b/configure.ac index 3f16316..96cf9c7 100644 --- a/configure.ac +++ b/configure.ac @@ -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