summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2021-02-26 05:45:38 +0100
committerDamien Miller <djm@mindrot.org>2021-02-26 05:46:47 +0100
commit493339a940b13be6071629c3c2dd5a3b6fc17023 (patch)
tree7c37d10bbac4551576ee9a58de5b14199e2ed2e8
parentssh: optional bind interface if bind address specified. (diff)
downloadopenssh-493339a940b13be6071629c3c2dd5a3b6fc17023.tar.xz
openssh-493339a940b13be6071629c3c2dd5a3b6fc17023.zip
detech BSD libc hash functions in libbsd / libmd
Some Linux distributions are shipping the BSD-style hashing functions (e.g. SHA256Update) in libbsd and/or libmd. Detect this situation to avoid header/replacement clashes later. ok dtucker@
-rw-r--r--configure.ac4
1 files changed, 4 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index fe2257314..1c2757ca5 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1446,6 +1446,10 @@ AC_CHECK_FUNCS([fmt_scaled scan_scaled login logout openpty updwtmp logwtmp])
AC_SEARCH_LIBS([inet_ntop], [resolv nsl])
AC_SEARCH_LIBS([gethostbyname], [resolv nsl])
+# Some Linux distribtions ship the BSD libc hashing functions in
+# separate libraries.
+AC_SEARCH_LIBS([SHA256Update], [md bsd])
+
# "Particular Function Checks"
# see https://www.gnu.org/software/autoconf/manual/autoconf-2.69/html_node/Particular-Functions.html
AC_FUNC_STRFTIME