auto: Fix validation for Windows executables

When passing -o $NGX_AUTOTEST, gcc actually creates
$NGX_AUTOTEST.exe. So testing later by the original filename
fails. Just check for success on the compiler invocation instead.
This commit is contained in:
Orgad Shaneh 2025-02-12 10:30:35 +02:00
parent ecb809305e
commit 3797e90921

View File

@ -47,7 +47,7 @@ ngx_feature_inc_path=
eval "/bin/sh -c \"$ngx_test\" >> $NGX_AUTOCONF_ERR 2>&1"
if [ -x $NGX_AUTOTEST ]; then
if [ $? -eq 0 ]; then
case "$ngx_feature_run" in