Added trexio installation in configure

This commit is contained in:
Anthony Scemama 2022-07-01 11:11:20 +02:00
parent 069d673e0a
commit 6fd5cd08b6
1 changed files with 19 additions and 1 deletions

20
configure vendored
View File

@ -180,7 +180,7 @@ if [[ "${PACKAGES}.x" != ".x" ]] ; then
fi
if [[ ${PACKAGES} = all ]] ; then
PACKAGES="zlib ninja zeromq f77zmq gmp ocaml docopt resultsFile bats"
PACKAGES="zlib ninja zeromq f77zmq gmp ocaml docopt resultsFile bats trexio"
fi
@ -194,6 +194,18 @@ for PACKAGE in ${PACKAGES} ; do
EOF
elif [[ ${PACKAGE} = trexio ]] ; then
VERSION="2.2.0"
execute << EOF
cd "\${QP_ROOT}"/external
wget https://github.com/TREX-CoE/trexio/releases/download/v${VERSION}/trexio-${VERSION}.tar.gz
tar -zxf trexio-${VERSION}.tar.gz
cd trexio-${VERSION}
./configure --prefix=\${QP_ROOT}
make -j 8 && make -j 8 check && make -j 8 install
EOF
elif [[ ${PACKAGE} = gmp ]] ; then
execute << EOF
@ -301,6 +313,12 @@ if [[ ${NINJA} = $(not_found) ]] ; then
fail
fi
TREXIO=$(find_lib -ltrexio)
if [[ ${TREXIO} = $(not_found) ]] ; then
error "TREXIO (trexio) is not installed."
fail
fi
ZEROMQ=$(find_lib -lzmq)
if [[ ${ZEROMQ} = $(not_found) ]] ; then
error "ZeroMQ (zeromq) is not installed."