commit | af57922780f9a851d467539de58c07b2663cafd6 | [log] [tgz] |
---|---|---|
author | Igor Sysoev <igor@sysoev.ru> | Tue Feb 03 20:27:11 2004 +0000 |
committer | Igor Sysoev <igor@sysoev.ru> | Tue Feb 03 20:27:11 2004 +0000 |
tree | 6691dc3886be2b41140db30122b435bad0bf57d1 | |
parent | 25b36fedf72139617dc172dbca887888b258698d [diff] [blame] |
nginx-0.0.2-2004-02-03-23:27:11 import
diff --git a/auto/init b/auto/init index bc82034..50971dd 100644 --- a/auto/init +++ b/auto/init
@@ -6,3 +6,20 @@ NGX_AUTOTEST=$OBJS/autotest NGX_ERR=$OBJS/autoconf.err + + +# checking echo's "-n" option and "\c" capabilties + +if echo "test\c" | grep c >/dev/null; then + if echo -n test | grep n >/dev/null; then + ngx_n= + ngx_c= + else + ngx_n=-n + ngx_c= + fi + +else + ngx_n= + ngx_c='\c' +fi