Mercurial > hg > nginx
annotate auto/lib/sha1/conf @ 4292:b272408fa698
Version bump.
author | Maxim Dounin <mdounin@mdounin.ru> |
---|---|
date | Tue, 15 Nov 2011 20:33:37 +0000 |
parents | 9c057d5e1c27 |
children | d620f497c50f |
rev | line source |
---|---|
653 | 1 |
2 # Copyright (C) Igor Sysoev | |
3 | |
4 | |
5 if [ $SHA1 != NONE ]; then | |
6 | |
3922
9c057d5e1c27
"$apr1", "{PLAIN}", and "{SSHA}" password methods in auth basic module
Igor Sysoev <igor@sysoev.ru>
parents:
2010
diff
changeset
|
7 have=NGX_HAVE_SHA1 . auto/have |
653 | 8 CORE_INCS="$CORE_INCS $SHA1" |
9 | |
10 case "$NGX_CC_NAME" in | |
11 | |
12 msvc* | owc* | bcc) | |
13 LINK_DEPS="$LINK_DEPS $SHA1/sha1.lib" | |
14 CORE_LIBS="$CORE_LIBS $SHA1/sha1.lib" | |
15 ;; | |
16 | |
17 icc*) | |
18 LINK_DEPS="$LINK_DEPS $SHA1/libsha.a" | |
19 | |
20 # to allow -ipo optimization we link with the *.o but not library | |
21 CORE_LIBS="$CORE_LIBS $SHA1/sha1_dgst.o" | |
22 | |
23 if [ $SHA1_ASM = YES ]; then | |
24 CORE_LIBS="$CORE_LIBS $SHA1/asm/sx86-elf.o" | |
25 fi | |
26 ;; | |
27 | |
28 *) | |
29 LINK_DEPS="$LINK_DEPS $SHA1/libsha.a" | |
30 CORE_LIBS="$CORE_LIBS $SHA1/libsha.a" | |
31 #CORE_LIBS="$CORE_LIBS -L $SHA1 -lsha" | |
32 ;; | |
33 | |
34 esac | |
35 | |
36 else | |
37 | |
38 if [ "$NGX_PLATFORM" != win32 ]; then | |
2010
bd6cc5370fc1
simplify library autoconfigure
Igor Sysoev <igor@sysoev.ru>
parents:
875
diff
changeset
|
39 |
653 | 40 SHA1=NO |
41 | |
42 # FreeBSD | |
43 | |
44 ngx_feature="sha1 in system md library" | |
3922
9c057d5e1c27
"$apr1", "{PLAIN}", and "{SSHA}" password methods in auth basic module
Igor Sysoev <igor@sysoev.ru>
parents:
2010
diff
changeset
|
45 ngx_feature_name=NGX_HAVE_SHA1 |
653 | 46 ngx_feature_run=no |
47 ngx_feature_incs="#include <sha.h>" | |
875
7af8276b1c2f
test PCRE in FreeBSD, Linux, and NetBSD
Igor Sysoev <igor@sysoev.ru>
parents:
653
diff
changeset
|
48 ngx_feature_path= |
653 | 49 ngx_feature_libs="-lmd" |
50 ngx_feature_test="SHA_CTX sha1; SHA1_Init(&sha1)" | |
51 . auto/feature | |
52 | |
2010
bd6cc5370fc1
simplify library autoconfigure
Igor Sysoev <igor@sysoev.ru>
parents:
875
diff
changeset
|
53 ngx_sha1_lib="system md" |
bd6cc5370fc1
simplify library autoconfigure
Igor Sysoev <igor@sysoev.ru>
parents:
875
diff
changeset
|
54 |
bd6cc5370fc1
simplify library autoconfigure
Igor Sysoev <igor@sysoev.ru>
parents:
875
diff
changeset
|
55 if [ $ngx_found = no ]; then |
bd6cc5370fc1
simplify library autoconfigure
Igor Sysoev <igor@sysoev.ru>
parents:
875
diff
changeset
|
56 |
bd6cc5370fc1
simplify library autoconfigure
Igor Sysoev <igor@sysoev.ru>
parents:
875
diff
changeset
|
57 # OpenSSL crypto library |
bd6cc5370fc1
simplify library autoconfigure
Igor Sysoev <igor@sysoev.ru>
parents:
875
diff
changeset
|
58 |
bd6cc5370fc1
simplify library autoconfigure
Igor Sysoev <igor@sysoev.ru>
parents:
875
diff
changeset
|
59 ngx_feature="OpenSSL sha1 crypto library" |
bd6cc5370fc1
simplify library autoconfigure
Igor Sysoev <igor@sysoev.ru>
parents:
875
diff
changeset
|
60 ngx_feature_incs="#include <openssl/sha.h>" |
bd6cc5370fc1
simplify library autoconfigure
Igor Sysoev <igor@sysoev.ru>
parents:
875
diff
changeset
|
61 ngx_feature_libs="-lcrypto" |
bd6cc5370fc1
simplify library autoconfigure
Igor Sysoev <igor@sysoev.ru>
parents:
875
diff
changeset
|
62 . auto/feature |
bd6cc5370fc1
simplify library autoconfigure
Igor Sysoev <igor@sysoev.ru>
parents:
875
diff
changeset
|
63 |
bd6cc5370fc1
simplify library autoconfigure
Igor Sysoev <igor@sysoev.ru>
parents:
875
diff
changeset
|
64 ngx_sha1_lib="system crypto" |
bd6cc5370fc1
simplify library autoconfigure
Igor Sysoev <igor@sysoev.ru>
parents:
875
diff
changeset
|
65 |
bd6cc5370fc1
simplify library autoconfigure
Igor Sysoev <igor@sysoev.ru>
parents:
875
diff
changeset
|
66 if [ $ngx_found = yes ]; then |
bd6cc5370fc1
simplify library autoconfigure
Igor Sysoev <igor@sysoev.ru>
parents:
875
diff
changeset
|
67 have=NGX_HAVE_OPENSSL_SHA1_H . auto/have |
bd6cc5370fc1
simplify library autoconfigure
Igor Sysoev <igor@sysoev.ru>
parents:
875
diff
changeset
|
68 fi |
bd6cc5370fc1
simplify library autoconfigure
Igor Sysoev <igor@sysoev.ru>
parents:
875
diff
changeset
|
69 fi |
653 | 70 |
71 if [ $ngx_found = yes ]; then | |
72 CORE_LIBS="$CORE_LIBS $ngx_feature_libs" | |
73 SHA1=YES | |
2010
bd6cc5370fc1
simplify library autoconfigure
Igor Sysoev <igor@sysoev.ru>
parents:
875
diff
changeset
|
74 SHA1_LIB=$ngx_sha1_lib |
653 | 75 fi |
76 fi | |
77 | |
78 fi |