[SCM] Samba Shared Repository - branch master updated - release-4-0-0alpha7-1412-gcacfd6e

Volker Lendecke vlendec at samba.org
Sat May 2 15:16:07 GMT 2009


The branch, master has been updated
       via  cacfd6ee01382c7d52a7cdefa30c87bfe347af23 (commit)
      from  4b3e89c2e7f5e36edd436fccefb852a616ef2110 (commit)

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=master


- Log -----------------------------------------------------------------
commit cacfd6ee01382c7d52a7cdefa30c87bfe347af23
Author: Volker Lendecke <vl at samba.org>
Date:   Sat May 2 17:14:36 2009 +0200

    Explicitly link in pthreads for lib/pthreadpool if required
    
    No idea why it works on my Linux without -lpthread ... :-)

-----------------------------------------------------------------------

Summary of changes:
 source3/configure.in |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source3/configure.in b/source3/configure.in
index fc925ee..0796ff2 100644
--- 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


-- 
Samba Shared Repository


More information about the samba-cvs mailing list