diff options
Diffstat (limited to 'modules/pthread-once')
-rw-r--r-- | modules/pthread-once | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/modules/pthread-once b/modules/pthread-once index c7f28d1aff..3e6ab5f93b 100644 --- a/modules/pthread-once +++ b/modules/pthread-once @@ -11,12 +11,14 @@ windows-once [test $gl_threads_api = windows] configure.ac: gl_PTHREAD_ONCE -if test $HAVE_PTHREAD_ONCE = 0 || test $REPLACE_PTHREAD_ONCE = 1; then - AC_LIBOBJ([pthread-once]) -fi +gl_CONDITIONAL([GL_COND_OBJ_PTHREAD_ONCE], + [test $HAVE_PTHREAD_ONCE = 0 || test $REPLACE_PTHREAD_ONCE = 1]) gl_PTHREAD_MODULE_INDICATOR([pthread-once]) Makefile.am: +if GL_COND_OBJ_PTHREAD_ONCE +lib_SOURCES += pthread-once.c +endif Include: <pthread.h> |