| 1 | dnl -*-autoconf-*- |
| 2 | |
| 3 | dnl --- *@-mdw_LIBTOOL_VERSION_INFO-@* --- |
| 4 | dnl |
| 5 | dnl Author: Mark Wooding |
| 6 | dnl |
| 7 | dnl Synopsis: mdw_LIBTOOL_VERSION |
| 8 | dnl |
| 9 | dnl Arguments: --- |
| 10 | dnl |
| 11 | dnl Use: Decodes the PACKAGE_VERSION variable as a libtool |
| 12 | dnl version-info string. Strictly speaking, this is very |
| 13 | dnl naughty. |
| 14 | |
| 15 | AC_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 | ]) |