Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions m4/ax_prog_date.m4
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
# ===========================================================================
#
# Customized version to support uutils from Ubuntu
#
## ===========================================================================
# https://www.gnu.org/software/autoconf-archive/ax_prog_date.html
# ===========================================================================
#
Expand All @@ -13,7 +16,7 @@
#
# The type is determined as follow:
#
# * If the version string contains "GNU", then:
# * If the version string contains "GNU" or "uutils", then:
# - The variable ax_cv_prog_date_gnu is set to "yes".
# - The variable ax_cv_prog_date_type is set to "gnu".
#
Expand Down Expand Up @@ -78,7 +81,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
Expand Down