From ebad5f840a53d6824b1ee65f420837aa2a496380 Mon Sep 17 00:00:00 2001 From: Serge Hallyn Date: Mon, 14 Aug 2023 08:27:30 -0500 Subject: [PATCH] configure.ac: check for strlcpy Signed-off-by: Serge Hallyn --- configure.ac | 1 + 1 file changed, 1 insertion(+) diff --git a/configure.ac b/configure.ac index 3dac478e..815cd840 100644 --- a/configure.ac +++ b/configure.ac @@ -434,6 +434,7 @@ if test "$with_libbsd" != "no"; then AC_DEFINE(WITH_LIBBSD, 1, [Build shadow with libbsd support]) else AC_DEFINE(WITH_LIBBSD, 0, [Build shadow without libbsd support]) + AC_CHECK_FUNC(strlcpy, [], [AC_MSG_ERROR([strlcpy is required from glibc >= 2.38 or libbsd])]) fi AM_CONDITIONAL(WITH_LIBBSD, test x$with_libbsd = xyes)