The cirros image was rebuilt against the 3.13.0-83 kernel, drivers e1000e, igbvf...
[packages/trusty/cirros-testvm.git] / cirros-testvm / src-cirros / buildroot-2015.05 / package / openldap / 0002-fix-bignum.patch
1 configure: correctly detect bignum
2
3 Building with bignum is currently not possible, since we're checking
4 ol_with_tls against a value it is never assigned in any case.
5
6 Since bignum is from openssl, and openssl is the preferred TLS
7 implementation, if the bignum headers are found, it means we do have
8 TLS and it is opensl.
9
10 So, keep the check for the bignum header, but check against ol_link_tls
11 which means that openssl is enabled when we find the bignum headers.
12
13 Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
14
15 diff -durN openldap-2.4.40.orig/configure openldap-2.4.40/configure
16 --- openldap-2.4.40.orig/configure      2014-09-19 03:48:49.000000000 +0200
17 +++ openldap-2.4.40/configure   2015-01-25 18:44:54.216879362 +0100
18 @@ -23478,7 +23478,7 @@
19  
20         if test "$ac_cv_header_openssl_bn_h" = "yes" &&
21                 test "$ac_cv_header_openssl_crypto_h" = "yes" &&
22 -               test "$ol_with_tls" = "found" ; then
23 +               test "$ol_link_tls" = "yes" ; then
24                 ol_with_mp=bignum
25  
26  $as_echo "#define USE_MP_BIGNUM 1" >>confdefs.h
27 diff -durN openldap-2.4.40.orig/configure.in openldap-2.4.40/configure.in
28 --- openldap-2.4.40.orig/configure.in   2014-09-19 03:48:49.000000000 +0200
29 +++ openldap-2.4.40/configure.in        2015-01-25 18:44:37.628676446 +0100
30 @@ -2367,7 +2367,7 @@
31         AC_CHECK_HEADERS(openssl/crypto.h)
32         if test "$ac_cv_header_openssl_bn_h" = "yes" &&
33                 test "$ac_cv_header_openssl_crypto_h" = "yes" &&
34 -               test "$ol_with_tls" = "found" ; then
35 +               test "$ol_link_tls" = "yes" ; then
36                 ol_with_mp=bignum
37                 AC_DEFINE(USE_MP_BIGNUM,1,[define to use OpenSSL BIGNUM for MP])
38         elif test $ol_with_mp = bignum ; then