~ubuntu-branches/ubuntu/natty/gst-entrans/natty

« back to all changes in this revision

Viewing changes to common/m4/as-libtool.m4

  • Committer: Bazaar Package Importer
  • Author(s): Jonas Smedegaard
  • Date: 2010-09-13 19:49:29 UTC
  • Revision ID: james.westby@ubuntu.com-20100913194929-qz90a14xyxln9yfz
Tags: upstream-0.10.2
ImportĀ upstreamĀ versionĀ 0.10.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
dnl as-libtool.m4 0.1.4
 
2
 
 
3
dnl autostars m4 macro for libtool versioning
 
4
 
 
5
dnl Thomas Vander Stichele <thomas at apestaart dot org>
 
6
 
 
7
dnl $Id: as-libtool.m4,v 1.6 2004/06/01 10:04:44 thomasvs Exp $
 
8
 
 
9
dnl AS_LIBTOOL(PREFIX, CURRENT, REVISION, AGE, [RELEASE])
 
10
 
 
11
dnl example
 
12
dnl AS_LIBTOOL(GST, 2, 0, 0)
 
13
 
 
14
dnl this macro
 
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
 
19
 
 
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
 
23
 
 
24
dnl call AM_PROG_LIBTOOL after this call
 
25
 
 
26
AC_DEFUN([AS_LIBTOOL],
 
27
[
 
28
  [$1]_CURRENT=[$2]
 
29
  [$1]_REVISION=[$3]
 
30
  [$1]_AGE=[$4]
 
31
  [$1]_LIBVERSION=[$2]:[$3]:[$4]
 
32
  AC_SUBST([$1]_CURRENT)
 
33
  AC_SUBST([$1]_REVISION)
 
34
  AC_SUBST([$1]_AGE)
 
35
  AC_SUBST([$1]_LIBVERSION)
 
36
 
 
37
  [$1]_LT_LDFLAGS="$[$1]_LT_LDFLAGS -version-info $[$1]_LIBVERSION"
 
38
  if test ! -z "[$5]"
 
39
  then
 
40
    [$1]_LT_LDFLAGS="$[$1]_LT_LDFLAGS -release [$5]"
 
41
  fi
 
42
  AC_SUBST([$1]_LT_LDFLAGS)
 
43
 
 
44
  AC_LIBTOOL_DLOPEN
 
45
])