From 2ea613a42b210242337cd5ffea7bd7b2a7caa70f Mon Sep 17 00:00:00 2001 From: Joachim Wiberg Date: Sat, 24 Apr 2021 09:43:27 +0200 Subject: [PATCH] Make sure built-in watchdog is disabled by default Omitting --without-watchdog caused the watchdog to be enabled. Signed-off-by: Joachim Wiberg --- configure.ac | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/configure.ac b/configure.ac index 8a5455e0..8b063116 100644 --- a/configure.ac +++ b/configure.ac @@ -122,7 +122,7 @@ AC_ARG_WITH(random-seed, AC_ARG_WITH(watchdog, AS_HELP_STRING([--with-watchdog=[DEV]], [Enable built-in watchdog, default: /dev/watchdog]), - [watchdog=$withval],[watchdog=]) + [watchdog=$withval], [with_watchdog=no watchdog=]) ### Enable features ########################################################################### @@ -198,7 +198,8 @@ AS_IF([test "x$with_watchdog" != "xno"], [ AS_IF([test "x$watchdog" = "xyes"], [ watchdog=/dev/watchdog]) with_watchdog=yes - AC_DEFINE_UNQUOTED(WDT_DEVNODE, "$watchdog", [Built-in watchdog device node])]) + AC_DEFINE_UNQUOTED(WDT_DEVNODE, "$watchdog", [Built-in watchdog device node])], [ + watchdog=]) # Control build with automake flags AM_CONDITIONAL(STATIC, [test "x$enable_static" = "xyes"])