Commit 9ae86cdb authored by François Fortin's avatar François Fortin
Browse files

add detection of gfortran library at install time.

if libgfortran is not available, will recompile metro model
parent b586d4d6
......@@ -114,6 +114,19 @@ if [ -d $destination_path ]; then
fi
fi
# check if gfortran library exist on the target system
echo "* Checking for libgfortran.so.1"
if ! locate libgfortran.so.1; then
echo "----------------------------------------------------------"
echo "WARNING!"
echo "Could not find gfortran library on your system."
echo "METRo model will be recompiled."
echo "----------------------------------------------------------"
echo ""
bCompile=1
fi
if [ $bCompile == 1 ]; then
if [ ! -n "$PYTHON_INCLUDE" ] ; then
echo "----------------------------------------------------------"
......@@ -124,6 +137,7 @@ if [ $bCompile == 1 ]; then
echo "python include directory."
echo "Ex: export PYTHON_INCLUDE=\"/usr/local/include/python2.3\""
echo "----------------------------------------------------------"
echo ""
fi
cd src/model
../../scripts/do_macadam clean
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment