From: Ben Elliston Date: Thu, 18 Feb 1999 16:15:41 +0000 (+0000) Subject: 1999-02-19 Felix Lee X-Git-Tag: experimental-branchpoint~56 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c74175fb826da44ee1d074045f4b1594285a4253;p=thirdparty%2Fautoconf.git 1999-02-19 Felix Lee * acgeneral.m4 (AC_CACHE_VAL): Don't need backticks. This is a performance enhancement for about a 5% reduction in the runtime of the generated configure script. --- diff --git a/ChangeLog b/ChangeLog index af0f5a28..364b0ab9 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +1999-02-19 Felix Lee + + * acgeneral.m4 (AC_CACHE_VAL): Don't need backticks. This is a + performance enhancement for about a 5% reduction in the runtime of + the generated configure script. + 1999-02-18 Ben Elliston * config.guess: Detect NEC EWS4800. Contributed by Koji Arai diff --git a/acgeneral.m4 b/acgeneral.m4 index 393ab2a1..e8a01feb 100644 --- a/acgeneral.m4 +++ b/acgeneral.m4 @@ -1,7 +1,7 @@ dnl Parameterized macros. dnl Requires GNU m4. dnl This file is part of Autoconf. -dnl Copyright (C) 1992, 93, 94, 95, 96, 1998 Free Software Foundation, Inc. +dnl Copyright (C) 1992, 93, 94, 95, 96, 98, 1999 Free Software Foundation, Inc. dnl dnl This program is free software; you can redistribute it and/or modify dnl it under the terms of the GNU General Public License as published by @@ -1130,8 +1130,7 @@ define(AC_CACHE_VAL, [dnl We used to use the below line, but it fails if the 1st arg is a dnl shell variable, so we need the eval. dnl if test "${$1+set}" = set; then -dnl the '' avoids an AIX 4.1 sh bug ("invalid expansion"). -if eval "test \"`echo '$''{'$1'+set}'`\" = set"; then +if eval "test \"\${$1+set}\" = set"; then echo $ac_n "(cached) $ac_c" 1>&AC_FD_MSG else $2 diff --git a/lib/autoconf/general.m4 b/lib/autoconf/general.m4 index 393ab2a1..e8a01feb 100644 --- a/lib/autoconf/general.m4 +++ b/lib/autoconf/general.m4 @@ -1,7 +1,7 @@ dnl Parameterized macros. dnl Requires GNU m4. dnl This file is part of Autoconf. -dnl Copyright (C) 1992, 93, 94, 95, 96, 1998 Free Software Foundation, Inc. +dnl Copyright (C) 1992, 93, 94, 95, 96, 98, 1999 Free Software Foundation, Inc. dnl dnl This program is free software; you can redistribute it and/or modify dnl it under the terms of the GNU General Public License as published by @@ -1130,8 +1130,7 @@ define(AC_CACHE_VAL, [dnl We used to use the below line, but it fails if the 1st arg is a dnl shell variable, so we need the eval. dnl if test "${$1+set}" = set; then -dnl the '' avoids an AIX 4.1 sh bug ("invalid expansion"). -if eval "test \"`echo '$''{'$1'+set}'`\" = set"; then +if eval "test \"\${$1+set}\" = set"; then echo $ac_n "(cached) $ac_c" 1>&AC_FD_MSG else $2