@@ -170,7 +170,7 @@ AC_DEFUN([OPAL_SETUP_CC],[
170170 AC_REQUIRE([_OPAL_PROG_CC])
171171 AC_REQUIRE([AM_PROG_CC_C_O])
172172
173- OPAL_VAR_SCOPE_PUSH([opal_prog_cc_c11_helper__Thread_local_available opal_prog_cc_c11_helper_atomic_var_available opal_prog_cc_c11_helper__Atomic_available opal_prog_cc_c11_helper__static_assert_available opal_prog_cc_c11_helper__Generic_available opal_prog_cc__thread_available opal_prog_cc_c11_helper_atomic_fetch_xor_explicit_available opal_prog_cc_c11_helper_proper__Atomic_support_in_atomics])
173+ OPAL_VAR_SCOPE_PUSH([opal_prog_cc_c11_helper__Thread_local_available opal_prog_cc_c11_helper_atomic_var_available opal_prog_cc_c11_helper__Atomic_available opal_prog_cc_c11_helper__static_assert_available opal_prog_cc_c11_helper__Generic_available opal_prog_cc_c11_helper_atomic_fetch_xor_explicit_available opal_prog_cc_c11_helper_proper__Atomic_support_in_atomics])
174174
175175 OPAL_PROG_CC_C11
176176
@@ -179,33 +179,11 @@ AC_DEFUN([OPAL_SETUP_CC],[
179179 OPAL_C_COMPILER_VENDOR([opal_c_vendor])
180180
181181 if test $opal_cv_c11_supported = no ; then
182- # It is not currently an error if C11 support is not available. Uncomment the
183- # following lines and update the warning when we require a C11 compiler.
184- # AC_MSG_WARNING([Open MPI requires a C11 (or newer) compiler])
185- # AC_MSG_ERROR([Aborting.])
186- # From Open MPI 1.7 on we require a C99 compliant compiler
187- dnl with autoconf 2.70 AC_PROG_CC makes AC_PROG_CC_C99 obsolete
188- m4_version_prereq([2.70],
189- [],
190- [AC_PROG_CC_C99])
191- # The result of AC_PROG_CC_C99 is stored in ac_cv_prog_cc_c99
192- if test " x$ac_cv_prog_cc_c99 " = xno ; then
193- AC_MSG_WARN([Open MPI requires a C99 (or newer) compiler. C11 is recommended.])
194- AC_MSG_ERROR([Aborting.])
195- fi
196-
197- # Get the correct result for C11 support flags now that the compiler flags have
198- # changed
199- OPAL_PROG_CC_C11_HELPER([], [], [])
182+ # C11 is required
183+ AC_MSG_WARN([Open MPI requires a C11 (or newer) compiler. C11 is required.])
184+ AC_MSG_ERROR([Aborting.])
200185 fi
201186
202- # Check if compiler support __thread
203- OPAL_CC_HELPER([if $CC $1 supports __thread], [opal_prog_cc__thread_available],
204- [],[[static __thread int foo = 1; ++foo; ]])
205-
206- OPAL_CC_HELPER([if $CC $1 supports C11 _Thread_local], [opal_prog_cc_c11_helper__Thread_local_available],
207- [],[[static _Thread_local int foo = 1; ++foo; ]])
208-
209187 dnl At this time Open MPI only needs thread local and the atomic convenience types for C11 support. These
210188 dnl will likely be required in the future.
211189 AC_DEFINE_UNQUOTED([OPAL_C_HAVE__THREAD_LOCAL], [$opal_prog_cc_c11_helper__Thread_local_available ],
@@ -223,9 +201,6 @@ AC_DEFUN([OPAL_SETUP_CC],[
223201 AC_DEFINE_UNQUOTED([OPAL_C_HAVE__STATIC_ASSERT], [$opal_prog_cc_c11_helper__static_assert_available ],
224202 [Whether C compiler support _Static_assert keyword])
225203
226- AC_DEFINE_UNQUOTED([OPAL_C_HAVE___THREAD], [$opal_prog_cc__thread_available ],
227- [Whether C compiler supports __thread])
228-
229204 # Check for standard headers, needed here because needed before
230205 # the types checks. This is only necessary for Autoconf < v2.70.
231206 m4_version_prereq([2.70],
0 commit comments