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.
pull/512/head
Orgad Shaneh 11 months ago
parent 3327353ec0
commit bd32444942
  1. 2
      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

Loading…
Cancel
Save