]> Savannah Git Hosting - gnulib.git/commitdiff
Clarify that cross-compilation guesses are guesses.
authorBruno Haible <bruno@clisp.org>
Sun, 8 Sep 2019 22:46:35 +0000 (00:46 +0200)
committerBruno Haible <bruno@clisp.org>
Sun, 8 Sep 2019 22:46:35 +0000 (00:46 +0200)
* m4/threads.m4 (gl_THREADS_H): Say "guessing yes" or "guessing no" when
cross-compiling.

ChangeLog
m4/threads.m4

index db3935774066b77a59573beaae15180434eaf65d..aeefbf43a928e0cc8fc46df5943e63ca35d47845 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2019-09-08  Bruno Haible  <bruno@clisp.org>
+
+       Clarify that cross-compilation guesses are guesses.
+       * m4/threads.m4 (gl_THREADS_H): Say "guessing yes" or "guessing no" when
+       cross-compiling.
+
 2019-09-08  Bruno Haible  <bruno@clisp.org>
 
        chown: Fix configure output (regression from 2019-03-23).
index f5f587cbf46df58aff466db623c24e6414da0632..c8f74a1d57dea611a9f9c26cbc3100bf75b6218a 100644 (file)
@@ -1,4 +1,4 @@
-# threads.m4 serial 5
+# threads.m4 serial 6
 dnl Copyright (C) 2019 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -104,8 +104,18 @@ AC_DEFUN([gl_THREADS_H],
           ]], [[
             x = 42;
           ]])],
-         [gl_cv_thread_local_works=yes],
-         [gl_cv_thread_local_works=no])
+         [if test "$cross_compiling" != yes; then
+            gl_cv_thread_local_works=yes
+          else
+            gl_cv_thread_local_works="guessing yes"
+          fi
+         ],
+         [if test "$cross_compiling" != yes; then
+            gl_cv_thread_local_works=no
+          else
+            gl_cv_thread_local_works="guessing no"
+          fi
+         ])
      fi
     ])
   case "$gl_cv_thread_local_works" in