X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=m4%2Fthread.m4;h=49a4bc772fefab2ccaffd1e68deaceb08babc820;hb=645581732c2d8066282b32d686edd67e18c52ee2;hp=df7ffd03a60e1a130d02e2656a4353f2c7fb2122;hpb=cf3c40457f0b0050321f2df638fa5478e2bac5b1;p=gnulib.git diff --git a/m4/thread.m4 b/m4/thread.m4 index df7ffd03a..49a4bc772 100644 --- a/m4/thread.m4 +++ b/m4/thread.m4 @@ -1,5 +1,5 @@ -# thread.m4 serial 1 -dnl Copyright (C) 2008 Free Software Foundation, Inc. +# thread.m4 serial 2 +dnl Copyright (C) 2008-2011 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. @@ -10,6 +10,9 @@ AC_DEFUN([gl_THREAD], AC_REQUIRE([AC_C_INLINE]) if test $gl_threads_api = posix; then + gl_save_LIBS="$LIBS" + LIBS="$LIBS $LIBMULTITHREAD" AC_CHECK_FUNCS([pthread_atfork]) + LIBS="$gl_save_LIBS" fi ])