From bd0ae0a5ddf9222a169fab5107f41872e2f2b7b5 Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Fri, 23 Nov 2018 21:11:11 -0800 Subject: [PATCH] Do a second pass to find libraries without a single version digit after the .so This finds libsndio.so.6.1 on Raspberry Pi --- configure | 9 +++++++++ configure.in | 8 ++++++++ 2 files changed, 17 insertions(+) diff --git a/configure b/configure index 86aff9d79..103297db9 100755 --- a/configure +++ b/configure @@ -15786,6 +15786,14 @@ find_lib() return fi done + # Try again, this time allowing more than one version digit after the .so + for path in $env_lib_path $gcc_bin_path $gcc_lib_path $host_lib_path; do + lib=`ls -- $path/$1 2>/dev/null | sed -e 's,.*/,,' | sort | tail -1` + if test x$lib != x; then + echo $lib + return + fi + done } { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 @@ -19418,6 +19426,7 @@ _ACEOF fi } + CheckNativeClient() { cat confdefs.h - <<_ACEOF >conftest.$ac_ext diff --git a/configure.in b/configure.in index 7f12b12c3..8752e168a 100644 --- a/configure.in +++ b/configure.in @@ -156,6 +156,14 @@ find_lib() return fi done + # Try again, this time allowing more than one version digit after the .so + for path in $env_lib_path $gcc_bin_path $gcc_lib_path $host_lib_path; do + lib=[`ls -- $path/$1 2>/dev/null | sed -e 's,.*/,,' | sort | tail -1`] + if test x$lib != x; then + echo $lib + return + fi + done } dnl Check for compiler characteristics