summaryrefslogtreecommitdiff
path: root/m4
diff options
context:
space:
mode:
authorOssama Othman <ossama-othman@users.noreply.github.com>1999-03-24 02:47:11 +0000
committerOssama Othman <ossama-othman@users.noreply.github.com>1999-03-24 02:47:11 +0000
commit756d70bb914453dbb936cd0e42f1f8a7708df0a1 (patch)
treec169e2f23b91d350dc31e06ede3854a775f047cb /m4
parent3a23d1c4fedadea340f951312c43713374570303 (diff)
downloadATCD-756d70bb914453dbb936cd0e42f1f8a7708df0a1.tar.gz
* m4/threads.m4: Modified UNIX International threads check to include
check for rwlock_destroy() in -lthread since thr_create() was found without explicitly linking to -lthread on Solaris 2.5.1. rwlock_destroy() should be found only by linking to -lthread which will cause the configure script to add -lthread to the library link list.
Diffstat (limited to 'm4')
-rw-r--r--m4/threads.m44
1 files changed, 4 insertions, 0 deletions
diff --git a/m4/threads.m4 b/m4/threads.m4
index 60b91c02afa..d88b4fface7 100644
--- a/m4/threads.m4
+++ b/m4/threads.m4
@@ -202,6 +202,10 @@ dnl So, we have to add it manually.
],)
])
+ dnl Sometimes thr_create is actually found with explicitly linking against
+ dnl -lthread, so try a more "exotic" function.
+ AC_CHECK_FUNC(rwlock_destroy, , AC_CHECK_LIB(thread, rwlock_destroy,,))dnl
+
dnl Check for POSIX threads
dnl Check if platform provides pthreads backward compatibility macros