diff options
author | mdejong <mdejong> | 2001-11-09 10:59:39 (GMT) |
---|---|---|
committer | mdejong <mdejong> | 2001-11-09 10:59:39 (GMT) |
commit | ccc9be49297a06b486b8c0874a37b19729659ffa (patch) | |
tree | fa4fe65e712d9ed965a3774023ad1952a52740cf /unix/tcl.m4 | |
parent | 263fc29415c791d179a385258a16a1201fff5033 (diff) | |
download | tk-ccc9be49297a06b486b8c0874a37b19729659ffa.zip tk-ccc9be49297a06b486b8c0874a37b19729659ffa.tar.gz tk-ccc9be49297a06b486b8c0874a37b19729659ffa.tar.bz2 |
* unix/configure:
* unix/tcl.m4: Update from Tcl.
Diffstat (limited to 'unix/tcl.m4')
-rw-r--r-- | unix/tcl.m4 | 10 |
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 |