Do a second pass to find libraries without a single version digit after the .so This finds libsndio.so.6.1 on Raspberry Pi
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46
diff --git a/configure b/configure
index 86aff9d..103297d 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 7f12b12..8752e16 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