$NetBSD: patch-configure,v 1.3 2016/01/08 10:08:16 fhajny Exp $

Portability. Avoid mangling of other compiler debug flags.

--- configure.orig	2015-10-15 04:47:15.000000000 +0000
+++ configure
@@ -20702,7 +20702,7 @@ $as_echo "no" >&6; }
 fi
 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
-if ( test "$RUDIMENTS_HAVE_SCO" == "yes" -a "$CXX" == "CC" )
+if ( test "$RUDIMENTS_HAVE_SCO" = "yes" -a "$CXX" = "CC" )
 then
 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long type" >&5
 $as_echo_n "checking for long long type... " >&6; }
@@ -29896,7 +29896,7 @@ GETPGIDLIB=""
 if ( test "$HAVE_GETPGID" = "yes" )
 then
 SAVECXXFLAGS="$CXXFLAGS"
-CXXFLAGS=`echo $CXXFLAGS | sed -e "s|-g1||" -e "s|-g2||" -e "s|-g3||" -e "s|-g||"`
+CXXFLAGS=`echo $CXXFLAGS | sed -e "s|-g1||" -e "s|-g2||" -e "s|-g3||" -e "s|-g ||" -e "s|-g$||"`
 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getpgid needs -lg" >&5
 $as_echo_n "checking whether getpgid needs -lg... " >&6; }
 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
