From cbe0d26b2dba4aed3c0e6d9d89fc4bacac04d900 Mon Sep 17 00:00:00 2001 From: Gilles Gouaillardet Date: Tue, 13 Jan 2015 16:06:37 +0900 Subject: [PATCH] configury: do test the __STDC_NO_ATOMICS__ macro for libfabric --- opal/mca/common/libfabric/configure.m4 | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/opal/mca/common/libfabric/configure.m4 b/opal/mca/common/libfabric/configure.m4 index d578345195..1d75989ee7 100644 --- a/opal/mca/common/libfabric/configure.m4 +++ b/opal/mca/common/libfabric/configure.m4 @@ -1,6 +1,8 @@ # -*- shell-script -*- # # Copyright (c) 2014 Cisco Systems, Inc. All rights reserved. +# Copyright (c) 2015 Research Organization for Information Science +# and Technology (RIST). All rights reserved. # $COPYRIGHT$ # # Additional copyrights may follow @@ -200,7 +202,7 @@ AC_DEFUN([_OPAL_COMMON_LIBFABRIC_SETUP_LIBFABRIC_EMBEDDED],[ AC_MSG_CHECKING(compiler support for c11 atomics) AC_TRY_LINK([#include ], [#ifdef __STDC_NO_ATOMICS__ - return 1; +#error c11 atomics are not supported #else return 0; #endif