annotate m4/rintl.m4 @ 17252:7a29ec33d6c5

missing @item
author Karl Berry <karl@freefriends.org>
date Tue, 01 Jan 2013 09:17:08 -0800
parents e542fd46ad6f
children 344018b6e5d7
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
16580
fdbe3125f81a math: Ensure declarations of math functions.
Bruno Haible <bruno@clisp.org>
parents: 16201
diff changeset
1 # rintl.m4 serial 4
17249
e542fd46ad6f maint: update all copyright year number ranges
Eric Blake <eblake@redhat.com>
parents: 16580
diff changeset
2 dnl Copyright (C) 2011-2013 Free Software Foundation, Inc.
15920
44844e6a23a1 New module 'rintl'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
3 dnl This file is free software; the Free Software Foundation
44844e6a23a1 New module 'rintl'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
4 dnl gives unlimited permission to copy and/or distribute it,
44844e6a23a1 New module 'rintl'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
5 dnl with or without modifications, as long as this notice is preserved.
44844e6a23a1 New module 'rintl'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
6
44844e6a23a1 New module 'rintl'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
7 AC_DEFUN([gl_FUNC_RINTL],
44844e6a23a1 New module 'rintl'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
8 [
15923
efbcfece4421 rint: Fix ordering constraints.
Bruno Haible <bruno@clisp.org>
parents: 15920
diff changeset
9 AC_REQUIRE([gl_MATH_H_DEFAULTS])
15928
c3916f7594b5 rintl: Simplify for platforms where 'long double' == 'double'.
Bruno Haible <bruno@clisp.org>
parents: 15923
diff changeset
10 AC_REQUIRE([gl_LONG_DOUBLE_VS_DOUBLE])
15923
efbcfece4421 rint: Fix ordering constraints.
Bruno Haible <bruno@clisp.org>
parents: 15920
diff changeset
11
16580
fdbe3125f81a math: Ensure declarations of math functions.
Bruno Haible <bruno@clisp.org>
parents: 16201
diff changeset
12 dnl Persuade glibc <math.h> to declare rintl().
fdbe3125f81a math: Ensure declarations of math functions.
Bruno Haible <bruno@clisp.org>
parents: 16201
diff changeset
13 AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS])
fdbe3125f81a math: Ensure declarations of math functions.
Bruno Haible <bruno@clisp.org>
parents: 16201
diff changeset
14
15920
44844e6a23a1 New module 'rintl'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
15 dnl Determine RINTL_LIBM.
44844e6a23a1 New module 'rintl'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
16 gl_MATHFUNC([rintl], [long double], [(long double)])
44844e6a23a1 New module 'rintl'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
17 if test $gl_cv_func_rintl_no_libm = no \
44844e6a23a1 New module 'rintl'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
18 && test $gl_cv_func_rintl_in_libm = no; then
44844e6a23a1 New module 'rintl'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
19 HAVE_RINTL=0
15928
c3916f7594b5 rintl: Simplify for platforms where 'long double' == 'double'.
Bruno Haible <bruno@clisp.org>
parents: 15923
diff changeset
20 dnl Find libraries needed to link lib/rintl.c.
c3916f7594b5 rintl: Simplify for platforms where 'long double' == 'double'.
Bruno Haible <bruno@clisp.org>
parents: 15923
diff changeset
21 if test $HAVE_SAME_LONG_DOUBLE_AS_DOUBLE = 1; then
c3916f7594b5 rintl: Simplify for platforms where 'long double' == 'double'.
Bruno Haible <bruno@clisp.org>
parents: 15923
diff changeset
22 AC_REQUIRE([gl_FUNC_RINT])
c3916f7594b5 rintl: Simplify for platforms where 'long double' == 'double'.
Bruno Haible <bruno@clisp.org>
parents: 15923
diff changeset
23 RINTL_LIBM="$RINT_LIBM"
c3916f7594b5 rintl: Simplify for platforms where 'long double' == 'double'.
Bruno Haible <bruno@clisp.org>
parents: 15923
diff changeset
24 else
c3916f7594b5 rintl: Simplify for platforms where 'long double' == 'double'.
Bruno Haible <bruno@clisp.org>
parents: 15923
diff changeset
25 RINTL_LIBM=
c3916f7594b5 rintl: Simplify for platforms where 'long double' == 'double'.
Bruno Haible <bruno@clisp.org>
parents: 15923
diff changeset
26 fi
15920
44844e6a23a1 New module 'rintl'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
27 fi
44844e6a23a1 New module 'rintl'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
28 AC_SUBST([RINTL_LIBM])
44844e6a23a1 New module 'rintl'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
29 ])