From ae85aae6e5177491fc4481a45764388f6234a56f Mon Sep 17 00:00:00 2001 From: Brian Barrett Date: Tue, 28 Mar 2006 13:55:39 +0000 Subject: [PATCH] * add some debugging if conftestval the file doesn't exist * Try fclose()ing the file to see if that helps with the errors reported with Absoft 8.2 This commit was SVN r9439. --- config/f77_get_sizeof.m4 | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/config/f77_get_sizeof.m4 b/config/f77_get_sizeof.m4 index eedd851342..ee966503c8 100644 --- a/config/f77_get_sizeof.m4 +++ b/config/f77_get_sizeof.m4 @@ -53,6 +53,7 @@ void $ompi_ac_size_fn(char *a, char *b) FILE *f=fopen("conftestval", "w"); if (!f) exit(1); fprintf(f, "%d\n", diff); + fclose(f); } #ifdef __cplusplus } @@ -70,7 +71,10 @@ EOF AS_IF([test "$cross_compiling" = "yes"], [AC_MSG_ERROR([Can not determine size of $1 when cross-compiling])], [OMPI_LOG_COMMAND([./conftest], - [AS_VAR_SET(type_var, [`cat conftestval`])], + [AS_IF([test -f conftestval], + [AS_VAR_SET(type_var, [`cat conftestval`])], + [OMPI_LOG_MSG([conftestval not found.], 1) + AC_MSG_ERROR([Could not determine size of $1])])], [AC_MSG_ERROR([Could not determine size of $1])])]) unset happy ompi_conftest_h