diff options
author | Fabrice Fontaine <fontaine.fabrice@gmail.com> | 2021-04-05 01:13:29 +0200 |
---|---|---|
committer | Bruno Haible <bruno@clisp.org> | 2021-04-05 01:13:29 +0200 |
commit | 7622a0a4c6309f9cecaeef72569da687eb5b6b93 (patch) | |
tree | db7ee54a345e277b09deb84d1688ce543ecf5f3c /m4 | |
parent | 8676a431641bef9f5470b31054934f4dcba156b4 (diff) | |
download | gnulib-7622a0a4c6309f9cecaeef72569da687eb5b6b93.tar.gz |
pthread-cond: Fix wrong configure results when <pthread.h> is absent.
* m4/pthread-cond.m4 (gl_PTHREAD_COND): When <pthread.h> does not exist,
set HAVE_PTHREAD_COND_* to 0, not to 1.
Diffstat (limited to 'm4')
-rw-r--r-- | m4/pthread-cond.m4 | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/m4/pthread-cond.m4 b/m4/pthread-cond.m4 index 75e37c6138..8922a8a243 100644 --- a/m4/pthread-cond.m4 +++ b/m4/pthread-cond.m4 @@ -1,4 +1,4 @@ -# pthread-cond.m4 serial 1 +# pthread-cond.m4 serial 2 dnl Copyright (C) 2019-2021 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, @@ -23,14 +23,14 @@ AC_DEFUN([gl_PTHREAD_COND], REPLACE_PTHREAD_COND_DESTROY=1 else if test $HAVE_PTHREAD_H = 0; then - HAVE_PTHREAD_COND_INIT=1 - HAVE_PTHREAD_CONDATTR_INIT=1 - HAVE_PTHREAD_CONDATTR_DESTROY=1 - HAVE_PTHREAD_COND_WAIT=1 - HAVE_PTHREAD_COND_TIMEDWAIT=1 - HAVE_PTHREAD_COND_SIGNAL=1 - HAVE_PTHREAD_COND_BROADCAST=1 - HAVE_PTHREAD_COND_DESTROY=1 + HAVE_PTHREAD_COND_INIT=0 + HAVE_PTHREAD_CONDATTR_INIT=0 + HAVE_PTHREAD_CONDATTR_DESTROY=0 + HAVE_PTHREAD_COND_WAIT=0 + HAVE_PTHREAD_COND_TIMEDWAIT=0 + HAVE_PTHREAD_COND_SIGNAL=0 + HAVE_PTHREAD_COND_BROADCAST=0 + HAVE_PTHREAD_COND_DESTROY=0 fi fi ]) |