#!/bin/bash echo "configuring php in 'current' directory" cd current export CFLAGS="-O2" ./configure --prefix=/usr/local/apps/php/php-4.3.0 \ --with-apxs=/usr/local/apps/httpd/current/bin/apxs \ --with-gd=/usr/local/apps/gd/current --with-zlib \ --with-bzip2 --enable-magic-quotes \ --with-jpeg-dir=/usr --with-png-dir=/usr/local/apps/libpng/current \ --with-freetype-dir=/usr/local/apps/freetype/current \ --with-xpm-dir=/usr \ --enable-safe-mode --enable-inline-optimization \ --with-gmp --with-xml=shared \ --enable-memory-limit --with-tsrm-pthreads \ --disable-debug --enable-shared \ --enable-gd-imgsrttf --enable-cli \ --with-pgsql=/usr/local/apps/postgres/current \ --without-mysql --with-openssl=/usr/local/apps/openssl/current echo "Please run make && make install"