package Cpanel::Easy::PHP5::SOAP;

# cpanel - Cpanel/Easy/PHP5/SOAP.pm               Copyright(c) 2011 cPanel, Inc.
#                                                           All rights Reserved.
# copyright@cpanel.net                                         http://cpanel.net
# This code is subject to the cPanel license. Unauthorized copying is prohibited

our $easyconfig = {
    'name' => 'SOAP',
    'url'  => 'http://www.php.net/manual/en/ref.soap.php',
    'step' => {
        '0' => {
            'name'    => 'to config options',
            'command' => sub {
                my ($self) = @_;

                my $switch = { '--enable-soap' => '' };
                if ( -d '/opt/xml2' ) {
                    $switch->{'--with-libxml-dir'} = '/opt/xml2';
                }
                $self->add_to_configure($switch);
                return ( 1, 'Ok' );
            },
        },
    },
};

1;
