From: Carlos Santos Date: Wed, 8 Feb 2017 15:27:36 +0000 (-0200) Subject: build-sys: improve detection of the "isnan" function in uClibc X-Git-Tag: v2.29.2~13 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=66a04ff4fc7c9edf67d38a8687f00c72e6ae426b;p=thirdparty%2Futil-linux.git build-sys: improve detection of the "isnan" function in uClibc Since commit beceb14b450ded6560ed743634a5e80604a8edf3, MATH_LIBS is set to "-lm" when the isnan function is detected. In uClibc, however, isnan is a macro that calls __isnan, __isnanf, or __isnanl, depending on the size of the argument (double, float or long double). Fixes: http://autobuild.buildroot.net/results/2c2/2c29a78ed81ca844a87dcd076ab3e14ea080296d/ http://autobuild.buildroot.net/results/404/404b10f359b2ae8a7216729fa1bab37fed2d3d4c/ Signed-off-by: Carlos Santos --- diff --git a/configure.ac b/configure.ac index cc0563b9a0..d03469c9c6 100644 --- a/configure.ac +++ b/configure.ac @@ -428,7 +428,8 @@ AC_CHECK_FUNCS([reboot], [have_reboot=yes],[have_reboot=no]) AM_CONDITIONAL([HAVE_OPENAT], [test "x$have_openat" = xyes]) AC_CHECK_FUNCS([isnan], [], - [AC_CHECK_LIB([m], [isnan], [MATH_LIBS="-lm"])] + [AC_CHECK_LIB([m], [isnan], [MATH_LIBS="-lm"])] + [AC_CHECK_LIB([m], [__isnan], [MATH_LIBS="-lm"])] ) AC_SUBST([MATH_LIBS])