From 6fd5cd08b6d9f21f318938356276979ea3a9b75f Mon Sep 17 00:00:00 2001 From: Anthony Scemama Date: Fri, 1 Jul 2022 11:11:20 +0200 Subject: [PATCH] Added trexio installation in configure --- configure | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/configure b/configure index 5c38b9f2..7dd91bf3 100755 --- a/configure +++ b/configure @@ -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."