Mercurial > hg > nginx
comparison auto/lib/md5/conf @ 2815:304bfc6faf07
move libmd test before libmd5,
this fixes wrong linking with /usr/local/lib/libmd5.so from libwww package
on FreeBSD. The library uses long's instead of int32_t's in MD5_CTX
and on 64-bit platforms its MD5_CTX is bigger than defined in <md5.h>
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Thu, 07 May 2009 19:18:10 +0000 |
parents | d7368a34b6fa |
children | da1ba8a5c8c9 |
comparison
equal
deleted
inserted
replaced
2814:219aa0b0fd58 | 2815:304bfc6faf07 |
---|---|
44 | 44 |
45 else | 45 else |
46 | 46 |
47 if [ "$NGX_PLATFORM" != win32 ]; then | 47 if [ "$NGX_PLATFORM" != win32 ]; then |
48 | 48 |
49 MD5=NO | 49 MD5=NO |
50 | 50 |
51 # Solaris 8/9 | 51 # FreeBSD, Solaris 10 |
52 | 52 |
53 ngx_feature="rsaref md5 library" | 53 ngx_feature="system md library" |
54 ngx_feature_name= | 54 ngx_feature_name= |
55 ngx_feature_run=no | 55 ngx_feature_run=no |
56 ngx_feature_incs="#include <md5.h>" | 56 ngx_feature_incs="#include <md5.h>" |
57 ngx_feature_path= | 57 ngx_feature_path= |
58 ngx_feature_libs="-lmd5" | 58 ngx_feature_libs="-lmd" |
59 ngx_feature_test="MD5_CTX md5; MD5Init(&md5)" | 59 ngx_feature_test="MD5_CTX md5; MD5Init(&md5)" |
60 . auto/feature | 60 . auto/feature |
61 | 61 |
62 ngx_md5_lib="system md5" | 62 ngx_md5_lib="system md" |
63 | 63 |
64 if [ $ngx_found = no ]; then | 64 if [ $ngx_found = no ]; then |
65 | 65 |
66 # FreeBSD | 66 # Solaris 8/9 |
67 | 67 |
68 ngx_feature="rsaref md library" | 68 ngx_feature="system md5 library" |
69 ngx_feature_libs="-lmd" | 69 ngx_feature_libs="-lmd5" |
70 . auto/feature | 70 . auto/feature |
71 | 71 |
72 ngx_md5_lib="system md" | 72 ngx_md5_lib="system md5" |
73 fi | 73 fi |
74 | 74 |
75 if [ $ngx_found = no ]; then | 75 if [ $ngx_found = no ]; then |
76 | 76 |
77 # OpenSSL crypto library | 77 # OpenSSL crypto library |