diff options
author | NIIBE Yutaka <gniibe@fsij.org> | 2021-12-13 14:22:44 +0900 |
---|---|---|
committer | NIIBE Yutaka <gniibe@fsij.org> | 2021-12-13 14:22:44 +0900 |
commit | f15c06951bb91eb0a4ab54f6707b6e21448945f9 (patch) | |
tree | a73af916badcd50ccd4e3c7d1906d97a186eb8cb /configure.ac | |
parent | e17cf023d894acc3932505f66fbd9c31ce56793f (diff) | |
download | libgpg-error-f15c06951bb91eb0a4ab54f6707b6e21448945f9.tar.gz |
build: Fix have_lock_optimization code for 'guessing yes'.
* configure.ac: Support 'guessing yes' for gl_cv_have_weak.
--
Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac index 35c0324..f9f317e 100644 --- a/configure.ac +++ b/configure.ac @@ -635,9 +635,13 @@ AM_CONDITIONAL(HAVE_GENERATED_LOCK_OBJ_H, test x$lock_obj_h_generated = xyes) have_lock_optimization=no if test "$gl_threads_api" = posix; then - if test x$ac_cv_header_sys_single_threaded_h = xyes \ - -o x$gl_cv_have_weak = xyes; then + if test x$ac_cv_header_sys_single_threaded_h = xyes; then have_lock_optimization=yes + else + case "$gl_cv_have_weak" in + *yes) have_lock_optimization=yes ;; + * ) ;; + esac fi fi AM_CONDITIONAL(HAVE_LOCK_OPTIMIZATION, test "$have_lock_optimization" = yes) |