From 9c1be10509882ded41279d327c144106a30c06b1 Mon Sep 17 00:00:00 2001 From: David Lamparter Date: Thu, 16 Jan 2020 20:23:23 +0100 Subject: [PATCH] build: fix shell == mis-use The "test" program uses =, not ==. A lot of shells accept == as an extension, but not all do and it's technically out of spec. Signed-off-by: David Lamparter --- configure.ac | 2 +- m4/ax_python.m4 | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/configure.ac b/configure.ac index 4158fdec3073..1e79c3c2e89f 100755 --- a/configure.ac +++ b/configure.ac @@ -30,7 +30,7 @@ build_clippy="true" dnl case 1: external clippy if test -n "$with_clippy" -a "$with_clippy" != "no" -a "$with_clippy" != "yes"; then - if test "$enable_clippy_only" == "yes"; then + if test "$enable_clippy_only" = "yes"; then AC_MSG_ERROR([--enable-clippy-only does not make sense with --with-clippy]) fi diff --git a/m4/ax_python.m4 b/m4/ax_python.m4 index 66338511a359..69809184ee84 100644 --- a/m4/ax_python.m4 +++ b/m4/ax_python.m4 @@ -186,7 +186,7 @@ AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl AC_MSG_RESULT([yes]) PYTHON_CFLAGS="`\"$pycfg\" --includes`" - if test x"${py_ver}" == x"3.8" || test x"{py_ver}" == x"3.9"; then + if test x"${py_ver}" = x"3.8" || test x"{py_ver}" = x"3.9"; then PYTHON_LIBS="`\"$pycfg\" --ldflags --embed`" else PYTHON_LIBS="`\"$pycfg\" --ldflags`"