From bd32444942a476bcdfb186e4e08d3fe60b13286d Mon Sep 17 00:00:00 2001 From: Orgad Shaneh Date: Wed, 12 Feb 2025 10:30:35 +0200 Subject: [PATCH] auto: Fix validation for Windows executables. When passing -o $NGX_AUTOTEST, gcc actually creates $NGX_AUTOTEST.exe, so testing by the original filename fails. Just check for success on the compiler invocation instead. --- auto/feature | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/auto/feature b/auto/feature index 3561f5941..f6a6273a1 100644 --- a/auto/feature +++ b/auto/feature @@ -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