X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=configure.ac;h=16b689e253702f0e2da167819dd5c7612abdd7e4;hb=7da489e630d1c608179d7aea66342c0ec5440932;hp=336938ee7f74abfbb954fb9c34e766084de78b5e;hpb=5ea846cc5197682d07ee46398996a8c3ccfbcc38;p=elogind.git diff --git a/configure.ac b/configure.ac index 336938ee7..16b689e25 100644 --- a/configure.ac +++ b/configure.ac @@ -880,6 +880,8 @@ if test "x$enable_networkd" != "xno"; then AC_DEFINE(ENABLE_NETWORKD, 1, [Define if networkd support is to be enabled]) have_networkd=yes fi +AS_IF([test "x$have_networkd" = "xyes" -a "x$have_kmod" != "xyes"], + [AC_MSG_ERROR([networkd requires kmod])]) AM_CONDITIONAL(ENABLE_NETWORKD, [test "x$have_networkd" = "xyes"]) # ------------------------------------------------------------------------------