configure.in
changeset 5069 fd125217f00c
parent 5068 231dbbc3e31c
child 5071 55ff76cdbbb8
     1.1 --- a/configure.in	Fri Jan 21 21:35:43 2011 -0800
     1.2 +++ b/configure.in	Fri Jan 21 21:42:04 2011 -0800
     1.3 @@ -312,6 +312,18 @@
     1.4      if test x$have_gcc_atomics = xyes; then
     1.5          AC_DEFINE(HAVE_GCC_ATOMICS)
     1.6      fi
     1.7 +
     1.8 +    # See if we have the minimum operation needed for GCC atomics
     1.9 +    AC_TRY_LINK([
    1.10 +    ],[
    1.11 +    int a;
    1.12 +    __sync_lock_test_and_set(&a, 1);
    1.13 +    ],[
    1.14 +    have_gcc_sync_lock_test_and_set=yes
    1.15 +    ])
    1.16 +    if test x$have_gcc_sync_lock_test_and_set = xyes; then
    1.17 +        AC_DEFINE(HAVE_GCC_SYNC_LOCK_TEST_AND_SET)
    1.18 +    fi
    1.19  fi
    1.20  
    1.21  # Standard C sources