From 730d3e8973e3ef99aad126776a1db51282b226cb Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Mon, 16 Jul 2012 13:26:12 +0200 Subject: s3: Compile with pthreadpool by default Signed-off-by: Jeremy Allison --- source3/configure.in | 8 +++----- source3/wscript | 2 +- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/source3/configure.in b/source3/configure.in index 4d3db00e40..6a26038d68 100644 --- a/source3/configure.in +++ b/source3/configure.in @@ -6258,19 +6258,17 @@ fi # Check if user wants pthreadpool support AC_ARG_ENABLE(pthreadpool, -[AS_HELP_STRING([--enable-pthreadpool], [Enable pthreads pool helper support (default=no)])]) +[AS_HELP_STRING([--enable-pthreadpool], [Enable pthreads pool helper support (default=yes)])]) if test x"$enable_pthreadpool" = xyes -a x"$samba_cv_HAVE_PTHREAD" != x"yes"; then AC_MSG_ERROR([pthreadpool support cannot be enabled when pthread support was not found]) fi -if test x"$enable_pthreadpool" = x"yes" -a x"$samba_cv_HAVE_PTHREAD" = x"yes"; then +if test x"$enable_pthreadpool" != x"no" -a x"$samba_cv_HAVE_PTHREAD" = x"yes"; then LIBS="$LIBS $PTHREAD_LDFLAGS" CFLAGS="$CFLAGS $PTHREAD_CFLAGS" AC_SUBST(PTHREADPOOL_OBJ, "lib/pthreadpool/pthreadpool.o") - if test x"$samba_cv_HAVE_AIO" = x"yes"; then - default_shared_modules="$default_shared_modules vfs_aio_pthread" - fi + default_shared_modules="$default_shared_modules vfs_aio_pthread" else AC_SUBST(PTHREADPOOL_OBJ, "lib/pthreadpool/pthreadpool_sync.o") fi diff --git a/source3/wscript b/source3/wscript index 90a4b76570..91ffc2599a 100755 --- a/source3/wscript +++ b/source3/wscript @@ -37,7 +37,7 @@ def set_options(opt): opt.SAMBA3_ADD_OPTION('sys-quotas') opt.SAMBA3_ADD_OPTION('sendfile-support') opt.SAMBA3_ADD_OPTION('utmp') - opt.SAMBA3_ADD_OPTION('pthreadpool', with_name="enable", without_name="disable") + opt.SAMBA3_ADD_OPTION('pthreadpool', with_name="enable", without_name="disable", default=True) opt.SAMBA3_ADD_OPTION('avahi', with_name="enable", without_name="disable") opt.SAMBA3_ADD_OPTION('iconv') opt.SAMBA3_ADD_OPTION('acl-support') -- cgit