* m4/gc-sm3.m4 (gl_cv_libgcrypt_md_sm3):
Rename from gl_cv_libcrypt_md_sm3 since this is unrelated to libcrypt.
---
 ChangeLog    |  6 ++++++
 m4/gc-sm3.m4 | 10 +++++-----
 2 files changed, 11 insertions(+), 5 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 49ee4e6dd1..65315fc973 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2023-09-21  Paul Eggert  <egg...@cs.ucla.edu>
+
+       crypto/sm3: rename gl_cv_* variable for clarity
+       * m4/gc-sm3.m4 (gl_cv_libgcrypt_md_sm3):
+       Rename from gl_cv_libcrypt_md_sm3 since this is unrelated to libcrypt.
+
 2023-09-17  Paul Eggert  <egg...@cs.ucla.edu>
 
        intprops: pacify GCC -Wtype-limits
diff --git a/m4/gc-sm3.m4 b/m4/gc-sm3.m4
index 61acd4bcdf..96ee2eec18 100644
--- a/m4/gc-sm3.m4
+++ b/m4/gc-sm3.m4
@@ -1,4 +1,4 @@
-# gc-sm3.m4 serial 2
+# gc-sm3.m4 serial 3
 dnl Copyright (C) 2017-2023 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -8,17 +8,17 @@ AC_DEFUN([gl_GC_SM3],
 [
   AC_REQUIRE([gl_GC])
   AC_CACHE_CHECK([whether libgcrypt supports SM3],
-    [gl_cv_libcrypt_md_sm3],
+    [gl_cv_libgcrypt_md_sm3],
     [AC_COMPILE_IFELSE(
        [AC_LANG_PROGRAM([[
           #include <gcrypt.h>
           int a = GCRY_MD_SM3;
           ]], [[]])
        ],
-       [gl_cv_libcrypt_md_sm3=yes],
-       [gl_cv_libcrypt_md_sm3=no])
+       [gl_cv_libgcrypt_md_sm3=yes],
+       [gl_cv_libgcrypt_md_sm3=no])
     ])
-  if test $gl_cv_libcrypt_md_sm3 = yes; then
+  if test $gl_cv_libgcrypt_md_sm3 = yes; then
     AC_DEFINE([LIBGCRYPT_HAS_MD_SM3], [1],
       [Define if libgcrypt supports the MD algorithm SM3.])
   fi
-- 
2.39.2


Reply via email to