From 433aba9e778ebe9500c29ae1ae34999d48e98a19 Mon Sep 17 00:00:00 2001 From: NIIBE Yutaka Date: Tue, 1 Feb 2022 10:12:06 +0900 Subject: build,tests: Fix detection of have_lock_optimization. * configure.ac: Lock optimization (without sys/single_threaded.h) is only known to work on GNU system, using weak symbol. -- Fixes-commit: 50e0f32b19356fd7c64c799192379ff2204cd8a3 GnuPG-bug-id: 5699 Signed-off-by: NIIBE Yutaka --- configure.ac | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/configure.ac b/configure.ac index ba6c370..9db9678 100644 --- a/configure.ac +++ b/configure.ac @@ -637,9 +637,9 @@ if test "$gl_threads_api" = posix; 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 ;; - * ) ;; + case "${host_os}" in + *-gnu*) have_lock_optimization=yes ;; + * ) ;; esac fi fi -- cgit v1.2.1