use `readlink -f` if it works
authorMike Frysinger <vapier@gentoo.org>
Mon, 24 Sep 2012 00:16:54 +0000 (20:16 -0400)
committerMike Frysinger <vapier@gentoo.org>
Mon, 24 Sep 2012 00:16:54 +0000 (20:16 -0400)
commitca46b021359ffa13a808f99dd635a6958b369be5
tree1ac6c674401d35e5cf3b60b35a359c53f2d69126
parenta8b9e099d08e72c10046639a15c3c7c02045c4da
use `readlink -f` if it works

Rather than always re-implementing `readlink -f` in shell, probe the host
tool first to see if it works.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
bin/misc-functions.sh