Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitbd95e21

Browse files
committed
Rename --with-threads to --enable-thread-safeness, per Peter.
1 parentc9bd4bf commitbd95e21

File tree

5 files changed

+27
-26
lines changed

5 files changed

+27
-26
lines changed

‎configure

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -855,7 +855,7 @@ Optional Packages:
855855
--with-libraries=DIRS look for additional libraries in DIRS
856856
--with-libs=DIRS alternative spelling of --with-libraries
857857
--with-pgport=PORTNUM change default port number 5432
858-
--with-threads allow libpq and ecpg to be thread-safe
858+
--enable-thread-safeness allow libpq and ecpg to be thread-safe
859859
--with-tcl build Tcl and Tk interfaces
860860
--without-tk do not build Tk interfaces if Tcl is enabled
861861
--with-tclconfig=DIR tclConfig.sh and tkConfig.sh are in DIR
@@ -2811,10 +2811,10 @@ done
28112811
IFS=$ac_save_IFS
28122812
28132813
#
2814-
# Enable libpq to be thread-safe
2814+
# Enable libpq to be thread-safeness
28152815
#
2816-
echo"$as_me:$LINENO: checking allowthreaded libpq">&5
2817-
echo$ECHO_N"checking allowthreaded libpq...$ECHO_C">&6
2816+
echo"$as_me:$LINENO: checking allowthread-safe libpq and ecpg">&5
2817+
echo$ECHO_N"checking allowthread-safe libpq and ecpg...$ECHO_C">&6
28182818
28192819
28202820
@@ -2846,8 +2846,8 @@ else
28462846
fi;
28472847
28482848
2849-
echo"$as_me:$LINENO: result:$with_threads">&5
2850-
echo"${ECHO_T}$with_threads">&6
2849+
echo"$as_me:$LINENO: result:$enable_thread_safeness">&5
2850+
echo"${ECHO_T}$enable_thread_safeness">&6
28512851
28522852
28532853
#
@@ -12807,7 +12807,7 @@ fi
1280712807
# For each platform, we need to know about any special compile and link
1280812808
# libraries, and whether the normal C function names are thread-safe.
1280912809
#
12810-
iftest"$with_threads" = yes;then
12810+
iftest"$enable_thread_safeness" = yes;then
1281112811
iftest"${ac_cv_header_pthread_h+set}" =set;then
1281212812
echo"$as_me:$LINENO: checking for pthread.h">&5
1281312813
echo$ECHO_N"checking for pthread.h...$ECHO_C">&6
@@ -12949,7 +12949,7 @@ fi
1294912949
# One trick here is that if we don't call AC_CHECK_FUNCS, the
1295012950
# functions are marked "not found", which is perfect.
1295112951
#
12952-
iftest"$with_threads" = yes -a"$NEED_REENTRANT_FUNC_NAMES" = yes;then
12952+
iftest"$enable_thread_safeness" = yes -a"$NEED_REENTRANT_FUNC_NAMES" = yes;then
1295312953
_CFLAGS="$CFLAGS"
1295412954
_LIB="$LIBS"
1295512955
CFLAGS="$CFLAGS$TREAD_CFLAGS"
@@ -17807,7 +17807,7 @@ s,@CPP@,$CPP,;t t
1780717807
s,@GCC@,$GCC,;t t
1780817808
s,@autodepend@,$autodepend,;t t
1780917809
s,@INCLUDES@,$INCLUDES,;t t
17810-
s,@with_threads@,$with_threads,;t t
17810+
s,@enable_thread_safeness@,$enable_thread_safeness,;t t
1781117811
s,@with_tcl@,$with_tcl,;t t
1781217812
s,@with_tk@,$with_tk,;t t
1781317813
s,@with_perl@,$with_perl,;t t

‎configure.in

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
dnl Process this file with autoconf to produce a configure script.
2-
dnl $Header: /cvsroot/pgsql/configure.in,v 1.268 2003/07/22 16:39:55 momjian Exp $
2+
dnl $Header: /cvsroot/pgsql/configure.in,v 1.269 2003/07/23 17:27:28 momjian Exp $
33
dnl
44
dnl Developers, please strive to achieve this order:
55
dnl
@@ -320,14 +320,14 @@ done
320320
IFS=$ac_save_IFS
321321

322322
#
323-
# Enable libpq to be thread-safe
323+
# Enable libpq to be thread-safeness
324324
#
325-
AC_MSG_CHECKING([allowthreaded libpq])
326-
PGAC_ARG_BOOL(with, threads, no, [ --with-threads allow libpq and ecpg to be thread-safe],
327-
[AC_DEFINE([USE_THREADS], 1, [Define to 1 to build libpq and ecpg to be thread-safe. (--with-threads)])])
325+
AC_MSG_CHECKING([allowthread-safe libpq and ecpg])
326+
PGAC_ARG_BOOL(with, threads, no, [ --enable-thread-safeness allow libpq and ecpg to be thread-safe],
327+
[AC_DEFINE([USE_THREADS], 1, [Define to 1 to build libpq and ecpg to be thread-safe. (--enable-thread-safeness)])])
328328

329-
AC_MSG_RESULT([$with_threads])
330-
AC_SUBST(with_threads)
329+
AC_MSG_RESULT([$enable_thread_safeness])
330+
AC_SUBST(enable_thread_safeness)
331331

332332
#
333333
# Tcl/Tk
@@ -965,7 +965,7 @@ AC_FUNC_FSEEKO
965965
# For each platform, we need to know about any special compile and link
966966
# libraries, and whether the normal C function names are thread-safe.
967967
#
968-
if test "$with_threads" = yes; then
968+
if test "$enable_thread_safeness" = yes; then
969969
AC_CHECK_HEADER(pthread.h, [], [AC_MSG_ERROR([pthread.h not found, required for --with-threads])])
970970

971971
if test "$SUPPORTS_THREADS" != yes; then
@@ -991,7 +991,7 @@ AC_SUBST(THREAD_LIBS)
991991
# One trick here is that if we don't call AC_CHECK_FUNCS, the
992992
# functions are marked "not found", which is perfect.
993993
#
994-
if test "$with_threads" = yes -a "$NEED_REENTRANT_FUNC_NAMES" = yes ; then
994+
if test "$enable_thread_safeness" = yes -a "$NEED_REENTRANT_FUNC_NAMES" = yes ; then
995995
_CFLAGS="$CFLAGS"
996996
_LIB="$LIBS"
997997
CFLAGS="$CFLAGS $TREAD_CFLAGS"

‎doc/src/sgml/ecpg.sgml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!--
2-
$Header: /cvsroot/pgsql/doc/src/sgml/ecpg.sgml,v 1.44 2003/06/15 04:07:58 momjian Exp $
2+
$Header: /cvsroot/pgsql/doc/src/sgml/ecpg.sgml,v 1.45 2003/07/23 17:27:28 momjian Exp $
33
-->
44

55
<chapter id="ecpg">
@@ -751,7 +751,7 @@ EXEC SQL INCLUDE <replaceable>filename</replaceable>;
751751

752752
<para>
753753
<application>ecpg</application> is thread-safe if it is compiled using
754-
the <literal>--with-threads</> <filename>configure</filename>
754+
the <literal>--enable-thread-safeness</> <filename>configure</filename>
755755
command-line option. (You might need to use other threading
756756
command-line options to compile your client code.)
757757
</para>

‎doc/src/sgml/installation.sgml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<!-- $Header: /cvsroot/pgsql/doc/src/sgml/installation.sgml,v 1.135 2003/06/15 04:07:58 momjian Exp $ -->
1+
<!-- $Header: /cvsroot/pgsql/doc/src/sgml/installation.sgml,v 1.136 2003/07/23 17:27:28 momjian Exp $ -->
22

33
<chapter id="installation">
44
<title><![%standalone-include[<productname>PostgreSQL</>]]>
@@ -915,7 +915,7 @@ JAVACMD=$JAVA_HOME/bin/java
915915
</varlistentry>
916916

917917
<varlistentry>
918-
<term><option>--with-threads</option></term>
918+
<term><option>--enable-thread-safeness</option></term>
919919
<listitem>
920920
<para>
921921
Allow separate libpq and ecpg threads to safely control their

‎doc/src/sgml/libpq.sgml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!--
2-
$Header: /cvsroot/pgsql/doc/src/sgml/libpq.sgml,v 1.127 2003/06/27 19:08:37 tgl Exp $
2+
$Header: /cvsroot/pgsql/doc/src/sgml/libpq.sgml,v 1.128 2003/07/23 17:27:28 momjian Exp $
33
-->
44

55
<chapter id="libpq">
@@ -3268,9 +3268,10 @@ If the permissions are less strict than this, the file will be ignored.
32683268

32693269
<para>
32703270
<application>libpq</application> is thread-safe if the library is
3271-
compiled using <filename>configure</filename>'s <literal>--with-threads</>
3272-
command-line option. (In addition, you might need to
3273-
use other threading command-line options to compile your client code.)
3271+
compiled using <filename>configure</filename>'s
3272+
<literal>--enable-thread-safeness</> command-line option.
3273+
(In addition, you might need to use other threading command-line
3274+
options to compile your client code.)
32743275
</para>
32753276

32763277
<para>

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp