[Mono-dev] [PATCH v2 1/7] configure: Don't hardcode libm dependency

Andreas Färber andreas.faerber at web.de
Thu Apr 29 19:15:16 EDT 2010


Am 28.04.2010 um 02:34 schrieb Rodrigo Kumpera:

> Patch looks good.

Thanks, applied to trunk in r156468, with the following Haiku:

   Minus L M is
   Explicit mathematics -
   Abelian group?

Andreas

> On Tue, Apr 27, 2010 at 6:47 PM, Andreas Färber <andreas.faerber at web.de 
> > wrote:
> Hey Rodrigo,
>
> Can you ack this reworked patch please? A similar check was  
> introduced for eglib already.
>
> Thanks,
> Andreas
>
> Am 05.04.2010 um 01:52 schrieb Andreas Färber:
>
>
> Haiku has math functions in libroot.so and no libm.so.
>
> v1 -> v2:
> * Use autoconf check instead of platform-based switch
>
> This commit is licensed under the MIT X11 license.
> ---
> configure.in |    2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/configure.in b/configure.in
> index 45b970b..bc9e755 100644
> --- a/configure.in
> +++ b/configure.in
> @@ -1515,7 +1515,7 @@ if test x$target_win32 = xno; then
>        dnl *********************************
>        dnl *** Checks for math functions ***
>        dnl *********************************
> -        LIBS="$LIBS -lm";
> +       AC_SEARCH_LIBS(sqrtf, m)
>        if test "x$has_broken_apple_cpp" != "xyes"; then
>                AC_CHECK_FUNCS(finite, , AC_MSG_CHECKING(for finite  
> in math.h)
>                        AC_TRY_LINK([#include <math.h>],
> -- 
> 1.7.0.4.297.g6555b1



More information about the Mono-devel-list mailing list