You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by Emanuel Dejanu <ed...@route66.ro> on 2001/05/08 09:35:30 UTC

Compile Beginner Question

I want to compile the Apache 2 with HARD_THREAD_LIMIT set to 1024
using a command line directive. Now I modify the file
"httpd-2_0_16/server/mpm/perchild/mpm_default.h".
It is possible to set it without modify the file?

Thanks for your time,

Emanuel Dejanu

P.S. Please put a CC to me because I am a digest subscriber.


Re: Compile Beginner Question

Posted by Jeff Trawick <tr...@bellsouth.net>.
"Emanuel Dejanu" <ed...@route66.ro> writes:

> I want to compile the Apache 2 with HARD_THREAD_LIMIT set to 1024
> using a command line directive. Now I modify the file
> "httpd-2_0_16/server/mpm/perchild/mpm_default.h".
> It is possible to set it without modify the file?

yes, it would seem possible because of the way HARD_THREAD_LIMIT is
defined:

#ifndef HARD_THREAD_LIMIT
#define HARD_THREAD_LIMIT 64 
#endif

I would think that you could set CFLAGS around configure like this and
have the right thing happen:

CFLAGS="-DHARD_THREAD_LIMIT=1024" ./configure ...

-- 
Jeff Trawick | trawickj@bellsouth.net | PGP public key at web site:
       http://www.geocities.com/SiliconValley/Park/9289/
             Born in Roswell... married an alien...