Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 79f0f7c

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 10eb60c commit 79f0f7c

File tree

2 files changed

+0
-31
lines changed

2 files changed

+0
-31
lines changed

config/python.m4

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -95,18 +95,4 @@ AC_SUBST(python_libspec)[]dnl
9595
AC_SUBST(python_additional_libs)[]dnl
9696
AC_SUBST(python_enable_shared)[]dnl
9797
98-
# threaded python is not supported on OpenBSD
99-
AC_MSG_CHECKING(whether Python is compiled with thread support)
100-
pythreads=`${PYTHON} -c "import sys; print(int('thread' in sys.builtin_module_names))"`
101-
if test "$pythreads" = "1"; then
102-
AC_MSG_RESULT(yes)
103-
case $host_os in
104-
openbsd*)
105-
AC_MSG_ERROR([threaded Python not supported on this platform])
106-
;;
107-
esac
108-
else
109-
AC_MSG_RESULT(no)
110-
fi
111-
11298
])# PGAC_CHECK_PYTHON_EMBED_SETUP

configure

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -7488,23 +7488,6 @@ python_additional_libs=`${PYTHON} -c "import distutils.sysconfig; print(' '.join
74887488
$as_echo "${python_libspec} ${python_additional_libs}" >&6; }
74897489

74907490

7491-
# threaded python is not supported on OpenBSD
7492-
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Python is compiled with thread support" >&5
7493-
$as_echo_n "checking whether Python is compiled with thread support... " >&6; }
7494-
pythreads=`${PYTHON} -c "import sys; print(int('thread' in sys.builtin_module_names))"`
7495-
if test "$pythreads" = "1"; then
7496-
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7497-
$as_echo "yes" >&6; }
7498-
case $host_os in
7499-
openbsd*)
7500-
as_fn_error $? "threaded Python not supported on this platform" "$LINENO" 5
7501-
;;
7502-
esac
7503-
else
7504-
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7505-
$as_echo "no" >&6; }
7506-
fi
7507-
75087491

75097492
fi
75107493

0 commit comments

Comments
 (0)