On Dec 20, 2006, at 9:52 AM, Benjamin Cuthbert wrote:

Do you need to checkout head for apr and apr-util ?

Yes, they don't live in the httpd tree, but are their own thing.

Here's how I build trunk:

$ mkdir -p apr/apr
$ mkdir apr/apr-util
$ mkdir -p httpd/trunk

$ cd apr/apr
$ svn co http://svn.apache.org/repos/asf/apr/apr/trunk
$ cd ../apr-util
$ svn co http://svn.apache.org/repos/asf/apr/apr/trunk
$ cd ../../httpd
$ svn co http://svn.apache.org/repos/asf/httpd/httpd/trunk

Each of these checkouts will tell you the Subversion revision number. As I write this, that revision is 489175, and I'll use that in the example below. I generally try to make sure that I get the same revision for apr and apr-util.


From the top:

$ cd apr/apr/trunk
$ ./buildconf
$ ./configure --prefix=/usr/local/apr-install/r489175
$ make
$ sudo make install
$ make clean

$ cd ../../apr-util/trunk
$ ./buildconf --with-apr=`pwd`/../../apr/trunk
$ ./configure --with-apr=/usr/local/apr-install/r489175/bin/apr-1- config \
   --prefix=/usr/local/apr-install/r489175
$ make
$ sudo make install
$ make clean

$ cd ../../../httpd/trunk
$ ./buildconf --with-apr=`pwd`/../../../apr/apr/trunk \
    --with-apr-util=`pwd`/../../../apr/apr-util/trunk
$ ./configure --prefix=/wherever/you/want/it \
   --with-apr=/usr/local/apr-install/r489175/bin/apr-1-config \
   --with-apr-util=/usr/local/apr-install/r489175/apu-1-config \
   --with-whatever-options-you-want-probably-proxy-stuff
$ make
$ make install
$ make clean

I find that keeping APR built and installed cuts down wonderfully on httpd build time. This is especially nice if you are on an old and slow Powerbook, and only interested in hacking/testing httpd. By installing under the svn revision number, you can keep as many copies of APR around as you want.

Note that buildconf needs to know where the *source* of APR and APR- Util are, because it needs to copy in some m4 scripts from these directories. The configure scripts need the *install* location of the libraries.

I'll be happy to push the above into a page under httpd.apache.org/ dev as "here's how to build HEAD for testing" if folks think it useful. Or I may put it on my blog.

S.

--
[EMAIL PROTECTED]            http://www.temme.net/sander/
PGP FP: 51B4 8727 466A 0BC3 69F4  B7B8 B2BE BC40 1529 24AF


Attachment: smime.p7s
Description: S/MIME cryptographic signature

Reply via email to