@ -32,7 +32,14 @@ else
var_append extraconfopt " " "--enable-fastcgi"
var_append extraconfopt " " "--enable-force-cgi-redirect"
fi
var_append extraconfopt " " "--with-zlib --with-bz2"
if pkginstalled zlib; then
var_append extraconfopt " " "--with-zlib"
if pkginstalled bzip2; then
var_append extraconfopt " " "--with-bz2"
if pkginstalled mysql; then
pkgprefix -t mysql