Skip to content

Commit 21c0319

Browse files
author
Ralph Castain
authored
Merge pull request #4018 from rhc54/topic/test
Fix incorrect usage of '==' in test comparisons
2 parents 88a7c9d + f128b4c commit 21c0319

File tree

5 files changed

+10
-9
lines changed

5 files changed

+10
-9
lines changed

config/opal_setup_zlib.m4

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ AC_DEFUN([OPAL_ZLIB_CONFIG],[
5656
[$opal_zlib_libdir],
5757
[opal_zlib_support=1],
5858
[opal_zlib_support=0])
59-
if test $opal_zlib_support == "1"; then
59+
if test $opal_zlib_support = "1"; then
6060
LIBS="$LIBS -lz"
6161
if test "$opal_zlib_standard_header_location" != "yes"; then
6262
CPPFLAGS="$CPPFLAGS $opal_zlib_CPPFLAGS"

opal/mca/pmix/pmix2x/configure.m4

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ AC_DEFUN([MCA_opal_pmix_pmix2x_CONFIG],[
5353
[AC_HELP_STRING([--enable-pmix-timing],
5454
[Enable PMIx timing measurements (default: disabled)])])
5555
AC_MSG_CHECKING([if PMIx timing is enabled])
56-
if test "$enable_pmix_timing" == "yes"; then
56+
if test "$enable_pmix_timing" = "yes"; then
5757
AC_MSG_RESULT([yes])
5858
opal_pmix_pmix2x_timing_flag=--enable-pmix-timing
5959
else

opal/mca/pmix/pmix2x/pmix/config/pmix.m4

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -933,7 +933,7 @@ AC_MSG_CHECKING([if want shared memory datastore])
933933
AC_ARG_ENABLE([dstore],
934934
[AC_HELP_STRING([--disable-dstore],
935935
[Using shared memory datastore (default: enabled)])])
936-
if test "$enable_dstore" == "no" ; then
936+
if test "$enable_dstore" = "no" ; then
937937
AC_MSG_RESULT([no])
938938
WANT_DSTORE=0
939939
else
@@ -952,7 +952,7 @@ AC_MSG_CHECKING([if want dstore pthread-based locking])
952952
AC_ARG_ENABLE([dstore-pthlck],
953953
[AC_HELP_STRING([--disable-dstore-pthlck],
954954
[Disable pthread-based lockig in dstor (default: enabled)])])
955-
if test "$enable_dstore_pthlck" == "no" ; then
955+
if test "$enable_dstore_pthlck" = "no" ; then
956956
AC_MSG_RESULT([no])
957957
DSTORE_PTHREAD_LOCK="0"
958958
else

opal/mca/pmix/pmix2x/pmix/config/pmix_check_lock.m4

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ dnl All rights reserved.
55
dnl Copyright (c) 2017 IBM Corporation. All rights reserved.
66
dnl Copyright (c) 2017 Research Organization for Information Science
77
dnl and Technology (RIST). All rights reserved.
8+
dnl Copyright (c) 2017 Intel, Inc. All rights reserved.
89
dnl $COPYRIGHT$
910
dnl
1011
dnl Additional copyrights may follow
@@ -26,7 +27,7 @@ AC_DEFUN([PMIX_CHECK_DSTOR_LOCK],[
2627
_x_ac_fcntl_lock_found="1"
2728
], [], [#include <fcntl.h>])
2829

29-
if test "$DSTORE_PTHREAD_LOCK" == "1"; then
30+
if test "$DSTORE_PTHREAD_LOCK" = "1"; then
3031
AC_CHECK_FUNC([pthread_rwlockattr_setkind_np],
3132
[AC_EGREP_HEADER([PTHREAD_RWLOCK_PREFER_WRITER_NONRECURSIVE_NP],
3233
[pthread.h],[
@@ -43,15 +44,15 @@ AC_DEFUN([PMIX_CHECK_DSTOR_LOCK],[
4344
])
4445
])
4546

46-
if test "$_x_ac_pthread_lock_found" == "0"; then
47-
if test "$_x_ac_fcntl_lock_found" == "1"; then
47+
if test "$_x_ac_pthread_lock_found" = "0"; then
48+
if test "$_x_ac_fcntl_lock_found" = "1"; then
4849
AC_MSG_WARN([dstore: pthread-based locking not found, will use fcntl-based locking.])
4950
else
5051
AC_MSG_ERROR([dstore: no available locking mechanisms was found. Can not continue. Try disabling dstore])
5152
fi
5253
fi
5354
else
54-
if test "$_x_ac_fcntl_lock_found" == "0"; then
55+
if test "$_x_ac_fcntl_lock_found" = "0"; then
5556
AC_MSG_ERROR([dstore: no available locking mechanisms was found. Can not continue. Try disabling dstore])
5657
fi
5758
LIBS="$orig_libs"

opal/mca/pmix/pmix2x/pmix/config/pmix_setup_zlib.m4

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ AC_DEFUN([PMIX_ZLIB_CONFIG],[
5656
[$pmix_zlib_libdir],
5757
[pmix_zlib_support=1],
5858
[pmix_zlib_support=0])
59-
if test $pmix_zlib_support == "1"; then
59+
if test $pmix_zlib_support = "1"; then
6060
LIBS="$LIBS -lz"
6161
PMIX_EMBEDDED_LIBS="$PMIX_EMBEDDED_LIBS -lz"
6262
if test "$pmix_zlib_standard_header_location" != "yes"; then

0 commit comments

Comments
 (0)