--- configure.in 2008-08-04 07:22:54.000000000 -0700 +++ configure.in.patched 2008-08-04 07:29:20.952495849 -0700 @@ -1129,6 +1129,8 @@ saved_CPPFLAGS="$CPPFLAGS" saved_LDFLAGS="$LDFLAGS" saved_LIBS="$LIBS" + # define compatibility mode (for builds against HDF5 version 1.8.x) + CPPFLAGS="-D H5_USE_16_API $CPPFLAGS" AC_CHECKING(for hdf5 and supporting libraries) AC_ARG_WITH(hdf5, [ --with-hdf5=INC,LIB Location of HDF5 header and library], @@ -1159,8 +1161,8 @@ notfound="" AC_CHECK_HEADERS(hdf5.h,,notfound="hdf5.h") tmp_LIBS="$LIBS" - LIBS="$hdf5_lib/libhdf5.a $LIBS" - AC_CHECK_FUNC(H5open,AC_DEFINE(HAVE_LIBHDF5),notfound="$notfound libhdf5.a") + LIBS="-lhdf5 $LIBS" + AC_CHECK_FUNC(H5open,AC_DEFINE(HAVE_LIBHDF5),notfound="$notfound libhdf5") if test -n "$notfound"; then LIBS="$tmp_LIBS" fi @@ -1230,9 +1232,9 @@ notfound="" AC_CHECK_HEADERS(hdf5.h,,notfound="hdf5.h") tmp_LIBS="$LIBS" - AC_CHECK_LIB(hdf5,H5open,,notfound="$notfound libhdf5.a") + AC_CHECK_LIB(hdf5,H5open,,notfound="$notfound libhdf5") if test "$notfound" = ""; then - LIBS="$hdf5_lib/libhdf5.a $tmp_LIBS" + LIBS="-lhdf5 $tmp_LIBS" fi if test -n "$notfound"; then CPPFLAGS="$saved_CPPFLAGS"