- build berkeley db wget http://download.oracle.com/berkeley-db/db-5.3.21.tar.gz
- build apr
wget http://ftp.mirror.tw/pub/apache//apr/apr-1.4.6.tar.gz - build apr-util
wget http://ftp.mirror.tw/pub/apache//apr/apr-util-1.4.1.tar.gz
./configure --prefix=$prefix --with-berkeley-db=$prefix - build openssl
wget http://www.openssl.org/source/openssl-1.0.1c.tar.gz
./config shared --prefix=$prefix - build neon
./configure --prefix=$prefix --enable-shared --with-ssl=openssl --without-gssapi --with-libs=$prefix - build apache
./configure --prefix=$prefix/apache2 --enable-mods-shared=all --with-mpm=prefork --enable-so --enable-digest --enable-deflate --enable-proxy --enable-proxy-balancer --enable-proxy-http --sysconfdir=$HOME/etc/httpd - build subversion
./configure --prefix=$prefix --with-apr=$prefix/bin/apr-1-config --with-apr-util=$prefix/bin/apu-1-config --with-apxs=$prefix/apache2/bin/apxs --with-apache-libexecdir=$prefix/apache2/modules
tar xzf db-5.3.21.tar.gz
cd db-5.3.21
cd build_unix
../dist/configure --enable-cxx --enable-stl --enable-sql --prefix=$topt