From 93d622eb08cdc1ba1da0f4f74e0dcdb36cfde820 Mon Sep 17 00:00:00 2001 From: "Bradley M. Froehle" Date: Sun, 23 Oct 2011 18:46:29 -0700 Subject: [PATCH] php: Add flag for compiling php-cgi. Signed-off-by: Adam Vandenberg --- duplicates/php.rb | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/duplicates/php.rb b/duplicates/php.rb index 784d95c5..ff7da3f9 100644 --- a/duplicates/php.rb +++ b/duplicates/php.rb @@ -46,6 +46,7 @@ def options ['--with-mariadb', 'Include MariaDB support'], ['--with-pgsql', 'Include PostgreSQL support'], ['--with-mssql', 'Include MSSQL-DB support'], + ['--with-cgi', 'Enable building of the CGI executable (implies --without-apache)'], ['--with-fpm', 'Enable building of the fpm SAPI executable (implies --without-apache)'], ['--without-apache', 'Build without shared Apache 2.0 Handler module'], ['--with-intl', 'Include internationalization support'], @@ -113,8 +114,13 @@ def install args.push "--enable-fpm" end + # Enable PHP CGI + if ARGV.include? '--with-cgi' + args.push "--enable-cgi" + end + # Build Apache module by default - unless ARGV.include? '--with-fpm' or ARGV.include? '--without-apache' + unless ARGV.include? '--with-fpm' or ARGV.include? '--with-cgi' or ARGV.include? '--without-apache' args.push "--with-apxs2=/usr/sbin/apxs" args.push "--libexecdir=#{libexec}" end