1#!/bin/sh 2# 3# Author: Petter Reinholdtsen <pere@td.org.uit.no> 4# Date: 2000-03-18 5# 6# Given a libtool lib*.la, return the dll extension used (ie. so, sl, 7# dll, etc) 8if test "x$1" = x; then 9 echo "usage: $0 <libfile.la>" 10 exit 1 11fi 12 13lafile=$1 14 15libnames=`grep library_names= $lafile` 16last=`echo $libnames | cut -d\' -f2|tr " " "\n"|tail -n 1` 17dllend=`echo $last | cut -d. -f2` 18 19echo $dllend 20