libgcrypt: update to 1.4.6
[openembedded.git] / recipes / mysql / mysql-5.1.40-have_atomic_pthread_t.patch
1 diff -Naur mysql-5.1.40-old/storage/innodb_plugin/plug.in mysql-5.1.40-new/storage/innodb_plugin/plug.in
2 --- mysql-5.1.40-old/storage/innodb_plugin/plug.in      2009-10-06 10:50:23.000000000 -0700
3 +++ mysql-5.1.40-new/storage/innodb_plugin/plug.in      2009-10-21 16:52:45.000000000 -0700
4 @@ -63,8 +63,9 @@
5                 ;;
6    esac
7    AC_SUBST(INNODB_DYNAMIC_CFLAGS)
8 -  AC_MSG_CHECKING(whether pthread_t can be used by GCC atomic builtins)
9 -  AC_TRY_RUN(
10 +  AC_CACHE_CHECK([whether pthread_t can be used by GCC atomic builtins],
11 +                 [ac_cv_have_decl_HAVE_ATOMIC_PTHREAD_T],
12 +  [AC_TRY_RUN(
13      [
14        #include <pthread.h>
15        #include <string.h>
16 @@ -84,14 +85,18 @@
17        }
18      ],
19      [
20 -      AC_DEFINE([HAVE_ATOMIC_PTHREAD_T], [1],
21 -                [pthread_t can be used by GCC atomic builtins])
22        AC_MSG_RESULT(yes)
23 +      ac_cv_have_decl_HAVE_ATOMIC_PTHREAD_T=yes
24      ],
25      [
26        AC_MSG_RESULT(no)
27 +      ac_cv_have_decl_HAVE_ATOMIC_PTHREAD_T=no
28      ]
29 -    )
30 +    )])
31 +    if test "x$ac_cv_have_decl_HAVE_ATOMIC_PTHREAD"= "xyes" ; then
32 +      AC_DEFINE([HAVE_ATOMIC_PTHREAD_T], [1],
33 +                [pthread_t can be used by GCC atomic builtins])
34 +    fi
35  
36    # Try using solaris atomics on SunOS if GCC atomics are not available
37    AC_CHECK_DECLS(