3 dnl --- *@-mdw_LIBTOOL_VERSION_INFO-@* ---
5 dnl Author: Mark Wooding
7 dnl Synopsis: mdw_LIBTOOL_VERSION
11 dnl Use: Decodes the PACKAGE_VERSION variable as a libtool
12 dnl version-info string. Strictly speaking, this is very
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:'
19 LIBTOOL_VERSION_INFO="$(expr $[]1 + $[]2):$[]3:$[]2"
20 AC_SUBST([LIBTOOL_VERSION_INFO])