summaryrefslogtreecommitdiffstats
path: root/configure.in
diff options
context:
space:
mode:
authorMartin v. Löwis <martin@v.loewis.de>2002-03-15 13:48:21 (GMT)
committerMartin v. Löwis <martin@v.loewis.de>2002-03-15 13:48:21 (GMT)
commit3d2b549d567ff9b2a63f73091094534963606c55 (patch)
tree8c428ad28a4acd7c4eb055a063a188f3babe2dbd /configure.in
parentff0a7b8ca2c3666c7c863cc2c685c277bad05b6b (diff)
downloadcpython-3d2b549d567ff9b2a63f73091094534963606c55.zip
cpython-3d2b549d567ff9b2a63f73091094534963606c55.tar.gz
cpython-3d2b549d567ff9b2a63f73091094534963606c55.tar.bz2
Patch 527434: Avoid double inclusion of thread.o on Sol2.8.
Diffstat (limited to 'configure.in')
-rw-r--r--configure.in11
1 files changed, 7 insertions, 4 deletions
diff --git a/configure.in b/configure.in
index 3bdb667..ee6b4bb 100644
--- a/configure.in
+++ b/configure.in
@@ -1133,10 +1133,13 @@ pthread_create (NULL, NULL, start_routine, NULL)], [
LIBS="$LIBS -lmpc"
LIBOBJS="$LIBOBJS thread.o"
USE_THREAD_MODULE=""])
- AC_CHECK_LIB(thread, thr_create, [AC_DEFINE(WITH_THREAD)
- LIBS="$LIBS -lthread"
- LIBOBJS="$LIBOBJS thread.o"
- USE_THREAD_MODULE=""])
+
+ if test $posix_threads != "yes"; then
+ AC_CHECK_LIB(thread, thr_create, [AC_DEFINE(WITH_THREAD)
+ LIBS="$LIBS -lthread"
+ LIBOBJS="$LIBOBJS thread.o"
+ USE_THREAD_MODULE=""])
+ fi
if test "$USE_THREAD_MODULE" != "#"
then