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

Rodrigo Kumpera kumpera at gmail.com
Tue Apr 27 20:34:21 EDT 2010


Patch looks good.

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
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-devel-list/attachments/20100427/7bd53679/attachment.html 


More information about the Mono-devel-list mailing list