changeset 32397:9e9eb3cd5677

Check for libm. I think I read somewhere that GDK pixbuf dropped its dependency on it, which is probably why this is showing up now. Closes #14799.
author Elliott Sales de Andrade <qulogic@pidgin.im>
date Thu, 22 Dec 2011 03:09:12 +0000
parents 420aef349806
children 544e6ed9d850
files configure.ac
diffstat 1 files changed, 6 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/configure.ac	Thu Dec 22 01:42:18 2011 +0000
+++ b/configure.ac	Thu Dec 22 03:09:12 2011 +0000
@@ -202,6 +202,12 @@
 dnl FreeBSD doesn't have libdl, dlopen is provided by libc
 AC_CHECK_FUNC(dlopen, LIBDL="", [AC_CHECK_LIB(dl, dlopen, LIBDL="-ldl")])
 
+dnl Haiku does not use libm for the math functions, they are part
+dnl of the C library
+AC_SEARCH_LIBS([ceil], [m], [], [
+  AC_MSG_ERROR([unable to find the floor() function])
+])
+
 AC_MSG_CHECKING(for fileno())
 AC_RUN_IFELSE([AC_LANG_SOURCE([[
 #include <stdio.h>