From 4ec9c411c5d80ed5a18988f5ec6dd814c22ad206 Mon Sep 17 00:00:00 2001 From: brarcher Date: Thu, 31 Jan 2013 23:40:47 +0000 Subject: [PATCH] Only add -lm if the floor function is in the math lib. git-svn-id: svn+ssh://svn.code.sf.net/p/check/code/trunk@689 64e312b2-a51f-0410-8e61-82d0ca0eb02a --- configure.ac | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/configure.ac b/configure.ac index d22cc56..d1dbb29 100644 --- a/configure.ac +++ b/configure.ac @@ -125,9 +125,8 @@ if test "$TEX" = "false"; then AC_MSG_WARN(tex not installed: cannot rebuild HTML documentation.) fi -# Add math library -LIBS=-lm -AC_SUBST(LIBS) +# Check if floor is in the math library, and if so add -lm to LIBS +AC_CHECK_LIB([m], [floor]) # Check if clock_gettime, timer_create, timer_settime, and timer_delete are available in lib rt, and if so, # add -lrt to LIBS -- 2.40.0