wireshark: security bump to version 2.2.4
[buildroot-gz.git] / package / qlibc / 0003-fix-openssl-mysql-checks.patch
blobbb609b2446c6fa6592a6b8e44ef03e2888e2eddf
1 Allow to explicitly disable openssl and mysql
3 AC_ARG_WITH() is being incorrectly used: the third argument indicates
4 the action that needs to be taken when a value was passed, when not
5 the option is enabled. Therefore, the result of the existing code was
6 that when you passed --without-mysql or --without-openssl, the
7 $withval variable would get the value 'yes', which is obviously wrong.
9 Instead, we simply empty this third argument, because $withval is
10 already properly filled with 'yes' or 'no' by the AC_ARG_WITH()
11 function.
13 Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
15 Index: b/configure.ac
16 ===================================================================
17 --- a/configure.ac
18 +++ b/configure.ac
19 @@ -170,7 +170,7 @@
20 ## --with section
23 -AC_ARG_WITH([openssl],[AS_HELP_STRING([--with-openssl], [This will enable HTTPS support in qhttpclient extension API. When it's enabled, user applications will need to link openssl library with -lssl option.])],[withval=yes],[withval=no])
24 +AC_ARG_WITH([openssl],[AS_HELP_STRING([--with-openssl], [This will enable HTTPS support in qhttpclient extension API. When it's enabled, user applications will need to link openssl library with -lssl option.])],[],[withval=no])
25 if test "$withval" = yes; then
26 if test "$with_openssl" = yes; then
27 with_openssl="/usr/include"
28 @@ -185,7 +185,7 @@
32 -AC_ARG_WITH([mysql],[AS_HELP_STRING([--with-mysql], [This will enable MySQL database support in qdatabase extension API. When it's enabled, user applications need to link mysql client library. (ex: -lmysqlclient)])],[withval=yes],[withval=no])
33 +AC_ARG_WITH([mysql],[AS_HELP_STRING([--with-mysql], [This will enable MySQL database support in qdatabase extension API. When it's enabled, user applications need to link mysql client library. (ex: -lmysqlclient)])],[],[withval=no])
34 if test "$withval" = yes; then
35 if test "$with_mysql" = yes; then
36 with_mysql="/usr/include/mysql"