2003-11-25 14:44:56 -06:00
|
|
|
|
2003-12-14 14:10:27 -06:00
|
|
|
help=no
|
2003-11-25 14:44:56 -06:00
|
|
|
|
|
|
|
CC=gcc
|
|
|
|
OBJS=objs
|
|
|
|
|
|
|
|
TEST_BUILD_DEVPOLL=NO
|
2004-01-29 15:45:01 -06:00
|
|
|
TEST_BUILD_EPOLL=NO
|
2004-01-30 11:39:00 -06:00
|
|
|
TEST_BUILD_SIGIO=NO
|
2003-11-25 14:44:56 -06:00
|
|
|
|
2004-01-23 03:26:18 -06:00
|
|
|
SELECT=YES
|
|
|
|
POLL=YES
|
|
|
|
|
2003-12-25 14:26:58 -06:00
|
|
|
HTTP_REWRITE=YES
|
2003-11-25 14:44:56 -06:00
|
|
|
HTTP_GZIP=YES
|
2004-01-26 02:52:49 -06:00
|
|
|
HTTP_SSI=YES
|
2003-11-25 14:44:56 -06:00
|
|
|
HTTP_PROXY=YES
|
|
|
|
|
|
|
|
PCRE=NO
|
|
|
|
|
2003-12-14 14:10:27 -06:00
|
|
|
USE_MD5=YES
|
2003-11-25 14:44:56 -06:00
|
|
|
MD5=NO
|
|
|
|
MD5_LIB=NO
|
|
|
|
|
2003-12-14 14:10:27 -06:00
|
|
|
USE_ZLIB=YES
|
2003-11-25 14:44:56 -06:00
|
|
|
ZLIB=NO
|
|
|
|
ZLIB_LIB=NO
|
|
|
|
|
|
|
|
|
|
|
|
for option
|
|
|
|
do
|
|
|
|
case "$option" in
|
|
|
|
-*=*) value=`echo "$option" | sed -e 's/[-_a-zA-Z0-9]*=//'` ;;
|
|
|
|
*) value="" ;;
|
|
|
|
esac
|
|
|
|
|
|
|
|
case "$option" in
|
2003-12-14 14:10:27 -06:00
|
|
|
--help) help=yes ;;
|
2003-11-25 14:44:56 -06:00
|
|
|
|
|
|
|
--crossbuild=*) PLATFORM="$value" ;;
|
|
|
|
|
|
|
|
--builddir=*) OBJS="$value" ;;
|
|
|
|
|
2004-01-23 03:26:18 -06:00
|
|
|
--without-select_module) SELECT=NO ;;
|
|
|
|
--without-poll_module) POLL=NO ;;
|
|
|
|
|
2003-12-25 14:26:58 -06:00
|
|
|
--without-http_rewrite_module) HTTP_REWRITE=NO ;;
|
2004-01-26 02:52:49 -06:00
|
|
|
--without-http_ssi_module) HTTP_SSI=NO ;;
|
2003-11-25 14:44:56 -06:00
|
|
|
--without-http_gzip_module) HTTP_GZIP=NO ;;
|
|
|
|
--without-http_proxy_module) HTTP_PROXY=NO ;;
|
|
|
|
|
|
|
|
--with-cc=*) CC="$value" ;;
|
|
|
|
|
|
|
|
--with-pcre=*) PCRE="$value" ;;
|
|
|
|
--with-md5=*) MD5="$value" ;;
|
|
|
|
--with-zlib=*) ZLIB="$value" ;;
|
|
|
|
|
|
|
|
--test-build-devpoll) TEST_BUILD_DEVPOLL=YES ;;
|
2004-01-29 15:45:01 -06:00
|
|
|
--test-build-epoll) TEST_BUILD_EPOLL=YES ;;
|
2004-01-30 11:39:00 -06:00
|
|
|
--test-build-sigio) TEST_BUILD_SIGIO=YES ;;
|
2003-11-25 14:44:56 -06:00
|
|
|
|
|
|
|
*)
|
|
|
|
echo "$0: error: invalid option \"$option\""
|
|
|
|
exit 1
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
done
|
|
|
|
|
|
|
|
|
2003-12-14 14:10:27 -06:00
|
|
|
if [ $help = yes ]; then
|
|
|
|
echo
|
2004-01-23 03:26:18 -06:00
|
|
|
echo " --help this message"
|
|
|
|
echo
|
|
|
|
|
|
|
|
echo " --without-select_module disable select_module"
|
|
|
|
echo " --without-poll_module disable poll_module"
|
2003-11-25 14:44:56 -06:00
|
|
|
|
2004-01-23 03:26:18 -06:00
|
|
|
echo " --without-http_rewrite_module disable http_rewrite_module"
|
|
|
|
echo " --without-http_gzip_module disable http_gzip_module"
|
|
|
|
echo " --without-http_proxy_module disable http_proxy_module"
|
2003-11-25 14:44:56 -06:00
|
|
|
|
2004-01-23 03:26:18 -06:00
|
|
|
echo " --with-cc=NAME name of or path to C compiler"
|
2003-11-25 14:44:56 -06:00
|
|
|
echo
|
|
|
|
|
2004-01-23 03:26:18 -06:00
|
|
|
echo " --with-pcre=DIR path to PCRE library"
|
|
|
|
echo " --with-md5=DIR path to md5 library"
|
|
|
|
echo " --with-zlib=DIR path to zlib library"
|
2003-12-14 14:10:27 -06:00
|
|
|
echo
|
2003-11-25 14:44:56 -06:00
|
|
|
|
|
|
|
exit 1
|
|
|
|
fi
|