+2020-05-30 Bruno Haible <bruno@clisp.org>
+
+ crypto/gc-random: Fix link error on MSVC.
+ * m4/gc-random.m4 (gl_GC_RANDOM): Set LIB_GC_RAMDOM.
+ * modules/crypto/gc-random (Link): New section.
+ * modules/crypto/gc-tests (Makefile.am): Link test-gc against
+ $(LIB_GC_RAMDOM).
+
2020-05-30 Bruno Haible <bruno@clisp.org>
Don't assume that UNICODE is not defined.
-# gc-random.m4 serial 6
+# gc-random.m4 serial 7
dnl Copyright (C) 2005-2020 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
# Devices with randomness.
# FIXME: Are these the best defaults?
- AC_REQUIRE([AC_CANONICAL_HOST])dnl
+ AC_REQUIRE([AC_CANONICAL_HOST])
case "$host_os" in
*openbsd* | *mirbsd*)
[defined to the name of the pseudo random device])
AC_DEFINE_UNQUOTED([NAME_OF_NONCE_DEVICE], ["$NAME_OF_NONCE_DEVICE"],
[defined to the name of the unpredictable nonce device])
+
+ case $host_os in
+ mingw*)
+ LIB_GC_RAMDOM='-ladvapi32' ;;
+ *)
+ LIB_GC_RAMDOM= ;;
+ esac
+ AC_SUBST([LIB_GC_RAMDOM])
])