This patch adds a generic check for ld.so in config.libpath.  It should detect
all Glibc-based systems (and possibly others) without need to maintain a
hardcoded list.

-- 
Robert Millan

  The DRM opt-in fallacy: "Your data belongs to us. We will decide when (and
  how) you may access your data; but nobody's threatening your freedom: we
  still allow you to remove your data and not access it at all."
2009-01-04  Robert Millan  <r...@aybabtu.com>

	* 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=/' <<EOF

Reply via email to