mirror of
https://github.com/Unidata/netcdf-c.git
synced 2025-01-18 15:55:12 +08:00
Corrected an issue with autoconf config date using source_date_epoch even when SOURCE_DATE_EPOCH was not defined.
This commit is contained in:
parent
527dcb484f
commit
d88ad0e0d9
@ -45,7 +45,7 @@ AC_MSG_NOTICE([netCDF AC_PACKAGE_VERSION])
|
||||
AC_CONFIG_MACRO_DIR([m4])
|
||||
|
||||
# Configuration Date
|
||||
if test -n ${SOURCE_DATE_EPOCH}; then
|
||||
if test "x$SOURCE_DATE_EPOCH" != "x" ; then
|
||||
AC_SUBST([CONFIG_DATE]) CONFIG_DATE="`date -u -d "${SOURCE_DATE_EPOCH}"`"
|
||||
else
|
||||
AC_SUBST([CONFIG_DATE]) CONFIG_DATE="`date`"
|
||||
|
Loading…
Reference in New Issue
Block a user