projects
/
folly.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e2a7171
)
Tweak zstd autoconf check so the build works with older zstd
author
Lovro Puzar
<lovro@fb.com>
Tue, 22 Nov 2016 18:45:34 +0000
(10:45 -0800)
committer
Facebook Github Bot
<facebook-github-bot-bot@fb.com>
Tue, 22 Nov 2016 18:53:33 +0000
(10:53 -0800)
Summary: Ubuntu 16.10 has a package for zstd 0.5.1 which is too old to be used by folly. With this change autoconf will check that one of the newer functions is present, disable zstd if not.
Reviewed By: Orvid, philippv
Differential Revision:
D4219964
fbshipit-source-id:
1e64dfb62f81f7e61b097cb7d4fd3810da476625
folly/configure.ac
patch
|
blob
|
history
diff --git
a/folly/configure.ac
b/folly/configure.ac
index ba3efd725bba9c893390a084a94548213489c2cc..a0cd818c7603e0afe2b280611243b39d12ef7237 100644
(file)
--- a/
folly/configure.ac
+++ b/
folly/configure.ac
@@
-559,7
+559,7
@@
AC_CHECK_HEADER([lz4.h], AC_CHECK_LIB([lz4], [LZ4_decompress_safe]))
AC_CHECK_HEADER([snappy.h], AC_CHECK_LIB([snappy], [main]))
AC_CHECK_HEADER([zlib.h], AC_CHECK_LIB([z], [main]))
AC_CHECK_HEADER([lzma.h], AC_CHECK_LIB([lzma], [main]))
-AC_CHECK_HEADER([zstd.h], AC_CHECK_LIB([zstd], [
main
]))
+AC_CHECK_HEADER([zstd.h], AC_CHECK_LIB([zstd], [
ZSTD_compressStream
]))
AC_CHECK_HEADER([linux/membarrier.h], AC_DEFINE([HAVE_LINUX_MEMBARRIER_H], [1], [Define to 1 if membarrier.h is available]))
AC_ARG_ENABLE([follytestmain],