diff options
author | Bruno Haible <bruno@clisp.org> | 2009-08-14 18:39:08 +0200 |
---|---|---|
committer | Bruno Haible <bruno@clisp.org> | 2009-08-14 18:39:08 +0200 |
commit | 619addd00928234ae59aa176b2e80967997fbeb4 (patch) | |
tree | ca16b780125f40e0cf6f01894406908c63815836 | |
parent | 85a3a3b559d1b6c50042a99f828ee733abc2fe67 (diff) | |
download | external_gettext-619addd00928234ae59aa176b2e80967997fbeb4.zip external_gettext-619addd00928234ae59aa176b2e80967997fbeb4.tar.gz external_gettext-619addd00928234ae59aa176b2e80967997fbeb4.tar.bz2 |
Disable multithread support by default on Cygwin 1.5.x.
-rw-r--r-- | gettext-runtime/m4/ChangeLog | 6 | ||||
-rw-r--r-- | gettext-runtime/m4/threadlib.m4 | 11 |
2 files changed, 16 insertions, 1 deletions
diff --git a/gettext-runtime/m4/ChangeLog b/gettext-runtime/m4/ChangeLog index 836892a..260e18c 100644 --- a/gettext-runtime/m4/ChangeLog +++ b/gettext-runtime/m4/ChangeLog @@ -1,3 +1,9 @@ +2009-08-12 Bruno Haible <bruno@clisp.org> + + 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-03 Bruno Haible <bruno@clisp.org> * iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64. diff --git a/gettext-runtime/m4/threadlib.m4 b/gettext-runtime/m4/threadlib.m4 index 3dd38aa..34998d4 100644 --- a/gettext-runtime/m4/threadlib.m4 +++ b/gettext-runtime/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 <http://cygwin.com/ml/cygwin/2009-08/msg00283.html>. 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 |