[systemd-devel] [PATCH] build: --disable-networkd --enable-timesyncd should throw error
Lennart Poettering
lennart at poettering.net
Thu May 15 15:34:04 PDT 2014
On Thu, 15.05.14 18:23, Cristian Rodríguez (crrodriguez at opensuse.org) wrote:
> timesyncd requires networkd running.
It doesn't really.... Should work either way...
> ---
> configure.ac | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/configure.ac b/configure.ac
> index 16b689e..a19ca24 100644
> --- a/configure.ac
> +++ b/configure.ac
> @@ -830,6 +830,8 @@ AC_ARG_ENABLE(timesyncd, AS_HELP_STRING([--disable-timesyncd], [disable timesync
> if test "x$enable_timesyncd" != "xno"; then
> have_timesyncd=yes
> fi
> +AS_IF([test "x$have_timesyncd" = "xyes" -a "x$have_networkd" != "xyes"],
> + [AC_MSG_ERROR([timesyncd requires networkd at runtime])])
> AM_CONDITIONAL(ENABLE_TIMESYNCD, [test "$have_timesyncd" = "yes"])
>
> AC_ARG_WITH(ntp-servers,
Lennart
--
Lennart Poettering, Red Hat
More information about the systemd-devel
mailing list