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,16 +114,30 @@ if [ -d $destination_path ]; then ...@@ -114,16 +114,30 @@ if [ -d $destination_path ]; then
fi fi
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 [ $bCompile == 1 ]; then
if [ ! -n "$PYTHON_INCLUDE" ] ; then if [ ! -n "$PYTHON_INCLUDE" ] ; then
echo "----------------------------------------------------------" echo "----------------------------------------------------------"
echo "WARNING!" echo "WARNING!"
echo "No python path defined. setup.sh may not be able" echo "No python path defined. setup.sh may not be able"
echo "to properly install METRo." echo "to properly install METRo."
echo "Please set environment variable PYTHON_INCLUDE to your" echo "Please set environment variable PYTHON_INCLUDE to your"
echo "python include directory." echo "python include directory."
echo "Ex: export PYTHON_INCLUDE=\"/usr/local/include/python2.3\"" echo "Ex: export PYTHON_INCLUDE=\"/usr/local/include/python2.3\""
echo "----------------------------------------------------------" echo "----------------------------------------------------------"
echo ""
fi fi
cd src/model cd src/model
../../scripts/do_macadam clean ../../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