Commit | Line | Data |
---|---|---|
6db30f83 PE |
1 | # pthread_sigmask.m4 serial 2 |
2 | dnl Copyright (C) 2011 Free Software Foundation, Inc. | |
3 | dnl This file is free software; the Free Software Foundation | |
4 | dnl gives unlimited permission to copy and/or distribute it, | |
5 | dnl with or without modifications, as long as this notice is preserved. | |
6 | ||
7 | AC_DEFUN([gl_PTHREAD_SIGMASK], | |
8 | [ | |
9 | m4_ifdef([gl_THREADLIB], [ | |
10 | AC_REQUIRE([gl_THREADLIB]) | |
11 | if test "$gl_threads_api" = posix; then | |
12 | gl_save_LIBS="$LIBS" | |
13 | LIBS="$LIBS $LIBMULTITHREAD" | |
14 | AC_CHECK_FUNCS([pthread_sigmask]) | |
15 | LIBS="$gl_save_LIBS" | |
16 | else | |
17 | ac_cv_func_pthread_sigmask=no | |
18 | fi | |
19 | ], [ | |
20 | AC_CHECK_FUNCS_ONCE([pthread_sigmask]) | |
21 | ]) | |
22 | ||
23 | if test $ac_cv_func_pthread_sigmask = no; then | |
24 | REPLACE_PTHREAD_SIGMASK=1 | |
25 | fi | |
26 | ]) |