1- AC_INIT ( [ Janus WebRTC Server] ,[ 0.4.5 ] ,[ https://github.com/meetecho/janus-gateway] ,[ janus-gateway] ,[ https://janus.conf.meetecho.com] )
1+ AC_INIT ( [ Janus WebRTC Server] ,[ 0.5.0 ] ,[ 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=45
18+ JANUS_VERSION=50
1919AC_SUBST ( JANUS_VERSION )
20- JANUS_VERSION_STRING="0.4.5 "
20+ JANUS_VERSION_STRING="0.5.0 "
2121AC_SUBST ( JANUS_VERSION_STRING )
2222
2323case "$host_os" in
@@ -76,6 +76,12 @@ AC_ARG_ENABLE([dtls-settimeout],
7676 [ ] ,
7777 [ enable_dtls_settimeout=no] )
7878
79+ AC_ARG_ENABLE ( [ pthread-mutex] ,
80+ [ AS_HELP_STRING ( [ --enable-pthread-mutex] ,
81+ [ Use pthread_mutex instead of GMutex (see #1397)] ) ] ,
82+ [ ] ,
83+ [ enable_pthread_mutex=no] )
84+
7985AC_ARG_ENABLE ( [ turn-rest-api] ,
8086 [ AS_HELP_STRING ( [ --disable-turn-rest-api] ,
8187 [ Disable TURN REST API client (via libcurl)] ) ] ,
@@ -260,6 +266,13 @@ AS_IF([test "x$enable_dtls_settimeout" = "xyes"],
260266 ] )
261267AM_CONDITIONAL([ ENABLE_DTLS_SETTIMEOUT] , [ test "x$enable_dtls_settimeout" = "xyes"] )
262268
269+ AS_IF ( [ test "x$enable_pthread_mutex" = "xyes"] ,
270+ [
271+ AC_DEFINE ( USE_PTHREAD_MUTEX )
272+ AC_MSG_NOTICE ( [ Will use pthread_mutex instead of GMutex] )
273+ ] )
274+ AM_CONDITIONAL([ ENABLE_PTHREAD_MUTEX] , [ test "x$enable_pthread_mutex" = "xyes"] )
275+
263276AC_SEARCH_LIBS ( [ tls_config_set_ca_mem] ,[ tls] ,
264277 [ AM_CONDITIONAL([ LIBRESSL_DETECTED] , true)] ,
265278 [ AM_CONDITIONAL([ LIBRESSL_DETECTED] , false)]
@@ -866,6 +879,9 @@ AM_COND_IF([ENABLE_BORINGSSL],
866879 [ echo "SSL/crypto library: LibreSSL"] ,
867880 [ echo "SSL/crypto library: OpenSSL"] )
868881 echo "DTLS set-timeout: not available"] )
882+ AM_COND_IF([ ENABLE_PTHREAD_MUTEX] ,
883+ [ echo "Mutex implementation: pthread mutex"] ,
884+ [ echo "Mutex implementation: GMutex (native futex on Linux)"] )
869885AM_COND_IF([ ENABLE_SCTP] ,
870886 [ echo "DataChannels support: yes"] ,
871887 [ echo "DataChannels support: no"] )
0 commit comments