From e5c238495e22794791961b349c42e24f353c4a3b Mon Sep 17 00:00:00 2001 From: cantor Date: Sat, 22 Sep 2007 03:42:40 +0000 Subject: [PATCH] How many times am I gonna lose this fix? git-svn-id: https://svn.middleware.georgetown.edu/cpp-xmltooling/trunk@392 de75baf8-a10c-0410-a50a-987c0e22f00f --- acx_pthread.m4 | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/acx_pthread.m4 b/acx_pthread.m4 index 7ac8ffd..33f1d29 100644 --- a/acx_pthread.m4 +++ b/acx_pthread.m4 @@ -243,8 +243,15 @@ if test "x$acx_pthread_ok" = xyes; then AC_MSG_CHECKING([if more special flags are required for pthreads]) flag=no case "${host_cpu}-${host_os}" in - *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";; - *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";; + *-aix* | *-freebsd*) flag="-D_THREAD_SAFE";; + *-osf* | *-hpux*) flag="-D_REENTRANT";; + *solaris*) + if test "$GCC" = "yes"; then + flag="-D_REENTRANT" + else + flag="-mt -D_REENTRANT" + fi + ;; esac AC_MSG_RESULT(${flag}) if test "x$flag" != xno; then -- 2.1.4