CFLAGS="-O3 -march=i686 -funroll-loops -fomit-frame-pointer" \
./configure \
--with-apache=../apache_1.3.19 \
--with-crt=/usr/share/ssl/certs/www.crt \
--with-key=/usr/share/ssl/private/www.key


OPTIM="-O3 -march=i686 -funroll-loops -fomit-frame-pointer" \
CFLAGS="-DDYNAMIC_MODULE_LIMIT=0" \
./configure \
--prefix=/home/httpd \
--bindir=/usr/bin \
--sbindir=/usr/sbin \
--libexecdir=/usr/lib/apache \
--includedir=/usr/include/apache \
--sysconfdir=/etc/httpd/conf \
--localstatedir=/var \
--runtimedir=/var/run \
--logfiledir=/var/log/httpd \
--datadir=/home/httpd \
--proxycachedir=/var/cache/httpd \
--mandir=/usr/share/man


CFLAGS="-O3 -march=i686 -funroll-loops -fomit-frame-pointer -I/usr/include/openssl" \
./configure \
--prefix=/usr \
--with-exec-dir=/usr/bin \
--with-apache=../apache_1.3.19 \
--with-config-file-path=/etc/httpd \
--with-gd \
--with-ttf \
--with-jpeg \
--with-png \
--with-mm \
--with-imap-ssl \ (if you want SSL support in IMAP).
--with-imap \ (if you want IMAP & POP support).
--with-ldap \ (if you want LDAP database light directory support).
--with-pgsql \ (if you want PostgreSQL database support).
--with-mysql=/usr \ (if you want MySQL database support).
--with-gettext \
--with-zlib \
--with-pspell \ (if you want a spell checker for specific applications)
--enable-inline-optimization \
--enable-bcmath


perl Makefile.PL \
EVERYTHING=1 \
APACHE_SRC=../apache_1.3.19/src \
USE_APACI=1 \
PREP_HTTPD=1 \
DO_HTTPD=1


SSL_BASE=SYSTEM \ (only for mod_ssl support).
EAPI_MM=SYSTEM \ (only for mm Shared Memory Library support).
OPTIM="-O3 -march=i686 -funroll-loops -fomit-frame-pointer" \
CFLAGS="-DDYNAMIC_MODULE_LIMIT=0" \
./configure \
--prefix=/home/httpd \
--bindir=/usr/bin \
--sbindir=/usr/sbin \
--libexecdir=/usr/lib/apache \
--includedir=/usr/include/apache \
--sysconfdir=/etc/httpd/conf \
--localstatedir=/var \
--runtimedir=/var/run \
--logfiledir=/var/log/httpd \
--datadir=/home/httpd \
--proxycachedir=/var/cache/httpd \
--mandir=/usr/share/man \
--add-module=src/modules/experimental/mod_mmap_static.c \ (only for mod_mmap).
--add-module=src/modules/standard/mod_auth_db.c \ (only for mod_auth_db support).
--enable-module=ssl \ (only for mod_ssl support).
--enable-rule=SSL_SDBM \ (only for mod_ssl support).
--disable-rule=SSL_COMPAT \ (only for mod_ssl support).
--activate-module=src/modules/php4/libphp4.a \ (only for PHP4 support).
--enable-module=php4 \ (only for PHP4 support).
--activate-module=src/modules/perl/libperl.a \ (only for mod_perl support).
--enable-module=perl \ (only for mod_perl support with Apache).
--disable-module=status \
--disable-module=userdir \
--disable-module=negotiation \
--disable-module=autoindex \
--disable-module=imap \
--server-uid=www \
--server-gid=www
