acinclude.m4 (440B)
1 AC_DEFUN([SAVE_UTIL_VERSION], [ 2 SND_UTIL_VERSION=$VERSION 3 echo $VERSION > $srcdir/version 4 AC_DEFINE_UNQUOTED(VERSION, "$SND_UTIL_VERSION", [ALSA util version]) 5 AC_SUBST(SND_UTIL_VERSION) 6 SND_UTIL_MAJOR=`echo $VERSION | cut -d . -f 1` 7 AC_SUBST(SND_UTIL_MAJOR) 8 SND_UTIL_MINOR=`echo $VERSION | cut -d . -f 2` 9 AC_SUBST(SND_UTIL_MINOR) 10 SND_UTIL_SUBMINOR=`echo $VERSION | cut -d . -f 3 | sed -e 's/pre[[0-9]]*//g'` 11 AC_SUBST(SND_UTIL_SUBMINOR) 12 ])