This script intends to install libaec together with HDF5. For a separate installation read more here.
Put this script in the directory, where the libaec-tar file is unpacked.
...
export COMPILER=intel.22
export CC=mpicc
export CXX=mpicpc
export F77=mpifort
export FC=mpifort
export COMPOPT="-fPIC -O3 -xHost -qopt-zmm-usage=high -march=skylake-avx512 -mcmodel=medium -ipo fargument-fnonoalias-alias global -align -fp-model precise -shared-intel"
#export I_MPI_HYDRA_TOPOLIB=ipl
#export I_MPI_HYDRA_BRANCH_COUNT=-1
mkdir export BUILDDIR=build_aec_$COMPILER
cd build_aec_$COMPILERmkdir $BUILDDIR
cd $BUILDDIR
parentdir="$(dirname "$(pwd)")"
export BUILDDIR=$parentdir
echo "building in "$BUILDDIR
...