[mpich2-commits] r7978 - mpich2/trunk/confdb
chan at mcs.anl.gov
chan at mcs.anl.gov
Wed Feb 16 12:49:10 CST 2011
Author: chan
Date: 2011-02-16 12:49:10 -0600 (Wed, 16 Feb 2011)
New Revision: 7978
Modified:
mpich2/trunk/confdb/aclocal_fc.m4
Log:
added requirement of AC_HEADER_STDC for tests that need it, and remove unnecessary include of standard headers.
Modified: mpich2/trunk/confdb/aclocal_fc.m4
===================================================================
--- mpich2/trunk/confdb/aclocal_fc.m4 2011-02-16 18:40:52 UTC (rev 7977)
+++ mpich2/trunk/confdb/aclocal_fc.m4 2011-02-16 18:49:10 UTC (rev 7978)
@@ -465,6 +465,7 @@
dnl
dnl
AC_DEFUN([PAC_PROG_FC_AND_C_STDIO_LIBS],[
+AC_REQUIRE([AC_HEADER_STDC])
# To simply the code in the cache_check macro, chose the routine name
# first, in case we need it
confname=conf1_
@@ -484,7 +485,9 @@
AC_LANG_PUSH(C)
AC_COMPILE_IFELSE([
AC_LANG_SOURCE([
+#if defined(HAVE_STDIO_H) || defined(STDC_HEADERS)
#include <stdio.h>
+#endif
int $confname( int a )
{ printf( "The answer is %d\n", a ); fflush(stdout); return 0; }
])
@@ -913,8 +916,6 @@
AC_LANG_PUSH([C])
AC_COMPILE_IFELSE([
AC_LANG_SOURCE([
-#include <stdio.h>
-#include "confdefs.h"
#ifdef F77_NAME_UPPER
#define cisize_ CISIZE
#define isize_ ISIZE
More information about the mpich2-commits
mailing list