diff --git a/ChangeLog b/ChangeLog
index 89785e8dcb89eea198e53ebac0cbff9c01082f24..957d8d281ea04f28ad4242dfd650a587d7116e7b 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,8 +1,15 @@
+2004-03-12  Eric Botcazou  <ebotcazou@gcc.gnu.org>
+            Paolo Bonzini  <bonzini@gnu.org>
+
+	PR bootstrap/14522
+	* configure.in: Cope with shells that do not support unquoted ^
+	* configure: Regenerate.
+
 2004-03-11  Eric Botcazou  <ebotcazou@gcc.gnu.org>
             Paolo Bonzini  <bonzini@gnu.org>
 
 	PR bootstrap/14522
-	* configure.in: Cope with shell that do not support nesting
+	* configure.in: Cope with shells that do not support nesting
 	quotes inside quoted backquote substitutions.
 	* configure: Regenerate.
 
diff --git a/configure b/configure
index 166966545d35fc7f7ec9c5acc01c1aa7158d11db..b397bf1ce9b11083ec4340d169d03c6ca1be0baa 100755
--- a/configure
+++ b/configure
@@ -2278,7 +2278,7 @@ if test -d ${srcdir}/gcc; then
     esac
   done
 
-  missing_languages=`echo "$missing_languages" | sed -e s/^,// -e s/,\$//`
+  missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
   if test "x$missing_languages" != x; then
     { echo "configure: error: 
 The following requested languages were not found: ${missing_languages}" 1>&2; exit 1; }
diff --git a/configure.in b/configure.in
index 1cf5adaac6f081f440b59d8c366c706a2d9c0dae..6fa30221c52dbf365fc52c7f16fc53db3895330b 100644
--- a/configure.in
+++ b/configure.in
@@ -1177,7 +1177,7 @@ if test -d ${srcdir}/gcc; then
     esac
   done
 
-  missing_languages=`echo "$missing_languages" | sed -e s/^,// -e s/,\$//`
+  missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
   if test "x$missing_languages" != x; then
     AC_MSG_ERROR([
 The following requested languages were not found: ${missing_languages}])