CloudI/CloudI — pull request #72 by garazdawi (2014-01-20 16:11:17+00:00)
Title: Update configure test for new erlang version

The version format for Erlang/OTP is changing in the next major release.

This change allows both the old (eg R16B01) and new (eg 17.0-rc1) styles.

I've also adds support for recognizing patched Erlang/OTP version with the old scheme (eg R16B03-1).

I've verified that both the old (R16B03) the new (17.0) and patched old scheme (R16B03-1).

Ideally one would want to make it possible to specify arbitrarily deep version numbers, i.e. 17.0.1.14.3, but since version numbers with more digits than 17.1 are not likely to happen I've left that out. The check is still able to parse such version numbers, it just ignored everything after the first two numbers (unless it is -rc[0-9]).