alsa-utils/acinclude.m4

13 lines
440 B
Text
Raw Permalink Normal View History

2004-01-26 16:57:37 +01:00
AC_DEFUN([SAVE_UTIL_VERSION], [
1999-03-08 17:51:53 +01:00
SND_UTIL_VERSION=$VERSION
echo $VERSION > $srcdir/version
2003-03-07 21:21:17 +01:00
AC_DEFINE_UNQUOTED(VERSION, "$SND_UTIL_VERSION", [ALSA util version])
1999-03-08 17:51:53 +01:00
AC_SUBST(SND_UTIL_VERSION)
SND_UTIL_MAJOR=`echo $VERSION | cut -d . -f 1`
AC_SUBST(SND_UTIL_MAJOR)
SND_UTIL_MINOR=`echo $VERSION | cut -d . -f 2`
AC_SUBST(SND_UTIL_MINOR)
SND_UTIL_SUBMINOR=`echo $VERSION | cut -d . -f 3 | sed -e 's/pre[[0-9]]*//g'`
AC_SUBST(SND_UTIL_SUBMINOR)
])