Mercurial > emacs
diff admin/quick-install-emacs @ 103030:f4ab9c8bed3f
admin/quick-install-emacs: Update get_config_var for autoconf 2.62
Revision: emacs@sv.gnu.org/emacs--devo--0--patch-1585
author | Miles Bader <miles@gnu.org> |
---|---|
date | Tue, 21 Apr 2009 00:39:00 +0000 |
parents | 467e43a5edd5 |
children | 1d1d5d9bd884 |
line wrap: on
line diff
--- a/admin/quick-install-emacs Mon Apr 20 20:42:45 2009 +0000 +++ b/admin/quick-install-emacs Tue Apr 21 00:39:00 2009 +0000 @@ -159,11 +159,12 @@ CONFIG_STATUS="$BUILD/config.status" get_config_var () { - if ! sed -n "s/^s\(.\)@$1@\1\(|#_!!_#|\)*\(.*\)\1.*$/\3/p" $CONFIG_STATUS | sed q | grep '' - then + { sed -n "s/^S[[]\"$1\"[]]=\"\([^\"]*\)\"/\1/p" $CONFIG_STATUS | sed q | grep ''; } || + { sed -n "s/^s\(.\)@$1@\1\(|#_!!_#|\)*\(.*\)\1.*$/\3/p" $CONFIG_STATUS | sed q | grep ''; } || + { echo 1>&2 "$me: $1: Configuration variable not found in $CONFIG_STATUS" exit 4 - fi + } } test x"$SRC" = x && { SRC="`get_config_var srcdir`" || exit 4 ; }