51b9b368250e6c754556691287c14afe409421a8
[packages/trusty/cirros-testvm.git] / cirros-testvm / src-cirros / buildroot-2015.05 / package / libwebsock / 0002-fix-ssl.patch
1 config: fix SSL detection
2
3 The @WEBSOCK_HAVE_SSL@ is not replaced at configure time, and even if
4 it was, it would be replaced by an empty string if openssl is disabled,
5 thus still defining WEBSOCK_HAVE_SSL when we would not want it.
6
7 Instead, rely on config.h, which is properly generated by ./configure,
8 to provide the information about whether openssl is enabled or not.
9
10 Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
11
12 diff -durN a/src/websock_config.h.in b/src/websock_config.h.in
13 --- a/src/websock_config.h.in
14 +++ b/src/websock_config.h.in
15 @@ -1,9 +1,10 @@
16  #ifndef WEBSOCK_CONFIG_H
17  #define WEBSOCK_CONFIG_H 1
18  
19 +#include "config.h"
20 +
21  #define WEBSOCK_PACKAGE_STRING @WEBSOCK_PACKAGE_STRING@
22  #define WEBSOCK_PACKAGE_VERSION @WEBSOCK_PACKAGE_VERSION@
23  #define WEBSOCK_PACKAGE_NAME @WEBSOCK_PACKAGE_NAME@
24 -#define WEBSOCK_HAVE_SSL @WEBSOCK_HAVE_SSL@
25  
26  #endif