[MOAB-dev] r1800 - MOAB/trunk/m4
kraftche at mcs.anl.gov
kraftche at mcs.anl.gov
Fri May 9 09:39:47 CDT 2008
Author: kraftche
Date: 2008-05-09 09:39:47 -0500 (Fri, 09 May 2008)
New Revision: 1800
Modified:
MOAB/trunk/m4/hdf5.m4
Log:
set correct LDFLAGS when checking for szip and libz for hdf5
Modified: MOAB/trunk/m4/hdf5.m4
===================================================================
--- MOAB/trunk/m4/hdf5.m4 2008-05-07 19:18:58 UTC (rev 1799)
+++ MOAB/trunk/m4/hdf5.m4 2008-05-09 14:39:47 UTC (rev 1800)
@@ -26,8 +26,11 @@
esac
HAVE_ZLIB=no
if test "x$WITH_ZLIB" != "xno"; then
+ old_LDFLAGS="$LIBS"
+ LDFLAGS="$LDFLAGS $HDF5_LDFLAGS"
AC_CHECK_LIB([z],[deflate],[HAVE_ZLIB=yes],
[if test "x$WITH_ZLIB" != "x"; then AC_MSG_ERROR([Could not find zlib]); fi])
+ LDFLAGS="$old_LDFLAGS"
fi
# CLI option for linking szip
@@ -48,8 +51,11 @@
esac
HAVE_SZIP=no
if test "x$WITH_SZIP" != "xno"; then
+ old_LDFLAGS="$LDFLAGS"
+ LDFLAGS="$LDFLAGS $HDF5_LDFLAGS"
AC_CHECK_LIB([sz],[SZ_Decompress],[HAVE_SZIP=yes],
[if test "x$WITH_SZIP" != "x"; then AC_MSG_ERROR([Could not find libsz]); fi])
+ LDFLAGS="$old_LDFLAGS"
fi
# CLI option for extra HDF5 link flags
More information about the moab-dev
mailing list