From 326f719e01e67c439bc2b62f7dcfbb7974deed66 Mon Sep 17 00:00:00 2001 From: "Peter W. Draper" <p.w.draper@durham.ac.uk> Date: Fri, 24 Apr 2015 17:14:08 +0100 Subject: [PATCH] Avoid WARNING: hdf5.h: accepted by the compiler, rejected by the preprocessor! message. The hdf5 compiler doesn't understand the builtin paths of the mpicc command, so don't check the include path, just the libs Former-commit-id: ee7a02c3721c4a8aa41b0c009d83bc1ebc8c901f --- m4/ax_lib_hdf5.m4 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/m4/ax_lib_hdf5.m4 b/m4/ax_lib_hdf5.m4 index 3174385fc7..82bcd7a97d 100644 --- a/m4/ax_lib_hdf5.m4 +++ b/m4/ax_lib_hdf5.m4 @@ -238,7 +238,7 @@ HDF5 support is being disabled (equivalent to --with-hdf5=no). CPPFLAGS=$HDF5_CPPFLAGS LIBS=$HDF5_LIBS LDFLAGS=$HDF5_LDFLAGS - AC_CHECK_HEADER([hdf5.h], [ac_cv_hadf5_h=yes], [ac_cv_hadf5_h=no]) + AC_CHECK_HEADER([hdf5.h], [ac_cv_hadf5_h=yes], [ac_cv_hadf5_h=no], [AC_INCLUDES_DEFAULT]) AC_CHECK_LIB([hdf5], [H5Fcreate], [ac_cv_libhdf5=yes], [ac_cv_libhdf5=no]) if test "$ac_cv_hadf5_h" = "no" && test "$ac_cv_libhdf5" = "no" ; then -- GitLab