mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
When --with-thread(s) is specified, the thread module is now automatically
enabled. This is done through a substitution in Modules/Setup.thread(.in). Bill Janssen will be happy. The original idea was by Lele Gaifax (though I changed the implementation to use a separate file).
This commit is contained in:
parent
a0cbb3dbae
commit
009f78754d
2 changed files with 127 additions and 115 deletions
|
@ -348,6 +348,9 @@ AC_ARG_WITH(readline,
|
|||
AC_ERROR(--with(out)-readline is obsolete, edit Modules/Setup instead)],
|
||||
[AC_MSG_RESULT(not specified.)])
|
||||
|
||||
AC_SUBST(USE_THREAD_MODULE)
|
||||
USE_THREAD_MODULE="#"
|
||||
|
||||
AC_MSG_CHECKING(for --with-dec-threads)
|
||||
AC_SUBST(LDLAST)
|
||||
AC_ARG_WITH(dec-threads,
|
||||
|
@ -369,6 +372,7 @@ AC_MSG_RESULT(no))
|
|||
|
||||
AC_MSG_CHECKING(for --with-thread)
|
||||
AC_ARG_WITH(thread, [--with-thread[=DIRECTORY] make interpreter thread-safe], [
|
||||
USE_THREAD_MODULE=
|
||||
AC_MSG_RESULT($withval)
|
||||
if test -d "$withval"
|
||||
then LDFLAGS="$LDFLAGS -L$withval"
|
||||
|
@ -642,4 +646,5 @@ AC_OUTPUT(Makefile \
|
|||
Objects/Makefile \
|
||||
Parser/Makefile \
|
||||
Python/Makefile \
|
||||
Modules/Makefile.pre)
|
||||
Modules/Makefile.pre \
|
||||
Modules/Setup.thread)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue