diff options
author | Elliott Sales de Andrade <quantum.analyst@gmail.com> | 2015-09-30 17:28:55 -0400 |
---|---|---|
committer | Elliott Sales de Andrade <quantum.analyst@gmail.com> | 2015-09-30 18:19:08 -0400 |
commit | 4f5fa627030ebbb104b25a7349acce3beadf8b32 (patch) | |
tree | 6eaf1f87bde57da39756f271f217c473d207a722 /m4/ax_lib_hdf5.m4 | |
parent | 5e9ee258a8f60008a476ab7f6f8ac0eba10bfba7 (diff) | |
download | autoconf-archive-4f5fa627030ebbb104b25a7349acce3beadf8b32.tar.gz |
Push C language before testing HDF5 libraries.
The test uses the C compiler wrapper, so tell autoconf that that should
be the current language.
Diffstat (limited to 'm4/ax_lib_hdf5.m4')
-rw-r--r-- | m4/ax_lib_hdf5.m4 | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/m4/ax_lib_hdf5.m4 b/m4/ax_lib_hdf5.m4 index 3174385..fa6bc0b 100644 --- a/m4/ax_lib_hdf5.m4 +++ b/m4/ax_lib_hdf5.m4 @@ -84,7 +84,7 @@ # and this notice are preserved. This file is offered as-is, without any # warranty. -#serial 11 +#serial 12 AC_DEFUN([AX_LIB_HDF5], [ @@ -230,6 +230,7 @@ HDF5 support is being disabled (equivalent to --with-hdf5=no). AC_MSG_RESULT([yes (version $[HDF5_VERSION])]) dnl See if we can compile + AC_LANG_PUSH([C]) ax_lib_hdf5_save_CC=$CC ax_lib_hdf5_save_CPPFLAGS=$CPPFLAGS ax_lib_hdf5_save_LIBS=$LIBS @@ -251,6 +252,7 @@ HDF5 support is being disabled (equivalent to --with-hdf5=no). CPPFLAGS=$ax_lib_hdf5_save_CPPFLAGS LIBS=$ax_lib_hdf5_save_LIBS LDFLAGS=$ax_lib_hdf5_save_LDFLAGS + AC_LANG_POP([C]) AC_MSG_CHECKING([for matching HDF5 Fortran wrapper]) dnl Presume HDF5 Fortran wrapper is just a name variant from H5CC |