1b6cae530a
- while there, prefer http MASTER_SITES
33 lines
925 B
Plaintext
33 lines
925 B
Plaintext
$OpenBSD: patch-configure_in,v 1.3 2011/08/20 09:11:51 sthen Exp $
|
|
--- configure.in.orig Sat May 2 02:57:53 2009
|
|
+++ configure.in Sat Aug 13 17:59:23 2011
|
|
@@ -553,22 +553,17 @@ AC_ARG_WITH(paranoid,
|
|
AC_MSG_RESULT(none)
|
|
)
|
|
|
|
-AC_MSG_CHECKING(for /dev/urandom)
|
|
-if test -c /dev/urandom; then
|
|
- AC_MSG_RESULT(yes)
|
|
- AC_DEFINE_UNQUOTED([HAVE_DEV_RANDOM])
|
|
- AC_DEFINE_UNQUOTED([DEV_RANDOM_PATH], ["/dev/urandom"])
|
|
-else
|
|
- AC_MSG_RESULT(no)
|
|
- AC_MSG_CHECKING(for /dev/random)
|
|
- if test -c /dev/random; then
|
|
+for dev in /dev/arandom /dev/urandom /dev/random; do
|
|
+ AC_MSG_CHECKING(for $dev)
|
|
+ if test -c $dev; then
|
|
AC_MSG_RESULT(yes)
|
|
AC_DEFINE_UNQUOTED([HAVE_DEV_RANDOM])
|
|
- AC_DEFINE_UNQUOTED([DEV_RANDOM_PATH], ["/dev/random"])
|
|
+ AC_DEFINE_UNQUOTED([DEV_RANDOM_PATH], ["$dev"])
|
|
+ break
|
|
else
|
|
AC_MSG_RESULT(no)
|
|
fi
|
|
-fi
|
|
+done
|
|
|
|
AC_MSG_CHECKING(for default server)
|
|
AC_ARG_WITH(default-server,
|