[MOAB-dev] r2470 - MOAB/trunk/m4
kraftche at mcs.anl.gov
kraftche at mcs.anl.gov
Thu Dec 4 13:32:30 CST 2008
Author: kraftche
Date: 2008-12-04 13:32:30 -0600 (Thu, 04 Dec 2008)
New Revision: 2470
Modified:
MOAB/trunk/m4/hdf5.m4
Log:
fix wrong order of libraries on link line
Modified: MOAB/trunk/m4/hdf5.m4
===================================================================
--- MOAB/trunk/m4/hdf5.m4 2008-12-04 19:29:46 UTC (rev 2469)
+++ MOAB/trunk/m4/hdf5.m4 2008-12-04 19:32:30 UTC (rev 2470)
@@ -142,20 +142,20 @@
if test $HAVE_LIB_HDF5 = no; then
if test $HAVE_ZLIB = yes; then
unset '$cv_name'
- AC_CHECK_LIB( [$HDF5_LIBNAME], [H5Fopen], [HAVE_LIB_HDF5=yes; HDF5_LIBS="-lz $HDF5_LIBS"], [], [-lz] )
+ AC_CHECK_LIB( [$HDF5_LIBNAME], [H5Fopen], [HAVE_LIB_HDF5=yes; HDF5_LIBS="$HDF5_LIBS -lz"], [], [-lz] )
fi
fi
if test $HAVE_LIB_HDF5 = no; then
if test $HAVE_SZIP = yes; then
unset '$cv_name'
- AC_CHECK_LIB( [$HDF5_LIBNAME], [H5Fopen], [HAVE_LIB_HDF5=yes; HDF5_LIBS="-lsz $HDF5_LIBS"], [], [-lsz] )
+ AC_CHECK_LIB( [$HDF5_LIBNAME], [H5Fopen], [HAVE_LIB_HDF5=yes; HDF5_LIBS="$HDF5_LIBS -lsz"], [], [-lsz] )
fi
fi
if test $HAVE_LIB_HDF5 = no; then
if test $HAVE_SZIP = yes; then
if test $HAVE_ZLIB = yes; then
unset '$cv_name'
- AC_CHECK_LIB( [$HDF5_LIBNAME], [H5Fopen], [HAVE_LIB_HDF5=yes; HDF5_LIBS="-lsz -lz $HDF5_LIBS"], [], [-lz -lsz] )
+ AC_CHECK_LIB( [$HDF5_LIBNAME], [H5Fopen], [HAVE_LIB_HDF5=yes; HDF5_LIBS="$HDF5_LIBS -lsz -lz"], [], [-lz -lsz] )
fi
fi
fi
More information about the moab-dev
mailing list