fix liblz4 checking

This commit is contained in:
Dave Murphy 2018-02-10 23:23:49 +00:00 committed by plutoo
parent ffe4cfd5e2
commit a600f6403c

View File

@ -16,10 +16,10 @@ AC_PROG_CC
PKG_CHECK_MODULES([LZ4], PKG_CHECK_MODULES([LZ4],
[liblz4 >= 1.7.1 liblz4 < 100], [liblz4 >= 1.7.1 liblz4 < 100],
[have_lz4="yes"], [have_lz4="yes"],
[LZ4_LIBS="-llz4"] # If this fails, we will do another test next. [PKG_CHECK_MODULES([LZ4],
# We also add set LZ4_LIBS otherwise the [liblz4 >= 131],
# linker will not know about the lz4 library [have_lz4="yes"])
) ])
AC_SUBST(LZ4_LIBS) AC_SUBST(LZ4_LIBS)
AC_CONFIG_FILES([Makefile]) AC_CONFIG_FILES([Makefile])