File: whichdll.pl

package info (click to toggle)
libffi-checklib-perl 0.31-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 504 kB
  • sloc: perl: 520; sh: 20; makefile: 2
file content (23 lines) | stat: -rw-r--r-- 266 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
use strict;
use warnings;
use FFI::CheckLib;

my($name) = shift @ARGV;

unless(defined $name)
{
  print STDERR "usage: $0 name\n";
}

my($path) = find_lib( lib => $name );

if($path)
{
  print "$path\n";
  exit 0;
}
else
{
  print STDERR "not found.\n";
  exit 2;
}