libstdc++: Add configure checks for semaphores
This moves the checks for POSIX semaphores to configure time. As well as requiring <semaphore.h> and SEM_VALUE_MAX, we also require the sem_timedwait function. That was only optional in POSIX 2001 (and is absent on Darwin). libstdc++-v3/ChangeLog: * acinclude.m4 (GLIBCXX_CHECK_GTHREADS): Check for * config.h.in: Regenerate. * configure: Regenerate. * include/bits/semaphore_base.h (_GLIBCXX_HAVE_POSIX_SEMAPHORE): Check autoconf macro instead of defining it here.
Showing
- libstdc++-v3/acinclude.m4 37 additions, 0 deletionslibstdc++-v3/acinclude.m4
- libstdc++-v3/config.h.in 4 additions, 0 deletionslibstdc++-v3/config.h.in
- libstdc++-v3/configure 58 additions, 0 deletionslibstdc++-v3/configure
- libstdc++-v3/include/bits/semaphore_base.h 2 additions, 4 deletionslibstdc++-v3/include/bits/semaphore_base.h
Loading
Please register or sign in to comment