mirror of
https://github.com/nginx/nginx.git
synced 2025-06-11 04:12:40 +08:00
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.
This commit is contained in:
parent
3327353ec0
commit
bd32444942
@ -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…
Reference in New Issue
Block a user