1- AC_INIT ( [ Janus WebRTC Server] ,[ 0.4.4 ] ,[ https://github.com/meetecho/janus-gateway] ,[ janus-gateway] ,[ https://janus.conf.meetecho.com] )
1+ AC_INIT ( [ Janus WebRTC Server] ,[ 0.4.5 ] ,[ https://github.com/meetecho/janus-gateway] ,[ janus-gateway] ,[ https://janus.conf.meetecho.com] )
22AC_CONFIG_AUX_DIR ( [ .] )
33AC_CONFIG_MACRO_DIR ( [ m4] )
44
@@ -15,9 +15,9 @@ AC_PROG_CC
1515LT_PREREQ([ 2.2] )
1616LT_INIT
1717
18- JANUS_VERSION=44
18+ JANUS_VERSION=45
1919AC_SUBST ( JANUS_VERSION )
20- JANUS_VERSION_STRING="0.4.4 "
20+ JANUS_VERSION_STRING="0.4.5 "
2121AC_SUBST ( JANUS_VERSION_STRING )
2222
2323case "$host_os" in
@@ -142,6 +142,8 @@ AC_ARG_ENABLE([all-handlers],
142142 [ enable_sample_event_handler=no] )
143143 AS_IF ( [ test "x$enable_rabbitmq_event_handler" != "xyes"] ,
144144 [ enable_rabbitmq_event_handler=no] )
145+ AS_IF ( [ test "x$enable_mqtt_event_handler" != "xyes"] ,
146+ [ enable_mqtt_event_handler=no] )
145147 ] ,
146148 [ ] )
147149
@@ -212,6 +214,13 @@ AC_ARG_ENABLE([rabbitmq-event-handler],
212214 [ enable_rabbitmq_event_handler=no] ) ] ,
213215 [ enable_rabbitmq_event_handler=maybe] )
214216
217+ AC_ARG_ENABLE ( [ mqtt-event-handler] ,
218+ [ AS_HELP_STRING ( [ --disable-mqtt-event-handler] ,
219+ [ Disable MQTT event handler ] ) ] ,
220+ [ AS_IF ( [ test "x$enable_mqtt_event_handler" != "xyes"] ,
221+ [ enable_mqtt_event_handler=no] ) ] ,
222+ [ enable_mqtt_event_handler=maybe] )
223+
215224AC_ARG_ENABLE ( [ systemd-sockets] ,
216225 [ AS_HELP_STRING ( [ --enable-systemd-sockets] ,
217226 [ Enable Systemd Unix Sockets management] ) ] ,
@@ -451,7 +460,6 @@ AC_CHECK_LIB([rabbitmq],
451460 AC_DEFINE ( HAVE_RABBITMQEVH )
452461 enable_rabbitmq_event_handler=yes
453462 ] )
454-
455463 ] ,
456464 [
457465 AS_IF ( [ test "x$enable_rabbitmq" = "xyes"] ,
@@ -467,10 +475,17 @@ AC_CHECK_LIB([paho-mqtt3a],
467475 AC_DEFINE ( HAVE_MQTT )
468476 enable_mqtt=yes
469477 ] )
478+ AS_IF ( [ test "x$enable_mqtt_event_handler" != "xno"] ,
479+ [
480+ AC_DEFINE ( HAVE_MQTTEVH )
481+ enable_mqtt_event_handler=yes
482+ ] )
470483 ] ,
471484 [
472485 AS_IF ( [ test "x$enable_mqtt" = "xyes"] ,
473486 [ AC_MSG_ERROR ( [ paho c client not found. See README.md for installation instructions or use --disable-mqtt] ) ] )
487+ AS_IF ( [ test "x$enable_mqtt_event_handler" = "xyes"] ,
488+ [ AC_MSG_ERROR ( [ paho c not found. See README.md for installation instructions or use --disable-mqtt-event-handler] ) ] )
474489 ] )
475490AC_CHECK_LIB ( [ nanomsg] ,
476491 [ nn_socket] ,
@@ -488,6 +503,7 @@ AC_CHECK_LIB([nanomsg],
488503AM_CONDITIONAL([ ENABLE_RABBITMQ] , [ test "x$enable_rabbitmq" = "xyes"] )
489504AM_CONDITIONAL([ ENABLE_RABBITMQEVH] , [ test "x$enable_rabbitmq_event_handler" = "xyes"] )
490505AM_CONDITIONAL([ ENABLE_MQTT] , [ test "x$enable_mqtt" = "xyes"] )
506+ AM_CONDITIONAL([ ENABLE_MQTTEVH] , [ test "x$enable_mqtt_event_handler" = "xyes"] )
491507AM_CONDITIONAL([ ENABLE_NANOMSG] , [ test "x$enable_nanomsg" = "xyes"] )
492508
493509AC_TRY_COMPILE ( [
@@ -522,7 +538,7 @@ AS_IF([test "x$enable_systemd_sockets" = "xyes"],
522538 [ AC_MSG_ERROR ( [ libsystemd not found. systemd unix domain socket service not supported] ) ] )
523539 ] )
524540
525-
541+
526542# #
527543# Plugins
528544# #
@@ -928,6 +944,9 @@ AM_COND_IF([ENABLE_SAMPLEEVH],
928944AM_COND_IF([ ENABLE_RABBITMQEVH] ,
929945 [ echo " RabbitMQ event handler:yes"] ,
930946 [ echo " RabbitMQ event handler:no"] )
947+ AM_COND_IF([ ENABLE_MQTTEVH] ,
948+ [ echo " MQTT event handler: yes"] ,
949+ [ echo " MQTT event handler: no"] )
931950AM_COND_IF([ ENABLE_JAVASCRIPT_MODULES] , [
932951 echo "JavaScript modules: yes"
933952 echo " Using npm: $NPM"
0 commit comments