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>',