build: improve libcrypto library detection

* configure.ac: Match literal '.' in the file name
to avoid potential mismatches with similarly named libs.
Reported by Andreas Schwab
This commit is contained in:
Pádraig Brady 2024-02-26 19:10:14 +00:00
parent feda512e97
commit 45411e3fc6

View File

@ -373,7 +373,7 @@ AS_CASE([$LIB_CRYPTO],
[# readelf works with cross-builds; ldd works on more platforms.
LIBCRYPTO_SONAME="`(readelf -d conftest$EXEEXT || ldd conftest$EXEEXT
) 2>/dev/null |
sed -n 's/.*\(libcrypto.so.[[.0-9]]*\).*/\1/p'`"
sed -n 's/.*\(libcrypto\.so\.[[.0-9]]*\).*/\1/p'`"
AS_CASE([$LIBCRYPTO_SONAME],
[*libcrypto*],
[utils_cv_dlopen_libcrypto=yes])])