]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
build-sys: add --disable-cal
authorKarel Zak <kzak@redhat.com>
Mon, 27 Jul 2015 09:49:29 +0000 (11:49 +0200)
committerKarel Zak <kzak@redhat.com>
Mon, 27 Jul 2015 09:49:29 +0000 (11:49 +0200)
Signed-off-by: Karel Zak <kzak@redhat.com>
configure.ac

index c37d044014dcb77c43dd4f02b581a3fcd70ecdfc..7c4f6bcd58ef52a108fdb8d58a9eb473895c2407 100644 (file)
@@ -1311,9 +1311,15 @@ AS_IF([test "x$build_mkswap" = xyes -a "x$build_libuuid" != xyes], [
   AC_MSG_WARN([uuid library is not found; mkswap(8) will not generate UUIDs])
 ])
 
-UL_BUILD_INIT([cal], [yes])
+
+AC_ARG_ENABLE([cal],
+  AS_HELP_STRING([--disable-cal], [do not build cal]),
+  [], [UL_DEFAULT_ENABLE([cal], [check])]
+)
+UL_BUILD_INIT([cal])
 AM_CONDITIONAL([BUILD_CAL], [test "x$build_cal" = xyes])
 
+
 UL_BUILD_INIT([logger], [yes])
 AM_CONDITIONAL([BUILD_LOGGER], [test "x$build_logger" = xyes])