]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-122571: Remove duplicate definition of PY_BUILTIN_HASHLIB_HASHES in configure...
authorJonathan Protzenko <protz@microsoft.com>
Tue, 6 Aug 2024 23:31:39 +0000 (16:31 -0700)
committerGitHub <noreply@github.com>
Tue, 6 Aug 2024 23:31:39 +0000 (23:31 +0000)
The redefinition in confdefs.h can cause issues with the
AX_CHECK_COMPILE_FLAG macro.

configure
configure.ac

index 39ab48fa4e2526f6909d1ccf2118b1a845f0d78b..329373560f85787c120d5dbaa5e06231b1d97e1d 100755 (executable)
--- a/configure
+++ b/configure
@@ -28697,9 +28697,6 @@ fi
 
 # builtin hash modules
 default_hashlib_hashes="md5,sha1,sha2,sha3,blake2"
-
-printf "%s\n" "#define PY_BUILTIN_HASHLIB_HASHES /**/" >>confdefs.h
-
 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --with-builtin-hashlib-hashes" >&5
 printf %s "checking for --with-builtin-hashlib-hashes... " >&6; }
 
@@ -28724,6 +28721,7 @@ fi
 
 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_builtin_hashlib_hashes" >&5
 printf "%s\n" "$with_builtin_hashlib_hashes" >&6; }
+
 printf "%s\n" "#define PY_BUILTIN_HASHLIB_HASHES \"$with_builtin_hashlib_hashes\"" >>confdefs.h
 
 
index 62ed812991fc4e775a7a3124c3101c7274b802b7..fb40607abfa73c9e39778259217cea277f692ecb 100644 (file)
@@ -7403,8 +7403,6 @@ AC_DEFINE([PY_SSL_DEFAULT_CIPHERS], [1])
 
 # builtin hash modules
 default_hashlib_hashes="md5,sha1,sha2,sha3,blake2"
-AC_DEFINE([PY_BUILTIN_HASHLIB_HASHES], [], [enabled builtin hash modules]
-)
 AC_MSG_CHECKING([for --with-builtin-hashlib-hashes])
 AC_ARG_WITH(
   [builtin-hashlib-hashes],
@@ -7421,7 +7419,8 @@ AC_ARG_WITH(
 
 AC_MSG_RESULT([$with_builtin_hashlib_hashes])
 AC_DEFINE_UNQUOTED([PY_BUILTIN_HASHLIB_HASHES],
-  ["$with_builtin_hashlib_hashes"])
+                   ["$with_builtin_hashlib_hashes"],
+                   [enabled builtin hash modules])
 
 as_save_IFS=$IFS
 IFS=,