[MOAB-dev] r4416 - MOAB/branches/Version4.0/config

kraftche at cae.wisc.edu kraftche at cae.wisc.edu
Tue Jan 4 12:40:49 CST 2011


Author: kraftche
Date: 2011-01-04 12:40:49 -0600 (Tue, 04 Jan 2011)
New Revision: 4416

Modified:
   MOAB/branches/Version4.0/config/netcdf.m4
Log:
netcdf 4.x might also depend on libcurl

Modified: MOAB/branches/Version4.0/config/netcdf.m4
===================================================================
--- MOAB/branches/Version4.0/config/netcdf.m4	2011-01-04 18:31:44 UTC (rev 4415)
+++ MOAB/branches/Version4.0/config/netcdf.m4	2011-01-04 18:40:49 UTC (rev 4416)
@@ -116,11 +116,18 @@
     [AC_MSG_RESULT([yes]); NETCDF_LIBS="-lnetcdf_c++ -lnetcdf"], 
     [AC_MSG_RESULT([no]);
      AC_MSG_CHECKING([for netcdf_c++ library requiring HDF5-high-level])
-     LIBS="$LIBS -lhdf5_hl $HDF5_LIBS"
+     LIBS="$LIBS $HDF5_LIBS -lhdf5_hl -lhdf5"
      AC_TRY_LINK(
            [#include <netcdf.hh>], [NcFile ncf("foo",NcFile::ReadOnly);],
-           [AC_MSG_RESULT([yes]); NETCDF_LIBS="-lnetcdf_c++ -lnetcdf -lhdf5_hl"], 
-           [AC_MSG_RESULT([no]); HAVE_NETCDF=no] )    
+           [AC_MSG_RESULT([yes]); NETCDF_LIBS="-lnetcdf_c++ -lnetcdf -lhdf5_hl -lhdf5"], 
+           [AC_MSG_RESULT([no])
+            AC_MSG_CHECKING([for netcdf_c++ library requiring HDF5-high-level and libcurl])
+            LIBS="$LIBS $HDF5_LIBS -lhdf5_hl -lhdf5 -lcurl"
+            AC_TRY_LINK(
+                  [#include <netcdf.hh>], [NcFile ncf("foo",NcFile::ReadOnly);],
+                  [AC_MSG_RESULT([yes]); NETCDF_LIBS="-lnetcdf_c++ -lnetcdf -lhdf5_hl -lhdf5 -lcurl"], 
+                  [AC_MSG_RESULT([no]); HAVE_NETCDF=no] )
+          ])
      ])
   LIBS="$old_LIBS"
   AC_LANG_POP([C++])



























More information about the moab-dev mailing list