[FFmpeg-cvslog] configure: extend the check for bcrypt

James Almer git at videolan.org
Mon Apr 16 16:47:59 EEST 2018


ffmpeg | branch: master | James Almer <jamrial at gmail.com> | Sun Apr 15 20:33:37 2018 -0300| [c04609eefce0183d460430f5014f7f8948170770] | committer: James Almer

configure: extend the check for bcrypt

Some old mingw-w64 builds seem to provide an incomplete implementation
of the API. Add an extra check to make sure it's disabled for those.

Signed-off-by: James Almer <jamrial at gmail.com>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=c04609eefce0183d460430f5014f7f8948170770
---

 configure | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/configure b/configure
index a6f32f8d9a..323a7dc0f6 100755
--- a/configure
+++ b/configure
@@ -5828,7 +5828,8 @@ check_header asm/types.h
 check_builtin stdatomic stdatomic.h "atomic_int foo, bar = ATOMIC_VAR_INIT(-1); atomic_store(&foo, 0); foo += bar"
 
 check_lib advapi32 "windows.h"            RegCloseKey          -ladvapi32
-check_lib bcrypt   "windows.h bcrypt.h"   BCryptGenRandom      -lbcrypt
+check_lib bcrypt   "windows.h bcrypt.h"   BCryptGenRandom      -lbcrypt &&
+    check_cpp_condition bcrypt bcrypt.h "defined BCRYPT_RNG_ALGORITHM"
 check_lib ole32    "windows.h"            CoTaskMemFree        -lole32
 check_lib shell32  "windows.h shellapi.h" CommandLineToArgvW   -lshell32
 check_lib psapi    "windows.h psapi.h"    GetProcessMemoryInfo -lpsapi



More information about the ffmpeg-cvslog mailing list