From 51b42be1275e6bd3c760dfeae96d98c157cd9090 Mon Sep 17 00:00:00 2001 From: Mike Taylor Date: Fri, 24 Mar 2006 12:08:14 +0000 Subject: [PATCH] Generalise YAZ-version requirement. Wind back to 2.0.0. --- Makefile.PL | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/Makefile.PL b/Makefile.PL index 8aa3fd1..869d4ce 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -1,6 +1,6 @@ use ExtUtils::MakeMaker; -## $Id: Makefile.PL,v 1.9 2006-03-24 12:06:15 mike Exp $ +## $Id: Makefile.PL,v 1.10 2006-03-24 12:08:14 mike Exp $ my $yazconf = "yaz-config"; my $yazver = `$yazconf --version`; @@ -15,15 +15,17 @@ SimpleServer module. ]; } -# Judging by the YAZ NEWS file, 2.1.10 was the first release to -# include SRW/U support in the GFS chomp($yazver); my ($major, $minor, $trivial) = split(/\./, $yazver); +# Judging by the YAZ NEWS file, 2.0.0 was the first release to +# include SRW/U support in the GFS +my ($needMaj, $needMin, $needTriv) = (2, 0, 0); #print "major=$major, minor=$minor, trivial=$trivial\n"; -die "You have YAZ version $major.$minor.$trivial; you need 2.1.10 or better" - if ($major < 2 || - $major == 2 && $minor < 1 || - $major == 2 && $minor == 1 && $trivial < 10); +die "You have YAZ version $major.$minor.$trivial; " . + "you need $needMaj.$needMin.$needTriv or better." + if ($major < $needMaj || + $major == $needMaj && $minor < $needMin || + $major == $needMaj && $minor == $needMin && $trivial < $needTriv); # For Windows use # $yazinc = '-Ic:\yaz\include' -- 1.7.10.4