Skip to content

Commit b06649b

Browse files
committed
Remove configure check prohibiting threaded libpython on OpenBSD.
According to recent tests, this case now works fine, so there's no reason to reject it anymore. (Even if there are still some OpenBSD platforms in the wild where it doesn't work, removing the check won't break any case that worked before.) We can actually remove the entire test that discovers whether libpython is threaded, since without the OpenBSD case there's no need to know that at all. Per report from Davin Potts. Back-patch to all active branches.
1 parent 991dee2 commit b06649b

File tree

2 files changed

+0
-33
lines changed

2 files changed

+0
-33
lines changed

config/python.m4

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -80,18 +80,4 @@ AC_SUBST(python_libdir)[]dnl
8080
AC_SUBST(python_libspec)[]dnl
8181
AC_SUBST(python_additional_libs)[]dnl
8282
83-
# threaded python is not supported on OpenBSD
84-
AC_MSG_CHECKING(whether Python is compiled with thread support)
85-
pythreads=`${PYTHON} -c "import sys; print(int('thread' in sys.builtin_module_names))"`
86-
if test "$pythreads" = "1"; then
87-
AC_MSG_RESULT(yes)
88-
case $host_os in
89-
openbsd*)
90-
AC_MSG_ERROR([threaded Python not supported on this platform])
91-
;;
92-
esac
93-
else
94-
AC_MSG_RESULT(no)
95-
fi
96-
9783
])# PGAC_CHECK_PYTHON_EMBED_SETUP

configure

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -7146,25 +7146,6 @@ python_additional_libs=`${PYTHON} -c "import distutils.sysconfig,string; print('
71467146
$as_echo "${python_libspec} ${python_additional_libs}" >&6; }
71477147

71487148

7149-
# threaded python is not supported on OpenBSD
7150-
{ $as_echo "$as_me:$LINENO: checking whether Python is compiled with thread support" >&5
7151-
$as_echo_n "checking whether Python is compiled with thread support... " >&6; }
7152-
pythreads=`${PYTHON} -c "import sys; print(int('thread' in sys.builtin_module_names))"`
7153-
if test "$pythreads" = "1"; then
7154-
{ $as_echo "$as_me:$LINENO: result: yes" >&5
7155-
$as_echo "yes" >&6; }
7156-
case $host_os in
7157-
openbsd*)
7158-
{ { $as_echo "$as_me:$LINENO: error: threaded Python not supported on this platform" >&5
7159-
$as_echo "$as_me: error: threaded Python not supported on this platform" >&2;}
7160-
{ (exit 1); exit 1; }; }
7161-
;;
7162-
esac
7163-
else
7164-
{ $as_echo "$as_me:$LINENO: result: no" >&5
7165-
$as_echo "no" >&6; }
7166-
fi
7167-
71687149

71697150
fi
71707151

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