[MOAB-dev] r2118 - MOAB/trunk/m4
kraftche at mcs.anl.gov
kraftche at mcs.anl.gov
Wed Oct 1 15:26:48 CDT 2008
Author: kraftche
Date: 2008-10-01 15:26:48 -0500 (Wed, 01 Oct 2008)
New Revision: 2118
Modified:
MOAB/trunk/m4/netcdf.m4
Log:
o Fix bug where if user did specified --with-netcdf and libnetcdf is found
but libnetcdf_c++ is not, configure aborted with error message.
o Print error and abort if user *did* specify --with-netcdf and we
couldn't find it.
Modified: MOAB/trunk/m4/netcdf.m4
===================================================================
--- MOAB/trunk/m4/netcdf.m4 2008-10-01 18:40:54 UTC (rev 2117)
+++ MOAB/trunk/m4/netcdf.m4 2008-10-01 20:26:48 UTC (rev 2118)
@@ -86,14 +86,18 @@
[#include <netcdf.hh>], [NcFile ncf("foo",NcFile::ReadOnly);],
[AC_MSG_RESULT([yes])],
[AC_MSG_RESULT([no]);
- AC_MSG_ERROR([NetCDF C++ API not found])
+ AC_MSG_WARN([NetCDF C++ API not found])
HAVE_NETCDF=no] )
LIBS="$old_LIBS"
AC_LANG_RESTORE
CPPFLAGS="$old_CPPFLAGS"
LDFLAGS="$old_LDFLAGS"
if test "x$HAVE_NETCDF" = "xno"; then
- AC_MSG_WARN("NetCDF support disabled")
+ if test "x$NETCDF_ARG" != "x"; then
+ AC_MSG_ERROR("NetCDF not found or not working")
+ else
+ AC_MSG_WARN("NetCDF support disabled")
+ fi
NETCDF_CPPFLAGS=
NETCDF_LDFLAGS=
fi
More information about the moab-dev
mailing list