HAVE_GCC_ATOMICS covers the test and set
This commit is contained in:
parent
b3e14d4341
commit
daecbfdc17
3 changed files with 13 additions and 14 deletions
24
configure.in
24
configure.in
|
@ -311,18 +311,18 @@ if test x$enable_gcc_atomics = xyes; then
|
|||
|
||||
if test x$have_gcc_atomics = xyes; then
|
||||
AC_DEFINE(HAVE_GCC_ATOMICS)
|
||||
fi
|
||||
|
||||
# See if we have the minimum operation needed for GCC atomics
|
||||
AC_TRY_LINK([
|
||||
],[
|
||||
int a;
|
||||
__sync_lock_test_and_set(&a, 1);
|
||||
],[
|
||||
have_gcc_sync_lock_test_and_set=yes
|
||||
])
|
||||
if test x$have_gcc_sync_lock_test_and_set = xyes; then
|
||||
AC_DEFINE(HAVE_GCC_SYNC_LOCK_TEST_AND_SET)
|
||||
else
|
||||
# See if we have the minimum operation needed for GCC atomics
|
||||
AC_TRY_LINK([
|
||||
],[
|
||||
int a;
|
||||
__sync_lock_test_and_set(&a, 1);
|
||||
],[
|
||||
have_gcc_sync_lock_test_and_set=yes
|
||||
])
|
||||
if test x$have_gcc_sync_lock_test_and_set = xyes; then
|
||||
AC_DEFINE(HAVE_GCC_SYNC_LOCK_TEST_AND_SET)
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue