1
dnl as-libtool.m4 0.1.4
3
dnl autostars m4 macro for libtool versioning
5
dnl Thomas Vander Stichele <thomas at apestaart dot org>
7
dnl $Id: as-libtool.m4,v 1.6 2004/06/01 10:04:44 thomasvs Exp $
9
dnl AS_LIBTOOL(PREFIX, CURRENT, REVISION, AGE, [RELEASE])
12
dnl AS_LIBTOOL(GST, 2, 0, 0)
15
dnl - defines [$PREFIX]_CURRENT, REVISION and AGE
16
dnl - defines [$PREFIX]_LIBVERSION
17
dnl - defines [$PREFIX]_LT_LDFLAGS to set versioning
18
dnl - AC_SUBST's them all
20
dnl if RELEASE is given, then add a -release option to the LDFLAGS
21
dnl with the given release version
22
dnl then use [$PREFIX]_LT_LDFLAGS in the relevant Makefile.am's
24
dnl call AM_PROG_LIBTOOL after this call
26
AC_DEFUN([AS_LIBTOOL],
31
[$1]_LIBVERSION=[$2]:[$3]:[$4]
32
AC_SUBST([$1]_CURRENT)
33
AC_SUBST([$1]_REVISION)
35
AC_SUBST([$1]_LIBVERSION)
37
[$1]_LT_LDFLAGS="$[$1]_LT_LDFLAGS -version-info $[$1]_LIBVERSION"
40
[$1]_LT_LDFLAGS="$[$1]_LT_LDFLAGS -release [$5]"
42
AC_SUBST([$1]_LT_LDFLAGS)