X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=configure.ac;h=0a4e901d75208ad82c8018c939161537f24cabaa;hb=332bc31992acffc6f32e194c0122e01607bd0e27;hp=c3653e3f76c4f7fe246c8156150ad731c9799197;hpb=de0671ee7fe465e108f62dcbbbe9366f81dd9e9a;p=elogind.git diff --git a/configure.ac b/configure.ac index c3653e3f7..0a4e901d7 100644 --- a/configure.ac +++ b/configure.ac @@ -76,6 +76,8 @@ AC_PATH_PROG([KMOD], [kmod], [/usr/bin/kmod], [$PATH:/usr/sbin:/sbin]) AC_PATH_PROG([KEXEC], [kexec], [/usr/sbin/kexec], [$PATH:/usr/sbin:/sbin]) +AS_IF([! ln --relative --help > /dev/null 2>&1], [AC_MSG_ERROR([*** ln doesn't support --relative ***])]) + M4_DEFINES= # gtkdocize greps for '^GTK_DOC_CHECK', so it needs to be on its own line @@ -843,7 +845,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`"]) @@ -880,6 +882,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"]) # ------------------------------------------------------------------------------