From: Amos Jeffries Date: Wed, 8 Apr 2015 05:27:24 +0000 (-0700) Subject: Fix cross-compile issues with SSL_get_certificate() X-Git-Tag: merge-candidate-3-v1~191 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=958ae827cabff267fd99fdb028969ed532dc58b8;p=thirdparty%2Fsquid.git Fix cross-compile issues with SSL_get_certificate() Explicitly assume 'no' to these hacks when cross-compiling and create the autoconf.h #define. Thanks to Cambier Gaƫtan for identifying the problem. --- diff --git a/acinclude/lib-checks.m4 b/acinclude/lib-checks.m4 index d1f2d2e946..57932b1fb6 100644 --- a/acinclude/lib-checks.m4 +++ b/acinclude/lib-checks.m4 @@ -106,7 +106,10 @@ AC_DEFUN([SQUID_CHECK_OPENSSL_GETCERTIFICATE_WORKS],[ AC_DEFINE(SQUID_SSLGETCERTIFICATE_BUGGY, 1) AC_MSG_RESULT([yes]) ], - []) + [ + AC_DEFINE(SQUID_SSLGETCERTIFICATE_BUGGY, 0) + AC_MSG_RESULT([cross-compile, assuming no]) + ]) AC_MSG_CHECKING(whether the workaround for SSL_get_certificate works) AC_RUN_IFELSE([ @@ -132,7 +135,10 @@ AC_DEFUN([SQUID_CHECK_OPENSSL_GETCERTIFICATE_WORKS],[ [ AC_MSG_RESULT([no]) ], -[]) + [ + AC_DEFINE(SQUID_USE_SSLGETCERTIFICATE_HACK, 0) + AC_MSG_RESULT([cross-compile, assuming no]) + ]) SQUID_STATE_ROLLBACK(check_SSL_get_certificate) ])