From: Aki Tuomi Date: Thu, 28 Dec 2017 08:47:28 +0000 (+0200) Subject: lib-http: Only depend on iostream openssl lib if building with openssl X-Git-Tag: 2.2.34~148 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=892f4a694d8b985b35c9c748ebc3ffba27aa986f;p=thirdparty%2Fdovecot%2Fcore.git lib-http: Only depend on iostream openssl lib if building with openssl Fixes build without openssl --- diff --git a/src/lib-http/Makefile.am b/src/lib-http/Makefile.am index 6e3e2e410e..aee08a30bf 100644 --- a/src/lib-http/Makefile.am +++ b/src/lib-http/Makefile.am @@ -148,6 +148,11 @@ test_http_deps = \ ../lib-settings/libsettings.la \ $(test_deps) +test_http_libs_ssl= +if BUILD_OPENSSL +test_http_libs_ssl += ../lib-ssl-iostream/libssl_iostream_openssl.la +endif + test_http_payload_SOURCES = test-http-payload.c test_http_payload_LDFLAGS = -export-dynamic test_http_payload_LDADD = \ @@ -159,7 +164,8 @@ test_http_client_SOURCES = test-http-client.c test_http_client_LDFLAGS = -export-dynamic test_http_client_LDADD = \ $(test_http_libs) \ - ../lib-ssl-iostream/libssl_iostream_openssl.la + $(test_http_libs_ssl) + test_http_client_DEPENDENCIES = \ $(test_http_deps)