Make sure that custom openssl gets selected

Symlinks are now resolved (when readlink -f is available)
This commit is contained in:
Peter Mosmans 2014-11-14 10:49:16 +11:00
parent 818bf29b02
commit 558bf7c9e2
1 changed files with 4 additions and 1 deletions

View File

@ -10,7 +10,10 @@
DOBENCHMARK=0
BENCHMARKITER=30
OPENSSLBIN="$(dirname $0)/openssl"
REALPATH=$(dirname $0)
# make sure this doesn't error out when readlink -f isn't available (OSX)
readlink -f $0 &>/dev/null && REALPATH=$(dirname $(readlink -f $0))
OPENSSLBIN="${REALPATH}/openssl"
# test that timeout or gtimeout (darwin) are present
TIMEOUTBIN="$(which timeout)"