Index: src/Makefile.global.in
===================================================================
RCS file: /cvsroot/pgsql-server/src/Makefile.global.in,v
retrieving revision 1.171
diff -c -c -r1.171 Makefile.global.in
*** src/Makefile.global.in	29 Nov 2003 19:51:39 -0000	1.171
--- src/Makefile.global.in	19 Dec 2003 23:21:45 -0000
***************
*** 121,127 ****
  #
  # Records the choice of the various --enable-xxx and --with-xxx options.
  
- with_threads	= @with_threads@
  with_java	= @with_java@
  with_perl	= @with_perl@
  with_python	= @with_python@
--- 121,126 ----
***************
*** 131,136 ****
--- 130,136 ----
  enable_rpath	= @enable_rpath@
  enable_nls	= @enable_nls@
  enable_debug	= @enable_debug@
+ enable_thread_safety	= @enable_thread_safety@
  
  python_includespec	= @python_includespec@
  python_libspec		= @python_libspec@
Index: src/interfaces/ecpg/test/Makefile
===================================================================
RCS file: /cvsroot/pgsql-server/src/interfaces/ecpg/test/Makefile,v
retrieving revision 1.42
diff -c -c -r1.42 Makefile
*** src/interfaces/ecpg/test/Makefile	29 Nov 2003 19:52:09 -0000	1.42
--- src/interfaces/ecpg/test/Makefile	19 Dec 2003 23:21:46 -0000
***************
*** 8,14 ****
  
  ECPG = ../preproc/ecpg -I$(srcdir)/../include
  
! TESTS = test1 test2 test3 test4 perftest dyntest dyntest2 test_notice test_code100 test_init testdynalloc num_test dt_test test_informix test_thread
  
  all: $(TESTS)
  
--- 8,17 ----
  
  ECPG = ../preproc/ecpg -I$(srcdir)/../include
  
! TESTS = test1 test2 test3 test4 perftest dyntest dyntest2 test_notice test_code100 test_init testdynalloc num_test dt_test test_informix
! ifeq ($(enable_thread_safety), yes)
! TESTS += test_thread
! endif
  
  all: $(TESTS)
  
Index: src/tools/thread/thread_test.c
===================================================================
RCS file: /cvsroot/pgsql-server/src/tools/thread/thread_test.c,v
retrieving revision 1.5
diff -c -c -r1.5 thread_test.c
*** src/tools/thread/thread_test.c	29 Nov 2003 19:52:14 -0000	1.5
--- src/tools/thread/thread_test.c	19 Dec 2003 23:21:47 -0000
***************
*** 20,29 ****
   *-------------------------------------------------------------------------
   */
  
- 
- #ifdef ENABLE_THREAD_SAFETY
  #include <pthread.h>
- #endif
  #include <unistd.h>
  #include <stdio.h>
  #include <stdlib.h>
--- 20,26 ----
