#!/usr/bin/ksh

function gen_all {
    aclocal
    automake
    autoconf
    autoheader
}

function conf_1 {
./configure \
--with-tcl=/usr/local/lib/tcl8.4 \
--with-tclinclude=/usr/local/include/tcl8.4 \
--with-apache-version=1 \
--with-apache=/usr \
--with-apache-include=/usr/lib/apache/include \
--with-apr-include=/usr/local/include/apr-1  \
--enable-shared 
}

function conf_2 {
./configure \
--with-tcl=/usr/lib/tcl8.4 \
--with-tclinclude=/usr/include/tcl8.4 \
--with-apache-version=2 \
--with-apache=/usr/local/apache2  \
--with-apr-include=/usr/local/apache2/include  \
--enable-shared \
--enable-symbols 
}

function build_all {
    make
}

gen_all
conf_2
#build_all
