-
-
Notifications
You must be signed in to change notification settings - Fork 32.1k
gh-132983: Introduce _zstd
bindings module
#133027
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 1 commit
9814e3b
fda87c8
887e564
cdba656
6b67e9b
a99a5d2
02cd17a
54eca74
f605956
2eadc65
8eac354
26775be
eae460f
2ab5e4a
d5bf1c1
9e92b9f
47f815a
6a4f7b8
d7b3805
c225ea6
6e8c61c
e52ad06
2a1ad8b
94473b9
e2b2515
cd2f085
79e174f
ce6f79c
e15dd85
685a3d1
1b9f786
40c653c
428677d
0962bbb
85efc18
cadf6e4
e45c22a
b9415be
6760545
c082d8a
e825285
f02ff5a
0d69c8c
58b0008
c786c3c
a9d57fc
cc9ab2a
1f65d19
552da2d
c0648d8
d149b2c
a5ea379
0d88d6d
4a0a33e
30b3934
90b9172
8fdc7f7
10e2e80
d90b29d
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
- Loading branch information
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5415,7 +5415,8 @@ PKG_CHECK_MODULES([LIBLZMA], [liblzma], [have_liblzma=yes], [ | |
]) | ||
]) | ||
|
||
define([TEST_ZSTD_VERSION],[ | ||
have_libzstd=no | ||
AC_DEFUN([TEST_ZSTD_VERSION],[ | ||
AC_MSG_CHECKING([if libzstd is new enough]) | ||
|
||
dnl TODO(emmatyping): check if we can set a C define for the minimum version | ||
|
@@ -5428,7 +5429,9 @@ define([TEST_ZSTD_VERSION],[ | |
#if ZSTD_VERSION_NUMBER < 10405 | ||
exit(1); | ||
#endif | ||
])], [have_libzstd=yes], [have_libzstd=no]) | ||
])], [py__zstd_too_old=no], [py__zstd_too_old=yes]) | ||
dnl Important to record that we have libzstd | ||
have_libzstd=yes | ||
]) | ||
|
||
PKG_CHECK_MODULES([LIBZSTD], [libzstd], [TEST_ZSTD_VERSION()], [ | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. and 2. There's something funky going on here with the two calls to
This later results in: I suspect the problem is the call to There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Postscript: a likely confirmation of my suspicion above. For our CI runs on macOS, we use Homebrew to supply third-party libs (like |
||
|
@@ -8094,7 +8097,7 @@ PY_STDLIB_MOD([_bz2], [], [test "$have_bzip2" = yes], | |
[$BZIP2_CFLAGS], [$BZIP2_LIBS]) | ||
PY_STDLIB_MOD([_lzma], [], [test "$have_liblzma" = yes], | ||
[$LIBLZMA_CFLAGS], [$LIBLZMA_LIBS]) | ||
PY_STDLIB_MOD([_zstd], [], [test "$have_libzstd" = yes], | ||
PY_STDLIB_MOD([_zstd], [test "$py__zstd_too_old" = no], [test "$have_libzstd" = yes], | ||
[$LIBZSTD_CFLAGS], [$LIBZSTD_LIBS]) | ||
|
||
dnl OpenSSL bindings | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There seem to be two problems with the
new enough
check:AC_MSG_RESULT([yes])
andAC_MSG_RESULT([no])
calls to complete the messages: