#!/usr/bin/perl

%soversion = (
    AMD, "2.3.1",
    CAMD, "2.3.1",
    BTF, "1.2.0",
    COLAMD, "2.8.0",
    CCOLAMD, "2.8.0",
    CHOLMOD, "2.1.2",
    CSparse, "3.1.2",
    CXSparse, "3.1.2",
    KLU, "1.2.1",
    LDL, "2.1.0",
    UMFPACK, "5.6.2",
    SPQR, "1.3.1"
);

die "Usage: $0 LIB\n" if $#ARGV != 0;

my $lib = $ARGV [0];
die "$0: Unknown library $lib\n" if not exists $soversion {$lib};

print "lib" . lc ($lib) . $soversion {$lib};
