1 # Copyright (C) 2009, Parrot Foundation.
6 config/auto/thread.pm - Thread support
10 Determining if the system has a Thread support.
19 use base
qw(Parrot::Configure::Step);
21 use Parrot
::Configure
::Utils
':auto';
26 $data{description
} = q{Does your system has thread};
32 my ( $self, $conf ) = @_;
34 my ( $verbose, $without ) = $conf->options->get(
42 $conf->data->set( HAS_THREADS
=> 0 );
43 $self->set_result('no');
47 if ($conf->data->get_p5('OSNAME') eq 'MSWin32'
48 || $conf->data->get('i_pthread') eq 'define') {
49 $conf->data->set( HAS_THREADS
=> 1 );
50 $self->set_result('yes');
53 $conf->data->set( HAS_THREADS
=> 0 );
54 $self->set_result('no');
64 # cperl-indent-level: 4
67 # vim: expandtab shiftwidth=4: