On mingw, when using win32 threading, the pthread_sigmask replacement
function was not being installed.
* m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Force sigprocmask
replacement when using some threading other than pthread. Fix
logic bug.
Signed-off-by: Eric Blake <eblake@redhat.com>
+2011-07-06 Eric Blake <eblake@redhat.com>
+
+ pthread_sigmask: always replace when not using pthread
+ * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Force sigprocmask
+ replacement when using some threading other than pthread. Fix
+ logic bug.
+
2011-07-06 Bruno Haible <bruno@clisp.org>
Comments.
-# pthread_sigmask.m4 serial 1
+# pthread_sigmask.m4 serial 2
dnl Copyright (C) 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,
LIBS="$LIBS $LIBMULTITHREAD"
AC_CHECK_FUNCS([pthread_sigmask])
LIBS="$gl_save_LIBS"
+ else
+ ac_cv_func_pthread_sigmask=no
fi
], [
AC_CHECK_FUNCS_ONCE([pthread_sigmask])
])
if test $ac_cv_func_pthread_sigmask = no; then
- REPLACE_PTHREAD_SIGMASK=0
+ REPLACE_PTHREAD_SIGMASK=1
fi
])