From dfb18bc62a9236dedd7b1398c5c4ff79eb142335 Mon Sep 17 00:00:00 2001 From: Bartosz Golaszewski Date: Fri, 10 Feb 2023 21:20:14 +0100 Subject: [PATCH] configure: add more tests for less commonly used functions Don't take chances - I've seen enough strange setups recently. Add more checks for atexit() and functions from search.h. Signed-off-by: Bartosz Golaszewski --- configure.ac | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/configure.ac b/configure.ac index 2b40a78..2bd71b0 100644 --- a/configure.ac +++ b/configure.ac @@ -154,6 +154,7 @@ then PKG_CHECK_MODULES([GLIB], [glib-2.0 >= 2.50]) PKG_CHECK_MODULES([GIO], [gio-2.0 >= 2.50]) + AC_CHECK_FUNC([atexit], [], [FUNC_NOT_FOUND_LIB([atexit])]) AC_CHECK_FUNC([asprintf], [], [FUNC_NOT_FOUND_LIB([asprintf])]) AC_CHECK_FUNC([prctl], [], [FUNC_NOT_FOUND_LIB([prctl])]) AC_CHECK_FUNC([unlink], [], [FUNC_NOT_FOUND_LIB([unlink])]) @@ -162,6 +163,9 @@ then 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_FUNC([tsearch], [], [FUNC_NOT_FOUND_LIB([tsearch])]) + AC_CHECK_FUNC([tdestroy], [], [FUNC_NOT_FOUND_LIB([tdestroy])]) + AC_CHECK_FUNC([tdelete], [], [FUNC_NOT_FOUND_LIB([tdelete])]) 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