Commit 11cbe5c75b for frr

commit 11cbe5c75b08fa7c38a35be438071f772a94fea5
Author: Vincent Jardin <vjardin@free.fr>
Date:   Mon Nov 9 19:11:07 2026 +0100

    build: use libc crypt() before falling back to DES_crypt()

    On macOS crypt() is in libc and there is no libcrypt, so FRR ended up
    linking libfrr against Homebrew's libcrypto with this deprecated call:

      lib/command.c:442:9: warning: 'DES_crypt' is deprecated: Since
      OpenSSL 3.0 [-Wdeprecated-declarations]

    Signed-off-by: Vincent Jardin <vjardin@free.fr>

diff --git a/configure.ac b/configure.ac
index 4b6cceb855..2ca291d950 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1818,7 +1818,10 @@ if test "$ac_cv_have_decl_TCP_MD5SIG" = "no"; then
 fi

 LIBS_save="$LIBS"
-AC_CHECK_LIB([crypt], [crypt], [], [
+dnl crypt() is from libc on some systems (e.g. macOS)
+AC_SEARCH_LIBS([crypt], [crypt], [
+  AC_DEFINE([HAVE_LIBCRYPT], [1], [crypt() is available (libc or libcrypt)])
+], [
   AC_CHECK_LIB([crypto], [DES_crypt])
 ])
 LIBCRYPT="$LIBS"