[MOAB-dev] r2119 - MOAB/trunk/m4

kraftche at mcs.anl.gov kraftche at mcs.anl.gov
Wed Oct 1 15:38:23 CDT 2008


Author: kraftche
Date: 2008-10-01 15:38:23 -0500 (Wed, 01 Oct 2008)
New Revision: 2119

Modified:
   MOAB/trunk/m4/netcdf.m4
Log:
Fix previous checking:  need to be able to distinguish wether or not
--with-netcdf was specified to correctly decide if it is an error that
NetCDF was not found.


Modified: MOAB/trunk/m4/netcdf.m4
===================================================================
--- MOAB/trunk/m4/netcdf.m4	2008-10-01 20:26:48 UTC (rev 2118)
+++ MOAB/trunk/m4/netcdf.m4	2008-10-01 20:38:23 UTC (rev 2119)
@@ -12,7 +12,7 @@
 [NETCDF_ARG=$withval
 DISTCHECK_CONFIGURE_FLAGS="$DISTCHECK_CONFIGURE_FLAGS --with-netcdf=\"${withval}\""
 ]
-, [NETCDF_ARG=yes])
+, [NETCDF_ARG=])
 if test "xno" = "x$NETCDF_ARG"; then
   AC_MSG_RESULT([no])
 else
@@ -37,7 +37,7 @@
   AC_LANG_RESTORE
   
     # if a path is specified, update LIBS and INCLUDES accordingly
-  if test "xyes" != "x$NETCDF_ARG"; then
+  if test "xyes" != "x$NETCDF_ARG" && test "x" != "x$NETCDF_ARG"; then
     if test -d "${NETCDF_ARG}/lib"; then
       NETCDF_LDFLAGS="-L${NETCDF_ARG}/lib"
     elif test -d "${NETCDF_ARG}"; then




More information about the moab-dev mailing list