Mike Hearn mike@navi.cx writes:
+dnl This is used for binary relocatability +if echo $libdir | grep '^${exec_prefix}' >/dev/null; then
- RPATH="-Wl,-rpath,'$${ORIGIN}/..'`echo $libdir | sed 's/${exec_prefix}//'`"
+fi
This is still making assumptions about the contents of bindir and libdir. What you need is a generic way to find a relative path from any directory to any other. Also this needs to be done at make time, not in configure.