diff options
Diffstat (limited to 'src/util/autoconf')
-rw-r--r-- | src/util/autoconf/ChangeLog | 9 | ||||
-rw-r--r-- | src/util/autoconf/acgeneral.m4 | 4 |
2 files changed, 12 insertions, 1 deletions
diff --git a/src/util/autoconf/ChangeLog b/src/util/autoconf/ChangeLog index 1b333a85c..d11ac7d83 100644 --- a/src/util/autoconf/ChangeLog +++ b/src/util/autoconf/ChangeLog @@ -1,3 +1,12 @@ +Mon Dec 19 19:20:58 1994 Theodore Y. Ts'o (tytso at tsx-11) + + * acgeneral.m4 (AC_CACHE_SAVE): Work around yet another really + horrible Ultrix sh bug. The values of variables read in + using the ${var='bar'} construction are displayed using + the "set" command with the high bit set. (Someone should + just haul off the Ultrix sh and have it shot). Fixed + using tr. + Fri Nov 4 09:08:33 1994 David J. MacKenzie <djm@duality.gnu.ai.mit.edu> * Version 2.1. diff --git a/src/util/autoconf/acgeneral.m4 b/src/util/autoconf/acgeneral.m4 index 215e9e72c..24ec21b48 100644 --- a/src/util/autoconf/acgeneral.m4 +++ b/src/util/autoconf/acgeneral.m4 @@ -902,7 +902,9 @@ EOF changequote(, )dnl dnl Allow a site initialization script to override cache values. # Ultrix sh set writes to stderr and can't be redirected directly. -(set) 2>&1 | +# Ultrix sh set also returns variables that were read in from the config file +# with their high bit set. +(set) 2>&1 | tr '\201-\377' '\001-\177' | sed -n "s/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/: \${\1='\2'}/p" \ >> $cache_file changequote([, ])dnl |