X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=configure.ac;h=16b689e253702f0e2da167819dd5c7612abdd7e4;hb=7da489e630d1c608179d7aea66342c0ec5440932;hp=972fc2f6bf83d6141b3315b4ed196cf5a35746e2;hpb=661278ee297247c0c7e0708924f8ce52284529fc;p=elogind.git diff --git a/configure.ac b/configure.ac index 972fc2f6b..16b689e25 100644 --- a/configure.ac +++ b/configure.ac @@ -199,6 +199,11 @@ AC_SUBST([OUR_LDFLAGS], "$with_ldflags $sanitizer_ldflags") AC_CHECK_SIZEOF(pid_t) AC_CHECK_SIZEOF(uid_t) AC_CHECK_SIZEOF(gid_t) +AC_CHECK_SIZEOF(time_t) +AC_CHECK_SIZEOF(rlim_t,,[ + #include + #include +]) # ------------------------------------------------------------------------------ # we use python to build the man page index, and for systemd-python @@ -838,7 +843,7 @@ AC_SUBST(NTP_SERVERS) AC_ARG_WITH(time-epoch, AS_HELP_STRING([--with-time-epoch=SECONDS], - [TIme epoch for time clients]), + [Time epoch for time clients]), [TIME_EPOCH="$withval"], [TIME_EPOCH="`stat -c %Y ${srcdir}/NEWS 2>/dev/null || echo 0`"]) @@ -875,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"]) # ------------------------------------------------------------------------------