From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 From: Ivan Trubach <mr.trubach@icloud.com> Date: Sat, 27 Jul 2024 18:43:38 +0300 Subject: [PATCH 08/19] Fix configure.ac not finding $AR with target prefix MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixes AR and RANLIB with target prefix (if not set to absolute paths). Looks like AC_PATH_PROG doesn’t perform PATH lookups when user overrides the program via environment variable but sets the value to program name instead of absolute path. Note that LD seems to be unused so we remove it. --- xar/configure.ac | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/xar/configure.ac b/xar/configure.ac index 26d41a5..3d8e5de 100644 --- a/xar/configure.ac +++ b/xar/configure.ac @@ -86,9 +86,8 @@ fi AC_PROG_CPP AC_PROG_INSTALL -AC_PATH_PROG([LD], [ld], , [$PATH]) -AC_PATH_PROG([AR], [ar], , [$PATH]) -AC_PATH_PROG([RANLIB], [ranlib], , [$PATH]) +AC_PROG_AR +AC_PROG_RANLIB AC_PATH_PROG([AUTOCONF], [autoconf], , [$PATH]) dnl Some libtool envy -- 2.44.1