Skip to content

Commit 03eec1e

Browse files
committed
configury: abort when configure'd with --enable-c11-atomics but C11 atomics are not supported
Refs. #6053 Signed-off-by: Gilles Gouaillardet <gilles@rist.or.jp>
1 parent 07970f1 commit 03eec1e

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

config/opal_config_asm.m4

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ dnl Copyright (c) 2004-2005 The Regents of the University of California.
1111
dnl All rights reserved.
1212
dnl Copyright (c) 2008-2018 Cisco Systems, Inc. All rights reserved.
1313
dnl Copyright (c) 2010 Oracle and/or its affiliates. All rights reserved.
14-
dnl Copyright (c) 2015-2017 Research Organization for Information Science
15-
dnl and Technology (RIST). All rights reserved.
14+
dnl Copyright (c) 2015-2018 Research Organization for Information Science
15+
dnl and Technology (RIST). All rights reserved.
1616
dnl Copyright (c) 2014-2018 Los Alamos National Security, LLC. All rights
1717
dnl reserved.
1818
dnl Copyright (c) 2017 Amazon.com, Inc. or its affiliates. All Rights
@@ -1148,6 +1148,9 @@ AC_DEFUN([OPAL_CONFIG_ASM],[
11481148
if test "x$enable_c11_atomics" != "xno" && test "$opal_cv_c11_supported" = "yes" ; then
11491149
opal_cv_asm_builtin="BUILTIN_C11"
11501150
OPAL_CHECK_C11_CSWAP_INT128
1151+
elif test "x$enable_c11_atomics" = "xyes"; then
1152+
AC_MSG_WARN([C11 atomics were requested but are not supported])
1153+
AC_MSG_ERROR([Cannot continue])
11511154
else
11521155
opal_cv_asm_builtin="BUILTIN_NO"
11531156
AS_IF([test "$opal_cv_asm_builtin" = "BUILTIN_NO" && test "$enable_builtin_atomics" = "yes"],

0 commit comments

Comments
 (0)