@@ -1817,6 +1817,7 @@ AC_ARG_ENABLE([mcast],
18171817# OpenLDAP (--enable-openldap)
18181818# hitch (--enable-hitch)
18191819# memcached (--enable-memcached)
1820+ # Mosquitto (--enable-mosquitto) HAVE_MOSQUITTO
18201821
18211822# Bind DNS compatibility Build
18221823AC_ARG_ENABLE ( [ bind] ,
@@ -1880,12 +1881,25 @@ AC_ARG_ENABLE([openldap],
18801881 [ ENABLED_OPENLDAP=no ]
18811882 )
18821883
1884+ # Mosquitto support
1885+ AC_ARG_ENABLE ( [ mosquitto] ,
1886+ [ AS_HELP_STRING ( [ --enable-mosquitto] ,[ Enable Mosquitto support (default: disabled)] ) ] ,
1887+ [ ENABLED_MOSQUITTO=$enableval ] ,
1888+ [ ENABLED_MOSQUITTO=no ]
1889+ )
1890+
1891+ if test "x$ENABLED_MOSQUITTO" = "xyes"
1892+ then
1893+ AM_CFLAGS="$AM_CFLAGS -DHAVE_MOSQUITTO"
1894+ fi
1895+
18831896# lighty Support
18841897AC_ARG_ENABLE ( [ lighty] ,
18851898 [ AS_HELP_STRING ( [ --enable-lighty] ,[ Enable lighttpd/lighty (default: disabled)] ) ] ,
18861899 [ ENABLED_LIGHTY=$enableval ] ,
18871900 [ ENABLED_LIGHTY=no ]
18881901 )
1902+
18891903# rsyslog Support
18901904AC_ARG_ENABLE ( [ rsyslog] ,
18911905 [ AS_HELP_STRING ( [ --enable-rsyslog] ,[ Enable rsyslog (default: disabled)] ) ] ,
@@ -2145,7 +2159,7 @@ if test "$ENABLED_LIBWEBSOCKETS" = "yes" || test "$ENABLED_OPENVPN" = "yes" || \
21452159 test "$ENABLED_OPENRESTY" = "yes" || test "$ENABLED_RSYSLOG" = "yes" || \
21462160 test "$ENABLED_KRB" = "yes" || test "$ENABLED_CHRONY" = "yes" || \
21472161 test "$ENABLED_FFMPEG" = "yes" || test "$ENABLED_STRONGSWAN" = "yes" || \
2148- test "$ENABLED_OPENLDAP" = "yes" || test "$ENABLED_HITCH" = "yes"
2162+ test "$ENABLED_OPENLDAP" = "yes" || test "x$ENABLED_MOSQUITTO" = "xyes" || test " $ENABLED_HITCH" = "yes"
21492163then
21502164 ENABLED_OPENSSLALL="yes"
21512165fi
@@ -3742,7 +3756,7 @@ AC_ARG_ENABLE([sessioncerts],
37423756
37433757if test "x$ENABLED_NGINX" = "xyes" || test "x$ENABLED_OPENVPN" = "xyes" || \
37443758 test "x$ENABLED_LIGHTY" = "xyes" || test "x$ENABLED_NETSNMP" = "xyes" || \
3745- test "x$ENABLED_STRONGSWAN" = "xyes" || test "x$ENABLED_HITCH" = "xyes"
3759+ test "x$ENABLED_STRONGSWAN" = "xyes" || test "x$ENABLED_HITCH" = "xyes" || test "x$ENABLED_MOSQUITTO" = "xyes"
37463760then
37473761 ENABLED_SESSIONCERTS=yes
37483762fi
@@ -4226,6 +4240,11 @@ AC_ARG_ENABLE([psk],
42264240 [ ENABLED_PSK=no ]
42274241 )
42284242
4243+ if test "x$ENABLED_MOSQUITTO" = "xyes"
4244+ then
4245+ ENABLED_PSK=yes
4246+ fi
4247+
42294248# Single PSK identity
42304249AC_ARG_ENABLE ( [ psk-one-id] ,
42314250 [ AS_HELP_STRING ( [ --enable-psk-one-id] ,[ Enable PSK (default: disabled)] ) ] ,
58465865
58475866
58485867# OCSP
5849- if test "x$ENABLED_OPENSSLALL" = "xyes" || test "x$ENABLED_NGINX" = "xyes" || test "x$ENABLED_LIGHTY" = "xyes"
5868+ if test "x$ENABLED_OPENSSLALL" = "xyes" || test "x$ENABLED_NGINX" = "xyes" || \
5869+ test "x$ENABLED_LIGHTY" = "xyes" || test "x$ENABLED_MOSQUITTO" = "xyes"
58505870then
58515871 test "$enable_ocsp" = "" && enable_ocsp=yes
58525872fi
@@ -5878,7 +5898,9 @@ AC_ARG_ENABLE([ocspstapling],
58785898 [ ENABLED_CERTIFICATE_STATUS_REQUEST=no ]
58795899 )
58805900
5881- if test "x$ENABLED_NGINX" = "xyes" || test "x$ENABLED_WPAS" = "xyes" || test "x$ENABLED_HAPROXY" = "xyes" || test "x$ENABLED_LIGHTY" = "xyes"
5901+ if test "x$ENABLED_NGINX" = "xyes" || test "x$ENABLED_WPAS" = "xyes" || \
5902+ test "x$ENABLED_HAPROXY" = "xyes" || test "x$ENABLED_LIGHTY" = "xyes" || \
5903+ test "x$ENABLED_MOSQUITTO" = "xyes"
58825904then
58835905 ENABLED_CERTIFICATE_STATUS_REQUEST="yes"
58845906fi
@@ -5926,9 +5948,11 @@ AC_ARG_ENABLE([crl],
59265948 [ ENABLED_CRL=no ]
59275949 )
59285950
5929- if test "x$ENABLED_NGINX" = "xyes" || test "x$ENABLED_HAPROXY" = "xyes" || test "x$ENABLED_OPENVPN" = "xyes" || \
5930- test "x$ENABLED_WPAS" != "xno" || test "x$ENABLED_LIGHTY" = "xyes" || test "x$ENABLED_NETSNMP" = "xyes" || \
5931- test "x$ENABLED_KRB" = "xyes" || test "x$ENABLED_STRONGSWAN" = "xyes"
5951+ if test "x$ENABLED_NGINX" = "xyes" || test "x$ENABLED_HAPROXY" = "xyes" || \
5952+ test "x$ENABLED_OPENVPN" = "xyes" || test "x$ENABLED_WPAS" != "xno" || \
5953+ test "x$ENABLED_LIGHTY" = "xyes" || test "x$ENABLED_NETSNMP" = "xyes" || \
5954+ test "x$ENABLED_KRB" = "xyes" || test "x$ENABLED_STRONGSWAN" = "xyes" || \
5955+ test "x$ENABLED_MOSQUITTO" = "xyes"
59325956then
59335957 ENABLED_CRL=yes
59345958fi
@@ -8942,7 +8966,7 @@ if test "$ENABLED_OPENSSH" = "yes" || test "$ENABLED_NGINX" = "yes" || \
89428966 test "$ENABLED_LIBWEBSOCKETS" = "yes" || \
89438967 test "x$ENABLED_LIGHTY" = "xyes" || test "$ENABLED_LIBSSH2" = "yes" || \
89448968 test "x$ENABLED_NTP" = "xyes" || test "$ENABLED_RSYSLOG" = "yes" || \
8945- test "$ENABLED_OPENLDAP" = "yes" || test "$ENABLED_HITCH" = "yes"
8969+ test "$ENABLED_OPENLDAP" = "yes" || test "$ENABLED_HITCH" = "yes" || test "x$ENABLED_MOSQUITTO" = "xyes"
89468970then
89478971 ENABLED_OPENSSLEXTRA="yes"
89488972fi
@@ -9134,6 +9158,8 @@ AS_IF([test "x$ENABLED_STRONGSWAN" = "xyes"],
91349158
91359159AS_IF ( [ test "x$ENABLED_OPENLDAP" = "xyes"] , [ AM_CFLAGS="$AM_CFLAGS -DWOLFSSL_SIGNER_DER_CERT"] )
91369160
9161+ AS_IF ( [ test "x$ENABLED_MOSQUITTO" = "xyes"] , [ AM_CFLAGS="$AM_CFLAGS -DHAVE_EX_DATA"] )
9162+
91379163if test "$ENABLED_ED25519_STREAM" != "no" && test "$ENABLED_SE050" != "yes"
91389164then
91399165 AM_CFLAGS="$AM_CFLAGS -DWOLFSSL_ED25519_STREAMING_VERIFY"
@@ -10176,6 +10202,7 @@ echo " * strongSwan: $ENABLED_STRONGSWAN"
1017610202echo " * OpenLDAP: $ENABLED_OPENLDAP"
1017710203echo " * hitch: $ENABLED_HITCH"
1017810204echo " * memcached: $ENABLED_MEMCACHED"
10205+ echo " * Mosquitto $ENABLED_MOSQUITTO"
1017910206echo " * ERROR_STRINGS: $ENABLED_ERROR_STRINGS"
1018010207echo " * DTLS: $ENABLED_DTLS"
1018110208echo " * DTLS v1.3: $ENABLED_DTLS13"
0 commit comments