diff options
author | NIIBE Yutaka <[email protected]> | 2021-12-13 05:22:44 +0000 |
---|---|---|
committer | NIIBE Yutaka <[email protected]> | 2021-12-13 05:22:44 +0000 |
commit | f15c06951bb91eb0a4ab54f6707b6e21448945f9 (patch) | |
tree | a73af916badcd50ccd4e3c7d1906d97a186eb8cb | |
parent | build: Detect a system with musl, as a variant of GNU System. (diff) | |
download | libgpg-error-f15c06951bb91eb0a4ab54f6707b6e21448945f9.tar.gz libgpg-error-f15c06951bb91eb0a4ab54f6707b6e21448945f9.zip |
build: Fix have_lock_optimization code for 'guessing yes'.
* configure.ac: Support 'guessing yes' for gl_cv_have_weak.
--
Signed-off-by: NIIBE Yutaka <[email protected]>
-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) |