Skip to content

Commit 6c57315

Browse files
committed
opal_setup_cc.m4: only AC_HEADER_STDC for Autoconf < v2.70
Invoking AC_HEADER_STDC in Autoconf >= v2.70 emits a warning. Signed-off-by: Jeff Squyres <[email protected]>
1 parent e0f3ebd commit 6c57315

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

config/opal_setup_cc.m4

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -211,10 +211,11 @@ AC_DEFUN([OPAL_SETUP_CC],[
211211
AC_DEFINE_UNQUOTED([OPAL_C_HAVE___THREAD], [$opal_prog_cc__thread_available],
212212
[Whether C compiler supports __thread])
213213

214-
215214
# Check for standard headers, needed here because needed before
216-
# the types checks.
217-
AC_HEADER_STDC
215+
# the types checks. This is only necessary for Autoconf < v2.70.
216+
m4_version_prereq([2.70],
217+
[],
218+
[AC_HEADER_STDC])
218219

219220
# GNU C and autotools are inconsistent about whether this is
220221
# defined so let's make it true everywhere for now... However, IBM

0 commit comments

Comments
 (0)