]> git.ipfire.org Git - thirdparty/libarchive.git/commitdiff
Fix bcrypt detection on UNIX cross-compilation
authorSteve Lhomme <robux4@ycbcr.xyz>
Thu, 25 May 2023 09:47:13 +0000 (11:47 +0200)
committerMartin Matuška <martin@matuska.de>
Thu, 13 Jul 2023 22:28:32 +0000 (00:28 +0200)
The Windows SDK uses an uppercase on the B, but mingw-w64 doesn't.
The autoconf detection already uses a lowercase bcrypt.

CMakeLists.txt
build/cmake/config.h.in
contrib/android/config/windows_host.h

index f0bbfd02c84cbb381978392cf01328ffaadb278d..4f4abc3ed7ab0972ce77ff1dfdb4b7b2b68e8d77 100644 (file)
@@ -738,9 +738,9 @@ LA_CHECK_INCLUDE_FILE("wchar.h" HAVE_WCHAR_H)
 LA_CHECK_INCLUDE_FILE("wctype.h" HAVE_WCTYPE_H)
 LA_CHECK_INCLUDE_FILE("windows.h" HAVE_WINDOWS_H)
 IF(ENABLE_CNG)
-  LA_CHECK_INCLUDE_FILE("Bcrypt.h" HAVE_BCRYPT_H)
+  LA_CHECK_INCLUDE_FILE("bcrypt.h" HAVE_BCRYPT_H)
   IF(HAVE_BCRYPT_H)
-    LIST(APPEND ADDITIONAL_LIBS "Bcrypt")
+    LIST(APPEND ADDITIONAL_LIBS "bcrypt")
   ENDIF(HAVE_BCRYPT_H)
 ELSE(ENABLE_CNG)
   UNSET(HAVE_BCRYPT_H CACHE)
index ff74f33fccd769dad53ea0ab60abf6cc60a52645..e4ff696917a56d500b858f2faca05bbee825616e 100644 (file)
@@ -366,7 +366,7 @@ typedef uint64_t uintmax_t;
 /* Define to 1 if you have the <attr/xattr.h> header file. */
 #cmakedefine HAVE_ATTR_XATTR_H 1
 
-/* Define to 1 if you have the <Bcrypt.h> header file. */
+/* Define to 1 if you have the <bcrypt.h> header file. */
 #cmakedefine HAVE_BCRYPT_H 1
 
 /* Define to 1 if you have the <bsdxml.h> header file. */
index 712b7491be623474eaab12bed5f8f6915a316d5f..6550e5e82e2a0ffe4519e210aaf16288cee8ddff 100644 (file)
 /* Define to 1 if you have the <attr/xattr.h> header file. */
 /* #undef HAVE_ATTR_XATTR_H */
 
-/* Define to 1 if you have the <Bcrypt.h> header file. */
+/* Define to 1 if you have the <bcrypt.h> header file. */
 #define HAVE_BCRYPT_H
 
 /* Define to 1 if you have the <bzlib.h> header file. */