Skip to content
Snippets Groups Projects
Commit 47a3f4e5 authored by Thomas Jahns's avatar Thomas Jahns :cartwheel:
Browse files

Improve test for netcdf_par.h to also work without wrapper compiler.

parent c173337e
No related branches found
No related tags found
No related merge requests found
......@@ -30933,7 +30933,9 @@ $as_echo "$acx_temp" >&6; }
fi
fi
if test x"$ENABLE_NC4" = xyes; then :
for ac_header in netcdf_par.h
saved_CFLAGS=$CFLAGS
CFLAGS="$CFLAGS $MPI_C_INCLUDE"
for ac_header in netcdf_par.h
do :
ac_fn_c_check_header_mongrel "$LINENO" "netcdf_par.h" "ac_cv_header_netcdf_par_h" "$ac_includes_default"
if test "x$ac_cv_header_netcdf_par_h" = xyes; then :
......@@ -30990,7 +30992,7 @@ $as_echo "$as_me: The supplied netCDF library does not support nc_inq_format_ext
fi
 
fi
CFLAGS=$saved_CFLAGS
fi
 
else
......@@ -258,7 +258,9 @@ dnl test properties of MPI system
[Defined to 1 if NetCDF parallel open supports NC_PNETCDF])])
AC_MSG_RESULT([$acx_temp])])])
AS_IF([test x"$ENABLE_NC4" = xyes],
[AC_CHECK_HEADERS([netcdf_par.h],
[saved_CFLAGS=$CFLAGS
CFLAGS="$CFLAGS $MPI_C_INCLUDE"
AC_CHECK_HEADERS([netcdf_par.h],
[AC_CHECK_DECL([MPI_Bcast],
[HAVE_PARALLEL_NC4=1],
[AC_MSG_WARN([The supplied netCDF library does not support MPI parallel invocations])],
......@@ -279,7 +281,7 @@ dnl test properties of MPI system
[AC_MSG_NOTICE([The supplied netCDF library does not support nc_inq_format_extended.])],
[AC_INCLUDES_DEFAULT
@%:@include <netcdf.h>])])
])
CFLAGS=$saved_CFLAGS])
],
[MPI_LAUNCH="`pwd`/util/serialrun"
AC_SUBST([MPI_LAUNCH])])
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment