build-sys: check for lz4 in the old and new numbering scheme (#4717)
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Wed, 23 Nov 2016 15:18:30 +0000 (10:18 -0500)
committerLennart Poettering <lennart@poettering.net>
Wed, 23 Nov 2016 15:18:30 +0000 (16:18 +0100)
commit3d4cf7de48a74726694abbaa09f9804b845ff3ba
treebaede5022125765bd17c8f1de4201c8edb07a1df
parentb0828828bbfc45fb74c1bf26dac94447d0b4bc14
build-sys: check for lz4 in the old and new numbering scheme (#4717)

lz4 upstream decided to switch to an incompatible numbering scheme
(1.7.3 follows 131, to match the so version).
PKG_CHECK_MODULES does not allow two version matches for the same package,
so e.g. lz4 < 10 || lz4 >= 125 cannot be used. Check twice, once for
"new" numbers (anything below 10 is assume to be new), once for the "old"
numbers (anything above >= 125). This assumes that the "new" versioning
will not get to 10 to quickly. I think that's a safe assumption, lz4 is a
mature project.

Fixed #4690.
configure.ac