include(GNUInstallDirs)
include(TestBigEndian)
find_package(Threads)
-find_package(PkgConfig)
find_package(LFS REQUIRED)
# Add large file support
set(HAVE_BZ2 1)
endif()
-pkg_check_modules(LZMA liblzma)
+find_package(LZMA)
if (LZMA_FOUND)
set(HAVE_LZMA 1)
endif()
-pkg_check_modules(LZ4 liblz4)
+
+find_package(LZ4)
if (LZ4_FOUND)
set(HAVE_LZ4 1)
endif()