autotools that is shipped with mingw (autoconf 2.71-1, automake
1.6-1.16, automake wrapper 11-1), does not allow trailing backslashes
for AC_CHECK_HEADERS() and AC_CHECK_FUNCS(), otherwise it generates
incorrect for loop, and reports:
../configure: line 14724: syntax error near unexpected token `as_ac_Header=`printf "%s\n" "ac_cv_header_$ac_header" | $as_tr_sh`'
../configure: line 14724: ` as_ac_Header=`printf "%s\n" "ac_cv_header_$ac_header" | $as_tr_sh`'
Error: Process completed with exit code 1.
Here is a simple analog:
for VAR in <CR> foo \ <CR> bar \
do :
echo $VAR
done
Trailing slash is not allowed.
Refs:
- https://github.com/libevent/libevent/runs/
2171607687
- https://github.com/libevent/libevent/runs/
2211365885?check_suite_focus=true
sys/wait.h \
sys/random.h \
errno.h \
- afunix.h \
+ afunix.h
])
case "${host_os}" in
umask \
unsetenv \
usleep \
- getrandom \
+ getrandom
])
AS_IF([test x$bwin32 = xtrue],