diff auto/types/typedef @ 6498:82a76258a142

Configure: fixed autotest source code logging. Fixed a regression introduced in rev. 434548349838 that prevented auto/types/sizeof and auto/types/typedef properly reporting autotest source code to autoconf.err in case of test failure.
author Maxim Dounin <mdounin@mdounin.ru>
date Fri, 01 Apr 2016 16:38:28 +0300
parents 434548349838
children e20bf454e58b
line wrap: on
line diff
--- a/auto/types/typedef
+++ b/auto/types/typedef
@@ -49,8 +49,6 @@ END
         fi
     fi
 
-    rm -rf $NGX_AUTOTEST*
-
     if [ $ngx_found = no ]; then
         echo $ngx_n " $ngx_try not found$ngx_c"
 
@@ -59,8 +57,11 @@ END
         echo "----------"    >> $NGX_AUTOCONF_ERR
         echo $ngx_test       >> $NGX_AUTOCONF_ERR
         echo "----------"    >> $NGX_AUTOCONF_ERR
+    fi
 
-    else
+    rm -rf $NGX_AUTOTEST*
+
+    if [ $ngx_found != no ]; then
         break
     fi
 done