@@ -823,7 +823,6 @@ with_CC
823823enable_depend
824824enable_cassert
825825enable_thread_safety
826- enable_thread_safety_force
827826with_tcl
828827with_tclconfig
829828with_perl
@@ -1497,9 +1496,7 @@ Optional Features:
14971496 --enable-dtrace build with DTrace support
14981497 --enable-depend turn on automatic dependency tracking
14991498 --enable-cassert enable assertion checks (for debugging)
1500- --disable-thread-safety make client libraries thread-safe
1501- --enable-thread-safety-force
1502- force thread-safety despite thread test failure
1499+ --disable-thread-safety disable thread-safety in client libraries
15031500 --disable-float4-byval disable float4 passed by value
15041501 --disable-float8-byval disable float8 passed by value
15051502 --disable-largefile omit support for large files
@@ -4884,41 +4881,6 @@ else
48844881fi
48854882
48864883
4887-
4888-
4889-
4890- # Check whether --enable-thread-safety-force was given.
4891- if test "${enable_thread_safety_force+set}" = set; then
4892- enableval=$enable_thread_safety_force;
4893- case $enableval in
4894- yes)
4895- :
4896- ;;
4897- no)
4898- :
4899- ;;
4900- *)
4901- { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-thread-safety-force option" >&5
4902- $as_echo "$as_me: error: no argument expected for --enable-thread-safety-force option" >&2;}
4903- { (exit 1); exit 1; }; }
4904- ;;
4905- esac
4906-
4907- else
4908- enable_thread_safety_force=no
4909-
4910- fi
4911-
4912-
4913- if test "$enable_thread_safety" = yes -o \
4914- "$enable_thread_safety_force" = yes; then
4915- enable_thread_safety="yes" # for 'force'
4916-
4917- cat >>confdefs.h <<\_ACEOF
4918- #define ENABLE_THREAD_SAFETY 1
4919- _ACEOF
4920-
4921- fi
49224884{ $as_echo "$as_me:$LINENO: result: $enable_thread_safety" >&5
49234885$as_echo "$enable_thread_safety" >&6; }
49244886
@@ -21287,10 +21249,10 @@ PTHREAD_CFLAGS="$PTHREAD_CFLAGS -D_REENTRANT -D_THREAD_SAFE -D_POSIX_PTHREAD_SEM
2128721249if test "$PTHREAD_CC" != "$CC"; then
2128821250{ { $as_echo "$as_me:$LINENO: error:
2128921251PostgreSQL does not support platforms that require a special compiler
21290- for thread safety." >&5
21252+ for thread safety; use --disable-thread-safety to disable thread safety ." >&5
2129121253$as_echo "$as_me: error:
2129221254PostgreSQL does not support platforms that require a special compiler
21293- for thread safety." >&2;}
21255+ for thread safety; use --disable-thread-safety to disable thread safety ." >&2;}
2129421256 { (exit 1); exit 1; }; }
2129521257fi
2129621258
@@ -21436,8 +21398,10 @@ fi
2143621398if test "x$ac_cv_header_pthread_h" = x""yes; then
2143721399 :
2143821400else
21439- { { $as_echo "$as_me:$LINENO: error: pthread.h not found, required for --enable-thread-safety" >&5
21440- $as_echo "$as_me: error: pthread.h not found, required for --enable-thread-safety" >&2;}
21401+ { { $as_echo "$as_me:$LINENO: error:
21402+ pthread.h not found; use --disable-thread-safety to disable thread safety" >&5
21403+ $as_echo "$as_me: error:
21404+ pthread.h not found; use --disable-thread-safety to disable thread safety" >&2;}
2144121405 { (exit 1); exit 1; }; }
2144221406fi
2144321407
@@ -26349,10 +26313,10 @@ HAVE_POSIX_SIGNALS=$pgac_cv_func_posix_signals
2634926313if test "$pgac_cv_func_posix_signals" != yes -a "$enable_thread_safety" = yes; then
2635026314 { { $as_echo "$as_me:$LINENO: error:
2635126315Thread-safety requires POSIX signals, which are not supported by this
26352- operating system." >&5
26316+ operating system; use --disable-thread-safety to disable thread safety ." >&5
2635326317$as_echo "$as_me: error:
2635426318Thread-safety requires POSIX signals, which are not supported by this
26355- operating system." >&2;}
26319+ operating system; use --disable-thread-safety to disable thread safety ." >&2;}
2635626320 { (exit 1); exit 1; }; }
2635726321fi
2635826322fi
@@ -28202,24 +28166,7 @@ done
2820228166# We have to run the thread test near the end so we have all our symbols
2820328167# defined. Cross compiling throws a warning.
2820428168#
28205- if test "$enable_thread_safety_force" = yes; then
28206- if test "$PORTNAME" != "win32"
28207- then
28208- { $as_echo "$as_me:$LINENO: WARNING:
28209- *** Skipping thread test program. --enable-thread-safety-force was used.
28210- *** Run the program in src/test/thread on the your machine and add proper
28211- *** locking function calls to your applications to guarantee thread safety.
28212- " >&5
28213- $as_echo "$as_me: WARNING:
28214- *** Skipping thread test program. --enable-thread-safety-force was used.
28215- *** Run the program in src/test/thread on the your machine and add proper
28216- *** locking function calls to your applications to guarantee thread safety.
28217- " >&2;}
28218- else
28219- { $as_echo "$as_me:$LINENO: WARNING: *** skipping thread test on Win32" >&5
28220- $as_echo "$as_me: WARNING: *** skipping thread test on Win32" >&2;}
28221- fi
28222- elif test "$enable_thread_safety" = yes; then
28169+ if test "$enable_thread_safety" = yes; then
2822328170if test "$PORTNAME" != "win32"
2822428171then
2822528172{ $as_echo "$as_me:$LINENO: checking thread safety of required library functions" >&5
@@ -28282,21 +28229,13 @@ sed 's/^/| /' conftest.$ac_ext >&5
2828228229{ $as_echo "$as_me:$LINENO: result: no" >&5
2828328230$as_echo "no" >&6; }
2828428231 { { $as_echo "$as_me:$LINENO: error: thread test program failed
28285- This platform is not thread-safe. Check the file 'config.log' for the
28286- exact reason.
28287-
28288- You can use the configure option --enable-thread-safety-force to force
28289- threads to be enabled. But you must then run the program in
28290- src/test/thread and add locking function calls to your applications to
28291- guarantee thread safety." >&5
28232+ This platform is not thread-safe. Check the file 'config.log' or compile
28233+ and run src/test/thread/thread_test for the exact reason.
28234+ Use --disable-thread-safety to disable thread safety." >&5
2829228235$as_echo "$as_me: error: thread test program failed
28293- This platform is not thread-safe. Check the file 'config.log' for the
28294- exact reason.
28295-
28296- You can use the configure option --enable-thread-safety-force to force
28297- threads to be enabled. But you must then run the program in
28298- src/test/thread and add locking function calls to your applications to
28299- guarantee thread safety." >&2;}
28236+ This platform is not thread-safe. Check the file 'config.log' or compile
28237+ and run src/test/thread/thread_test for the exact reason.
28238+ Use --disable-thread-safety to disable thread safety." >&2;}
2830028239 { (exit 1); exit 1; }; }
2830128240fi
2830228241rm -rf conftest.dSYM
0 commit comments