From d440ee80a4ff85b747ce25a7b04b1042a89b6a35 Mon Sep 17 00:00:00 2001 From: Gilles Gouaillardet Date: Mon, 25 Aug 2014 06:57:30 +0000 Subject: [PATCH] oshmem configury: fix a test Fix a test in r32590 Refs trac:4868 This commit was SVN r32594. The following SVN revision numbers were found above: r32590 --> open-mpi/ompi@36b315db2d7613d5a6070ac16181990393a121b8 The following Trac tickets were found above: Ticket 4868 --> https://svn.open-mpi.org/trac/ompi/ticket/4868 --- config/oshmem_setup_profiling.m4 | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/config/oshmem_setup_profiling.m4 b/config/oshmem_setup_profiling.m4 index 838c11b8db..c31c373107 100644 --- a/config/oshmem_setup_profiling.m4 +++ b/config/oshmem_setup_profiling.m4 @@ -1,6 +1,8 @@ # -*- shell-script -*- # # Copyright (c) 2014 Cisco Systems, Inc. All rights reserved. +# Copyright (c) 2014 Research Organization for Information Science +# and Technology (RIST). All rights reserved. # $COPYRIGHT$ # # Additional copyrights may follow @@ -30,8 +32,8 @@ AC_DEFUN([OSHMEM_SETUP_PROFILING],[ [AC_MSG_WARN([Macro weak symbols not supported by compiler])]) AC_MSG_WARN([OpenSHMEM profiling is disabled.]) - AS_IF(["$enable_oshmem_profile" = "yes" -a - $oshmem_profiling_support -eq 0], + AS_IF([test "$enable_oshmem_profile" = "yes" && \ + test "$oshmem_profiling_support" -eq 0], [AC_MSG_WARN([OpenSHMEM profiling requested but cannot be enabled]) AC_MSG_ERROR([Cannot continue])]) ])