You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@perl.apache.org by "Philip M. Gollucci" <pg...@p6m7g8.com> on 2010/09/01 01:40:48 UTC

Re: Checking for "usemultiplicity xor usethreads"

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 08/31/10 16:26, Torsten Förtsch wrote:
> As a follow-up to a suggestion by theory on IRC:
> 
> Index: Makefile.PL
> ===================================================================
> --- Makefile.PL (revision 987852)
> +++ Makefile.PL (working copy)
> @@ -540,6 +540,17 @@
>              "Upgrade to Perl 5.8.0 or higher";
>          exit 1;
>      }
> +
> +    if ($Config{usemultiplicity} xor $Config{usethreads}) {
> +        if ($build->mpm_is_threaded()) {
> +           error "Please recompile Perl with -Duseithreads and ".
> +                 "-Dusemultiplicity";
> +        } else {
> +           error "Please recompile Perl with either -Duseithreads and ".
> +                 "-Dusemultiplicity or -Uuseithreads and -Uusemultiplicity";
> +       }
> +        exit 1;
> +    }
>  }
>  
>  sub system_sanity_check {
> 
> Is that worth committing?

absolutely.  Its not the 1st time the question has come up.



- -- 
- ------------------------------------------------------------------------
1024D/DB9B8C1C B90B FBC3 A3A1 C71A 8E70  3F8C 75B8 8FFB DB9B 8C1C
Philip M. Gollucci (pgollucci@p6m7g8.com) c: 703.336.9354
VP Apache Infrastructure; Member, Apache Software Foundation
Committer,                        FreeBSD Foundation
Consultant,                       P6M7G8 Inc.
Sr. System Admin,                 Ridecharge Inc.

Work like you don't need the money,
love like you'll never get hurt,
and dance like nobody's watching.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.14 (FreeBSD)

iD8DBQFMfZMAdbiP+9ubjBwRAkblAJ9OuJl1C3bS32krJc2VTKvI8h10iwCgjonk
HQILrQ3BUTzseBVX8tzmbAk=
=/afM
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@perl.apache.org
For additional commands, e-mail: dev-help@perl.apache.org