Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Postgres FD Implementation
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Abuhujair Javed
Postgres FD Implementation
Commits
277dbb0c
Commit
277dbb0c
authored
Jul 22, 2003
by
Bruce Momjian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix threading configure tests, from Peter.
parent
11eb002c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
10 deletions
+8
-10
configure
configure
+4
-5
configure.in
configure.in
+4
-5
No files found.
configure
View file @
277dbb0c
...
@@ -12807,7 +12807,6 @@ fi
...
@@ -12807,7 +12807,6 @@ fi
# For each platform, we need to know about any special compile and link
# For each platform, we need to know about any special compile and link
# libraries, and whether the normal C function names are thread-safe.
# libraries, and whether the normal C function names are thread-safe.
#
#
NEED_REENTRANT_FUNC_NAMES
=
no
if
test
"
$with_threads
"
=
yes
;
then
if
test
"
$with_threads
"
=
yes
;
then
if
test
"
${
ac_cv_header_pthread_h
+set
}
"
=
set
;
then
if
test
"
${
ac_cv_header_pthread_h
+set
}
"
=
set
;
then
echo
"
$as_me
:
$LINENO
: checking for pthread.h"
>
&5
echo
"
$as_me
:
$LINENO
: checking for pthread.h"
>
&5
...
@@ -12924,13 +12923,13 @@ if test "$SUPPORTS_THREADS" != yes; then
...
@@ -12924,13 +12923,13 @@ if test "$SUPPORTS_THREADS" != yes; then
{
{
echo
"
$as_me
:
$LINENO
: error:
{
{
echo
"
$as_me
:
$LINENO
: error:
Cannot enable threads on your platform.
Cannot enable threads on your platform.
Please report your platform threading info to the PostgreSQL mailing lists
Please report your platform threading info to the PostgreSQL mailing lists
so it can be added to the next release. Report a
ny
compile flags, link flags,
so it can be added to the next release. Report a
ll
compile flags, link flags,
functions, or libraries required for threading support.
functions, or libraries required for threading support.
"
>
&5
"
>
&5
echo
"
$as_me
: error:
echo
"
$as_me
: error:
Cannot enable threads on your platform.
Cannot enable threads on your platform.
Please report your platform threading info to the PostgreSQL mailing lists
Please report your platform threading info to the PostgreSQL mailing lists
so it can be added to the next release. Report a
ny
compile flags, link flags,
so it can be added to the next release. Report a
ll
compile flags, link flags,
functions, or libraries required for threading support.
functions, or libraries required for threading support.
"
>
&2
;
}
"
>
&2
;
}
{
(
exit
1
)
;
exit
1
;
}
;
}
{
(
exit
1
)
;
exit
1
;
}
;
}
...
@@ -12947,10 +12946,10 @@ fi
...
@@ -12947,10 +12946,10 @@ fi
# threading on this platform. Some platforms have *_r functions but
# threading on this platform. Some platforms have *_r functions but
# their natively named funcs are threadsafe, and should be used instead.
# their natively named funcs are threadsafe, and should be used instead.
#
#
# One trick here is that if
th
e don't call AC_CHECK_FUNCS, the
# One trick here is that if
w
e don't call AC_CHECK_FUNCS, the
# functions are marked "not found", which is perfect.
# functions are marked "not found", which is perfect.
#
#
if
test
"
$NEED_REENTRANT_FUNC_NAMES
"
=
yes
;
then
if
test
"
$
with_threads
"
=
yes
-a
"
$
NEED_REENTRANT_FUNC_NAMES
"
=
yes
;
then
_CFLAGS
=
"
$CFLAGS
"
_CFLAGS
=
"
$CFLAGS
"
_LIB
=
"
$LIBS
"
_LIB
=
"
$LIBS
"
CFLAGS
=
"
$CFLAGS
$TREAD_CFLAGS
"
CFLAGS
=
"
$CFLAGS
$TREAD_CFLAGS
"
...
...
configure.in
View file @
277dbb0c
dnl Process this file with autoconf to produce a configure script.
dnl Process this file with autoconf to produce a configure script.
dnl $Header: /cvsroot/pgsql/configure.in,v 1.26
7 2003/06/23 23:51:59
momjian Exp $
dnl $Header: /cvsroot/pgsql/configure.in,v 1.26
8 2003/07/22 16:39:55
momjian Exp $
dnl
dnl
dnl Developers, please strive to achieve this order:
dnl Developers, please strive to achieve this order:
dnl
dnl
...
@@ -965,7 +965,6 @@ AC_FUNC_FSEEKO
...
@@ -965,7 +965,6 @@ AC_FUNC_FSEEKO
# For each platform, we need to know about any special compile and link
# For each platform, we need to know about any special compile and link
# libraries, and whether the normal C function names are thread-safe.
# libraries, and whether the normal C function names are thread-safe.
#
#
NEED_REENTRANT_FUNC_NAMES=no
if test "$with_threads" = yes; then
if test "$with_threads" = yes; then
AC_CHECK_HEADER(pthread.h, [], [AC_MSG_ERROR([pthread.h not found, required for --with-threads])])
AC_CHECK_HEADER(pthread.h, [], [AC_MSG_ERROR([pthread.h not found, required for --with-threads])])
...
@@ -973,7 +972,7 @@ if test "$SUPPORTS_THREADS" != yes; then
...
@@ -973,7 +972,7 @@ if test "$SUPPORTS_THREADS" != yes; then
AC_MSG_ERROR([
AC_MSG_ERROR([
Cannot enable threads on your platform.
Cannot enable threads on your platform.
Please report your platform threading info to the PostgreSQL mailing lists
Please report your platform threading info to the PostgreSQL mailing lists
so it can be added to the next release. Report a
ny
compile flags, link flags,
so it can be added to the next release. Report a
ll
compile flags, link flags,
functions, or libraries required for threading support.
functions, or libraries required for threading support.
])
])
fi
fi
...
@@ -989,10 +988,10 @@ AC_SUBST(THREAD_LIBS)
...
@@ -989,10 +988,10 @@ AC_SUBST(THREAD_LIBS)
# threading on this platform. Some platforms have *_r functions but
# threading on this platform. Some platforms have *_r functions but
# their natively named funcs are threadsafe, and should be used instead.
# their natively named funcs are threadsafe, and should be used instead.
#
#
# One trick here is that if
th
e don't call AC_CHECK_FUNCS, the
# One trick here is that if
w
e don't call AC_CHECK_FUNCS, the
# functions are marked "not found", which is perfect.
# functions are marked "not found", which is perfect.
#
#
if test "$NEED_REENTRANT_FUNC_NAMES" = yes ; then
if test "$
with_threads" = yes -a "$
NEED_REENTRANT_FUNC_NAMES" = yes ; then
_CFLAGS="$CFLAGS"
_CFLAGS="$CFLAGS"
_LIB="$LIBS"
_LIB="$LIBS"
CFLAGS="$CFLAGS $TREAD_CFLAGS"
CFLAGS="$CFLAGS $TREAD_CFLAGS"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment