]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
Build aio_fork by default
authorVolker Lendecke <vl@samba.org>
Sat, 1 Mar 2008 09:22:04 +0000 (10:22 +0100)
committerVolker Lendecke <vl@samba.org>
Sat, 8 Mar 2008 11:31:12 +0000 (12:31 +0100)
... only when --with-aio-support and we can pass file descriptors

source/configure.in

index f884d9344ad6cde8e2925f9a7a765232f53ab649..2e6c1093119189926205017006ff69d671f68eba 100644 (file)
@@ -5341,6 +5341,13 @@ int main() { struct aiocb a; return aio_suspend64(&a, 1, NULL); }],
   AC_MSG_RESULT(no)
 )
 
+if test x"$samba_cv_HAVE_AIO" = x"yes"; then
+       if test x"$samba_cv_msghdr_msg_control" = x"yes" -o \
+               x"$samba_cv_msghdr_msg_acctright" = x"yes"; then
+               default_shared_modules="$default_shared_modules vfs_aio_fork"
+       fi
+fi
+
 #################################################
 # check for sendfile support