2006-03-22 Stepan Kasal * lib/autoconf/general.m4 (_AC_CACHE_DUMP): Grep for `^ac_space' so that the test is not fooled by variables containing string `ac_space= '. If there is no substitution needed, do not call sed. Index: lib/autoconf/general.m4 =================================================================== RCS file: /cvsroot/autoconf/autoconf/lib/autoconf/general.m4,v retrieving revision 1.891 diff -u -r1.891 general.m4 --- lib/autoconf/general.m4 16 Mar 2006 13:33:18 -0000 1.891 +++ lib/autoconf/general.m4 21 Mar 2006 23:18:08 -0000 @@ -1813,8 +1813,8 @@ # and sets the high bit in the cache file unless we assign to the vars. { (set) 2>&1 | - case `(ac_space=' '; set | grep ac_space) 2>&1` in - *ac_space=\ *) + case `(ac_space=' '; set | grep '^ac_space') 2>&1` in + ac_space=\ *) # `set' does not quote correctly, so add quotes (double-quote # substitution turns \\\\ into \\, and sed turns \\ into \). sed -n \ @@ -1823,8 +1823,7 @@ ;; *) # `set' quotes correctly as required by POSIX, so do not add quotes. - sed -n \ - ["s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"] + grep ["^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*="] ;; esac; }dnl