md5, sha1, sha256, sha512: use openssl routines if available
[gnulib.git] / m4 / sha1.m4
index 7b6c21c..57d5256 100644 (file)
@@ -1,15 +1,14 @@
-# sha1.m4 serial 6
-dnl Copyright (C) 2002, 2003, 2004, 2005 Free Software Foundation, Inc.
+# sha1.m4 serial 12
+dnl Copyright (C) 2002-2006, 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_SHA1],
 [
-  AC_LIBSOURCES([sha1.c, sha1.h])
-  AC_LIBOBJ([sha1])
-
   dnl Prerequisites of lib/sha1.c.
-  AC_REQUIRE([AC_C_BIGENDIAN])
-  :
+  AC_REQUIRE([gl_BIGENDIAN])
+
+  dnl Determine HAVE_OPENSSL_SHA1 and LIB_CRYPTO
+  gl_CRYPTO_CHECK([SHA1])
 ])