diff --git a/src/configure b/src/configure index 0967440809476ee16434683bb5230fb64c54f738..964d56694478e880877a3b701f29a32fecb96158 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}