diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2011-07-06 10:58:37 -0700 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2011-07-06 10:58:37 -0700 |
commit | 6db30f83447f4667d2ca84c33979f2745ca96bd5 (patch) | |
tree | 9304b3fb361c6aa6f0b3274efbe0fdc379785b68 /m4/pthread_sigmask.m4 | |
parent | 84e04a29b9fddf5c5ede9873aa0356cd13af6f41 (diff) | |
download | emacs-6db30f83447f4667d2ca84c33979f2745ca96bd5.tar.gz |
Add gnulib support for pthread_sigmask.
* Makefile.in (GNULIB_MODULES): Add pthread_sigmask.
(GNULIB_TOOL_FLAGS): Avoid sigprocmask. Emacs does its own
implementation of 'sigprocmask' on Windows, and it assumes
'sigprocmask' on non-Windows hosts, so it doesn't need the
sigprocmask module.
* lib/signal.in.h, m4/pthread_sigmask.m4, m4/signal_h.m4:
New files, automatically imported from gnulib.
* lib/gnulib.mk, m4/gl-comp.m4: Automatically-imported update
due to the above changes.
* .bzrignore: Add lib/signal.h.
Diffstat (limited to 'm4/pthread_sigmask.m4')
-rw-r--r-- | m4/pthread_sigmask.m4 | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/m4/pthread_sigmask.m4 b/m4/pthread_sigmask.m4 new file mode 100644 index 00000000000..d25e2cc3e70 --- /dev/null +++ b/m4/pthread_sigmask.m4 @@ -0,0 +1,26 @@ +# 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, +dnl with or without modifications, as long as this notice is preserved. + +AC_DEFUN([gl_PTHREAD_SIGMASK], +[ + m4_ifdef([gl_THREADLIB], [ + AC_REQUIRE([gl_THREADLIB]) + if test "$gl_threads_api" = posix; then + gl_save_LIBS="$LIBS" + 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=1 + fi +]) |