]> git.ipfire.org Git - thirdparty/autoconf.git/commit
Work around DJGPP shell function return bug with command substitutions.
authorRalf Wildenhues <Ralf.Wildenhues@gmx.de>
Sun, 13 Sep 2009 19:18:37 +0000 (21:18 +0200)
committerRalf Wildenhues <Ralf.Wildenhues@gmx.de>
Tue, 15 Sep 2009 04:16:10 +0000 (06:16 +0200)
commitc8c7589040843eaaa52c6d3ff6e3b7fddd663cd9
tree024a1bb359a290a878aa7fa9df2dc4ff8facb231
parent22ac64cd53d5491f095192c3bdeeb45a80bfcdd0
Work around DJGPP shell function return bug with command substitutions.

DJGPP bash 2.04 has a bug in that `return $ac_retval' done in a
shell function which also contains a command substitution causes
the shell to barf.  For more details and a fix see:
<http://www.delorie.com/djgpp/mail-archives/browse.cgi?p=djgpp-workers/2009/09/09/03:35:08>
Possible workaround include putting the `return' in a subshell
or calling another function to set the status.

* lib/autoconf/general.m4 (_AC_PREPROC_IFELSE_BODY)
(_AC_COMPILE_IFELSE_BODY, _AC_LINK_IFELSE_BODY)
(_AC_RUN_IFELSE_BODY, _AC_COMPUTE_INT_BODY): Use AS_SET_STATUS
instead of `return'.
* doc/autoconf.texi (Common Shell Constructs, Shell Functions):
Document the issue.
* THANKS: Update.
Report by Rugxulo and Reuben Thomas.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
ChangeLog
THANKS
doc/autoconf.texi
lib/autoconf/general.m4