Description: change GNU date check to also allow for the rust-coreutils variant
 rust-coreutils is meant to be compatible with GNU coreutils, so it makes sense
 for this check to also cope with it.
 .
 That check comes from https://www.gnu.org/software/autoconf-archive/ax_prog_date.html
 and it's unlikely this patch will be accepted. What's probably best in the long
 term is to expand that ax_prog_date macro to detect the rust variant specifically.
Author: Andreas Hasenack <andreas.hasenack@canonical.com>
Bug-Ubuntu: https://bugs.launchpad.net/ubuntu/+source/kronosnet/+bug/2125058
Forwarded: no
Reviewed-by: Renan Rodrigo <rr@ubuntu.com>
Last-Update: 2025-11-27
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
--- a/m4/ax_prog_date.m4
+++ b/m4/ax_prog_date.m4
@@ -78,7 +78,7 @@
 AC_DEFUN([AX_PROG_DATE], [dnl
   AC_CACHE_CHECK([for GNU date], [ax_cv_prog_date_gnu], [
     ax_cv_prog_date_gnu=no
-    if date --version 2>/dev/null | head -1 | grep -q GNU
+    if date --version 2>/dev/null | head -1 | grep -q "\(GNU\|uutils\)"
     then
       ax_cv_prog_date_gnu=yes
     fi
