Mercurial > hg > nginx-vendor-0-8
comparison auto/lib/md5/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 [ $MD5 != NONE ]; then | |
6 | |
7 if grep MD5_Init $MD5/md5.h >/dev/null; then | |
8 # OpenSSL md5 | |
9 OPENSSL_MD5=YES | |
10 have=HAVE_OPENSSL_MD5 . auto/have | |
11 else | |
12 # rsaref md5 | |
13 OPENSSL_MD5=NO | |
14 fi | |
15 | |
16 CORE_INCS="$CORE_INCS $MD5" | |
17 | |
18 case "$CC" in | |
19 | |
20 cl | wcl386 | bcc32) | |
21 LINK_DEPS="$LINK_DEPS $MD5/md5.lib" | |
22 CORE_LIBS="$CORE_LIBS $MD5/md5.lib" | |
23 ;; | |
24 | |
25 *icc) | |
26 LINK_DEPS="$LINK_DEPS $MD5/libmd5.a" | |
27 | |
28 # to allow -ipo optimization we link with the *.o but not library | |
29 CORE_LIBS="$CORE_LIBS $MD5/md5_dgst.o" | |
30 | |
31 if [ $MD5_ASM = YES ]; then | |
32 CORE_LIBS="$CORE_LIBS $MD5/asm/mx86-elf.o" | |
33 fi | |
34 ;; | |
35 | |
36 *) | |
37 LINK_DEPS="$LINK_DEPS $MD5/libmd5.a" | |
38 CORE_LIBS="$CORE_LIBS $MD5/libmd5.a" | |
39 #CORE_LIBS="$CORE_LIBS -L $MD5 -lmd5" | |
40 ;; | |
41 | |
42 esac | |
43 | |
44 else | |
45 | |
46 if [ $PLATFORM != win32 ]; then | |
47 MD5=NO | |
48 ngx_lib_cflags= | |
49 | |
50 # Solaris 8/9 | |
51 | |
52 ngx_lib_inc="#include <sys/types.h> | |
53 #include <md5.h>" | |
54 ngx_lib="rsaref md5 library" | |
55 ngx_lib_test="MD5_CTX md5; MD5Init(&md5)" | |
56 ngx_libs=-lmd5 | |
57 . auto/lib/test | |
58 | |
59 | |
60 if [ $ngx_found = yes ]; then | |
61 CORE_LIBS="$CORE_LIBS $ngx_libs" | |
62 MD5=YES | |
63 MD5_LIB=md5 | |
64 ngx_found=no | |
65 | |
66 else | |
67 # FreeBSD | |
68 | |
69 ngx_lib="rsaref md library" | |
70 ngx_lib_test="MD5_CTX md5; MD5Init(&md5)" | |
71 ngx_libs=-lmd | |
72 . auto/lib/test | |
73 fi | |
74 | |
75 | |
76 if [ $ngx_found = yes ]; then | |
77 CORE_LIBS="$CORE_LIBS $ngx_libs" | |
78 MD5=YES | |
79 MD5_LIB=md | |
80 ngx_found=no | |
81 | |
82 else | |
83 if [ $MD5 = NO ]; then | |
84 | |
85 # OpenSSL crypto library | |
86 | |
87 ngx_lib_inc="#include <openssl/md5.h>" | |
88 ngx_lib="OpenSSL md5 crypto library" | |
89 ngx_lib_test="MD5_CTX md5; MD5_Init(&md5)" | |
90 ngx_libs=-lcrypto | |
91 . auto/lib/test | |
92 fi | |
93 fi | |
94 | |
95 | |
96 if [ $ngx_found = yes ]; then | |
97 have=HAVE_OPENSSL_MD5 . auto/have | |
98 have=HAVE_OPENSSL_MD5_H . auto/have | |
99 CORE_LIBS="$CORE_LIBS $ngx_libs" | |
100 MD5=YES | |
101 MD5_LIB=crypto | |
102 fi | |
103 fi | |
104 | |
105 fi |