[MOAB-dev] r2469 - MOAB/trunk/m4
kraftche at mcs.anl.gov
kraftche at mcs.anl.gov
Thu Dec 4 13:29:46 CST 2008
Author: kraftche
Date: 2008-12-04 13:29:46 -0600 (Thu, 04 Dec 2008)
New Revision: 2469
Modified:
MOAB/trunk/m4/hdf5.m4
Log:
Fix bug reported by Mark Miller. Work around m4 wierdness (inserting
a pair of single quotes for some reason I don't understand.)
Modified: MOAB/trunk/m4/hdf5.m4
===================================================================
--- MOAB/trunk/m4/hdf5.m4 2008-12-04 19:02:10 UTC (rev 2468)
+++ MOAB/trunk/m4/hdf5.m4 2008-12-04 19:29:46 UTC (rev 2469)
@@ -138,22 +138,23 @@
HAVE_LIB_HDF5=no
AC_CHECK_LIB( [$HDF5_LIBNAME], [H5Fopen], [HAVE_LIB_HDF5=yes] )
+ cv_name="ac_cv_lib_${HDF5_LIBNAME}_H5Fopen"
if test $HAVE_LIB_HDF5 = no; then
if test $HAVE_ZLIB = yes; then
- unset ac_cv_lib_${HDF5_LIBNAME}_H5Fopen
+ unset '$cv_name'
AC_CHECK_LIB( [$HDF5_LIBNAME], [H5Fopen], [HAVE_LIB_HDF5=yes; HDF5_LIBS="-lz $HDF5_LIBS"], [], [-lz] )
fi
fi
if test $HAVE_LIB_HDF5 = no; then
if test $HAVE_SZIP = yes; then
- unset ac_cv_lib_${HDF5_LIBNAME}_H5Fopen
+ unset '$cv_name'
AC_CHECK_LIB( [$HDF5_LIBNAME], [H5Fopen], [HAVE_LIB_HDF5=yes; HDF5_LIBS="-lsz $HDF5_LIBS"], [], [-lsz] )
fi
fi
if test $HAVE_LIB_HDF5 = no; then
if test $HAVE_SZIP = yes; then
if test $HAVE_ZLIB = yes; then
- unset ac_cv_lib_${HDF5_LIBNAME}_H5Fopen
+ unset '$cv_name'
AC_CHECK_LIB( [$HDF5_LIBNAME], [H5Fopen], [HAVE_LIB_HDF5=yes; HDF5_LIBS="-lsz -lz $HDF5_LIBS"], [], [-lz -lsz] )
fi
fi
More information about the moab-dev
mailing list