@@ -3903,41 +3903,24 @@ echo "$as_me: error: pthread.h not found, required for --with-threads" >&2;}
39033903fi
39043904
39053905
3906- case $host_os in
3907- netbsd* |bsdi* )
3908- # these require no special flags or libraries
3909- NEED_REENTRANT_FUNC_NAMES=no
3910- ;;
3911- freebsd2* |freebsd3* |freebsd4* )
3912- THREAD_CFLAGS=" -pthread"
3913- NEED_REENTRANT_FUNC_NAMES=yes
3914- ;;
3915- freebsd* )
3916- THREAD_LIBS=" -lc_r"
3917- NEED_REENTRANT_FUNC_NAMES=yes
3918- ;;
3919- linux* ) THREAD_CFLAGS=" -D_REENTRANT -D_THREAD_SAFE -D_POSIX_PTHREAD_SEMANTICS"
3920- THREAD_LIBS=" -lpthread"
3921- NEED_REENTRANT_FUNC_NAMES=yes
3922- ;;
3923- * )
3924- # other operating systems might fail because they have pthread.h but need
3925- # special libs we don't know about yet.
3926- { { echo " $as_me :$LINENO : error:
3906+
3907+ if test " $SUPPORTS_THREADS " ! = yes; then
3908+ { { echo " $as_me :$LINENO : error:
39273909Cannot enable threads on your platform.
39283910Please report your platform threading info to the PostgreSQL mailing lists
3929- so it can be added to the next release. Report any compile or link flags,
3930- or libraries required for threading support.
3911+ so it can be added to the next release. Report any compile flags, link flags,
3912+ functions, or libraries required for threading support.
39313913" >&5
39323914echo " $as_me : error:
39333915Cannot enable threads on your platform.
39343916Please report your platform threading info to the PostgreSQL mailing lists
3935- so it can be added to the next release. Report any compile or link flags,
3936- or libraries required for threading support.
3917+ so it can be added to the next release. Report any compile flags, link flags,
3918+ functions, or libraries required for threading support.
39373919" >&2 ; }
39383920 { (exit 1); exit 1; }; }
3939- esac
39403921fi
3922+ fi
3923+
39413924
39423925
39433926
0 commit comments