From 0bbe86c750876216735f7fc0436e6b68c3523519 Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Wed, 12 Aug 2009 16:25:16 +0200 Subject: [PATCH] Disable multithread support by default on Cygwin 1.5.x. --- ChangeLog | 6 ++++++ m4/threadlib.m4 | 11 ++++++++++- 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 4832c99e0f..e5dabb59ad 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2009-08-12 Bruno Haible + + Disable multithread support by default on Cygwin 1.5.x. + * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older, + set gl_use_threads=no if not specified otherwise. + 2009-08-11 Bruno Haible Avoid compilation error on NetBSD 5.0. diff --git a/m4/threadlib.m4 b/m4/threadlib.m4 index 3dd38aa877..34998d41c5 100644 --- a/m4/threadlib.m4 +++ b/m4/threadlib.m4 @@ -1,4 +1,4 @@ -# threadlib.m4 serial 3 (gettext-0.18) +# threadlib.m4 serial 4 (gettext-0.18) dnl Copyright (C) 2005-2009 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, @@ -56,7 +56,16 @@ AC_HELP_STRING([--disable-threads], [build without multithread safety]), dnl Disable multithreading by default on OSF/1, because it interferes dnl with fork()/exec(): When msgexec is linked with -lpthread, its dnl child process gets an endless segmentation fault inside execvp(). + dnl Disable multithreading by default on Cygwin 1.5.x, because it has + dnl bugs that lead to endless loops or crashes. See + dnl . osf*) gl_use_threads=no ;; + cygwin*) + case `uname -r` in + 1.[0-5].*) gl_use_threads=no ;; + *) gl_use_threads=yes ;; + esac + ;; *) gl_use_threads=yes ;; esac fi -- 2.30.2