leak-detective: Whitelist functions added in OpenSSL 1.1.1
[strongswan.git] / m4 / macros / split-package-version.m4
1 # SPLIT_PACKAGE_VERSION
2 # ---------------------------
3 # Split package version in four parts
4 AC_DEFUN([SPLIT_PACKAGE_VERSION],
5         [
6         AC_REQUIRE([AC_PROG_SED])
7         PACKAGE_VERSION_MAJOR=`echo "$PACKAGE_VERSION" | $SED 's/\([[0-9]]\+\).*/\1/'`
8         PACKAGE_VERSION_MINOR=`echo "$PACKAGE_VERSION" | $SED 's/[[0-9]]\+\.\([[0-9]]\+\).*/\1/'`
9         PACKAGE_VERSION_BUILD=`echo "$PACKAGE_VERSION" | $SED 's/[[0-9]]\+\.[[0-9]]\+\.\([[0-9]]\+\).*/\1/'`
10         PACKAGE_VERSION_REVIEW=`echo "$PACKAGE_VERSION" | $SED 's/[[0-9]]\+\.[[0-9]]\+\.[[0-9]]\+\(.*\)/\1/'`
11         AC_SUBST([PACKAGE_VERSION_MAJOR])
12         AC_SUBST([PACKAGE_VERSION_MINOR])
13         AC_SUBST([PACKAGE_VERSION_BUILD])
14         AC_SUBST([PACKAGE_VERSION_REVIEW])
15         ]
16 )
17