--- configure.orig	2008-08-26 14:48:20.000000000 +0400
+++ configure	2008-08-26 14:48:36.000000000 +0400
@@ -21689,6 +21689,7 @@
 __sync_lock_test_and_set(&l,1);
   __sync_lock_release(&l);
   __sync_add_and_fetch(&l,1);
+  __sync_bool_compare_and_swap(&l,&l,1);
   return 0;
   ;
   return 0;
