1
# DP: Remove cthreads detection
7
# Templates for things AC_DEFINEd more than once.
8
# For a single AC_DEFINE, no template is needed.
9
-AH_TEMPLATE(C_THREADS,[Define if you have the Mach cthreads package])
10
AH_TEMPLATE(_REENTRANT,
11
[Define to force use of thread-safe errno, h_errno, and other functions])
12
AH_TEMPLATE(WITH_THREAD,
13
@@ -2128,17 +2127,6 @@
14
AC_MSG_RESULT($unistd_defines_pthreads)
17
- AC_CHECK_HEADER(cthreads.h, [AC_DEFINE(WITH_THREAD)
18
- AC_DEFINE(C_THREADS)
19
- AC_DEFINE(HURD_C_THREADS, 1,
20
- [Define if you are using Mach cthreads directly under /include])
21
- LIBS="$LIBS -lthreads"
22
- THREADOBJ="Python/thread.o"],[
23
- AC_CHECK_HEADER(mach/cthreads.h, [AC_DEFINE(WITH_THREAD)
24
- AC_DEFINE(C_THREADS)
25
- AC_DEFINE(MACH_C_THREADS, 1,
26
- [Define if you are using Mach cthreads under mach /])
27
- THREADOBJ="Python/thread.o"],[
28
# Just looking for pthread_create in libpthread is not enough:
29
# on HP/UX, pthread.h renames pthread_create to a different symbol name.
30
# So we really have to include pthread.h, and then link.
33
THREADOBJ="Python/thread.o"],[
34
USE_THREAD_MODULE="#"])
38
AC_CHECK_LIB(mpc, usconfig, [AC_DEFINE(WITH_THREAD)