if [ "$SAGE_LOCAL" = "" ]; then
   echo "SAGE_LOCAL undefined ... exiting";
   echo "Maybe run 'sage -sh'?"
   exit 1
fi

cd src

./configure \
    --prefix="$SAGE_LOCAL"

$MAKE install -j1
if [ $? -ne 0 ]; then
    echo "Error installing tdlib"
    exit 1
fi

