]> git.proxmox.com Git - mirror_frr.git/commitdiff
build: fix shell == mis-use
authorDavid Lamparter <equinox@diac24.net>
Thu, 16 Jan 2020 19:23:23 +0000 (20:23 +0100)
committerDavid Lamparter <equinox@diac24.net>
Fri, 17 Jan 2020 12:53:59 +0000 (13:53 +0100)
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 <equinox@diac24.net>
configure.ac
m4/ax_python.m4

index 4158fdec30733429e1a66173330781c7fcab476b..1e79c3c2e89fffd888958cc09fd620fb158ad3ef 100755 (executable)
@@ -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
 
index 66338511a3591e0a3e325b4af6f11e2155c2df31..69809184ee84ab2b709a7e541c22ce6348f50736 100644 (file)
@@ -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`"