summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2011-05-30 11:57:28 +0200
committerDaniel Stenberg <daniel@haxx.se>2011-05-30 11:59:13 +0200
commita87102c7923bb29302b6ad9f3811af92e19b4e91 (patch)
treeccb05ff5d7a2ab4ac88d04bf8809f0f5986eaa02 /configure.ac
parent2e7a2027f165c2dcd465527d13fa283104e8c7f9 (diff)
downloadcurl-a87102c7923bb29302b6ad9f3811af92e19b4e91.tar.gz
configure.ac: skip /dev/urandom check when cross-compiling
Bug: http://curl.haxx.se/bug/view.cgi?id=3307835
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac8
1 files changed, 6 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac
index 0a155eb37..819008eec 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1624,8 +1624,12 @@ if test X"$OPENSSL_ENABLED" = X"1"; then
[read randomness from FILE (default=/dev/urandom)]),
[ RANDOM_FILE="$withval" ],
[
- dnl Check for random device
- AC_CHECK_FILE("/dev/urandom", [ RANDOM_FILE="/dev/urandom"] )
+ if test x$cross_compiling != xyes; then
+ dnl Check for random device
+ AC_CHECK_FILE("/dev/urandom", [ RANDOM_FILE="/dev/urandom"] )
+ else
+ AC_MSG_WARN([skipped the /dev/urandom detection when cross-compiling])
+ fi
]
)
if test -n "$RANDOM_FILE" && test X"$RANDOM_FILE" != Xno ; then