build fails w/ sed errors



I have GNU sed version 3.02. I tried updating msys, but I still have the 
same sed version. 
And configure gives plenty of errors (with either ccl or sbcl)

config.status: creating maxima-local
sed: file ./confstat5168-26447/subs-3.sed line 51: Unterminated `s' 
command
sed: file ./confstat5168-26447/subs-4.sed line 3: Unknown command: ``"''
sed: file ./confstat5168-26447/subs-5.sed line 3: Unknown command: ``"''
config.status: creating xmaxima-local
sed: file ./confstat5168-26447/subs-3.sed line 51: Unterminated `s' 
command
sed: file ./confstat5168-26447/subs-4.sed line 3: Unknown command: ``"''
sed: file ./confstat5168-26447/subs-5.sed line 3: Unknown command: ``"''
config.status: creating src/share-subdirs.lisp

Also see http://www.mingw.org/wiki/msys -- in particular the warning:

"Some programs when used under the MSYS shell can be tricky. One such 
example is sed.
$ ls *.txt -1 | sed -e s/.exe/\&\!/g
Normally, sed will append "!" to the end of every .txt file, but if sed 
was compiled and link using MinGW, MSYS will treat it as a native 
application and will try to change "/" to "\" to compensate for the 
difference between UNIX path and WIN32, resulting in unpredictability when 
used under the MSYS shell."

--Barton