Skip to content

Commit

Permalink
php: Add flag for compiling php-cgi.
Browse files Browse the repository at this point in the history
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
  • Loading branch information
bfroehle authored and adamv committed Jan 22, 2012
1 parent 5a3a865 commit 93d622e
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion duplicates/php.rb
Expand Up @@ -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'],
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 93d622e

Please sign in to comment.