Mercurial > hg > octave-shane > gnulib-hg
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 |
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 | 3 dnl This file is free software; the Free Software Foundation |
4 dnl gives unlimited permission to copy and/or distribute it, | |
5 dnl with or without modifications, as long as this notice is preserved. | |
6 | |
7 AC_DEFUN([gl_FUNC_RINTL], | |
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 | 15 dnl Determine RINTL_LIBM. |
16 gl_MATHFUNC([rintl], [long double], [(long double)]) | |
17 if test $gl_cv_func_rintl_no_libm = no \ | |
18 && test $gl_cv_func_rintl_in_libm = no; then | |
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 | 27 fi |
28 AC_SUBST([RINTL_LIBM]) | |
29 ]) |