|
Packit Service |
4684c1 |
# thread.m4 serial 3
|
|
Packit Service |
4684c1 |
dnl Copyright (C) 2008-2020 Free Software Foundation, Inc.
|
|
Packit Service |
4684c1 |
dnl This file is free software; the Free Software Foundation
|
|
Packit Service |
4684c1 |
dnl gives unlimited permission to copy and/or distribute it,
|
|
Packit Service |
4684c1 |
dnl with or without modifications, as long as this notice is preserved.
|
|
Packit Service |
4684c1 |
|
|
Packit Service |
4684c1 |
AC_DEFUN([gl_THREAD],
|
|
Packit Service |
4684c1 |
[
|
|
Packit Service |
4684c1 |
AC_REQUIRE([gl_THREADLIB])
|
|
Packit Service |
4684c1 |
|
|
Packit Service |
4684c1 |
if test $gl_threads_api = posix; then
|
|
Packit Service |
4684c1 |
gl_save_LIBS="$LIBS"
|
|
Packit Service |
4684c1 |
LIBS="$LIBS $LIBMULTITHREAD"
|
|
Packit Service |
4684c1 |
AC_CHECK_FUNCS([pthread_atfork])
|
|
Packit Service |
4684c1 |
LIBS="$gl_save_LIBS"
|
|
Packit Service |
4684c1 |
fi
|
|
Packit Service |
4684c1 |
])
|