Mercurial > hg > nginx-mail
comparison auto/lib/zlib/conf @ 0:f0b350454894 NGINX_0_1_0
nginx 0.1.0
*) The first public version.
author | Igor Sysoev <http://sysoev.ru> |
---|---|
date | Mon, 04 Oct 2004 00:00:00 +0400 |
parents | |
children | 4b2dafa26fe2 |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:f0b350454894 |
---|---|
1 | |
2 # Copyright (C) Igor Sysoev | |
3 | |
4 | |
5 if [ $ZLIB != NONE ]; then | |
6 CORE_INCS="$CORE_INCS $ZLIB" | |
7 | |
8 case "$CC" in | |
9 | |
10 cl | wcl386 | bcc32) | |
11 LINK_DEPS="$LINK_DEPS $ZLIB/zlib.lib" | |
12 CORE_LIBS="$CORE_LIBS $ZLIB/zlib.lib" | |
13 ;; | |
14 | |
15 *icc) | |
16 LINK_DEPS="$LINK_DEPS $ZLIB/libz.a" | |
17 | |
18 # to allow -ipo optimization we link with the *.o but not library | |
19 CORE_LIBS="$CORE_LIBS $ZLIB/adler32.o" | |
20 CORE_LIBS="$CORE_LIBS $ZLIB/crc32.o" | |
21 CORE_LIBS="$CORE_LIBS $ZLIB/deflate.o" | |
22 CORE_LIBS="$CORE_LIBS $ZLIB/trees.o" | |
23 CORE_LIBS="$CORE_LIBS $ZLIB/zutil.o" | |
24 | |
25 if [ $ZLIB_ASM != NO ]; then | |
26 CORE_LIBS="$CORE_LIBS $ZLIB/match.o" | |
27 fi | |
28 ;; | |
29 | |
30 *) | |
31 LINK_DEPS="$LINK_DEPS $ZLIB/libz.a" | |
32 CORE_LIBS="$CORE_LIBS $ZLIB/libz.a" | |
33 #CORE_LIBS="$CORE_LIBS -L $ZLIB -lz" | |
34 ;; | |
35 | |
36 esac | |
37 | |
38 else | |
39 | |
40 if [ $PLATFORM != win32 ]; then | |
41 | |
42 # FreeBSD, Solaris, Linux | |
43 | |
44 ngx_lib_cflags= | |
45 ngx_lib_inc="#include <zlib.h>" | |
46 ngx_lib="zlib library" | |
47 ngx_lib_test="z_stream z; deflate(&z, Z_NO_FLUSH)" | |
48 ngx_libs=-lz | |
49 . auto/lib/test | |
50 | |
51 | |
52 if [ $ngx_found = yes ]; then | |
53 CORE_LIBS="$CORE_LIBS $ngx_libs" | |
54 ZLIB=YES | |
55 else | |
56 ZLIB=NO | |
57 fi | |
58 fi | |
59 | |
60 fi |