mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-11-28 14:21:00 +01:00
BUILD: report zlib support in haproxy -vv
Compression algorithms are not always supported depending on build options. "haproxy -vv" now reports if zlib is supported and lists compression algorithms also supported.
This commit is contained in:
parent
b1fbd050ec
commit
6162c43a0a
@ -50,7 +50,7 @@ static long long zlib_memory_available = -1;
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
static const struct comp_algo comp_algos[] =
|
const struct comp_algo comp_algos[] =
|
||||||
{
|
{
|
||||||
{ "identity", 8, identity_init, identity_add_data, identity_flush, identity_reset, identity_end },
|
{ "identity", 8, identity_init, identity_add_data, identity_flush, identity_reset, identity_end },
|
||||||
#ifdef USE_ZLIB
|
#ifdef USE_ZLIB
|
||||||
|
|||||||
@ -101,6 +101,8 @@
|
|||||||
|
|
||||||
/*********************************************************************/
|
/*********************************************************************/
|
||||||
|
|
||||||
|
extern const struct comp_algo comp_algos[];
|
||||||
|
|
||||||
/*********************************************************************/
|
/*********************************************************************/
|
||||||
|
|
||||||
/* list of config files */
|
/* list of config files */
|
||||||
@ -225,6 +227,24 @@ void display_build_opts()
|
|||||||
#endif
|
#endif
|
||||||
"\n");
|
"\n");
|
||||||
|
|
||||||
|
#ifdef USE_ZLIB
|
||||||
|
printf("Built with zlib version : " ZLIB_VERSION "\n");
|
||||||
|
#else /* USE_ZLIB */
|
||||||
|
printf("Built without zlib support (USE_ZLIB not set)\n");
|
||||||
|
#endif
|
||||||
|
printf("Compression algorithms supported :");
|
||||||
|
{
|
||||||
|
int i;
|
||||||
|
|
||||||
|
for (i = 0; comp_algos[i].name; i++) {
|
||||||
|
printf("%s %s", (i == 0 ? "" : ","), comp_algos[i].name);
|
||||||
|
}
|
||||||
|
if (i == 0) {
|
||||||
|
printf("none");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
printf("\n");
|
||||||
|
|
||||||
#ifdef USE_OPENSSL
|
#ifdef USE_OPENSSL
|
||||||
printf("Built with OpenSSL version : " OPENSSL_VERSION_TEXT "\n");
|
printf("Built with OpenSSL version : " OPENSSL_VERSION_TEXT "\n");
|
||||||
printf("OpenSSL library supports TLS extensions : "
|
printf("OpenSSL library supports TLS extensions : "
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user