Switch to FSF GCC 4.7.
[nethome.git] / bin / vellumweb-build
index 8c8407f..dbc0c0a 100755 (executable)
@@ -2,14 +2,13 @@
 #
 # $Id$
 
-arch=$HOME/arch
+arch=${arch:-$HOME/arch}
 prefix=/usr/local/apache
 pkgs="
-       httpd=apache_1.3.26
-       openssl=openssl-0.9.6g
-       modssl=mod_ssl-2.8.10-1.3.26
-       php=php-4.2.3
-       modperl=mod_perl-1.27
+       httpd=apache_1.3.33
+       openssl=openssl-0.9.7e
+       modssl=mod_ssl-2.8.22-1.3.33
+       php=php-4.3.10
        "
 export CFLAGS="-ggdb3"
 
@@ -51,33 +50,28 @@ pushd $modssl
 popd
 
 pushd $php
-       ./configure --with-apache=../$httpd \
+       ./configure --prefix=$prefix --with-apache=../$httpd \
                --with-mysql`d=/usr/local/mysql && test -d $d && echo =$d` \
                --enable-track-vars \
                --enable-memory-limit=yes \
-               --enable-debug=no
+               --enable-debug=no \
+               --with-gd \
+                               --with-zlib-dir=/usr/lib \
+                               --with-jpeg-dir=/usr/lib \
+               --with-iconv
        make
        make install
 popd
 
-pushd $modperl
-       perl Makefile.PL APACHE_SRC=../$httpd DO_HTTPD=1 USE_APACI=1 PREP_HTTPD=1 EVERYTHING=1 \
-                       PERL_DEBUG=1
-       make
-#      make test       # requires running httpd!
-       make install UNINST=1
-popd
-
 pushd $httpd
        OPTIM="$CFLAGS" SSL_BASE="$PWD/../$openssl" ./configure --prefix=$prefix \
                        --enable-module=ssl \
                        --activate-module=src/modules/php4/libphp4.a \
-                       --activate-module=src/modules/perl/libperl.a \
-                                       --disable-rule=EXPAT \
                        --enable-module=so \
                        --enable-module=headers \
                        --enable-module=rewrite \
-                       --enable-module=auth_anon
+                       --enable-module=auth_anon \
+                       --enable-module=proxy
        make
        make install
 popd