@@ -9,7 +9,7 @@ dnl Copyright (c) 2004-2006 High Performance Computing Center Stuttgart,
99dnl University of Stuttgart. All rights reserved.
1010dnl Copyright (c) 2004-2005 The Regents of the University of California.
1111dnl All rights reserved.
12- dnl Copyright (c) 2008-2018 Cisco Systems, Inc. All rights reserved.
12+ dnl Copyright (c) 2008-2021 Cisco Systems, Inc. All rights reserved.
1313dnl Copyright (c) 2010 Oracle and/or its affiliates. All rights reserved.
1414dnl Copyright (c) 2015-2018 Research Organization for Information Science
1515dnl and Technology (RIST). All rights reserved.
@@ -334,15 +334,15 @@ AC_DEFUN([OPAL_CHECK_GCC_ATOMIC_BUILTINS], [
334334 if test -z "$opal_cv_have___atomic" ; then
335335 AC_MSG_CHECKING ( [ for 32-bit GCC built-in atomics] )
336336
337- AC_TRY_LINK ( [
337+ AC_LINK_IFELSE ( [ AC_LANG_PROGRAM ( [
338338#include <stdint.h>
339339uint32_t tmp, old = 0;
340340uint64_t tmp64, old64 = 0;] , [
341341__atomic_thread_fence(__ATOMIC_SEQ_CST);
342342__atomic_compare_exchange_n(&tmp, &old, 1, 0, __ATOMIC_RELAXED, __ATOMIC_RELAXED);
343343__atomic_add_fetch(&tmp, 1, __ATOMIC_RELAXED);
344344__atomic_compare_exchange_n(&tmp64, &old64, 1, 0, __ATOMIC_RELAXED, __ATOMIC_RELAXED);
345- __atomic_add_fetch(&tmp64, 1, __ATOMIC_RELAXED);] ,
345+ __atomic_add_fetch(&tmp64, 1, __ATOMIC_RELAXED);] ) ] ,
346346 [ opal_cv_have___atomic=yes] ,
347347 [ opal_cv_have___atomic=no] )
348348
@@ -351,11 +351,11 @@ __atomic_add_fetch(&tmp64, 1, __ATOMIC_RELAXED);],
351351 if test $opal_cv_have___atomic = "yes" ; then
352352 AC_MSG_CHECKING ( [ for 64-bit GCC built-in atomics] )
353353
354- AC_TRY_LINK ( [
354+ AC_LINK_IFELSE ( [ AC_LANG_PROGRAM ( [
355355#include <stdint.h>
356356uint64_t tmp64, old64 = 0;] , [
357357__atomic_compare_exchange_n(&tmp64, &old64, 1, 0, __ATOMIC_RELAXED, __ATOMIC_RELAXED);
358- __atomic_add_fetch(&tmp64, 1, __ATOMIC_RELAXED);] ,
358+ __atomic_add_fetch(&tmp64, 1, __ATOMIC_RELAXED);] ) ] ,
359359 [ opal_cv_have___atomic_64=yes] ,
360360 [ opal_cv_have___atomic_64=no] )
361361
@@ -1194,14 +1194,14 @@ AC_DEFUN([OPAL_CONFIG_ASM],[
11941194 AS_IF ( [ test "$opal_cv_asm_arch" = "X86_64" || test "$opal_cv_asm_arch" = "IA32"] ,
11951195 [ AC_MSG_CHECKING ( [ for RDTSCP assembly support] )
11961196 AC_LANG_PUSH ( [ C] )
1197- AC_TRY_RUN ( [ [
1197+ AC_RUN_IFELSE ( [ AC_LANG_PROGRAM ( [ [
11981198int main(int argc, char* argv[ ] )
11991199{
12001200 unsigned int rax, rdx;
12011201 __asm__ __volatile__ ("rdtscp\n": "=a" (rax), "=d" (rdx):: "%rax", "%rdx");
12021202 return 0;
12031203}
1204- ] ] ,
1204+ ] ] ) ] ,
12051205 [ result=1
12061206 AC_MSG_RESULT ( [ yes] ) ] ,
12071207 [ AC_MSG_RESULT ( [ no] ) ] ,
0 commit comments