diff options
| author | Robin Haberkorn <rhaberkorn@fmsbw.de> | 2026-11-10 22:25:50 +0100 |
|---|---|---|
| committer | Robin Haberkorn <rhaberkorn@fmsbw.de> | 2026-11-10 22:25:50 +0100 |
| commit | bf93dcc5ec5eb010287a5dcf1c4ce989963f8d67 (patch) | |
| tree | 92aca9ea79809b0f826c8cb3cf3e5c370f104fc7 | |
| parent | 03922ba0e3f2a46ebf09f2582333abcce023f596 (diff) | |
added check for pow() in libmHEADmaster-fmsbw-cimaster
Some platforms could require an explicit `-lm` for functions from the
math library, while others export these symbols in libc.
| -rw-r--r-- | configure.ac | 5 |
1 files changed, 5 insertions, 0 deletions
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. |
