diff options
-rw-r--r-- | HDF5.sh | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -144,7 +144,12 @@ if [ -z "${HDF5_DIR}" -o "${HDF5_DIR}" = 'BUILD' ]; then echo "HDF5: Configuring..." cd ${NAME} - ./configure --prefix=${HDF5_DIR} --with-zlib=${ZLIB_DIR} --enable-cxx=${HDF5_ENABLE_CXX} $(if [ -n "${FC}" ]; then echo '' "--enable-fortran=${HDF5_ENABLE_FORTRAN}"; fi) + # Do not build Fortran API if it has been disabled, or if + # there is no Fortran 90 compiler. + # Do not build C++ API if it has been disabled. + # Do not build shared library executables if we want to link + # statically. + ./configure --prefix=${HDF5_DIR} --with-zlib=${ZLIB_DIR} --enable-cxx=${HDF5_ENABLE_CXX} $(if [ -n "${FC}" ]; then echo '' "--enable-fortran=${HDF5_ENABLE_FORTRAN}"; fi) $(if echo '' "${LDFLAGS}" | grep -q '[-]static'; then echo '' '--disable-shared --enable-static-exec'; fi) echo "HDF5: Building..." ${MAKE} |