diff options
author | hobbs <hobbs> | 1999-11-10 02:52:41 (GMT) |
---|---|---|
committer | hobbs <hobbs> | 1999-11-10 02:52:41 (GMT) |
commit | 04cff1ae61aba403e854b7e583552b004155ac49 (patch) | |
tree | 3b84c551d9a8aad8b3e66d0c7e3b266edf453b51 /unix | |
parent | e9ba4a78e358c252bf41bcb41c1c881ff77b30c4 (diff) | |
download | tcl-04cff1ae61aba403e854b7e583552b004155ac49.zip tcl-04cff1ae61aba403e854b7e583552b004155ac49.tar.gz tcl-04cff1ae61aba403e854b7e583552b004155ac49.tar.bz2 |
* unix/tcl.m4: added recognition of pthreads library for AIX
Diffstat (limited to 'unix')
-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 40cb6eb..d7fdbe1 100644 --- a/unix/tcl.m4 +++ b/unix/tcl.m4 @@ -366,8 +366,14 @@ AC_DEFUN(SC_ENABLE_THREADS, [ # The space is needed THREADS_LIBS=" -lpthread" 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...") + AC_CHECK_LIB(pthreads,pthread_mutex_init,tcl_ok=yes,tcl_ok=no) + if test "$tcl_ok" = "yes"; then + # The space is needed + THREADS_LIBS=" -lpthreads" + 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 else TCL_THREADS=0 |