$NetBSD: patch-configure,v 1.3 2025/03/04 13:05:20 adam Exp $

Fix broken BOOST_LIB_DIR detection.
Fix unportable test(1) operator.

--- configure.orig	2024-09-15 12:26:57.000000000 +0000
+++ configure
@@ -19279,7 +19279,7 @@ fi
 
 
   if test "x$succeeded" = "xyes" ; then
-    BOOST_LIB_DIR=$(echo "$BOOST_LDFLAGS" | sed -e 's/^\-L//')
+    BOOST_LIB_DIR=$PREFIX/lib
 
     BOOST_CHRONO_LDADD=$(echo "$BOOST_LIB_DIR/libboost_chrono.a")
 
@@ -24518,7 +24518,7 @@ printf "%s\n" "yes" >&6; }
 
           # Test whether OPTLINK is used by trying if DMD accepts -L/? without
           # erroring out.
-          if test "$success" == "yes" ; then
+          if test "$success" = "yes" ; then
             { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether DMD uses OPTLINK" >&5
 printf %s "checking whether DMD uses OPTLINK... " >&6; }
             echo "Running \”$DMD -L/? configtest_ax_dmd.d\"" >&5
