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
7 AC_SUBST(INNODB_DYNAMIC_CFLAGS)
8 - AC_MSG_CHECKING(whether pthread_t can be used by GCC atomic builtins)
10 + AC_CACHE_CHECK([whether pthread_t can be used by GCC atomic builtins],
11 + [ac_cv_have_decl_HAVE_ATOMIC_PTHREAD_T],
20 - AC_DEFINE([HAVE_ATOMIC_PTHREAD_T], [1],
21 - [pthread_t can be used by GCC atomic builtins])
23 + ac_cv_have_decl_HAVE_ATOMIC_PTHREAD_T=yes
27 + ac_cv_have_decl_HAVE_ATOMIC_PTHREAD_T=no
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])
36 # Try using solaris atomics on SunOS if GCC atomics are not available