diff options
author | Jay Berkenbilt <ejb@ql.org> | 2018-10-12 15:22:14 +0200 |
---|---|---|
committer | Jay Berkenbilt <ejb@ql.org> | 2018-10-12 15:22:14 +0200 |
commit | c9d11d70a739fa521c2adaebd0ae5b88e643eb78 (patch) | |
tree | d9756af73ff7149b864a77cb3d42a54b4bc8eb6f /configure.ac | |
parent | cd7c0bf3687b7a77c22451e7d890f0b156098108 (diff) | |
download | qpdf-c9d11d70a739fa521c2adaebd0ae5b88e643eb78.tar.zst |
Improve autofiles checksum check
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/configure.ac b/configure.ac index 2765477f..3157762b 100644 --- a/configure.ac +++ b/configure.ac @@ -16,9 +16,9 @@ AC_CONFIG_HEADERS([libqpdf/qpdf/qpdf-config.h]) AC_CHECK_PROG(AUTOCONF,autoconf,1,0) AC_CHECK_PROG(AUTOHEADER,autoheader,1,0) AC_CHECK_PROG(ACLOCAL,aclocal,1,0) -AC_CHECK_PROG(MD5SUM,md5sum,1,0) -if test "$AUTOCONF$AUTOHEADER$ACLOCAL$MD5SUM" = "1111"; then - if ! md5sum configure.ac m4/* | diff -w - autofiles.sums; then +AC_CHECK_PROG(SHA256SUM,sha256sum,1,0) +if test "$AUTOCONF$AUTOHEADER$ACLOCAL$SHA256SUM" = "1111"; then + if ! sha256sum -c autofiles.sums; then AC_MSG_ERROR(autofiles are autodated; rerun autogen.sh) fi fi |