2009-01-04 Robert Millan * build-aux/config.libpath: Add generic check that probes ld.so output. diff --git a/build-aux/config.libpath b/build-aux/config.libpath index c073caa..ed327b4 100755 --- a/build-aux/config.libpath +++ b/build-aux/config.libpath @@ -144,6 +144,13 @@ case $host_os in uts4*) shlibpath_var=LD_LIBRARY_PATH ;; + *) + # Check if ld.so help output talks about LD_LIBRARY_PATH. This should work + # on all Glibc-based systems (and possibly others). + if ldd /bin/ls | sed -ne "s,.*\(/lib[0-9]*/ld[^ ]*\).*,\1,p" | (read i ; $i 2>&1) | grep -q LD_LIBRARY_PATH ; then + shlibpath_var=LD_LIBRARY_PATH + fi + ;; esac LC_ALL=C sed -e 's/^\([a-zA-Z0-9_]*\)=/acl_cv_\1=/' <