1 # Copyright © 2023 Nick Bowler
3 # Autotest monkey patches to fix some issues. This should be included before
6 # License WTFPL2: Do What The Fuck You Want To Public License, version 2.
7 # This is free software: you are free to do what the fuck you want to.
8 # There is NO WARRANTY, to the extent permitted by law.
10 # In a shell function, redirections on : are not correctly handled
11 # by Solaris /bin/sh. See the following Autoconf patch for details:
13 # https://lists.gnu.org/archive/html/autoconf-patches/2021-03/msg00000.html
15 m4_bpatsubst(m4_dquote(m4_defn([AT_INIT])),
16 [^\( *\)\(: >"\$at_stdout".*$\)], [\1eval '\2']))
18 # The computation of the elapsed time can crash the testsuite on DJGPP because
19 # in this environment date +%s can return a string that starts with a 0, which
20 # bash interprets as octal digits in arithmetic expansions. With a working
21 # GNU-like date +%s the output should never start with a 0 so just reject
24 m4_bpatsubst(m4_dquote(m4_defn([AT_INIT])),
25 [\[0-9]\*,\[0-9]\*], [[1-9][0-9]*,[1-9][0-9]*]))