From: Paul Eggert Date: Fri, 20 Mar 2015 01:33:59 +0000 (-0700) Subject: * configure.ac (_THREAD_SAFE): Simplify (Bug#20136). X-Git-Tag: emacs-25.0.90~2564^2~123 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=13eb26ad38378e0063e9c9313c3ba8af666629dc;p=emacs.git * configure.ac (_THREAD_SAFE): Simplify (Bug#20136). --- diff --git a/ChangeLog b/ChangeLog index d268ba03494..a79863a839e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -3,7 +3,7 @@ Better port of pthread usage to FreeBSD * configure.ac (ac_func_list): Omit pthread_sigmask, since we check for that ourselves rather than relying on gnulib. - (HAVE_PTHREAD, LIB_PTHREAD, _THREAD_SAFE): Port better to FreeBSD, + (HAVE_PTHREAD, LIB_PTHREAD): Port better to FreeBSD, by also checking for pthread_create, pthread_self, pthread_sigmask. Tighten the test for pthread_atfork while we're at it. Fixes: bug#20136 diff --git a/configure.ac b/configure.ac index 520816b1a61..40c8d2b93a8 100644 --- a/configure.ac +++ b/configure.ac @@ -2234,7 +2234,7 @@ if test "$ac_cv_header_pthread_h" && test "$opsys" != "mingw32"; then hpux* | sol*) AC_DEFINE([_REENTRANT], 1, [Define to 1 if your system requires this in multithreaded code.]);; - aix4-2 | darwin | freebsd) + aix4-2) AC_DEFINE([_THREAD_SAFE], 1, [Define to 1 if your system requires this in multithreaded code.]);; esac