Make SIGN conditional based on MakeMaker version.
Darren Chamberlain [Thu, 4 Mar 2004 14:38:49 +0000 (14:38 +0000)]
Makefile.PL

index 35e7dbe..a9a00ff 100644 (file)
@@ -3,9 +3,14 @@ package SQL::Translator;
 use strict;
 use ExtUtils::MakeMaker;
 
+my @SIGN;
+if ($ExtUtils::MakeMaker::VERSION >= 6.18) {
+    @SIGN = (SIGN => 1);
+}
+
 WriteMakefile(
     'NAME'         => __PACKAGE__,
-    'SIGN'         => 1,
+    @SIGN,
     'VERSION_FROM' => 'lib/SQL/Translator.pm',
     'EXE_FILES'    => [
         'bin/sqlt-diagram',