Return-Path: Delivered-To: apmail-apr-dev-archive@apr.apache.org Received: (qmail 1133 invoked by uid 500); 19 Jun 2002 00:07:09 -0000 Mailing-List: contact dev-help@apr.apache.org; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Delivered-To: mailing list dev@apr.apache.org Received: (qmail 1121 invoked from network); 19 Jun 2002 00:07:09 -0000 Date: Tue, 18 Jun 2002 20:02:24 -0400 (EDT) From: Cliff Woolley X-X-Sender: root@deepthought.cs.virginia.edu To: itojun@iijlab.net cc: dev@apr.apache.org Subject: Re: random number generator In-Reply-To: <20020619000124.1AFCF4B25@coconut.itojun.org> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Huh, that's odd. I swear I tested this. I'll look into it tomorrow and place this in patches/apply_to_2.0.39/ if need be. Thanks, Cliff On Wed, 19 Jun 2002 itojun@iijlab.net wrote: > regarding to random number device in apr - thanks for > --with-randomdev=foo configure option in 2.0.39. it seems to me that > there's a bug in the handling. without the patch, > DEV_RANDOM will end up defined as $apr_randomdev (verbatim). > (i requested bug database account but it does not seem to send out > password for me...) > > itojun > > > --- srclib/apr/configure.in- Wed Jun 19 08:23:52 2002 > +++ srclib/apr/configure.in Wed Jun 19 08:32:09 2002 > @@ -1561,8 +1561,8 @@ > fi > elif test "$apr_devrandom" != "no"; then > if test -r "$apr_devrandom"; then > - AC_DEFINE(DEV_RANDOM, [$apr_devrandom]) > + AC_DEFINE_UNQUOTED(DEV_RANDOM, "$apr_devrandom") > AC_MSG_RESULT($apr_devrandom) > rand="1" > else > AC_ERROR([$apr_devrandom not found or unreadable.]) >