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>2003-11-26 18:42:18 +0300
committerIgor Sysoev <igor@sysoev.ru>2003-11-26 18:42:18 +0300
commitc0f8d91bde06aeeb53ff16d6c26490f5961f5a31 (patch)
tree034ba6291b7d4975868371dae533e4ab985c63f5 /auto/fmt
parenta8fa0a6a37b6e90324e0dcbf4733324199623841 (diff)
nginx-0.0.1-2003-11-26-18:42:18 import
Diffstat (limited to 'auto/fmt')
-rw-r--r--auto/fmt/fmt6
-rw-r--r--auto/fmt/xfmt6
2 files changed, 11 insertions, 1 deletions
diff --git a/auto/fmt/fmt b/auto/fmt/fmt
index bd66b4114..3e19c318f 100644
--- a/auto/fmt/fmt
+++ b/auto/fmt/fmt
@@ -5,8 +5,12 @@ NGX_FMT=NO
for FMT in $NGX_FORMATS
do
- echo "#include <stdio.h>" >> autotest.c
+ echo "#include <stdio.h>" > autotest.c
echo "#include <sys/types.h>" >> autotest.c
+ echo "#include <sys/time.h>" >> autotest.c
+ echo "#include <sys/resource.h>" >> autotest.c
+ echo "$NGX_INTTYPES_H" >> autotest.c
+ echo "$NGX_AUTO_CONFIG" >> autotest.c
echo "int main() {" >> autotest.c
echo "printf(\"${FMT}\", ($NGX_TYPE) $NGX_MAX_SIZE);" >> autotest.c
echo "return 0; }" >> autotest.c
diff --git a/auto/fmt/xfmt b/auto/fmt/xfmt
new file mode 100644
index 000000000..0256c5caa
--- /dev/null
+++ b/auto/fmt/xfmt
@@ -0,0 +1,6 @@
+
+echo "#ifndef $NGX_FMT_NAME" >> $NGX_AUTO_CONFIG_H
+echo "#define $NGX_FMT_NAME \"$NGX_FMT\"" | sed -e 's/d"$/x"/' \
+ >> $NGX_AUTO_CONFIG_H
+echo "#endif" >> $NGX_AUTO_CONFIG_H
+echo >> $NGX_AUTO_CONFIG_H