Check for more atomic operations

Original commit message from CVS:
Check for more atomic operations
This commit is contained in:
Wim Taymans 2001-01-12 20:44:16 +00:00
parent 06044e1c17
commit 0e6eff633c

View file

@ -248,7 +248,7 @@ dnl Do a compile to check that it has atomic_set (eg, linux 2.0 didn't)
if test x$HAVE_ATOMIC_H = xyes; then
AC_TRY_RUN([
#include "asm/atomic.h"
main() { atomic_t t; atomic_set(&t,0); return 0;}
main() { atomic_t t; atomic_set(&t,0); atomic_inc(&t); atomic_add(1,&t);return 0;}
],, [
# Not successful
if test x$HAVE_ATOMIC_H = xyes; then