Test for directory existence before getting canonical path

This commit is contained in:
Roland Kaufmann 2013-01-23 01:08:58 +01:00
parent b2569225cd
commit e951358d0b

2
configure vendored
View File

@ -91,7 +91,7 @@ while getopts -- ":-:" optchar; do
pkgloc=${OPTARG#*=}
# expand to full path since CMake changes to source directory (!)
# this also normalize the path name wrt. not having a trailing slash
pkgloc=$(sh -c "cd \"${pkgloc}\"; pwd")
pkgloc=$(test -d "${pkgloc}" && sh -c "cd \"${pkgloc}\"; pwd")
# special aliases
case "${pkgname}" in
umfpack)