1dnl as-libtool.m4 0.1.4 2 3dnl autostars m4 macro for libtool versioning 4 5dnl Thomas Vander Stichele <thomas at apestaart dot org> 6 7dnl $Id: as-libtool.m4,v 1.10 2005/10/15 13:44:23 thomasvs Exp $ 8 9dnl AS_LIBTOOL(PREFIX, CURRENT, REVISION, AGE, [RELEASE]) 10 11dnl example 12dnl AS_LIBTOOL(GST, 2, 0, 0) 13 14dnl this macro 15dnl - defines [$PREFIX]_CURRENT, REVISION and AGE 16dnl - defines [$PREFIX]_LIBVERSION 17dnl - defines [$PREFIX]_LT_LDFLAGS to set versioning 18dnl - AC_SUBST's them all 19 20dnl if RELEASE is given, then add a -release option to the LDFLAGS 21dnl with the given release version 22dnl then use [$PREFIX]_LT_LDFLAGS in the relevant Makefile.am's 23 24dnl call AM_PROG_LIBTOOL after this call 25 26AC_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 LT_PREREQ([2.2.6]) 45 LT_INIT([dlopen win32-dll disable-static]) 46]) 47