Skip to content

Commit 391dceb

Browse files
committed
Finalize configuration of thread_test program.
1 parent a6790ce commit 391dceb

File tree

13 files changed

+39
-30
lines changed

13 files changed

+39
-30
lines changed

configure

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13273,7 +13273,7 @@ fi
1327313273

1327413274

1327513275

13276-
if test "$SUPPORTS_THREADS" != yes; then
13276+
if test "$THREAD_SUPPORT" != yes; then
1327713277
{ { echo "$as_me:$LINENO: error:
1327813278
Cannot enable threads on your platform.
1327913279
Please report your platform threading info to the PostgreSQL mailing lists
@@ -13299,6 +13299,7 @@ fi
1329913299

1330013300

1330113301

13302+
1330213303
#
1330313304
# Check for re-entrant versions of certain functions
1330413305
#
@@ -18211,6 +18212,7 @@ s,@python_includespec@,$python_includespec,;t t
1821118212
s,@python_libspec@,$python_libspec,;t t
1821218213
s,@LIBOBJS@,$LIBOBJS,;t t
1821318214
s,@HAVE_IPV6@,$HAVE_IPV6,;t t
18215+
s,@THREAD_SUPPORT@,$THREAD_SUPPORT,;t t
1821418216
s,@THREAD_CPPFLAGS@,$THREAD_CPPFLAGS,;t t
1821518217
s,@THREAD_LIBS@,$THREAD_LIBS,;t t
1821618218
s,@HAVE_POSIX_SIGNALS@,$HAVE_POSIX_SIGNALS,;t t

configure.in

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
\dnl Process this file with autoconf to produce a configure script.
2-
dnl $Header: /cvsroot/pgsql/configure.in,v 1.291 2003/09/27 15:32:47 momjian Exp $
1+
dnl Process this file with autoconf to produce a configure script.
2+
dnl $Header: /cvsroot/pgsql/configure.in,v 1.292 2003/09/27 16:24:44 momjian Exp $
33
dnl
44
dnl Developers, please strive to achieve this order:
55
dnl
@@ -1002,7 +1002,7 @@ AC_FUNC_FSEEKO
10021002
if test "$enable_thread_safety" = yes; then
10031003
AC_CHECK_HEADER(pthread.h, [], [AC_MSG_ERROR([pthread.h not found, required for --enable-thread-safetys])])
10041004

1005-
if test "$SUPPORTS_THREADS" != yes; then
1005+
if test "$THREAD_SUPPORT" != yes; then
10061006
AC_MSG_ERROR([
10071007
Cannot enable threads on your platform.
10081008
Please report your platform threading info to the PostgreSQL mailing lists
@@ -1016,6 +1016,7 @@ else
10161016
THREAD_CPPFLAGS=
10171017
THREAD_LIBS=
10181018
fi
1019+
AC_SUBST(THREAD_SUPPORT)
10191020
AC_SUBST(THREAD_CPPFLAGS)
10201021
AC_SUBST(THREAD_LIBS)
10211022

src/Makefile.global.in

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# -*-makefile-*-
2-
# $Header: /cvsroot/pgsql/src/Makefile.global.in,v 1.169 2003/09/27 15:32:47 momjian Exp $
2+
# $Header: /cvsroot/pgsql/src/Makefile.global.in,v 1.170 2003/09/27 16:24:44 momjian Exp $
33

44
#------------------------------------------------------------------------------
55
# All PostgreSQL makefiles include this file and use the variables it sets,
@@ -150,6 +150,7 @@ TK_LIBS = @TK_LIBS@
150150
TK_LIB_SPEC = @TK_LIB_SPEC@
151151
TK_XINCLUDES = @TK_XINCLUDES@
152152

153+
THREAD_SUPPORT = @THREAD_SUPPORT@
153154
THREAD_CPPFLAGS = @THREAD_CPPFLAGS@
154155
THREAD_LIBS = @THREAD_LIBS@
155156

src/template/bsdi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,5 @@ case $host_os in
1010
;;
1111
esac
1212

13-
SUPPORTS_THREADS=yes
13+
THREAD_SUPPORT=yes
1414
NEED_REENTRANT_FUNCS=no # verified 4.3 2003-09-26

src/template/freebsd

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,8 @@ case $host_cpu in
44
alpha*) CFLAGS="$CFLAGS -O" ;;
55
esac
66

7-
SUPPORTS_THREADS=yes
8-
NEED_REENTRANT_FUNCS=yes # 4.8, 5.1 2003-09-12
9-
7+
THREAD_SUPPORT=yes
8+
NEED_REENTRANT_FUNCS=yes
109
THREAD_CPPFLAGS="-D_THREAD_SAFE"
1110
case $host_os in
1211
freebsd2*|freebsd3*|freebsd4*)

src/template/linux

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ CFLAGS=-O2
22
# Force _GNU_SOURCE on; plperl is broken with Perl 5.8.0 otherwise
33
CPPFLAGS="-D_GNU_SOURCE"
44

5-
SUPPORTS_THREADS=yes
6-
NEED_REENTRANT_FUNCS=yes # verified glibc 2.1 2003-09-03
5+
THREAD_SUPPORT=yes
6+
NEED_REENTRANT_FUNCS=yes
77
THREAD_CPPFLAGS="-D_REENTRANT -D_THREAD_SAFE -D_POSIX_PTHREAD_SEMANTICS"
88
THREAD_LIBS="-lpthread"
99

src/template/netbsd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
CFLAGS='-O2 -pipe'
22

3-
SUPPORTS_THREADS=yes
3+
THREAD_SUPPORT=yes
44
NEED_REENTRANT_FUNCS=yes # 1.6 2003-09-14

src/template/osf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@ else
55
CFLAGS='-O4 -Olimit 2000'
66
fi
77

8-
SUPPORTS_THREADS=yes
8+
THREAD_SUPPORT=yes
99
NEED_REENTRANT_FUNCS=no # 4.0 2003-09-13
1010
THREAD_LIBS="-pthread"

src/template/solaris

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ else
55
CFLAGS=-v # -v is like gcc -Wall
66
fi
77

8-
SUPPORTS_THREADS=yes
8+
THREAD_SUPPORT=yes
99
NEED_REENTRANT_FUNCS=yes # 5.6 2003-09-13
1010
THREAD_LIBS="-pthread"
1111

src/template/unixware

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,6 @@ else
99
THREAD_CPPFLAGS="-K pthread"
1010
fi
1111

12-
SUPPORTS_THREADS=yes
12+
THREAD_SUPPORT=yes
1313
NEED_REENTRANT_FUNCS=no # verified 7.1.3 2003-09-03
1414
THREAD_CPPFLAGS="$THREAD_CPPFLAGS -D_REENTRANT"

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy