From d0836dbae67ad0ea3bce20c05e115ca45beb1f08 Mon Sep 17 00:00:00 2001 From: Quentin Rodier <quentin.rodier@meteo.fr> Date: Mon, 8 Jan 2024 15:16:29 +0100 Subject: [PATCH] Quentin 08/01/2024: handle Ubuntu 20 and 22 presents at CNRM --- src/configure | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/src/configure b/src/configure index 096744080..964d56694 100755 --- a/src/configure +++ b/src/configure @@ -484,11 +484,23 @@ export SPLL=spll_new export VER_MPI=${VER_MPI:-MPIAUTO} export OPTLEVEL=${OPTLEVEL:-DEBUG} export MVWORK=${MVWORK:-NO} - export VER_CDF=${VER_CDF:-CDFCTI} export NEED_TOOLS=NO + # Ubuntu version + case "$(lsb_release -sr)" in + 20.04) + export VER_CDF=${VER_CDF:-CDFCTI} + export MNHENV=${MNHENV:-" +export SPLL=spll_new +"} + ;; + 22.04) + export VER_CDF=${VER_CDF:-CDFAUTO} export MNHENV=${MNHENV:-" +export PATH=/opt/gcc-9.4.0/bin:\$PATH export SPLL=spll_new "} + ;; + esac ;; 'Linux nuwa'*) export ARCH=${ARCH:-LXifort} -- GitLab