Ticket #1401: pcre.pm.patch
File pcre.pm.patch, 1.0 KB (added by ronaldws, 11 years ago) |
---|
-
config/auto/pcre.pm
35 35 36 36 my $without = $conf->options->get( qw| without-pcre | ); 37 37 38 if ($without) { 39 $conf->data->set( HAS_PCRE => 0 ); 40 $self->set_result('no'); 41 return 1; 42 } 38 $self->set_result('no'); 39 $conf->data->set( HAS_PCRE => 0 ); 43 40 41 return 1 if ($without); 42 44 43 my $osname = $conf->data->get('osname'); 45 44 46 45 my $extra_libs = $self->_select_lib( { … … 53 52 54 53 $conf->cc_gen('config/auto/pcre/pcre_c.in'); 55 54 eval { $conf->cc_build( q{}, $extra_libs ) }; 56 my $has_pcre = 0;57 55 if ( !$@ ) { 58 56 my $test = $conf->cc_run(); 59 $has_pcre = $self->_evaluate_cc_run($conf, $test); 57 if ( my $has_pcre = $self->_evaluate_cc_run($conf, $test) ) { 58 $conf->data->set( HAS_PCRE => $has_pcre); 59 } 60 60 } 61 $conf->data->set( HAS_PCRE => $has_pcre);62 61 63 62 return 1; 64 63 }