From bf93dcc5ec5eb010287a5dcf1c4ce989963f8d67 Mon Sep 17 00:00:00 2001 From: Robin Haberkorn Date: Tue, 10 Nov 2026 22:25:50 +0100 Subject: added check for pow() in libm Some platforms could require an explicit `-lm` for functions from the math library, while others export these symbols in libc. --- configure.ac | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index 23da438..b229366 100644 --- a/configure.ac +++ b/configure.ac @@ -208,6 +208,11 @@ AC_CHECK_FUNCS([memset setlocale strchr strrchr fstat sscanf], , [ AC_MSG_ERROR([Missing libc function]) ]) +# Math library functions (may require -lm) +AC_SEARCH_LIBS(pow, [m], , [ + AC_MSG_ERROR([No library providing pow()!]) +]) + # Library functions that we assume exist on UNIX/Linux # and UNIXoid systems, so that G_OS_UNIX is sufficient # to test for them. -- cgit v1.2.3