Fixing as-needed issue http://bugs.gentoo.org/show_bug.cgi?id=271509 --- m4/acx_pthread.m4 +++ m4/acx_pthread.m4 @@ -278,7 +278,8 @@ fi fi - if test x"$done" = xno; then + if test x"$done" = xyes; then + done="no" AC_MSG_CHECKING([whether -pthread is sufficient with -shared]) AC_TRY_LINK([#include ], [pthread_t th; pthread_join(th, 0); --- gtest/m4/acx_pthread.m4 +++ gtest/m4/acx_pthread.m4 @@ -278,7 +278,8 @@ fi fi - if test x"$done" = xno; then + if test x"$done" = xyes; then + done="no" AC_MSG_CHECKING([whether -pthread is sufficient with -shared]) AC_TRY_LINK([#include ], [pthread_t th; pthread_join(th, 0);