From d94c90b9a6db6b0da2b646e3db08c002f61194a2 Mon Sep 17 00:00:00 2001 From: Miles Bader Date: Tue, 21 Apr 2009 00:39:00 +0000 Subject: [PATCH] admin/quick-install-emacs: Update get_config_var for autoconf 2.62 Revision: emacs@sv.gnu.org/emacs--devo--0--patch-1585 --- admin/quick-install-emacs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/admin/quick-install-emacs b/admin/quick-install-emacs index 2b52a864aec..88f57b65e80 100755 --- a/admin/quick-install-emacs +++ b/admin/quick-install-emacs @@ -159,11 +159,12 @@ fi 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 ; } -- 2.39.2