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
d3a0c8dc
Commit
d3a0c8dc
authored
Sep 26, 2005
by
Bruce Momjian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Prevent threaded python build on BSD's, where it fails.
Marko Kreen
parent
3ff1dc50
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
36 additions
and
1 deletion
+36
-1
config/python.m4
config/python.m4
+16
-1
configure
configure
+20
-0
No files found.
config/python.m4
View file @
d3a0c8dc
#
# Autoconf macros for configuring the build of Python extension modules
#
# $PostgreSQL: pgsql/config/python.m4,v 1.1
1 2004/10/11 19:32:16 tgl
Exp $
# $PostgreSQL: pgsql/config/python.m4,v 1.1
2 2005/09/26 16:48:28 momjian
Exp $
#
# PGAC_PATH_PYTHON
...
...
@@ -77,4 +77,19 @@ AC_MSG_RESULT([${python_libspec} ${python_additional_libs}])
AC_SUBST(python_libdir)[]dnl
AC_SUBST(python_libspec)[]dnl
AC_SUBST(python_additional_libs)[]dnl
# threaded python is not supported on bsd's
AC_MSG_CHECKING(whether Python is compiled with thread support)
pythreads=`${PYTHON} -c "import sys; print int('thread' in sys.builtin_module_names)"`
if test "$pythreads" = "1"; then
AC_MSG_RESULT(yes)
case $host_os in
openbsd*|freebsd*)
AC_MSG_ERROR([*** Threaded Python not supported on this platform ***])
;;
esac
else
AC_MSG_RESULT(no)
fi
])# PGAC_CHECK_PYTHON_EMBED_SETUP
configure
View file @
d3a0c8dc
...
...
@@ -4743,6 +4743,26 @@ echo "$as_me:$LINENO: result: ${python_libspec} ${python_additional_libs}" >&5
echo
"
${
ECHO_T
}${
python_libspec
}
${
python_additional_libs
}
"
>
&6
# threaded python is not supported on bsd's
echo
"
$as_me
:
$LINENO
: checking whether Python is compiled with thread support"
>
&5
echo
$ECHO_N
"checking whether Python is compiled with thread support...
$ECHO_C
"
>
&6
pythreads
=
`
${
PYTHON
}
-c
"import sys; print int('thread' in sys.builtin_module_names)"
`
if
test
"
$pythreads
"
=
"1"
;
then
echo
"
$as_me
:
$LINENO
: result: yes"
>
&5
echo
"
${
ECHO_T
}
yes"
>
&6
case
$host_os
in
openbsd
*
|
freebsd
*
)
{
{
echo
"
$as_me
:
$LINENO
: error: *** Threaded Python not supported on this platform ***"
>
&5
echo
"
$as_me
: error: *** Threaded Python not supported on this platform ***"
>
&2
;
}
{
(
exit
1
)
;
exit
1
;
}
;
}
;;
esac
else
echo
"
$as_me
:
$LINENO
: result: no"
>
&5
echo
"
${
ECHO_T
}
no"
>
&6
fi
fi
...
...
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