]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
test -e isn't standard. Use test -c + -s for checking /dev/urandom.
authorTimo Sirainen <tss@iki.fi>
Thu, 10 Jul 2003 00:40:25 +0000 (03:40 +0300)
committerTimo Sirainen <tss@iki.fi>
Thu, 10 Jul 2003 00:40:25 +0000 (03:40 +0300)
--HG--
branch : HEAD

configure.in

index c9dde809269d713a5c03f19e6a41ebb6aa725d05..cd45c55122984e0128582b47375b191566934085 100644 (file)
@@ -496,7 +496,7 @@ AC_DEFINE_UNQUOTED(INDEX_ALIGN_SIZE, $index_align, Required index alignment)
 
 dnl * find random source
 AC_MSG_CHECKING([for /dev/urandom])
-if test -e /dev/urandom; then
+if test -c /dev/urandom -o -s /dev/urandom; then
   AC_MSG_RESULT(yes)
   AC_DEFINE(HAVE_DEV_URANDOM,, Define if you have /dev/urandom)
   have_random_source=yes