Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nginx/nginx.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/auto/fmt
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2004-02-24 22:34:46 +0300
committerIgor Sysoev <igor@sysoev.ru>2004-02-24 22:34:46 +0300
commit71e9fa0e1170a52b6dac18b338cf5496f4bcb0de (patch)
treee0a0a513b1579ce37cf5666af4d5421f1c6afaea /auto/fmt
parent48fef6654cc90e05004648423cb5dd7c6f7770f0 (diff)
nginx-0.0.2-2004-02-24-22:34:46 import
Diffstat (limited to 'auto/fmt')
-rw-r--r--auto/fmt/ptrfmt9
1 files changed, 8 insertions, 1 deletions
diff --git a/auto/fmt/ptrfmt b/auto/fmt/ptrfmt
index 8bbdcd10c..f913e23f9 100644
--- a/auto/fmt/ptrfmt
+++ b/auto/fmt/ptrfmt
@@ -48,11 +48,18 @@ if [ $ngx_fmt = no ]; then
exit 1
fi
-fmtX="%0`expr 2 \* ${ngx_ptr_bytes}`"
+
+if [ $ngx_ptr_bytes = 4 ]; then
+ fmtX="%0`expr 2 \* $ngx_ptr_bytes`"
+else
+ fmtX="%$ngx_ptr_bytes'
+fi
+
ngx_fmt=`echo $ngx_fmt | sed -e "s/d/X/" -e "s/^%/$fmtX/"`
echo "$comma \"${ngx_fmt}\" used"
+
cat << END >> $NGX_AUTO_CONFIG_H
#ifndef $ngx_fmt_name