@@ -214,9 +214,6 @@ AC_ARG_ENABLE(native-libs,
214
214
AS_HELP_STRING ( [ --enable-native-libs] ,
215
215
[ compile Erlang libraries to native code] ) )
216
216
217
- AC_ARG_ENABLE ( tsp ,
218
- AS_HELP_STRING ( [ --enable-tsp] , [ compile tsp app] ) )
219
-
220
217
AC_ARG_ENABLE ( fp-exceptions ,
221
218
AS_HELP_STRING ( [ --enable-fp-exceptions] ,
222
219
[ use hardware floating point exceptions (default if hipe enabled)] ) ,
@@ -366,6 +363,11 @@ AC_DEFINE_UNQUOTED(ASSUMED_CACHE_LINE_SIZE,
366
363
$with_assumed_cache_line_size ,
367
364
[ Assumed cache-line size (in bytes)] )
368
365
366
+ AC_ARG_ENABLE ( systemd ,
367
+ AS_HELP_STRING ( [ --enable-systemd] , [ enable systemd support in epmd] ) ,
368
+ [ ] ,
369
+ [ enable_systemd=no] )
370
+
369
371
dnl Magic test for clearcase.
370
372
OTP_RELEASE=
371
373
if test "${ERLANG_COMMERCIAL_BUILD}" != ""; then
@@ -456,10 +458,10 @@ AS_HELP_STRING([--enable-static-drivers], [comma seperated list of linked-in dri
456
458
AC_SUBST ( STATIC_DRIVERS )
457
459
458
460
AC_ARG_WITH ( ets-write-concurrency-locks ,
459
- AS_HELP_STRING ( [ --with-ets-write-concurrency-locks={8,16,32,64, 128, 256}] ,
460
- [ specify how many locks the write_concurrency option for ets should use.] )
461
- AS_HELP_STRING ( [ --without-ets-write-concurrency-locks] ,
462
- [ use the default number of write_concurrency locks (default)] ) )
461
+ AS_HELP_STRING ( [ --with-ets-write-concurrency-locks={8|16|32|64| 128| 256}] ,
462
+ [ specify how many locks the write_concurrency option for ets should use.] )
463
+ AS_HELP_STRING ( [ --without-ets-write-concurrency-locks] ,
464
+ [ use the default number of write_concurrency locks (default)] ) )
463
465
464
466
if test X"$with_ets_write_concurrency_locks" != X""; then
465
467
AC_DEFINE_UNQUOTED ( ERTS_DB_HASH_LOCK_CNT ,$with_ets_write_concurrency_locks ,
@@ -1042,8 +1044,6 @@ AC_CHECK_LIB(dl, dlopen)
1042
1044
AC_CHECK_LIB ( inet , main )
1043
1045
AC_CHECK_LIB ( util , openpty )
1044
1046
1045
- AC_CHECK_LIB ( systemd-daemon , sd_listen_fds )
1046
-
1047
1047
dnl Try to find a thread library.
1048
1048
dnl
1049
1049
dnl ETHR_LIB_NAME, ETHR_LIBS, ETHR_X_LIBS, ETHR_THR_LIB_BASE and ETHR_DEFS
@@ -1679,7 +1679,29 @@ AC_CHECK_MEMBERS([struct ifreq.ifr_enaddr], [], [],
1679
1679
#endif
1680
1680
] )
1681
1681
1682
- AC_CHECK_HEADERS ( systemd/sd-daemon.h )
1682
+ dnl ----------------------------------------------------------------------
1683
+ dnl Check the availability of systemd
1684
+ dnl ----------------------------------------------------------------------
1685
+ if test x"$enable_systemd" != x"no"; then
1686
+
1687
+ systemd_daemon_save_LIBS=$LIBS
1688
+ LIBS=
1689
+ AC_SEARCH_LIBS ( sd_listen_fds ,[ systemd systemd-daemon] ,
1690
+ [ have_sd_listen_fds=yes] ,[ have_sd_listen_fds=no] ,$systemd_daemon_save_LIBS )
1691
+ AC_CHECK_HEADERS ( systemd/sd-daemon.h ,
1692
+ [ have_systemd_sd_daemon_h=yes] ,[ have_systemd_sd_daemon_h=no] )
1693
+
1694
+ if test x"$have_sd_listen_fds" = x"yes" && \
1695
+ test x"$have_systemd_sd_daemon_h" = x"yes"; then
1696
+ AC_DEFINE ( [ HAVE_SYSTEMD_DAEMON] ,[ 1] ,[ Define if you have systemd daemon] )
1697
+ SYSTEMD_DAEMON_LIBS=$LIBS
1698
+ elif test x"$enable_systemd" = x"yes"; then
1699
+ AC_MSG_FAILURE ( [ --enable-systemd was given, but test for systemd failed] )
1700
+ fi
1701
+ LIBS=$systemd_daemon_save_LIBS
1702
+ fi
1703
+ AC_SUBST ( SYSTEMD_DAEMON_LIBS )
1704
+
1683
1705
1684
1706
dnl ----------------------------------------------------------------------
1685
1707
dnl Check the availability for libdlpi
@@ -3431,16 +3453,6 @@ dnl Tests related to configurable options given on command line
3431
3453
dnl (using the --disable, --enable and --with switches).
3432
3454
dnl ----------------------------------------------------------------------
3433
3455
3434
- #
3435
- # Check if we should compile TSP app
3436
- #
3437
-
3438
- TSP_APP=
3439
- if test X${enable_tsp} = Xyes; then
3440
- TSP_APP=tsp
3441
- fi
3442
- AC_SUBST ( TSP_APP )
3443
-
3444
3456
#
3445
3457
# Check if we should enable HiPE.
3446
3458
#
0 commit comments