immutable: Add tests.
[gnulib.git] / m4 / yield.m4
blob97bbf38f194179f9dd6514512d89212381cc8de0
1 # yield.m4 serial 4
2 dnl Copyright (C) 2005-2021 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.
7 AC_DEFUN([gl_YIELD],
9   AC_REQUIRE([gl_PTHREADLIB])
10   AC_REQUIRE([gl_THREADLIB])
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])