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
ffa3bfbc
Commit
ffa3bfbc
authored
Jun 14, 2003
by
Bruce Momjian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move thread os defines into template files.
parent
467839df
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
43 additions
and
51 deletions
+43
-51
configure
configure
+9
-26
configure.in
configure.in
+8
-25
src/template/bsdi
src/template/bsdi
+4
-0
src/template/freebsd
src/template/freebsd
+12
-0
src/template/linux
src/template/linux
+6
-0
src/template/netbsd
src/template/netbsd
+4
-0
No files found.
configure
View file @
ffa3bfbc
...
...
@@ -3903,41 +3903,24 @@ echo "$as_me: error: pthread.h not found, required for --with-threads" >&2;}
fi
case
$host_os
in
netbsd
*
|
bsdi
*
)
# these require no special flags or libraries
NEED_REENTRANT_FUNC_NAMES
=
no
;;
freebsd2
*
|
freebsd3
*
|
freebsd4
*
)
THREAD_CFLAGS
=
"-pthread"
NEED_REENTRANT_FUNC_NAMES
=
yes
;;
freebsd
*
)
THREAD_LIBS
=
"-lc_r"
NEED_REENTRANT_FUNC_NAMES
=
yes
;;
linux
*
)
THREAD_CFLAGS
=
"-D_REENTRANT -D_THREAD_SAFE -D_POSIX_PTHREAD_SEMANTICS"
THREAD_LIBS
=
"-lpthread"
NEED_REENTRANT_FUNC_NAMES
=
yes
;;
*
)
# other operating systems might fail because they have pthread.h but need
# special libs we don't know about yet.
{
{
echo
"
$as_me
:
$LINENO
: error:
if
test
"
$SUPPORTS_THREADS
"
!=
yes
;
then
{
{
echo
"
$as_me
:
$LINENO
: error:
Cannot enable threads on your platform.
Please report your platform threading info to the PostgreSQL mailing lists
so it can be added to the next release. Report any compile
or
link flags,
or libraries required for threading support.
so it can be added to the next release. Report any compile
flags,
link flags,
functions,
or libraries required for threading support.
"
>
&5
echo
"
$as_me
: error:
Cannot enable threads on your platform.
Please report your platform threading info to the PostgreSQL mailing lists
so it can be added to the next release. Report any compile
or
link flags,
or libraries required for threading support.
so it can be added to the next release. Report any compile
flags,
link flags,
functions,
or libraries required for threading support.
"
>
&2
;
}
{
(
exit
1
)
;
exit
1
;
}
;
}
esac
fi
fi
...
...
configure.in
View file @
ffa3bfbc
dnl Process this file with autoconf to produce a configure script.
dnl $Header: /cvsroot/pgsql/configure.in,v 1.26
3 2003/06/14 17:49:53
momjian Exp $
dnl $Header: /cvsroot/pgsql/configure.in,v 1.26
4 2003/06/14 19:21:42
momjian Exp $
dnl
dnl Developers, please strive to achieve this order:
dnl
...
...
@@ -560,37 +560,20 @@ AC_SUBST(ELF_SYS)
NEED_REENTRANT_FUNC_NAMES=no
if test "$with_threads" = yes; then
AC_CHECK_HEADER(pthread.h, [], [AC_MSG_ERROR([pthread.h not found, required for --with-threads])])
case $host_os in
netbsd*|bsdi*)
# these require no special flags or libraries
NEED_REENTRANT_FUNC_NAMES=no
;;
freebsd2*|freebsd3*|freebsd4*)
THREAD_CFLAGS="-pthread"
NEED_REENTRANT_FUNC_NAMES=yes
;;
freebsd*)
THREAD_LIBS="-lc_r"
NEED_REENTRANT_FUNC_NAMES=yes
;;
linux*) THREAD_CFLAGS="-D_REENTRANT -D_THREAD_SAFE -D_POSIX_PTHREAD_SEMANTICS"
THREAD_LIBS="-lpthread"
NEED_REENTRANT_FUNC_NAMES=yes
;;
*)
# other operating systems might fail because they have pthread.h but need
# special libs we don't know about yet.
AC_MSG_ERROR([
if test "$SUPPORTS_THREADS" != yes; then
AC_MSG_ERROR([
Cannot enable threads on your platform.
Please report your platform threading info to the PostgreSQL mailing lists
so it can be added to the next release. Report any compile
or
link flags,
or libraries required for threading support.
so it can be added to the next release. Report any compile
flags,
link flags,
functions,
or libraries required for threading support.
])
esac
fi
fi
AC_SUBST(THREAD_CFLAGS)
AC_SUBST(THREAD_LIBS)
#
# Assignments
#
...
...
src/template/bsdi
View file @
ffa3bfbc
...
...
@@ -9,3 +9,7 @@ case $host_os in
CC=gcc2
;;
esac
SUPPORTS_THREADS=yes
NEED_REENTRANT_FUNC_NAMES=no
src/template/freebsd
View file @
ffa3bfbc
...
...
@@ -3,3 +3,15 @@ CFLAGS='-pipe'
case $host_cpu in
alpha*) CFLAGS="$CFLAGS -O" ;;
esac
SUPPORTS_THREADS=yes
case $host_os in
freebsd2*|freebsd3*|freebsd4*)
THREAD_CFLAGS="-pthread"
NEED_REENTRANT_FUNC_NAMES=yes
;;
*)
THREAD_LIBS="-lc_r"
NEED_REENTRANT_FUNC_NAMES=yes
;;
esac
src/template/linux
View file @
ffa3bfbc
CFLAGS=-O2
SUPPORTS_THREADS=yes
THREAD_CFLAGS="-D_REENTRANT -D_THREAD_SAFE -D_POSIX_PTHREAD_SEMANTICS"
THREAD_LIBS="-lpthread"
NEED_REENTRANT_FUNC_NAMES=yes
src/template/netbsd
View file @
ffa3bfbc
CFLAGS='-O2 -pipe'
SUPPORTS_THREADS=yes
NEED_REENTRANT_FUNC_NAMES=no
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