1# yield.m4 serial 4 2dnl Copyright (C) 2005-2020 Free Software Foundation, Inc. 3dnl This file is free software; the Free Software Foundation 4dnl gives unlimited permission to copy and/or distribute it, 5dnl with or without modifications, as long as this notice is preserved. 6 7AC_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]) 19