X-Git-Url: http://git.vpit.fr/?p=perl%2Fmodules%2FIPC-MorseSignals.git;a=blobdiff_plain;f=Makefile.PL;h=6e26a007a434ed9913a79e3aa4316860616d119a;hp=35d469a71ea151e0ad91d722dcd734110dad9fc6;hb=eccac2c27337a828907205353fc7907da4c3e4a4;hpb=133946d2bfe0a5d47755a8f182a76e2f57b72e20 diff --git a/Makefile.PL b/Makefile.PL index 35d469a..6e26a00 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -2,6 +2,24 @@ use strict; use warnings; use ExtUtils::MakeMaker; +BEGIN { + eval { require Config }; + die "You need the Config module to install this distribution, that's what happened" if $@; + Config->import qw/%Config/; +} + +my %sigs; +@sigs{split ' ', $Config{sig_name}} = (); + +for (qw/USR1 USR2/) { + print "Checking if you have SIG$_... "; + unless (exists $sigs{$_}) { + print "no\n"; + die "Installation stops right here,"; + } + print "yes\n"; +} + WriteMakefile( NAME => 'IPC::MorseSignals', AUTHOR => 'Vincent Pit ',