[PATCH] [mama] Add libpthread to library list for sem_timedwait

Michael Schonberg <mschonberg@...>

From: Mike Schonberg <mschonberg@...>

configure.ac needs to search for sem_timedwait in both librt and libpthread.
On OS's like certain Solaris versions that do not support sem_timedwait(),
OpenMAMA provides an implentation.

Signed-off-by: Mike Schonberg <mschonberg@...>
mama/c_cpp/configure.ac | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/mama/c_cpp/configure.ac b/mama/c_cpp/configure.ac
index e70e918..0ff4380 100644
--- a/mama/c_cpp/configure.ac
+++ b/mama/c_cpp/configure.ac
@@ -106,7 +106,7 @@ AC_CHECK_LIB(socket,socket)

# SOLARIS 8 does not have sem_timedwait
-AC_SEARCH_LIBS(sem_timedwait, rt,
+AC_SEARCH_LIBS(sem_timedwait, rt pthread,
echo "Found sem_timedwait()."

Join Openmama-dev@lists.openmama.org to automatically receive all group messages.