From fad6136794c828d24c5d34f39a62da55e53aab77 Mon Sep 17 00:00:00 2001 From: George Bosilca Date: Tue, 29 Jan 2008 05:24:56 +0000 Subject: [PATCH] To be or not to be ! As DR require 64 bits atomics, only allow it to build when thread support is disabled or we have 64 bits atomics support. This commit was SVN r17293. --- ompi/mca/pml/dr/configure.m4 | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 ompi/mca/pml/dr/configure.m4 diff --git a/ompi/mca/pml/dr/configure.m4 b/ompi/mca/pml/dr/configure.m4 new file mode 100644 index 0000000000..f7a683f0a2 --- /dev/null +++ b/ompi/mca/pml/dr/configure.m4 @@ -0,0 +1,23 @@ +# -*- shell-script -*- +# +# Copyright (c) 2004-2008 The Trustees of the University of Tennessee. +# All rights reserved. +# $COPYRIGHT$ +# +# Additional copyrights may follow +# +# $HEADER$ +# + +# MCA_pml_dr_CONFIG([action-if-found], [action-if-not-found]) +# ----------------------------------------------------------- +AC_DEFUN([MCA_pml_dr_CONFIG],[ + # Dont compile DR if threading is enabled but there is no + # support for 64 bits atomics. + AS_IF([test $OMPI_ASM_SUPPORT_64BIT -eq 1], + [$1], + [AS_IF([test $OMPI_ENABLE_PROGRESS_THREADS -eq 1 -o $OMPI_ENABLE_MPI_THREADS -eq 1], + [$2], + [$1]) + ]) +])dnl