From: Sergey Poznyakoff Date: Thu, 6 May 2004 09:11:32 +0000 (+0000) Subject: Check whether date accepts +format argument (for backup scripts). X-Git-Url: https://git.dogcows.com/gitweb?a=commitdiff_plain;h=640effdebd564a59ba31772316e5d9b9329491f3;p=chaz%2Ftar Check whether date accepts +format argument (for backup scripts). --- diff --git a/configure.ac b/configure.ac index f6a48f9..a495abf 100644 --- a/configure.ac +++ b/configure.ac @@ -243,6 +243,14 @@ AC_CHECK_TYPE(iconv_t,:, #endif ]) +AC_SUBST(BACKUP_SED_COND) +if date +%Y-%m-%d 2>/dev/null >&2; then + BACKUP_SED_COND='/^#ELSE_DATE_FORMAT_OK/,/^#ENDIF_DATE_FORMAT_OK/d;/^#IF_DATE_FORMAT_OK/d' +else + BACKUP_SED_COND='/^#IF_DATE_FORMAT_OK/,/^#ELSE_DATE_FORMAT_OK/d;/^#ENDIF_DATE_FORMAT_OK/d' +fi + + AC_OUTPUT([Makefile\ doc/Makefile\ lib/Makefile\