md5, sha1, sha256, sha512: use openssl routines if available
[gnulib.git] / m4 / sha256.m4
index 54b15e8..3a19467 100644 (file)
@@ -1,13 +1,14 @@
-# sha256.m4 serial 2
-dnl Copyright (C) 2005, 2008 Free Software Foundation, Inc.
+# sha256.m4 serial 8
+dnl Copyright (C) 2005, 2008-2013 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
 dnl with or without modifications, as long as this notice is preserved.
 
 AC_DEFUN([gl_SHA256],
 [
-  AC_LIBOBJ([sha256])
-
   dnl Prerequisites of lib/sha256.c.
-  AC_REQUIRE([AC_C_BIGENDIAN])
+  AC_REQUIRE([gl_BIGENDIAN])
+
+  dnl Determine HAVE_OPENSSL_SHA256 and LIB_CRYPTO
+  gl_CRYPTO_CHECK([SHA256])
 ])