$NetBSD: patch-configure,v 1.2 2023/02/19 01:51:01 mef Exp $

Fix "==" tests.

--- configure.orig	2022-07-05 13:13:31.000000000 +0900
+++ configure	2023-02-19 10:45:53.963992687 +0900
@@ -3534,7 +3534,7 @@
 
 
 have_cairo=no
-if test "xx$CAIRO_LIBS" == "xx"; then
+if test "xx$CAIRO_LIBS" = "xx"; then
    if test "xx$PKGCONF" != "xx"; then
       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pkg-config knows about cairo" >&5
 printf %s "checking whether pkg-config knows about cairo... " >&6; }
@@ -3754,8 +3754,8 @@
 rm -f core conftest.err conftest.$ac_objext conftest.beam \
     conftest$ac_exeext conftest.$ac_ext
 
-if test "xx${CAIRO_LIBS}" == "xx"; then
-   if test $uses_ats == "yes"; then
+if test "xx${CAIRO_LIBS}" = "xx"; then
+   if test $uses_ats = "yes"; then
       CAIRO_LIBS="-lcairo -lpng -lz -framework ApplicationServices"
    else
       CAIRO_LIBs="-lcairo -lpng -lz"
@@ -5227,7 +5227,7 @@
 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
   line = \$ 0
   split(line, arg, " ")
-  if (arg[1] == "#") {
+  if (arg[1] = "#") {
     defundef = arg[2]
     mac1 = arg[3]
   } else {
@@ -5245,7 +5245,7 @@
     # Replace #undef with comments.  This is necessary, for example,
     # in the case of _POSIX_SOURCE, which is predefined and required
     # on some systems where configure will not decide to define it.
-    if (defundef == "undef") {
+    if (defundef = "undef") {
       print "/*", prefix defundef, macro, "*/"
       next
     }
