From 91febb3ca63b7ff104df7bcaa1ca39c9968eaa10 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20Grubbstr=C3=B6m=20=28Grubba=29?= <grubba@grubba.org> Date: Fri, 29 Sep 2023 10:17:23 +0200 Subject: [PATCH] Configure: Cut output from file(1) after the first colon. Fixes ABI detection issues when the output of file(1) contains eg timestamps (like "created Thu Sep 28 17:11:08 2023"). --- src/aclocal.m4 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/aclocal.m4 b/src/aclocal.m4 index 3c58500698..4ed137a620 100644 --- a/src/aclocal.m4 +++ b/src/aclocal.m4 @@ -1506,8 +1506,8 @@ define([DO_IF_OS], dnl variable, file-path AC_DEFUN(PIKE_CHECK_FILE_ABI, [ - PIKE_filetype=`file "$2" 2>/dev/null | sed -e 's/.*://'` - PIKE_filetype_L=`file -L "$2" 2>/dev/null | sed -e 's/.*://'` + PIKE_filetype=`file "$2" 2>/dev/null | sed -e 's/[^:]*://'` + PIKE_filetype_L=`file -L "$2" 2>/dev/null | sed -e 's/[^:]*://'` case "[$]PIKE_filetype:[$]PIKE_filetype_L" in *64-bit*) $1=64 -- GitLab