Migration to GCC 10 changes to 64bit load, see
https://github.com/omniosorg/omnios-extra/blob/master/build/valgrind/patches/libscf.patch
else
libscf=/usr/lib/libscf.so.1
fi
-if ! $DIS_PATH -F scf_handle_bind $libscf | grep -q 0x526570; then
+if ! $DIS_PATH -F scf_handle_bind $libscf | grep -q -E '0x(4d01)?526570'; then
AC_MSG_WARN([Function `scf_handle_bind' does not contain repository cache protocol version.])
AC_MSG_ERROR([Cannot determine version of the repository cache protocol.])
fi
-hex=$( $DIS_PATH -F scf_handle_bind $libscf | sed -n 's/.*0x526570\(..\).*/\1/p' )
+hex=$( $DIS_PATH -F scf_handle_bind $libscf | perl -pe '($_) = /0x(?:4d01)?526570(\d{2}),/' )
if test -z "$hex"; then
AC_MSG_WARN([Version of the repository cache protocol is empty?!])
AC_MSG_ERROR([Cannot determine version of the repository cache protocol.])