1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-12-03 08:30:09 +00:00

admin/quick-install-emacs: Update get_config_var for autoconf 2.62

Revision: emacs@sv.gnu.org/emacs--devo--0--patch-1585
This commit is contained in:
Miles Bader 2009-04-21 00:39:00 +00:00
parent f67cf06438
commit d94c90b9a6

View File

@ -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 ; }