protected function prepareConfigOpts()
{
$configureOptions = '--enable-debug-pack';
foreach ($this->options as $name => $option) {
$decision = null;
if ('enable' === $option->type) {
$decision = true == $option->input ? 'enable' : 'disable';
} elseif ('disable' == $option->type) {
$decision = false == $option->input ? 'enable' : 'disable';
}
if (!is_null($decision)) {
$configureOptions .= ' --' . $decision . '-' . $name;
}
}
$php_prefix = dirname(Engine::factory()->getPath());
$configureOptions .= " --with-prefix={$php_prefix}";
$this->appendPkgConfigureOptions($configureOptions);
return $configureOptions;
}