Skip to content
  • Bruno Haible's avatar
    threadlib: Fix LIBMULTITHREAD on FreeBSD with --enable-threads=isoc. · 15a10c15
    Bruno Haible authored
    * m4/threadlib.m4 (gl_STDTHREADLIB_BODY): New macro (some code moved
    here from m4/threads.m4).
    (gl_THREADLIB_BODY): Don't test whether mtx_lock and cnd_timedwait exist
    in libc. Instead, rely on gl_STDTHREADLIB_BODY.
    (gl_STDTHREADLIB): New macro.
    * m4/threads.m4 (gl_THREADS_H): Require gl_STDTHREADLIB instead of
    gl_THREADLIB_BODY and gl_YIELD. Don't set LIBSTDTHREAD here.
    15a10c15