Skip to content
Snippets Groups Projects
Commit 79286099 authored by Christian Engwer's avatar Christian Engwer
Browse files

don't fail if alugrid not present

[[Imported from SVN: r3555]]
parent 3c94b721
Branches
Tags
No related merge requests found
......@@ -20,11 +20,18 @@ if test x$with_alugrid != x && test x$with_alugrid != xno ; then
AC_MSG_ERROR([You have to provide a directory --with-alugrid=PATH])
fi
if test -d $with_alugrid; then
# expand tilde / other stuff
ALUGRIDROOT=`cd $with_alugrid && pwd`
else
AC_MSG_ERROR([Path $with_alugrid supplied for --with-alugrid does not exist!])
# is --with-alugrid=bla used?
if test "x$with_alugrid" != x ; then
if ! test -d $with_alugrid; then
AC_MSG_WARN([Alugrid directory $with_alugrid does not exist])
else
# expand tilde / other stuff
ALUGRIDROOT=`cd $with_alugrid && pwd`
fi
fi
if test "x$ALUGRIDROOT" = x; then
# use some default value...
ALUGRIDROOT="/usr/local/alugrid"
fi
ALUGRID_LIB_PATH="$ALUGRIDROOT/lib"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment