diff options
-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) |