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 -qopt-zmm-usage=high -march=skylake-avx512 -mcmodel=medium -fargument-fnonoalias-alias global -align -fp-model precise -shared-intel"
...