summaryrefslogtreecommitdiffstats
path: root/unix/tcl.m4
diff options
context:
space:
mode:
authormdejong <mdejong>2001-11-09 10:56:36 (GMT)
committermdejong <mdejong>2001-11-09 10:56:36 (GMT)
commitb90b89bed34aa5b960fbe1973bffc54bf0527b7c (patch)
tree1c45625c5df8cdcaf0b8663d8176337767d16068 /unix/tcl.m4
parent31b7282d515996a6120c332d856e109bf08c9ee7 (diff)
downloadtcl-b90b89bed34aa5b960fbe1973bffc54bf0527b7c.zip
tcl-b90b89bed34aa5b960fbe1973bffc54bf0527b7c.tar.gz
tcl-b90b89bed34aa5b960fbe1973bffc54bf0527b7c.tar.bz2
Enable thread support under FreeBSD. [Tcl bug 473708]
* unix/configure: Regen. * unix/tcl.m4 (SC_ENABLE_THREADS): Check for pthread functions in libc_r and enable thread support if found. * unix/dltest/Makefile.in: Set SHLIB_LD_LIBS and use it in the Makefile to properly link a shared library.
Diffstat (limited to 'unix/tcl.m4')
-rw-r--r--unix/tcl.m410
1 files changed, 8 insertions, 2 deletions
diff --git a/unix/tcl.m4 b/unix/tcl.m4
index 0fafaf3..7af0c0c 100644
--- a/unix/tcl.m4
+++ b/unix/tcl.m4
@@ -361,8 +361,14 @@ AC_DEFUN(SC_ENABLE_THREADS, [
else
AC_CHECK_LIB(c,pthread_mutex_init,tcl_ok=yes,tcl_ok=no)
if test "$tcl_ok" = "no"; then
- TCL_THREADS=0
- AC_MSG_WARN("Don t know how to find pthread lib on your system - you must disable thread support or edit the LIBS in the Makefile...")
+ AC_CHECK_LIB(c_r,pthread_mutex_init,tcl_ok=yes,tcl_ok=no)
+ if test "$tcl_ok" = "yes"; then
+ # The space is needed
+ THREADS_LIBS=" -pthread"
+ else
+ TCL_THREADS=0
+ AC_MSG_WARN("Don t know how to find pthread lib on your system - you must disable thread support or edit the LIBS in the Makefile...")
+ fi
fi
fi
fi