From ceaf80e5aba71a01b2df0d708e11ffbf74875842 Mon Sep 17 00:00:00 2001 From: Bartosz Golaszewski Date: Thu, 9 Feb 2023 21:03:56 +0100 Subject: [PATCH] configure: verify the availability of twalk_r() for tests Some C libraries (notably musl) don't have twalk_r() as of yet. Add a check for it in configure so that we fail sooner rather than at build-time. Signed-off-by: Bartosz Golaszewski --- configure.ac | 1 + 1 file changed, 1 insertion(+) diff --git a/configure.ac b/configure.ac index 2ad1fee..2b40a78 100644 --- a/configure.ac +++ b/configure.ac @@ -161,6 +161,7 @@ then AC_CHECK_FUNC([openat], [], [FUNC_NOT_FOUND_LIB([openat])]) AC_CHECK_FUNC([mkdirat], [], [FUNC_NOT_FOUND_LIB([mkdirat])]) AC_CHECK_FUNC([write], [], [FUNC_NOT_FOUND_LIB([write])]) + AC_CHECK_FUNC([twalk_r], [], [FUNC_NOT_FOUND_LIB([twalk_r])]) AC_CHECK_HEADERS([sys/utsname.h], [], [HEADER_NOT_FOUND_LIB([sys/utsname.h])]) AC_CHECK_HEADERS([sys/mount.h], [], [HEADER_NOT_FOUND_LIB([sys/mount.h])]) AC_CHECK_HEADERS([sys/prctl.h], [], [HEADER_NOT_FOUND_LIB([sys/prctl.h])]) -- 2.30.2