Initialize Tizen 2.3
[framework/multimedia/gst-plugins-base0.10.git] / wearable / common / m4 / as-libtool.m4
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.10 2005/10/15 13:44:23 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 ])