diff auto/init @ 250:1903c6821958

nginx-0.0.2-2004-02-03-23:27:11 import
author Igor Sysoev <igor@sysoev.ru>
date Tue, 03 Feb 2004 20:27:11 +0000
parents 00cafae0bdf1
children 98c77ca0f354
line wrap: on
line diff
--- a/auto/init
+++ b/auto/init
@@ -6,3 +6,20 @@ NGX_MODULES_C=$OBJS/ngx_modules.c
 
 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