mirror of
git://git.sv.gnu.org/autoconf
synced 2025-01-30 11:01:45 +08:00
fix a doubled pushdef
This commit is contained in:
parent
5e1fc7afa3
commit
992d1ef0b8
@ -1,3 +1,8 @@
|
||||
2005-07-27 Stepan Kasal <kasal@ucw.cz>
|
||||
|
||||
* lib/autotest/general.m4 (_AT_DECIDE_TRACEABLE): The symbol at_reason
|
||||
was pushdef'ed twice while popped only once. Push it only once.
|
||||
|
||||
2005-07-26 Stepan Kasal <kasal@ucw.cz>
|
||||
|
||||
* lib/autoconf/status.m4 (_AC_OUTPUT_SUBDIRS): The message is now
|
||||
|
@ -1334,16 +1334,18 @@ m4_define([AT_CHECK_NOESCAPE],
|
||||
# examine COMMANDS unexpanded.
|
||||
m4_define([_AT_DECIDE_TRACEABLE],
|
||||
[dnl Utility macros.
|
||||
m4_pushdef([at_reason])[]dnl
|
||||
m4_pushdef([at_lf], [
|
||||
])[]dnl
|
||||
dnl
|
||||
dnl Examine COMMANDS for a reason to never trace COMMANDS.
|
||||
m4_bmatch([$1],
|
||||
[`.*`], [m4_pushdef([at_reason], [a `...` command substitution])],
|
||||
[\$(], [m4_pushdef([at_reason], [a $(...) command substitution])],
|
||||
[\${], [m4_pushdef([at_reason], [a ${...} parameter expansion])],
|
||||
at_lf, [m4_pushdef([at_reason], [an embedded newline])])[]dnl
|
||||
m4_pushdef([at_reason],
|
||||
m4_bmatch([$1],
|
||||
[`.*`], [[a `...` command substitution]],
|
||||
[\$(], [[a $(...) command substitution]],
|
||||
[\${], [[a ${...} parameter expansion]],
|
||||
at_lf, [[an embedded newline]],
|
||||
[[]]dnl No reason.
|
||||
))dnl
|
||||
dnl
|
||||
m4_ifval(m4_defn([at_reason]),
|
||||
[echo 'Not enabling shell tracing (command contains ]m4_defn([at_reason])[)'],
|
||||
|
Loading…
Reference in New Issue
Block a user