From e34c387388b9cfd13f645edc6218984d95c43456 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20G=C3=B6ttsche?= Date: Tue, 9 Aug 2022 21:37:14 +0200 Subject: configure: support ceil builtin ceil(3) might be supplied by the compiler as a builtin. Use AC_SEARCH_LIBS instead of AC_CHECK_LIB, see https://www.gnu.org/software/autoconf/manual/autoconf-2.67/html_node/Libraries.html. Related: #1054 --- configure.ac | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index 7a52ab5e..cf1f888b 100644 --- a/configure.ac +++ b/configure.ac @@ -212,7 +212,7 @@ AC_RUN_IFELSE([ # Checks for generic library functions. # ---------------------------------------------------------------------- -AC_CHECK_LIB([m], [ceil], [], [AC_MSG_ERROR([can not find required function ceil()])]) +AC_SEARCH_LIBS([ceil], [m], [], [AC_MSG_ERROR([can not find required function ceil()])]) if test "$my_htop_platform" = dragonflybsd; then AC_SEARCH_LIBS([kvm_open], [kvm], [], [AC_MSG_ERROR([can not find required function kvm_open()])]) -- cgit v1.2.3