Debian Codegraph @

configure.ac

raw ◀ ▶
Source reconstructed at patch state 0 of 2 — not the installed (fully patched) source.
2 Debian patches touch this file
1 AC_INIT([Janus WebRTC Server],[1.4.1],[https://github.com/meetecho/janus-gateway],[janus-gateway],[https://janus.conf.meetecho.com])
2 AC_LANG(C)
3 AC_CONFIG_AUX_DIR([.])
4 AC_CONFIG_MACRO_DIR([m4])
5
6 AC_ENABLE_SHARED(yes)
7 AC_ENABLE_STATIC(no)
8
9 AM_INIT_AUTOMAKE([foreign subdir-objects])
10 AM_SILENT_RULES([yes])
11
12 AC_USE_SYSTEM_EXTENSIONS
13
14 AC_PROG_CC
15
16 LT_PREREQ([2.2])
17 LT_INIT
18
19 # Common CFLAGS
20 CFLAGS="$CFLAGS \
21 -fPIC \
22 -fstack-protector-all \
23 -fstrict-aliasing \
24 -pthread \
25 -Wall \
26 -Warray-bounds \
27 -Wextra \
28 -Wformat-nonliteral \
29 -Wformat-security \
30 -Wformat=2 \
31 -Winit-self \
32 -Wlarger-than=2097152 \
33 -Wmissing-declarations \
34 -Wmissing-format-attribute \
35 -Wmissing-include-dirs \
36 -Wmissing-noreturn \
37 -Wmissing-prototypes \
38 -Wnested-externs \
39 -Wold-style-definition \
40 -Wpacked \
41 -Wpointer-arith \
42 -Wsign-compare \
43 -Wstrict-prototypes \
44 -Wswitch-default \
45 -Wunused \
46 -Wno-unused-parameter \
47 -Wno-unused-result \
48 -Wwrite-strings \
49 -Werror=implicit-function-declaration"
50
51 case "$CC" in
52 *clang*)
53 # Specific clang flags
54 CFLAGS="$CFLAGS \
55 -Wno-initializer-overrides \
56 -Wno-missing-noreturn"
57 ;;
58 cc*)
59 CFLAGS="$CFLAGS \
60 -Wno-cast-align \
61 -Wno-initializer-overrides"
62 ;;
63 *)
64 # Specific gcc flags
65 CFLAGS="$CFLAGS \
66 -Wno-override-init \
67 -Wunsafe-loop-optimizations \
68 -Wunused-but-set-variable"
69 esac
70
71 JANUS_VERSION=1401
72 AC_SUBST(JANUS_VERSION)
73 JANUS_VERSION_STRING="1.4.1"
74 AC_SUBST(JANUS_VERSION_STRING)
75 JANUS_VERSION_SO="2:10:0"
76 AC_SUBST(JANUS_VERSION_SO)
77
78 case "$host_os" in
79 darwin*)
80 CFLAGS="$CFLAGS -I/usr/local/opt/openssl/include -I/usr/local/include"
81 # add rdynamic to LDFLAGS
82 LDFLAGS="$LDFLAGS -Wl,-export_dynamic"
83 LDFLAGS="$LDFLAGS -L/usr/local/lib -L/usr/local/opt/openssl/lib -L/opt/local/lib -L/usr/local/libsrtp/lib"
84 AM_CONDITIONAL([DARWIN_OS], true)
85 ;;
86 freebsd*)
87 CFLAGS="$CFLAGS -I/usr/include/openssl"
88 LDFLAGS="$LDFLAGS -Xlinker --export-dynamic"
89 LDFLAGS="$LDFLAGS -L/usr/lib/openssl -lcrypto -lssl -L/usr/local/lib"
90 AM_CONDITIONAL([DARWIN_OS], false)
91 ;;
92 *)
93 LDFLAGS="$LDFLAGS -Wl,--export-dynamic"
94 AM_CONDITIONAL([DARWIN_OS], false)
95 AC_DEFINE(HAS_DTLS_WINDOW_SIZE, 1)
96 esac
97
98 glib_version=2.34
99 ssl_version=1.0.1
100 jansson_version=2.5
101
102 JANUS_PACKAGES_PUBLIC="glib-2.0 >= $glib_version, jansson >= $jansson_version"
103 AC_SUBST(JANUS_PACKAGES_PUBLIC)
104
105 ##
106 # Janus
107 ##
108
109 AC_ARG_ENABLE([docs],
110 [AS_HELP_STRING([--enable-docs],
111 [Enable building documentation])],
112 [],
113 [enable_docs=no])
114
115 AC_ARG_ENABLE([data-channels],
116 [AS_HELP_STRING([--disable-data-channels],
117 [Disable DataChannels])],
118 [],
119 [enable_data_channels=maybe])
120
121 AC_ARG_ENABLE([boringssl],
122 [AS_HELP_STRING([--enable-boringssl],
123 [Use BoringSSL instead of OpenSSL])],
124 [
125 case "${enableval}" in
126 yes) boringssl_dir=/opt/boringssl ;;
127 no) boringssl_dir= ;;
128 *) boringssl_dir=${enableval} ;;
129 esac
130 ],
131 [boringssl_dir=])
132
133 AC_ARG_ENABLE([libsrtp2],
134 [AS_HELP_STRING([--enable-libsrtp2],
135 [Use libsrtp 2.0.x instead of libsrtp 1.5.x])],
136 [],
137 [enable_libsrtp2=maybe])
138
139 AC_ARG_ENABLE([aes-gcm],
140 [AS_HELP_STRING([--disable-aes-gcm],
141 [Disable AES-GCM support in libsrtp(2)])],
142 [],
143 [AC_DEFINE(HAVE_SRTP_AESGCM)])
144
145 AC_ARG_ENABLE([dtls-settimeout],
146 [AS_HELP_STRING([--enable-dtls-settimeout],
147 [Use DTLSv1_set_initial_timeout_duration (only available in recent BoringSSL versions)])],
148 [],
149 [enable_dtls_settimeout=no])
150
151 AC_ARG_ENABLE([pthread-mutex],
152 [AS_HELP_STRING([--enable-pthread-mutex],
153 [Use pthread_mutex instead of GMutex (see #1397)])],
154 [],
155 [enable_pthread_mutex=no])
156
157 AC_ARG_ENABLE([turn-rest-api],
158 [AS_HELP_STRING([--disable-turn-rest-api],
159 [Disable TURN REST API client (via libcurl)])],
160 [],
161 [enable_turn_rest_api=maybe])
162
163 AC_ARG_ENABLE([all-plugins],
164 [AS_HELP_STRING([--disable-all-plugins],
165 [Disable building all plugins (except those manually enabled)])],
166 [
167 AS_IF([test "x$enable_plugin_audiobridge" != "xyes"],
168 [enable_plugin_audiobridge=no])
169 AS_IF([test "x$enable_plugin_duktape" != "xyes"],
170 [enable_plugin_duktape=no])
171 AS_IF([test "x$enable_plugin_echotest" != "xyes"],
172 [enable_plugin_echotest=no])
173 AS_IF([test "x$enable_plugin_lua" != "xyes"],
174 [enable_plugin_lua=no])
175 AS_IF([test "x$enable_plugin_recordplay" != "xyes"],
176 [enable_plugin_recordplay=no])
177 AS_IF([test "x$enable_plugin_sip" != "xyes"],
178 [enable_plugin_sip=no])
179 AS_IF([test "x$enable_plugin_nosip" != "xyes"],
180 [enable_plugin_nosip=no])
181 AS_IF([test "x$enable_plugin_streaming" != "xyes"],
182 [enable_plugin_streaming=no])
183 AS_IF([test "x$enable_plugin_textroom" != "xyes"],
184 [enable_plugin_textroom=no])
185 AS_IF([test "x$enable_plugin_videocall" != "xyes"],
186 [enable_plugin_videocall=no])
187 AS_IF([test "x$enable_plugin_videoroom" != "xyes"],
188 [enable_plugin_videoroom=no])
189 ],
190 [])
191
192 AC_ARG_ENABLE([all-transports],
193 [AS_HELP_STRING([--disable-all-transports],
194 [Disable building all transports (except those manually enabled)])],
195 [
196 AS_IF([test "x$enable_rest" != "xyes"],
197 [enable_rest=no])
198 AS_IF([test "x$enable_websockets" != "xyes"],
199 [enable_websockets=no])
200 AS_IF([test "x$enable_rabbitmq" != "xyes"],
201 [enable_rabbitmq=no])
202 AS_IF([test "x$enable_mqtt" != "xyes"],
203 [enable_mqtt=no])
204 AS_IF([test "x$enable_unix_sockets" != "xyes"],
205 [enable_unix_sockets=no])
206 AS_IF([test "x$enable_nanomsg" != "xyes"],
207 [enable_nanomsg=no])
208 ],
209 [])
210
211 AC_ARG_ENABLE([all-handlers],
212 [AS_HELP_STRING([--disable-all-handlers],
213 [Disable building all event handlers (except those manually enabled)])],
214 [
215 AS_IF([test "x$enable_sample_event_handler" != "xyes"],
216 [enable_sample_event_handler=no])
217 AS_IF([test "x$enable_websockets_event_handler" != "xyes"],
218 [enable_websockets_event_handler=no])
219 AS_IF([test "x$enable_rabbitmq_event_handler" != "xyes"],
220 [enable_rabbitmq_event_handler=no])
221 AS_IF([test "x$enable_mqtt_event_handler" != "xyes"],
222 [enable_mqtt_event_handler=no])
223 AS_IF([test "x$enable_nanomsg_event_handler" != "xyes"],
224 [enable_nanomsg_event_handler=no])
225 AS_IF([test "x$enable_gelf_event_handler" != "xyes"],
226 [enable_gelf_event_handler=no])
227 ],
228 [])
229
230 AC_ARG_ENABLE([all-loggers],
231 [AS_HELP_STRING([--disable-all-loggers],
232 [Disable building all loggers (except those manually enabled)])],
233 [
234 AS_IF([test "x$enable_json_logger" != "xyes"],
235 [enable_json_logger=no])
236 ],
237 [])
238
239 AC_ARG_ENABLE([all-js-modules],
240 [AS_HELP_STRING([--enable-all-js-modules],
241 [Build all the JavaScript modules (instead of manually enabling them one by one)])],
242 [
243 enable_javascript_es_module=yes
244 enable_javascript_umd_module=yes
245 enable_javascript_iife_module=yes
246 enable_javascript_common_js_module=yes
247 ],
248 [])
249
250 AC_ARG_ENABLE([rest],
251 [AS_HELP_STRING([--disable-rest],
252 [Disable REST (HTTP/HTTPS) support])],
253 [AS_IF([test "x$enable_rest" != "xyes"],
254 [enable_rest=no])],
255 [enable_rest=maybe])
256
257 AC_ARG_ENABLE([websockets],
258 [AS_HELP_STRING([--disable-websockets],
259 [Disable WebSockets support])],
260 [AS_IF([test "x$enable_websockets" != "xyes"],
261 [enable_websockets=no])],
262 [enable_websockets=maybe])
263
264 AC_ARG_ENABLE([rabbitmq],
265 [AS_HELP_STRING([--disable-rabbitmq],
266 [Disable RabbitMQ integration])],
267 [AS_IF([test "x$enable_rabbitmq" != "xyes"],
268 [enable_rabbitmq=no])],
269 [enable_rabbitmq=maybe])
270
271 AC_ARG_ENABLE([mqtt],
272 [AS_HELP_STRING([--disable-mqtt],
273 [Disable MQTT integration])],
274 [AS_IF([test "x$enable_mqtt" != "xyes"],
275 [enable_mqtt=no])],
276 [enable_mqtt=maybe])
277
278 AC_ARG_ENABLE([unix-sockets],
279 [AS_HELP_STRING([--disable-unix-sockets],
280 [Disable Unix Sockets integration])],
281 [AS_IF([test "x$enable_unix_sockets" != "xyes"],
282 [enable_unix_sockets=no])],
283 [enable_unix_sockets=maybe])
284
285 AC_ARG_ENABLE([nanomsg],
286 [AS_HELP_STRING([--disable-nanomsg],
287 [Disable Nanomsg integration])],
288 [AS_IF([test "x$enable_nanomsg" != "xyes"],
289 [enable_nanomsg=no])],
290 [enable_nanomsg=maybe])
291
292 AC_ARG_ENABLE([sample-event-handler],
293 [AS_HELP_STRING([--disable-sample-event-handler],
294 [Disable sample event handler (HTTP POST) ])],
295 [AS_IF([test "x$enable_sample_event_handler" != "xyes"],
296 [enable_sample_event_handler=no])],
297 [enable_sample_event_handler=maybe])
298
299 AC_ARG_ENABLE([websockets-event-handler],
300 [AS_HELP_STRING([--disable-websockets-event-handler],
301 [Disable WebSockets event handler ])],
302 [AS_IF([test "x$enable_websockets_event_handler" != "xyes"],
303 [enable_websockets_event_handler=no])],
304 [enable_websockets_event_handler=maybe])
305
306 AC_ARG_ENABLE([rabbitmq-event-handler],
307 [AS_HELP_STRING([--disable-rabbitmq-event-handler],
308 [Disable RabbitMQ event handler ])],
309 [AS_IF([test "x$enable_rabbitmq_event_handler" != "xyes"],
310 [enable_rabbitmq_event_handler=no])],
311 [enable_rabbitmq_event_handler=maybe])
312
313 AC_ARG_ENABLE([mqtt-event-handler],
314 [AS_HELP_STRING([--disable-mqtt-event-handler],
315 [Disable MQTT event handler ])],
316 [AS_IF([test "x$enable_mqtt_event_handler" != "xyes"],
317 [enable_mqtt_event_handler=no])],
318 [enable_mqtt_event_handler=maybe])
319
320 AC_ARG_ENABLE([nanomsg-event-handler],
321 [AS_HELP_STRING([--disable-nanomsg-event-handler],
322 [Disable Nanomsg event handler ])],
323 [AS_IF([test "x$enable_nanomsg_event_handler" != "xyes"],
324 [enable_nanomsg_event_handler=no])],
325 [enable_nanomsg_event_handler=maybe])
326
327 AC_ARG_ENABLE([gelf-event-handler],
328 [AS_HELP_STRING([--disable-gelf-event-handler],
329 [Disable gelf event handler ])],
330 [AS_IF([test "x$enable_gelf_event_handler" != "xyes"],
331 [enable_gelf_event_handler=no])],
332 [enable_gelf_event_handler=yes])
333
334 AC_ARG_ENABLE([json-logger],
335 [AS_HELP_STRING([--enable-json-logger],
336 [Enable external JSON file logger ])],
337 [AS_IF([test "x$enable_json_logger" != "xyes"],
338 [enable_json_logger=no])],
339 [enable_json_logger=no])
340
341 AC_ARG_ENABLE([systemd-sockets],
342 [AS_HELP_STRING([--enable-systemd-sockets],
343 [Enable Systemd Unix Sockets management])],
344 [],
345 [enable_systemd_sockets=no])
346
347 case "$host_os" in
348 freebsd*)
349 PKGCHECKMODULES="glib-2.0 >= $glib_version
350 gio-2.0 >= $glib_version
351 libconfig
352 nice
353 jansson >= $jansson_version
354 zlib"
355 ;;
356 *)
357 PKGCHECKMODULES="glib-2.0 >= $glib_version
358 gio-2.0 >= $glib_version
359 libconfig
360 nice
361 jansson >= $jansson_version
362 libssl >= $ssl_version
363 libcrypto
364 zlib"
365 esac
366 PKG_CHECK_MODULES([JANUS],"$PKGCHECKMODULES")
367
368 JANUS_MANUAL_LIBS="${JANUS_MANUAL_LIBS} -lm"
369 AC_SUBST(JANUS_MANUAL_LIBS)
370
371 AS_IF([test "x${boringssl_dir}" != "x"],
372 [echo "Trying to use BoringSSL instead of OpenSSL...";
373 AC_MSG_NOTICE([BoringSSL directory is ${boringssl_dir}])
374 CFLAGS="$CFLAGS -I${boringssl_dir}/include";
375 BORINGSSL_CFLAGS=" -I${boringssl_dir}/include";
376 AC_SUBST(BORINGSSL_CFLAGS)
377 BORINGSSL_LIBS=" -L${boringssl_dir}/lib -lstdc++";
378 AC_SUBST(BORINGSSL_LIBS)
379 AC_CHECK_HEADERS([${boringssl_dir}/include/openssl/opensslconf.h],
380 [AC_DEFINE(HAVE_BORINGSSL)],
381 [AC_MSG_ERROR([BoringSSL headers not found in ${boringssl_dir}, use --disable-boringssl if you want to use OpenSSL instead])])
382 ])
383 AM_CONDITIONAL([ENABLE_BORINGSSL], [test "x${boringssl_dir}" != "x"])
384
385 AS_IF([test "x$enable_dtls_settimeout" = "xyes"],
386 [
387 AC_DEFINE(HAVE_DTLS_SETTIMEOUT)
388 AC_MSG_NOTICE([Assuming DTLSv1_set_initial_timeout_duration is available])
389 ])
390 AM_CONDITIONAL([ENABLE_DTLS_SETTIMEOUT], [test "x$enable_dtls_settimeout" = "xyes"])
391
392 AS_IF([test "x$enable_pthread_mutex" = "xyes"],
393 [
394 AC_DEFINE(USE_PTHREAD_MUTEX)
395 AC_MSG_NOTICE([Will use pthread_mutex instead of GMutex])
396 ])
397 AM_CONDITIONAL([ENABLE_PTHREAD_MUTEX], [test "x$enable_pthread_mutex" = "xyes"])
398
399 AC_SEARCH_LIBS([tls_config_set_ca_mem],[tls],
400 [AM_CONDITIONAL([LIBRESSL_DETECTED], true)],
401 [AM_CONDITIONAL([LIBRESSL_DETECTED], false)]
402 )
403
404 AC_CHECK_LIB([nice],
405 [nice_agent_set_port_range],
406 [AC_DEFINE(HAVE_PORTRANGE)],
407 [AC_MSG_NOTICE([libnice version does not have nice_agent_set_port_range])]
408 )
409
410 AC_CHECK_LIB([nice],
411 [nice_address_equal_no_port],
412 [AC_DEFINE(HAVE_LIBNICE_TCP)],
413 [AC_MSG_NOTICE([libnice version does not support TCP candidates])]
414 )
415
416 AC_CHECK_LIB([nice],
417 [nice_agent_close_async],
418 [AC_DEFINE(HAVE_CLOSE_ASYNC)],
419 [AC_MSG_NOTICE([libnice version does not have nice_agent_close_async])]
420 )
421
422 AC_CHECK_LIB([nice],
423 [nice_agent_new_full],
424 [AC_DEFINE(HAVE_ICE_NOMINATION)],
425 [AC_MSG_NOTICE([libnice version does not have nice_agent_new_full])]
426 )
427
428 AC_CHECK_LIB([nice],
429 [nice_agent_consent_lost],
430 [AC_DEFINE(HAVE_CONSENT_FRESHNESS)],
431 [AC_MSG_NOTICE([libnice version does not have nice_agent_consent_lost])]
432 )
433
434 AC_CHECK_LIB([dl],
435 [dlopen],
436 [JANUS_MANUAL_LIBS="${JANUS_MANUAL_LIBS} -ldl"],
437 [AC_MSG_ERROR([libdl not found.])])
438
439 AM_CONDITIONAL([ENABLE_LIBSRTP_2], false)
440 AS_IF([test "x$enable_libsrtp2" != "xno"],
441 [PKG_CHECK_MODULES([LIBSRTP],
442 [libsrtp2],
443 [
444 AC_DEFINE(HAVE_SRTP_2)
445 enable_libsrtp2=yes
446 AM_CONDITIONAL([ENABLE_LIBSRTP_2], true)
447 ],
448 [
449 AS_IF([test "x$enable_libsrtp2" = "xyes"],
450 [AC_MSG_ERROR([libsrtp2 headers not found. See README.md for installation instructions or use --disable-libsrtp-2 to try and autodetect libsrtp 1.5.x instead])])
451 ])
452 ])
453 AM_COND_IF([ENABLE_LIBSRTP_2],
454 [],
455 [PKG_CHECK_MODULES([LIBSRTP],
456 [libsrtp >= 1.5.0],
457 [enable_libsrtp2=no],
458 [AC_MSG_ERROR([libsrtp and libsrtp2 not found. See README.md for installation instructions])
459 ])
460 ])
461
462 AC_CHECK_LIB([usrsctp],
463 [usrsctp_finish],
464 [
465 AS_IF([test "x$enable_data_channels" != "xno"],
466 [
467 AC_DEFINE(HAVE_SCTP)
468 JANUS_MANUAL_LIBS="${JANUS_MANUAL_LIBS} -lusrsctp"
469 enable_data_channels=yes
470 ])
471 ],
472 [
473 AS_IF([test "x$enable_data_channels" = "xyes"],
474 [AC_MSG_ERROR([libusrsctp not found. See README.md for installation instructions or use --disable-data-channels])])
475 ])
476 AM_CONDITIONAL([ENABLE_SCTP], [test "x$enable_data_channels" = "xyes"])
477
478 PKG_CHECK_MODULES([LIBCURL],
479 [libcurl],
480 [
481 AC_DEFINE(HAVE_LIBCURL)
482 AS_IF(
483 [test "x$enable_turn_rest_api" != "xno"],
484 [
485 AC_DEFINE(HAVE_TURNRESTAPI)
486 enable_turn_rest_api=yes
487 ])
488 AS_IF([test "x$enable_sample_event_handler" != "xno"],
489 [
490 AC_DEFINE(HAVE_SAMPLEEVH)
491 enable_sample_event_handler=yes
492 ])
493 ],
494 [
495 AS_IF([test "x$enable_turn_rest_api" = "xyes"],
496 [AC_MSG_ERROR([libcurl not found. See README.md for installation instructions or use --disable-turn-rest-api])])
497 AS_IF([test "x$enable_sample_event_handler" = "xyes"],
498 [AC_MSG_ERROR([libcurl not found. See README.md for installation instructions or use --disable-sample-event-handler])])
499 ])
500 AM_CONDITIONAL([ENABLE_TURN_REST_API], [test "x$enable_turn_rest_api" = "xyes"])
501 AM_CONDITIONAL([ENABLE_SAMPLEEVH], [test "x$enable_sample_event_handler" = "xyes"])
502
503 AC_CHECK_PROG([DOXYGEN],
504 [doxygen],
505 [doxygen])
506 AC_CHECK_PROG([DOT],
507 [dot],
508 [dot])
509 AS_IF([test -z "$DOXYGEN" -o -z "$DOT"],
510 [
511 AS_IF([test "x$enable_docs" = "xyes"],
512 [AC_MSG_ERROR([doxygen or dot not found. See README.md for installation instructions or remove --enable-docs])])
513 ])
514 AM_CONDITIONAL([ENABLE_DOCS], [test "x$enable_docs" = "xyes"])
515 if test "x$enable_docs" = "xyes"; then
516 doxygen_version=$($DOXYGEN --version)
517 AS_VERSION_COMPARE([$doxygen_version], [1.8.11],
518 [],
519 [],
520 [
521 AS_VERSION_COMPARE([$doxygen_version], [1.8.14],
522 [AC_MSG_ERROR([Doxygen $doxygen_version not usable: versions between 1.8.12 and 1.8.14 are known to render poorly.])],
523 [],
524 []
525 )
526 ]
527 )
528 fi
529
530
531 ##
532 # Transports
533 ##
534
535 PKG_CHECK_MODULES([TRANSPORTS],
536 [
537 glib-2.0 >= $glib_version
538 jansson >= $jansson_version
539 ])
540
541 PKG_CHECK_MODULES([MHD],
542 [libmicrohttpd >= 0.9.59],
543 [
544 AS_IF([test "x$enable_rest" = "xmaybe"],
545 [enable_rest=yes])
546 ],
547 [
548 AS_IF([test "x$enable_rest" = "xyes"],
549 [AC_MSG_ERROR([libmicrohttpd not found. See README.md for installation instructions or use --disable-rest])])
550 ])
551 AC_SUBST([MHD_CFLAGS])
552 AC_SUBST([MHD_LIBS])
553 AM_CONDITIONAL([ENABLE_REST], [test "x$enable_rest" = "xyes"])
554
555 AC_CHECK_LIB([websockets],
556 [lws_create_vhost],
557 [
558 AS_IF([test "x$enable_websockets" != "xno"],
559 [
560 AC_DEFINE(HAVE_WEBSOCKETS)
561 WS_MANUAL_LIBS="-lwebsockets"
562 enable_websockets=yes
563 AC_CHECK_LIB([websockets],
564 [lws_get_peer_simple],
565 [AC_DEFINE(HAVE_LIBWEBSOCKETS_PEER_SIMPLE)]
566 )
567 ])
568 AS_IF([test "x$enable_websockets_event_handler" != "xno"],
569 [
570 AC_DEFINE(HAVE_WSEVH)
571 WS_MANUAL_LIBS="-lwebsockets"
572 enable_websockets_event_handler=yes
573 ])
574 ],
575 [
576 AS_IF([test "x$enable_websockets" = "xyes"],
577 [AC_MSG_ERROR([libwebsockets not found. See README.md for installation instructions or use --disable-websockets])])
578 ])
579 AM_CONDITIONAL([ENABLE_WEBSOCKETS], [test "x$enable_websockets" = "xyes"])
580 AM_CONDITIONAL([ENABLE_WSEVH], [test "x$enable_websockets_event_handler" = "xyes"])
581 AC_SUBST(WS_MANUAL_LIBS)
582
583 AC_CHECK_LIB([rabbitmq],
584 [amqp_error_string2],
585 [
586 AS_IF([test "x$enable_rabbitmq" != "xno"],
587 [
588 AC_DEFINE(HAVE_RABBITMQ)
589 enable_rabbitmq=yes
590 ])
591 AS_IF([test "x$enable_rabbitmq_event_handler" != "xno"],
592 [
593 AC_DEFINE(HAVE_RABBITMQEVH)
594 enable_rabbitmq_event_handler=yes
595 ])
596 AC_CHECK_HEADERS([rabbitmq-c/amqp.h])
597 ],
598 [
599 AS_IF([test "x$enable_rabbitmq" = "xyes"],
600 [AC_MSG_ERROR([rabbitmq-c not found. See README.md for installation instructions or use --disable-rabbitmq])])
601 AS_IF([test "x$enable_rabbitmq_event_handler" = "xyes"],
602 [AC_MSG_ERROR([rabbitmq-c not found. See README.md for installation instructions or use --disable-rabbitmq-event-handler])])
603 ])
604 AC_CHECK_LIB([paho-mqtt3a],
605 [MQTTAsync_create],
606 [
607 AS_IF([test "x$enable_mqtt" != "xno"],
608 [
609 AC_DEFINE(HAVE_MQTT)
610 enable_mqtt=yes
611 ])
612 AS_IF([test "x$enable_mqtt_event_handler" != "xno"],
613 [
614 AC_DEFINE(HAVE_MQTTEVH)
615 enable_mqtt_event_handler=yes
616 ])
617 ],
618 [
619 AS_IF([test "x$enable_mqtt" = "xyes"],
620 [AC_MSG_ERROR([paho c client not found. See README.md for installation instructions or use --disable-mqtt])])
621 AS_IF([test "x$enable_mqtt_event_handler" = "xyes"],
622 [AC_MSG_ERROR([paho c not found. See README.md for installation instructions or use --disable-mqtt-event-handler])])
623 ])
624 AC_CHECK_LIB([nanomsg],
625 [nn_socket],
626 [
627 AS_IF([test "x$enable_nanomsg" != "xno"],
628 [
629 AC_DEFINE(HAVE_NANOMSG)
630 enable_nanomsg=yes
631 ])
632 AS_IF([test "x$enable_nanomsg_event_handler" != "xno"],
633 [
634 AC_DEFINE(HAVE_NANOMSGEVH)
635 enable_nanomsg_event_handler=yes
636 ])
637 ],
638 [
639 AS_IF([test "x$enable_nanomsg" = "xyes"],
640 [AC_MSG_ERROR([nanomsg not found. See README.md for installation instructions or use --disable-nanomsg])])
641 AS_IF([test "x$enable_nanomsg_event_handler" = "xyes"],
642 [AC_MSG_ERROR([nanomsg not found. See README.md for installation instructions or use --disable-nanomsg-event-handler])])
643 ])
644 AM_CONDITIONAL([ENABLE_RABBITMQ], [test "x$enable_rabbitmq" = "xyes"])
645 AM_CONDITIONAL([ENABLE_RABBITMQEVH], [test "x$enable_rabbitmq_event_handler" = "xyes"])
646 AM_CONDITIONAL([ENABLE_MQTT], [test "x$enable_mqtt" = "xyes"])
647 AM_CONDITIONAL([ENABLE_MQTTEVH], [test "x$enable_mqtt_event_handler" = "xyes"])
648 AM_CONDITIONAL([ENABLE_NANOMSG], [test "x$enable_nanomsg" = "xyes"])
649 AM_CONDITIONAL([ENABLE_NANOMSGEVH], [test "x$enable_nanomsg_event_handler" = "xyes"])
650 AM_CONDITIONAL([ENABLE_GELFEVH], [test "x$enable_gelf_event_handler" = "xyes"])
651
652 AM_CONDITIONAL([ENABLE_JSONLOGGER], [test "x$enable_json_logger" = "xyes"])
653
654 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
655 #include <stdlib.h>
656 #include <sys/socket.h>
657 #include <sys/un.h>
658 void test() {
659 int pfd = socket(PF_UNIX, SOCK_SEQPACKET | SOCK_NONBLOCK, 0);
660 if(pfd < 0)
661 exit(1);
662 }]], [[]])],[
663 AS_IF([test "x$enable_unix_sockets" != "xno"],
664 [
665 AC_DEFINE(HAVE_PFUNIX)
666 enable_unix_sockets=yes
667 ])
668 ],[
669 AS_IF([test "x$enable_unix_sockets" = "xyes"],
670 [AC_MSG_ERROR([SOCK_SEQPACKET not defined in your OS. Use --disable-unix-sockets])])
671 ])
672 AM_CONDITIONAL([ENABLE_PFUNIX], [test "x$enable_unix_sockets" = "xyes"])
673
674 AS_IF([test "x$enable_systemd_sockets" = "xyes"],
675 [PKG_CHECK_MODULES([LIBSYSTEMD],
676 [libsystemd],
677 [
678 AC_DEFINE(HAVE_LIBSYSTEMD)
679 ],
680 [AC_MSG_ERROR([libsystemd not found. systemd unix domain socket service not supported])])
681 ])
682
683
684 ##
685 # Plugins
686 ##
687
688 PKG_CHECK_MODULES([PLUGINS],
689 [
690 glib-2.0 >= $glib_version
691 jansson >= $jansson_version
692 ])
693
694 AC_ARG_ENABLE([plugin-audiobridge],
695 [AS_HELP_STRING([--disable-plugin-audiobridge],
696 [Disable audiobridge plugin])],
697 [AS_IF([test "x$enable_plugin_audiobridge" != "xyes"],
698 [enable_plugin_audiobridge=no])],
699 [enable_plugin_audiobridge=maybe])
700
701 AC_ARG_ENABLE([plugin-duktape],
702 [AS_HELP_STRING([--enable-plugin-duktape],
703 [Enable duktape plugin])],
704 [AS_IF([test "x$enable_plugin_duktape" != "xyes"],
705 [enable_plugin_duktape=no])],
706 [enable_plugin_duktape=no])
707
708 AC_ARG_ENABLE([plugin-echotest],
709 [AS_HELP_STRING([--disable-plugin-echotest],
710 [Disable echotest plugin])],
711 [AS_IF([test "x$enable_plugin_echotest" != "xyes"],
712 [enable_plugin_echotest=no])],
713 [enable_plugin_echotest=yes])
714
715 AC_ARG_ENABLE([plugin-lua],
716 [AS_HELP_STRING([--enable-plugin-lua],
717 [Enable lua plugin])],
718 [AS_IF([test "x$enable_plugin_lua" != "xyes"],
719 [enable_plugin_lua=no])],
720 [enable_plugin_lua=no])
721
722 AC_ARG_ENABLE([plugin-recordplay],
723 [AS_HELP_STRING([--disable-plugin-recordplay],
724 [Disable record&play plugin])],
725 [AS_IF([test "x$enable_plugin_recordplay" != "xyes"],
726 [enable_plugin_recordplay=no])],
727 [enable_plugin_recordplay=yes])
728
729 AC_ARG_ENABLE([plugin-sip],
730 [AS_HELP_STRING([--disable-plugin-sip],
731 [Disable sip plugin])],
732 [AS_IF([test "x$enable_plugin_sip" != "xyes"],
733 [enable_plugin_sip=no])],
734 [enable_plugin_sip=maybe])
735
736 AC_ARG_ENABLE([plugin-nosip],
737 [AS_HELP_STRING([--disable-plugin-nosip],
738 [Disable nosip plugin])],
739 [AS_IF([test "x$enable_plugin_nosip" != "xyes"],
740 [enable_plugin_nosip=no])],
741 [enable_plugin_nosip=yes])
742
743 AC_ARG_ENABLE([plugin-streaming],
744 [AS_HELP_STRING([--disable-plugin-streaming],
745 [Disable streaming plugin])],
746 [AS_IF([test "x$enable_plugin_streaming" != "xyes"],
747 [enable_plugin_streaming=no])],
748 [enable_plugin_streaming=yes])
749
750 AC_ARG_ENABLE([plugin-textroom],
751 [AS_HELP_STRING([--disable-plugin-textroom],
752 [Disable textroom plugin])],
753 [AS_IF([test "x$enable_plugin_textroom" != "xyes"],
754 [enable_plugin_textroom=no])],
755 [enable_plugin_textroom=yes])
756
757 AC_ARG_ENABLE([plugin-videocall],
758 [AS_HELP_STRING([--disable-plugin-videocall],
759 [Disable videocall plugin])],
760 [AS_IF([test "x$enable_plugin_videocall" != "xyes"],
761 [enable_plugin_videocall=no])],
762 [enable_plugin_videocall=yes])
763
764 AC_ARG_ENABLE([plugin-videoroom],
765 [AS_HELP_STRING([--disable-plugin-videoroom],
766 [Disable videoroom plugin])],
767 [AS_IF([test "x$enable_plugin_videoroom" != "xyes"],
768 [enable_plugin_videoroom=no])],
769 [enable_plugin_videoroom=yes])
770
771 PKG_CHECK_MODULES([SOFIA],
772 [sofia-sip-ua],
773 [
774 AS_IF([test "x$enable_plugin_sip" = "xmaybe"],
775 [enable_plugin_sip=yes])
776 ],
777 [
778 AS_IF([test "x$enable_plugin_sip" = "xyes"],
779 [AC_MSG_ERROR([sofia-sip-ua not found. See README.md for installation instructions or use --disable-plugin-sip])])
780 ])
781 AC_SUBST([SOFIA_CFLAGS])
782 AC_SUBST([SOFIA_LIBS])
783
784 PKG_CHECK_MODULES([OPUS],
785 [
786 opus
787 ],
788 [
789 AS_IF([test "x$enable_plugin_audiobridge" = "xmaybe"],
790 [
791 enable_plugin_audiobridge=yes
792 ])
793 AS_IF([test "x$enable_plugin_audiobridge" = "xyes"],
794 [
795 AC_DEFINE(FLOATING_POINT)
796 AC_DEFINE([EXPORT], [], [Symbol visibility prefix])
797 ])
798 ],
799 [
800 AS_IF([test "x$enable_plugin_audiobridge" = "xyes"],
801 [AC_MSG_ERROR([libopus not found. See README.md for installation instructions or use --disable-plugin-audiobridge])])
802 ])
803 AC_SUBST([OPUS_CFLAGS])
804 AC_SUBST([OPUS_LIBS])
805
806 PKG_CHECK_MODULES([OGG],
807 [ogg],
808 [
809 AC_DEFINE(HAVE_LIBOGG)
810 ],
811 [
812 ])
813 AC_SUBST([OGG_CFLAGS])
814 AC_SUBST([OGG_LIBS])
815
816 PKG_CHECK_MODULES([RNNOISE],
817 [rnnoise],
818 [
819 AC_DEFINE(HAVE_RNNOISE)
820 ],
821 [
822 ])
823 AC_SUBST([RNNOISE_CFLAGS])
824 AC_SUBST([RNNOISE_LIBS])
825
826 PKG_CHECK_MODULES([LUA],
827 [lua],
828 [
829 AS_IF([test "x$enable_plugin_lua" = "xmaybe"],
830 [enable_plugin_lua=yes])
831 ],
832 [PKG_CHECK_MODULES([LUA],
833 [lua5.3],
834 [
835 AS_IF([test "x$enable_plugin_lua" = "xmaybe"],
836 [enable_plugin_lua=yes])
837 ],
838 [
839 AS_IF([test "x$enable_plugin_lua" = "xyes"],
840 [AC_MSG_ERROR([lua-libs not found. See README.md for installation instructions or use --disable-plugin-lua])])
841 ])
842 ])
843 AC_SUBST([LUA_CFLAGS])
844 AC_SUBST([LUA_LIBS])
845
846 PKG_CHECK_MODULES([DUKTAPE],
847 [duktape],
848 [
849 AS_IF([test "x$enable_plugin_duktape" = "xmaybe"],
850 [enable_plugin_duktape=yes])
851 ],
852 [
853 AS_IF([test "x$enable_plugin_duktape" = "xyes"],
854 [AC_MSG_ERROR([duktape not found. See README.md for installation instructions or use --disable-plugin-duktape])])
855 ])
856 AC_SUBST([DUKTAPE_CFLAGS])
857 AC_SUBST([DUKTAPE_LIBS])
858
859 AM_CONDITIONAL([ENABLE_PLUGIN_AUDIOBRIDGE], [test "x$enable_plugin_audiobridge" = "xyes"])
860 AM_CONDITIONAL([ENABLE_PLUGIN_DUKTAPE], [test "x$enable_plugin_duktape" = "xyes"])
861 AM_CONDITIONAL([ENABLE_PLUGIN_ECHOTEST], [test "x$enable_plugin_echotest" = "xyes"])
862 AM_CONDITIONAL([ENABLE_PLUGIN_LUA], [test "x$enable_plugin_lua" = "xyes"])
863 AM_CONDITIONAL([ENABLE_PLUGIN_RECORDPLAY], [test "x$enable_plugin_recordplay" = "xyes"])
864 AM_CONDITIONAL([ENABLE_PLUGIN_SIP], [test "x$enable_plugin_sip" = "xyes"])
865 AM_CONDITIONAL([ENABLE_PLUGIN_NOSIP], [test "x$enable_plugin_nosip" = "xyes"])
866 AM_CONDITIONAL([ENABLE_PLUGIN_STREAMING], [test "x$enable_plugin_streaming" = "xyes"])
867 AM_CONDITIONAL([ENABLE_PLUGIN_VIDEOCALL], [test "x$enable_plugin_videocall" = "xyes"])
868 AM_CONDITIONAL([ENABLE_PLUGIN_VIDEOROOM], [test "x$enable_plugin_videoroom" = "xyes"])
869 AM_CONDITIONAL([ENABLE_PLUGIN_TEXTROOM], [test "x$enable_plugin_textroom" = "xyes"])
870
871
872 ##
873 # Event handlers
874 ##
875
876 PKG_CHECK_MODULES([EVENTS],
877 [
878 glib-2.0 >= $glib_version
879 jansson >= $jansson_version
880 ])
881
882
883 ##
884 # Loggers
885 ##
886
887 PKG_CHECK_MODULES([LOGGERS],
888 [
889 glib-2.0 >= $glib_version
890 jansson >= $jansson_version
891 ])
892
893
894 ##
895 # JavaScript modules
896 ##
897
898 AC_ARG_ENABLE([javascript-es-module],
899 [AS_HELP_STRING([--enable-javascript-es-module],
900 [Generate an ECMAScript style module from janus.js])],
901 [AS_IF([test "x$enable_javascript_es_module" = "xyes"],
902 [enable_javascript_es_module=yes])],
903 [enable_javascript_es_module=no])
904 AM_CONDITIONAL([ENABLE_JAVASCRIPT_ES_MODULE], [test "x$enable_javascript_es_module" = "xyes" ])
905
906 AC_ARG_ENABLE([javascript-umd-module],
907 [AS_HELP_STRING([--enable-javascript-umd-module],
908 [Generate an UMD style module from janus.js])],
909 [AS_IF([test "x$enable_javascript_umd_module" = "xyes"],
910 [enable_javascript_umd_module=yes])],
911 [enable_javascript_umd_module=no])
912 AM_CONDITIONAL([ENABLE_JAVASCRIPT_UMD_MODULE], [test "x$enable_javascript_umd_module" = "xyes" ])
913
914 AC_ARG_ENABLE([javascript-iife-module],
915 [AS_HELP_STRING([--enable-javascript-iife-module],
916 [Generate an IIFE style wrapper around janus.js])],
917 [AS_IF([test "x$enable_javascript_iife_module" = "xyes"],
918 [enable_javascript_iife_module=yes])],
919 [enable_javascript_iife_module=no])
920 AM_CONDITIONAL([ENABLE_JAVASCRIPT_IIFE_MODULE], [test "x$enable_javascript_iife_module" = "xyes" ])
921
922 AC_ARG_ENABLE([javascript-common-js-module],
923 [AS_HELP_STRING([--enable-javascript-common-js-module],
924 [Generate an CommonJS style module from janus.js])],
925 [AS_IF([test "x$enable_javascript_common_js_module" = "xyes"],
926 [enable_javascript_common_js_module=yes])],
927 [enable_javascript_common_js_module=no])
928 AM_CONDITIONAL([ENABLE_JAVASCRIPT_COMMON_JS_MODULE], [test "x$enable_javascript_common_js_module" = "xyes" ])
929
930 case "-${enable_javascript_common_js_module}-${enable_javascript_iife_module}-${enable_javascript_umd_module}-${enable_javascript_es_module}-" in
931 *-yes*)
932 AM_CONDITIONAL([ENABLE_JAVASCRIPT_MODULES], true)
933 ;;
934 *)
935 AM_CONDITIONAL([ENABLE_JAVASCRIPT_MODULES], false)
936 ;;
937 esac
938
939 AC_ARG_VAR(NPM,"npm executable to use")
940 AC_PATH_PROG(NPM,npm,,)
941 AM_CONDITIONAL([NPM_FOUND], [test "x$NPM" != "x" ])
942 AM_COND_IF([ENABLE_JAVASCRIPT_MODULES],[
943 AM_COND_IF([NPM_FOUND],,[AC_MSG_ERROR([npm not found])])
944 ])
945
946
947 ##
948 # Post-processing
949 ##
950
951 AC_ARG_ENABLE([post-processing],
952 [AS_HELP_STRING([--enable-post-processing],
953 [Enable building post-processing utility])],
954 [],
955 [enable_post_processing=no])
956
957 AS_IF([test "x$enable_post_processing" = "xyes"],
958 [PKG_CHECK_MODULES([POST_PROCESSING],
959 [
960 glib-2.0 >= $glib_version
961 jansson >= $jansson_version
962 libssl >= $ssl_version
963 libcrypto
964 libavutil
965 libavcodec
966 libavformat
967 ogg
968 zlib
969 ])
970 ])
971
972 PKG_CHECK_MODULES([PCAP],
973 [libpcap],
974 [
975 AC_DEFINE(HAVE_LIBPCAP)
976 enable_pcap2mjr=yes
977 ],
978 [
979 enable_pcap2mjr=no
980 ])
981 AC_SUBST([PCAP_CFLAGS])
982 AC_SUBST([PCAP_LIBS])
983
984 AM_CONDITIONAL([WITH_SOURCE_DATE_EPOCH], [test "x$SOURCE_DATE_EPOCH" != "x"])
985 AM_CONDITIONAL([ENABLE_POST_PROCESSING], [test "x$enable_post_processing" = "xyes"])
986 AM_CONDITIONAL([ENABLE_PCAP2MJR], [test "x$enable_pcap2mjr" = "xyes"])
987
988 AC_CONFIG_FILES([
989 Makefile
990 src/Makefile
991 html/Makefile
992 docs/Makefile
993 janus-gateway.pc
994 ])
995
996 JANUS_MANUAL_LIBS+=" -pthread"
997
998 AC_OUTPUT
999
1000 ##
1001 # Summary
1002 ##
1003 echo
1004 echo "Compiler: $CC"
1005 AM_COND_IF([ENABLE_LIBSRTP_2],
1006 [echo "libsrtp version: 2.x"],
1007 [echo "libsrtp version: 1.5.x"])
1008 AM_COND_IF([ENABLE_BORINGSSL],
1009 [echo "SSL/crypto library: BoringSSL"
1010 AM_COND_IF([ENABLE_DTLS_SETTIMEOUT],
1011 [echo "DTLS set-timeout: yes"],
1012 [echo "DTLS set-timeout: no"])
1013 ],
1014 [AM_COND_IF([LIBRESSL_DETECTED],
1015 [echo "SSL/crypto library: LibreSSL"],
1016 [echo "SSL/crypto library: OpenSSL"])
1017 echo "DTLS set-timeout: not available"])
1018 AM_COND_IF([ENABLE_PTHREAD_MUTEX],
1019 [echo "Mutex implementation: pthread mutex"],
1020 [echo "Mutex implementation: GMutex (native futex on Linux)"])
1021 AM_COND_IF([ENABLE_SCTP],
1022 [echo "DataChannels support: yes"],
1023 [echo "DataChannels support: no"])
1024 AM_COND_IF([ENABLE_POST_PROCESSING],
1025 [echo "Recordings post-processor: yes"],
1026 [echo "Recordings post-processor: no"])
1027 AM_COND_IF([ENABLE_TURN_REST_API],
1028 [echo "TURN REST API client: yes"],
1029 [echo "TURN REST API client: no"])
1030 AM_COND_IF([ENABLE_DOCS],
1031 [echo "Doxygen documentation: yes"],
1032 [echo "Doxygen documentation: no"])
1033 echo "Transports:"
1034 AM_COND_IF([ENABLE_REST],
1035 [echo " REST (HTTP/HTTPS): yes"],
1036 [echo " REST (HTTP/HTTPS): no"])
1037 AM_COND_IF([ENABLE_WEBSOCKETS],
1038 [echo " WebSockets: yes"],
1039 [echo " WebSockets: no"])
1040 AM_COND_IF([ENABLE_RABBITMQ],
1041 [echo " RabbitMQ: yes"],
1042 [echo " RabbitMQ: no"])
1043 AM_COND_IF([ENABLE_MQTT],
1044 [echo " MQTT: yes"],
1045 [echo " MQTT: no"])
1046 AM_COND_IF([ENABLE_PFUNIX],
1047 [echo " Unix Sockets: yes"],
1048 [echo " Unix Sockets: no"])
1049 AM_COND_IF([ENABLE_NANOMSG],
1050 [echo " Nanomsg: yes"],
1051 [echo " Nanomsg: no"])
1052 echo "Plugins:"
1053 AM_COND_IF([ENABLE_PLUGIN_ECHOTEST],
1054 [echo " Echo Test: yes"],
1055 [echo " Echo Test: no"])
1056 AM_COND_IF([ENABLE_PLUGIN_STREAMING],
1057 [echo " Streaming: yes"],
1058 [echo " Streaming: no"])
1059 AM_COND_IF([ENABLE_PLUGIN_VIDEOCALL],
1060 [echo " Video Call: yes"],
1061 [echo " Video Call: no"])
1062 AM_COND_IF([ENABLE_PLUGIN_SIP],
1063 [echo " SIP Gateway: yes"],
1064 [echo " SIP Gateway: no"])
1065 AM_COND_IF([ENABLE_PLUGIN_NOSIP],
1066 [echo " NoSIP (RTP Bridge): yes"],
1067 [echo " NoSIP (RTP Bridge): no"])
1068 AM_COND_IF([ENABLE_PLUGIN_AUDIOBRIDGE],
1069 [echo " Audio Bridge: yes"],
1070 [echo " Audio Bridge: no"])
1071 AM_COND_IF([ENABLE_PLUGIN_VIDEOROOM],
1072 [echo " Video Room: yes"],
1073 [echo " Video Room: no"])
1074 AM_COND_IF([ENABLE_PLUGIN_RECORDPLAY],
1075 [echo " Record&Play: yes"],
1076 [echo " Record&Play: no"])
1077 AM_COND_IF([ENABLE_PLUGIN_TEXTROOM],
1078 [echo " Text Room: yes"],
1079 [echo " Text Room: no"])
1080 AM_COND_IF([ENABLE_PLUGIN_LUA],
1081 [echo " Lua Interpreter: yes"],
1082 [echo " Lua Interpreter: no"])
1083 AM_COND_IF([ENABLE_PLUGIN_DUKTAPE],
1084 [echo " Duktape Interpreter: yes"],
1085 [echo " Duktape Interpreter: no"])
1086 echo "Event handlers:"
1087 AM_COND_IF([ENABLE_SAMPLEEVH],
1088 [echo " Sample event handler: yes"],
1089 [echo " Sample event handler: no"])
1090 AM_COND_IF([ENABLE_WSEVH],
1091 [echo " WebSocket ev. handler: yes"],
1092 [echo " WebSocket ev. handler: no"])
1093 AM_COND_IF([ENABLE_RABBITMQEVH],
1094 [echo " RabbitMQ event handler:yes"],
1095 [echo " RabbitMQ event handler:no"])
1096 AM_COND_IF([ENABLE_MQTTEVH],
1097 [echo " MQTT event handler: yes"],
1098 [echo " MQTT event handler: no"])
1099 AM_COND_IF([ENABLE_NANOMSGEVH],
1100 [echo " Nanomsg event handler: yes"],
1101 [echo " Nanomsg event handler: no"])
1102 AM_COND_IF([ENABLE_GELFEVH],
1103 [echo " GELF event handler: yes"],
1104 [echo " GELF event handler: no"])
1105 echo "External loggers:"
1106 AM_COND_IF([ENABLE_JSONLOGGER],
1107 [echo " JSON file logger: yes"],
1108 [echo " JSON file logger: no"])
1109 AM_COND_IF([ENABLE_JAVASCRIPT_MODULES], [
1110 echo "JavaScript modules: yes"
1111 echo " Using npm: $NPM"
1112 AM_COND_IF([ENABLE_JAVASCRIPT_ES_MODULE],
1113 [echo " ES syntax: yes"],
1114 [echo " ES syntax: no"])
1115 AM_COND_IF([ENABLE_JAVASCRIPT_IIFE_MODULE],
1116 [echo " IIFE syntax: yes"],
1117 [echo " IIFE syntax: no"])
1118 AM_COND_IF([ENABLE_JAVASCRIPT_UMD_MODULE],
1119 [echo " UMD syntax: yes"],
1120 [echo " UMD syntax: no"])
1121 AM_COND_IF([ENABLE_JAVASCRIPT_COMMON_JS_MODULE],
1122 [echo " CommonJS syntax: yes"],
1123 [echo " CommonJS syntax: no"])
1124 ],
1125 [echo "JavaScript modules: no"])
1126
1127 echo
1128 echo "If this configuration is ok for you, do a 'make' to start building Janus. A 'make install' will install Janus and its plugins to the specified prefix. Finally, a 'make configs' will install some sample configuration files too (something you'll only want to do the first time, though)."
1129 echo