diff --git a/configure.ac b/configure.ac index c229183..05bc045 100644 --- a/configure.ac +++ b/configure.ac @@ -14,12 +14,12 @@ AC_PROG_CC PKG_CHECK_MODULES([LZ4], - [liblz4 >= 1.7.1 liblz4 < 100], - [have_lz4="yes"], - [LZ4_LIBS="-llz4"] # If this fails, we will do another test next. - # We also add set LZ4_LIBS otherwise the - # linker will not know about the lz4 library -) + [liblz4 >= 1.7.1 liblz4 < 100], + [have_lz4="yes"], + [PKG_CHECK_MODULES([LZ4], + [liblz4 >= 131], + [have_lz4="yes"]) +]) AC_SUBST(LZ4_LIBS) AC_CONFIG_FILES([Makefile])