]> granicus.if.org Git - gc/commitdiff
Fix commit 505b041 regarding configure THREAD_LOCAL_ALLOC (Win32)
authorIvan Maidanski <ivmai@mail.ru>
Fri, 23 Sep 2011 07:45:54 +0000 (11:45 +0400)
committerIvan Maidanski <ivmai@mail.ru>
Fri, 23 Sep 2011 07:45:54 +0000 (11:45 +0400)
* configure.ac (THREAD_LOCAL_ALLOC): Test enable_shared and
enable_static values properly when setting THREAD_LOCAL_ALLOC
in case PARALLEL_MARK is off (Win32 only).

configure.ac

index 6cb6c7fa027473e809cce323535a67e7b5bc33f5..6fa0f6f81b993169ad826b38164e161a5df15306 100644 (file)
@@ -303,7 +303,7 @@ case "$THREADS" in
       AC_DEFINE(PARALLEL_MARK)
       AC_DEFINE(THREAD_LOCAL_ALLOC)
     else
-      if test "${enable_static}" == yes; then
+      if test "${enable_shared}" != yes || test "${enable_static}" != no; then
         # Imply THREAD_LOCAL_ALLOC unless GC_DLL.
         AC_DEFINE(THREAD_LOCAL_ALLOC)
       fi