Corrected an issue with autoconf config date using source_date_epoch even when SOURCE_DATE_EPOCH was not defined.

This commit is contained in:
Ward Fisher 2016-05-23 15:31:40 -06:00
parent 527dcb484f
commit d88ad0e0d9

View File

@ -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`"