]> sourceware.org Git - debugedit.git/commitdiff
configure: Adjust READELF_REGEXP for OpenSuse
authorMark Wielaard <mark@klomp.org>
Tue, 29 Oct 2024 02:24:12 +0000 (03:24 +0100)
committerMark Wielaard <mark@klomp.org>
Tue, 29 Oct 2024 02:24:12 +0000 (03:24 +0100)
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

index 180c59931cf6b1fc62c5a1b22b18cfe64f3326c7..1ce40ea0ca23423838ffbdf226d79effc319a22d 100644 (file)
@@ -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"
This page took 0.024447 seconds and 5 git commands to generate.