diff --git a/configure b/configure index c4c67d794..f70082175 100755 --- a/configure +++ b/configure @@ -18220,6 +18220,9 @@ fi done + if test "$ac_cv_header_sys_sha2_h" = "yes"; then + LIBS="$LIBS -lmd" + fi ;; Linux|*) case " $LIBOBJS " in diff --git a/configure.ac b/configure.ac index 508d0d288..730758449 100644 --- a/configure.ac +++ b/configure.ac @@ -989,6 +989,9 @@ if test "$USE_NSS" = "no"; then AC_LIBOBJ(sha512) ]) ], [AC_INCLUDES_DEFAULT]) + if test "$ac_cv_header_sys_sha2_h" = "yes"; then + LIBS="$LIBS -lmd" + fi ;; Linux|*) AC_LIBOBJ(getentropy_linux)