summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSerge Hallyn <serge@hallyn.com>2023-08-14 08:27:30 -0500
committerSerge Hallyn <serge@hallyn.com>2023-08-14 09:08:35 -0500
commitebad5f840a53d6824b1ee65f420837aa2a496380 (patch)
treee7bc1d6c3ff64bd2d33a03ae64dd355ab9e46282
parentae2a4507ed145b511f65db051448097d09fef02a (diff)
configure.ac: check for strlcpy
Signed-off-by: Serge Hallyn <serge@hallyn.com>
-rw-r--r--configure.ac1
1 files changed, 1 insertions, 0 deletions
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)