| 1 |
# yield.m4 serial 4 |
| 2 |
dnl Copyright (C) 2005-2022 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_YIELD], |
| 8 |
[ |
| 9 |
AC_REQUIRE([gl_PTHREADLIB]) |
| 10 |
AC_REQUIRE([gl_THREADLIB]) |
| 11 |
|
| 12 |
if test $gl_threads_api = posix; then |
| 13 |
YIELD_LIB="$LIB_SCHED_YIELD" |
| 14 |
else |
| 15 |
YIELD_LIB= |
| 16 |
fi |
| 17 |
AC_SUBST([YIELD_LIB]) |
| 18 |
]) |