From b2015d6993abc3931a042ab285342372e501b7d0 Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Fri, 7 Jun 2013 21:47:23 -0700 Subject: [PATCH] Improved find_lib, gets the latest version of libpng, etc. --- configure.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure.in b/configure.in index e90ff7b6c..25668e3fd 100644 --- a/configure.in +++ b/configure.in @@ -119,7 +119,7 @@ find_lib() host_lib_path="/usr/$base_libdir /usr/local/$base_libdir" fi for path in $gcc_bin_path $gcc_lib_path $env_lib_path $host_lib_path; do - lib=[`ls -- $path/$1 2>/dev/null | sort | sed 's/.*\/\(.*\)/\1/; q'`] + lib=[`ls -- $path/$1 2>/dev/null | sed -e '/\.so\..*\./d' -e 's,.*/,,' | sort | tail -1`] if test x$lib != x; then echo $lib return