]> git.vpit.fr Git - perl/modules/IPC-MorseSignals.git/blobdiff - Makefile.PL
Importing IPC-MorseSignals-0.04.tar.gz
[perl/modules/IPC-MorseSignals.git] / Makefile.PL
index 35d469a71ea151e0ad91d722dcd734110dad9fc6..6e26a007a434ed9913a79e3aa4316860616d119a 100644 (file)
@@ -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 <perl@profvince.com>',