make CPANPLUS happy and don't report errors if fuse isn't installed
authorDobrica Pavlinusic <dpavlin@rot13.org>
Thu, 19 Oct 2006 15:52:42 +0000 (15:52 +0000)
committerDobrica Pavlinusic <dpavlin@rot13.org>
Thu, 19 Oct 2006 15:52:42 +0000 (15:52 +0000)
git-svn-id: svn+ssh://llin/home/dpavlin/private/svn/fuse/perl-llin@103 6e4b0b00-1209-0410-87b2-b275959b5705

Makefile.PL

index 74b83ef..ca6af3f 100644 (file)
@@ -6,6 +6,12 @@ my $ver = `fusermount -V`;
 my $ver2 = `mount_fusefs -V`;
 $ver =~ s/^.*?version:\s+//;
 $ver2 =~ s/^.*?version:\s+//;
+if (! $ver && ! $ver2) {
+       # make CPANPLUS happy and don't report errors if fuse isn't installed
+       die("No support for os: $^O\n",
+               "You need to have fuse-dev (or similar) package installed in order to install this module\n"
+       );
+}
 if ($ver && $ver + 0 < 2.5) {
        die "Fuse perl bindings need Linux fuse version 2.5 or never\n";
 } elsif ($ver2 && $ver2 + 0 < 0.3) {