[COMMITTED] configure: Adjust READELF_REGEXP for OpenSuse

Mark Wielaard mark@klomp.org
Tue Oct 29 02:34:29 GMT 2024


Leap readelf verion looks like:
GNU readelf (GNU Binutils; SUSE Linux Enterprise 15) 2.43.1.20240828-150100.7.49
Tumbleweed uses:
GNU readelf (GNU Binutils; openSUSE Tumbleweed) 2.43.1.20240828-2

So also allow ';' and numbers before the actual version.

Signed-off-by: Mark Wielaard <mark@klomp.org>
---
 configure.ac | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/configure.ac b/configure.ac
index 180c59931cf6..1ce40ea0ca23 100644
--- a/configure.ac
+++ b/configure.ac
@@ -168,7 +168,7 @@ AC_SUBST([DEBUG_MACRO_FLAG])
 # It is difficult to do a feature check for this, so just do a version check.
 READELF_STRING=$($READELF --version | head -1)
 # The double [[ and ]] is because of configure.ac being an m4 script.
-READELF_REGEXP='s/GNU readelf[[a-zA-Z() _-]]*\([[1-9]]\)\.\([[0-9]]*\).*/\1\2/'
+READELF_REGEXP='s/GNU readelf[[a-zA-Z0-9(); _-]]*\([[1-9]]\)\.\([[0-9]]*\).*/\1\2/'
 READELF_VER=$(echo "$READELF_STRING" | sed -e "$READELF_REGEXP")
 AC_CACHE_CHECK([readelf version for compress tests], ac_cv_readelf_ver, [dnl
 ac_cv_readelf_ver="$READELF_VER"
-- 
2.47.0



More information about the Debugedit mailing list