aclocal.glob, m4/: Split the monster into separate `aclocal'-ish files.
[runlisp] / m4 / mdw-libtool-version-info.m4
CommitLineData
fb2149fc
MW
1dnl -*-autoconf-*-
2
3dnl --- *@-mdw_LIBTOOL_VERSION_INFO-@* ---
4dnl
5dnl Author: Mark Wooding
6dnl
7dnl Synopsis: mdw_LIBTOOL_VERSION
8dnl
9dnl Arguments: ---
10dnl
11dnl Use: Decodes the PACKAGE_VERSION variable as a libtool
12dnl version-info string. Strictly speaking, this is very
13dnl naughty.
14
15AC_DEFUN([mdw_LIBTOOL_VERSION_INFO], [
16 set -- $(echo $PACKAGE_VERSION |
17 sed 's:[^\([0-9][0-9]*\)\.\([0-9][0-9]*\)\.\([0-9][0-9]*\).*$]:\1 \2 \3:'
18 )
19 LIBTOOL_VERSION_INFO="$(expr $[]1 + $[]2):$[]3:$[]2"
20 AC_SUBST([LIBTOOL_VERSION_INFO])
21])