git.samba.org
/
ira
/
wip.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4b3e89c
)
Explicitly link in pthreads for lib/pthreadpool if required
author
Volker Lendecke
<vl@samba.org>
Sat, 2 May 2009 15:14:36 +0000
(17:14 +0200)
committer
Volker Lendecke
<vl@samba.org>
Sat, 2 May 2009 15:15:02 +0000
(17:15 +0200)
No idea why it works on my Linux without -lpthread ... :-)
source3/configure.in
patch
|
blob
|
history
diff --git
a/source3/configure.in
b/source3/configure.in
index fc925ee736a469a2095ed0a6a58cb55ae1f8d12f..0796ff2d7d24b862a0c6eeadb2df42cb32de91a5 100644
(file)
--- a/
source3/configure.in
+++ b/
source3/configure.in
@@
-6059,6
+6059,9
@@
AC_ARG_ENABLE(pthreadpool,
[AS_HELP_STRING([--enable-pthreadpool], [Enable pthreads pool helper support (default=auto)])])
if test x"$enable_pthreadpool" != x"no" -a x"$samba_cv_HAVE_PTHREAD" = x"yes"; then
+ AC_TRY_LINK([#include "pthread.h"],
+ [pthread_create(NULL, NULL, NULL, NULL)],
+ ,LIBS="$LIBS -lpthread")
AC_DEFINE(WITH_PTHREADPOOL, 1, [Whether to include pthreadpool helpers])
AC_SUBST(PTHREADPOOL_OBJ, "lib/pthreadpool.o")
fi