Skip to content

Commit

Permalink
Improved HDF5 detection.
Browse files Browse the repository at this point in the history
git-svn-id: https://svn.r-project.org/R/trunk@5616 00db46b3-68df-0310-9c12-caf00c1e9a41
  • Loading branch information
hornik committed Aug 25, 1999
1 parent d3fc47d commit a5f8c6d
Show file tree
Hide file tree
Showing 2 changed files with 194 additions and 186 deletions.
6 changes: 5 additions & 1 deletion aclocal.m4
Expand Up @@ -372,7 +372,9 @@ dnl R_LIB_HDF5
dnl
AC_DEFUN(R_LIB_HDF5,
[ AC_CHECK_LIB(hdf5, main,
[ AC_CACHE_CHECK([for HDF5 version >= 1.2],
[ ac_save_LIBS="${LIBS}"
LIBS="-lhdf5 ${LIBS}"
AC_CACHE_CHECK([for HDF5 version >= 1.2],
r_cv_lib_hdf5,
AC_TRY_LINK(
[#include <hdf5.h>],
Expand All @@ -382,6 +384,8 @@ AC_DEFUN(R_LIB_HDF5,
r_cv_lib_hdf5=no))
if test "${r_cv_lib_hdf5}" = yes; then
AC_DEFINE(HAVE_HDF5)
else
LIBS=${ac_save_LIBS}
fi
])
])
Expand Down

0 comments on commit a5f8c6d

Please sign in to comment.