Fix path lookup stuff once more
authorWouter Verhelst <w@uter.be>
Wed, 4 Apr 2018 12:31:54 +0000 (14:31 +0200)
committerWouter Verhelst <w@uter.be>
Wed, 4 Apr 2018 12:31:54 +0000 (14:31 +0200)
commit6a2f23915ac3b585d706fd0b7df505b7e47ba9b4
tree2716781a7a1699614c5a36b05bd6118bd0085803
parent640dc2d4ee2d8ff4820ed84f128132b5a8efc093
Fix path lookup stuff once more

Sigh.

realpath is "portable", except not implemented on older versions of
coreutils, including the one in Ubuntu Trusty :-(

So, default to using realpath (which has the advantage of not requiring
options anywhere), and fall back to readlink -f if that doesn't exist in
our path.

If that also fails, then the test suite will fail, but have a nice
"readlink: -f: invalid option" or some such all over it, pointing to
what the likely culprit is.
tests/run/simple_test