annotate m4/fmodl.m4 @ 39194:a84ae461a2f6

Add cross-compilation results for GNU/Hurd. * m4/calloc.m4: Add GNU/Hurd guess. * m4/cbrtl.m4: Likewise. * m4/ceil.m4: Likewise. * m4/ceilf.m4: Likewise. * m4/ceill.m4: Likewise. * m4/chown.m4: Likewise. * m4/duplocale.m4: Likewise. * m4/exp2l.m4: Likewise. * m4/expm1.m4: Likewise. * m4/fchdir.m4: Likewise. * m4/floor.m4: Likewise. * m4/floorf.m4: Likewise. * m4/fmod.m4: Likewise. * m4/fmodf.m4: Likewise. * m4/fmodl.m4: Likewise. * m4/getcwd.m4: Likewise. * m4/getgroups.m4: Likewise. * m4/gettimeofday.m4: Likewise. * m4/hypot.m4: Likewise. * m4/hypotf.m4: Likewise. * m4/hypotl.m4: Likewise. * m4/link-follow.m4: Likewise. * m4/link.m4: Likewise. * m4/linkat.m4: Likewise. * m4/log.m4: Likewise. * m4/log10.m4: Likewise. * m4/log10f.m4: Likewise. * m4/log1p.m4: Likewise. * m4/log1pf.m4: Likewise. * m4/log1pl.m4: Likewise. * m4/log2.m4: Likewise. * m4/log2f.m4: Likewise. * m4/logf.m4: Likewise. * m4/lstat.m4: Likewise. * m4/malloc.m4: Likewise. * m4/mbrlen.m4: Likewise. * m4/mbrtowc.m4: Likewise. * m4/mkdir.m4: Likewise. * m4/mkfifo.m4: Likewise. * m4/mknod.m4: Likewise. * m4/mkstemp.m4: Likewise. * m4/modf.m4: Likewise. * m4/modff.m4: Likewise. * m4/modfl.m4: Likewise. * m4/printf.m4: Likewise. * m4/pselect.m4: Likewise. * m4/ptsname.m4: Likewise. * m4/putenv.m4: Likewise. * m4/readlink.m4: Likewise. * m4/realloc.m4: Likewise. * m4/remainder.m4: Likewise. * m4/remainderf.m4: Likewise. * m4/remainderl.m4: Likewise. * m4/rmdir.m4: Likewise. * m4/round.m4: Likewise. * m4/roundf.m4: Likewise. * m4/roundl.m4: Likewise. * m4/select.m4: Likewise. * m4/setenv.m4: Likewise. * m4/signbit.m4: Likewise. * m4/sleep.m4: Likewise. * m4/stat.m4: Likewise. * m4/strerror.m4: Likewise. * m4/strtok_r.m4: Likewise. * m4/symlink.m4: Likewise. * m4/symlinkat.m4: Likewise. * m4/trunc.m4: Likewise. * m4/truncf.m4: Likewise. * m4/truncl.m4: Likewise. * m4/tzset.m4: Likewise. * m4/ungetc.m4: Likewise. * m4/usleep.m4: Likewise. * m4/wcwidth.m4: Likewise.
author Samuel Thibault <samuel.thibault@gnu.org>
date Fri, 29 Dec 2017 17:30:07 +0100
parents 5c951c71f25c
children 10eb9086bea0
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
39194
a84ae461a2f6 Add cross-compilation results for GNU/Hurd.
Samuel Thibault <samuel.thibault@gnu.org>
parents: 38672
diff changeset
1 # fmodl.m4 serial 8
38305
66a613c135a8 version-etc: new year
Paul Eggert <eggert@cs.ucla.edu>
parents: 38267
diff changeset
2 dnl Copyright (C) 2011-2017 Free Software Foundation, Inc.
36101
64e1518fe41a New module 'fmodl'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
3 dnl This file is free software; the Free Software Foundation
64e1518fe41a New module 'fmodl'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
4 dnl gives unlimited permission to copy and/or distribute it,
64e1518fe41a New module 'fmodl'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
5 dnl with or without modifications, as long as this notice is preserved.
64e1518fe41a New module 'fmodl'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
6
64e1518fe41a New module 'fmodl'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
7 AC_DEFUN([gl_FUNC_FMODL],
64e1518fe41a New module 'fmodl'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
8 [
36180
f09cbbbe7667 fmodl-ieee: Work around test failures on OSF/1, MSVC 9.
Bruno Haible <bruno@clisp.org>
parents: 36101
diff changeset
9 m4_divert_text([DEFAULTS], [gl_fmodl_required=plain])
36101
64e1518fe41a New module 'fmodl'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
10 AC_REQUIRE([gl_MATH_H_DEFAULTS])
64e1518fe41a New module 'fmodl'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
11 AC_REQUIRE([gl_LONG_DOUBLE_VS_DOUBLE])
64e1518fe41a New module 'fmodl'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
12 AC_REQUIRE([gl_FUNC_FMOD])
64e1518fe41a New module 'fmodl'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
13
36271
c3c446722afe math: Ensure declarations of math functions.
Bruno Haible <bruno@clisp.org>
parents: 36256
diff changeset
14 dnl Persuade glibc <math.h> to declare fmodl().
c3c446722afe math: Ensure declarations of math functions.
Bruno Haible <bruno@clisp.org>
parents: 36256
diff changeset
15 AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS])
c3c446722afe math: Ensure declarations of math functions.
Bruno Haible <bruno@clisp.org>
parents: 36256
diff changeset
16
36101
64e1518fe41a New module 'fmodl'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
17 dnl Test whether fmodl() is declared.
64e1518fe41a New module 'fmodl'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
18 dnl AIX 5.1 has fmodl() in libc but doesn't declare it in <math.h>, and the
64e1518fe41a New module 'fmodl'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
19 dnl function produces NaN results for finite values.
64e1518fe41a New module 'fmodl'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
20 AC_CHECK_DECL([fmodl],
64e1518fe41a New module 'fmodl'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
21 [ac_cv_have_decl_fmodl=yes], [ac_cv_have_decl_fmodl=no],
64e1518fe41a New module 'fmodl'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
22 [[#include <math.h>]])
64e1518fe41a New module 'fmodl'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
23
64e1518fe41a New module 'fmodl'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
24 dnl Test whether fmodl() exists. Assume that fmodl(), if it exists, is
64e1518fe41a New module 'fmodl'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
25 dnl defined in the same library as fmod().
64e1518fe41a New module 'fmodl'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
26 save_LIBS="$LIBS"
64e1518fe41a New module 'fmodl'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
27 LIBS="$LIBS $FMOD_LIBM"
64e1518fe41a New module 'fmodl'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
28 AC_CHECK_FUNCS([fmodl])
64e1518fe41a New module 'fmodl'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
29 LIBS="$save_LIBS"
64e1518fe41a New module 'fmodl'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
30 if test $ac_cv_func_fmodl = yes; then
36180
f09cbbbe7667 fmodl-ieee: Work around test failures on OSF/1, MSVC 9.
Bruno Haible <bruno@clisp.org>
parents: 36101
diff changeset
31 FMODL_LIBM="$FMOD_LIBM"
f09cbbbe7667 fmodl-ieee: Work around test failures on OSF/1, MSVC 9.
Bruno Haible <bruno@clisp.org>
parents: 36101
diff changeset
32 if test $ac_cv_have_decl_fmodl = no; then
36101
64e1518fe41a New module 'fmodl'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
33 REPLACE_FMODL=1
64e1518fe41a New module 'fmodl'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
34 fi
36180
f09cbbbe7667 fmodl-ieee: Work around test failures on OSF/1, MSVC 9.
Bruno Haible <bruno@clisp.org>
parents: 36101
diff changeset
35 m4_ifdef([gl_FUNC_FMODL_IEEE], [
f09cbbbe7667 fmodl-ieee: Work around test failures on OSF/1, MSVC 9.
Bruno Haible <bruno@clisp.org>
parents: 36101
diff changeset
36 if test $gl_fmodl_required = ieee && test $REPLACE_FMODL = 0; then
36502
36d151b6b180 Avoid "guessing no" guesses when cross-compiling to glibc systems.
Bruno Haible <bruno@clisp.org>
parents: 36271
diff changeset
37 AC_REQUIRE([AC_CANONICAL_HOST]) dnl for cross-compiles
36180
f09cbbbe7667 fmodl-ieee: Work around test failures on OSF/1, MSVC 9.
Bruno Haible <bruno@clisp.org>
parents: 36101
diff changeset
38 AC_CACHE_CHECK([whether fmodl works according to ISO C 99 with IEC 60559],
f09cbbbe7667 fmodl-ieee: Work around test failures on OSF/1, MSVC 9.
Bruno Haible <bruno@clisp.org>
parents: 36101
diff changeset
39 [gl_cv_func_fmodl_ieee],
f09cbbbe7667 fmodl-ieee: Work around test failures on OSF/1, MSVC 9.
Bruno Haible <bruno@clisp.org>
parents: 36101
diff changeset
40 [
f09cbbbe7667 fmodl-ieee: Work around test failures on OSF/1, MSVC 9.
Bruno Haible <bruno@clisp.org>
parents: 36101
diff changeset
41 save_LIBS="$LIBS"
f09cbbbe7667 fmodl-ieee: Work around test failures on OSF/1, MSVC 9.
Bruno Haible <bruno@clisp.org>
parents: 36101
diff changeset
42 LIBS="$LIBS $FMODL_LIBM"
f09cbbbe7667 fmodl-ieee: Work around test failures on OSF/1, MSVC 9.
Bruno Haible <bruno@clisp.org>
parents: 36101
diff changeset
43 AC_RUN_IFELSE(
f09cbbbe7667 fmodl-ieee: Work around test failures on OSF/1, MSVC 9.
Bruno Haible <bruno@clisp.org>
parents: 36101
diff changeset
44 [AC_LANG_SOURCE([[
f09cbbbe7667 fmodl-ieee: Work around test failures on OSF/1, MSVC 9.
Bruno Haible <bruno@clisp.org>
parents: 36101
diff changeset
45 #ifndef __NO_MATH_INLINES
f09cbbbe7667 fmodl-ieee: Work around test failures on OSF/1, MSVC 9.
Bruno Haible <bruno@clisp.org>
parents: 36101
diff changeset
46 # define __NO_MATH_INLINES 1 /* for glibc */
f09cbbbe7667 fmodl-ieee: Work around test failures on OSF/1, MSVC 9.
Bruno Haible <bruno@clisp.org>
parents: 36101
diff changeset
47 #endif
f09cbbbe7667 fmodl-ieee: Work around test failures on OSF/1, MSVC 9.
Bruno Haible <bruno@clisp.org>
parents: 36101
diff changeset
48 #include <math.h>
f09cbbbe7667 fmodl-ieee: Work around test failures on OSF/1, MSVC 9.
Bruno Haible <bruno@clisp.org>
parents: 36101
diff changeset
49 /* Compare two numbers with ==.
f09cbbbe7667 fmodl-ieee: Work around test failures on OSF/1, MSVC 9.
Bruno Haible <bruno@clisp.org>
parents: 36101
diff changeset
50 This is a separate function because IRIX 6.5 "cc -O" miscompiles an
f09cbbbe7667 fmodl-ieee: Work around test failures on OSF/1, MSVC 9.
Bruno Haible <bruno@clisp.org>
parents: 36101
diff changeset
51 'x == x' test. */
f09cbbbe7667 fmodl-ieee: Work around test failures on OSF/1, MSVC 9.
Bruno Haible <bruno@clisp.org>
parents: 36101
diff changeset
52 static int
f09cbbbe7667 fmodl-ieee: Work around test failures on OSF/1, MSVC 9.
Bruno Haible <bruno@clisp.org>
parents: 36101
diff changeset
53 numeric_equal (long double x, long double y)
f09cbbbe7667 fmodl-ieee: Work around test failures on OSF/1, MSVC 9.
Bruno Haible <bruno@clisp.org>
parents: 36101
diff changeset
54 {
f09cbbbe7667 fmodl-ieee: Work around test failures on OSF/1, MSVC 9.
Bruno Haible <bruno@clisp.org>
parents: 36101
diff changeset
55 return x == y;
f09cbbbe7667 fmodl-ieee: Work around test failures on OSF/1, MSVC 9.
Bruno Haible <bruno@clisp.org>
parents: 36101
diff changeset
56 }
f09cbbbe7667 fmodl-ieee: Work around test failures on OSF/1, MSVC 9.
Bruno Haible <bruno@clisp.org>
parents: 36101
diff changeset
57 static long double dummy (long double x, long double y) { return 0; }
f09cbbbe7667 fmodl-ieee: Work around test failures on OSF/1, MSVC 9.
Bruno Haible <bruno@clisp.org>
parents: 36101
diff changeset
58 int main (int argc, char *argv[])
f09cbbbe7667 fmodl-ieee: Work around test failures on OSF/1, MSVC 9.
Bruno Haible <bruno@clisp.org>
parents: 36101
diff changeset
59 {
f09cbbbe7667 fmodl-ieee: Work around test failures on OSF/1, MSVC 9.
Bruno Haible <bruno@clisp.org>
parents: 36101
diff changeset
60 long double (*my_fmodl) (long double, long double) = argc ? fmodl : dummy;
f09cbbbe7667 fmodl-ieee: Work around test failures on OSF/1, MSVC 9.
Bruno Haible <bruno@clisp.org>
parents: 36101
diff changeset
61 long double f;
f09cbbbe7667 fmodl-ieee: Work around test failures on OSF/1, MSVC 9.
Bruno Haible <bruno@clisp.org>
parents: 36101
diff changeset
62 /* Test fmodl(...,0.0L).
f09cbbbe7667 fmodl-ieee: Work around test failures on OSF/1, MSVC 9.
Bruno Haible <bruno@clisp.org>
parents: 36101
diff changeset
63 This test fails on OSF/1 5.1. */
f09cbbbe7667 fmodl-ieee: Work around test failures on OSF/1, MSVC 9.
Bruno Haible <bruno@clisp.org>
parents: 36101
diff changeset
64 f = my_fmodl (2.0L, 0.0L);
f09cbbbe7667 fmodl-ieee: Work around test failures on OSF/1, MSVC 9.
Bruno Haible <bruno@clisp.org>
parents: 36101
diff changeset
65 if (numeric_equal (f, f))
f09cbbbe7667 fmodl-ieee: Work around test failures on OSF/1, MSVC 9.
Bruno Haible <bruno@clisp.org>
parents: 36101
diff changeset
66 return 1;
f09cbbbe7667 fmodl-ieee: Work around test failures on OSF/1, MSVC 9.
Bruno Haible <bruno@clisp.org>
parents: 36101
diff changeset
67 return 0;
f09cbbbe7667 fmodl-ieee: Work around test failures on OSF/1, MSVC 9.
Bruno Haible <bruno@clisp.org>
parents: 36101
diff changeset
68 }
f09cbbbe7667 fmodl-ieee: Work around test failures on OSF/1, MSVC 9.
Bruno Haible <bruno@clisp.org>
parents: 36101
diff changeset
69 ]])],
f09cbbbe7667 fmodl-ieee: Work around test failures on OSF/1, MSVC 9.
Bruno Haible <bruno@clisp.org>
parents: 36101
diff changeset
70 [gl_cv_func_fmodl_ieee=yes],
f09cbbbe7667 fmodl-ieee: Work around test failures on OSF/1, MSVC 9.
Bruno Haible <bruno@clisp.org>
parents: 36101
diff changeset
71 [gl_cv_func_fmodl_ieee=no],
36502
36d151b6b180 Avoid "guessing no" guesses when cross-compiling to glibc systems.
Bruno Haible <bruno@clisp.org>
parents: 36271
diff changeset
72 [case "$host_os" in
39194
a84ae461a2f6 Add cross-compilation results for GNU/Hurd.
Samuel Thibault <samuel.thibault@gnu.org>
parents: 38672
diff changeset
73 # Guess yes on glibc systems.
a84ae461a2f6 Add cross-compilation results for GNU/Hurd.
Samuel Thibault <samuel.thibault@gnu.org>
parents: 38672
diff changeset
74 *-gnu* | gnu*) gl_cv_func_fmodl_ieee="guessing yes" ;;
a84ae461a2f6 Add cross-compilation results for GNU/Hurd.
Samuel Thibault <samuel.thibault@gnu.org>
parents: 38672
diff changeset
75 # Guess yes on native Windows.
a84ae461a2f6 Add cross-compilation results for GNU/Hurd.
Samuel Thibault <samuel.thibault@gnu.org>
parents: 38672
diff changeset
76 mingw*) gl_cv_func_fmodl_ieee="guessing yes" ;;
a84ae461a2f6 Add cross-compilation results for GNU/Hurd.
Samuel Thibault <samuel.thibault@gnu.org>
parents: 38672
diff changeset
77 # If we don't know, assume the worst.
a84ae461a2f6 Add cross-compilation results for GNU/Hurd.
Samuel Thibault <samuel.thibault@gnu.org>
parents: 38672
diff changeset
78 *) gl_cv_func_fmodl_ieee="guessing no" ;;
36502
36d151b6b180 Avoid "guessing no" guesses when cross-compiling to glibc systems.
Bruno Haible <bruno@clisp.org>
parents: 36271
diff changeset
79 esac
36d151b6b180 Avoid "guessing no" guesses when cross-compiling to glibc systems.
Bruno Haible <bruno@clisp.org>
parents: 36271
diff changeset
80 ])
36180
f09cbbbe7667 fmodl-ieee: Work around test failures on OSF/1, MSVC 9.
Bruno Haible <bruno@clisp.org>
parents: 36101
diff changeset
81 LIBS="$save_LIBS"
f09cbbbe7667 fmodl-ieee: Work around test failures on OSF/1, MSVC 9.
Bruno Haible <bruno@clisp.org>
parents: 36101
diff changeset
82 ])
f09cbbbe7667 fmodl-ieee: Work around test failures on OSF/1, MSVC 9.
Bruno Haible <bruno@clisp.org>
parents: 36101
diff changeset
83 case "$gl_cv_func_fmodl_ieee" in
f09cbbbe7667 fmodl-ieee: Work around test failures on OSF/1, MSVC 9.
Bruno Haible <bruno@clisp.org>
parents: 36101
diff changeset
84 *yes) ;;
f09cbbbe7667 fmodl-ieee: Work around test failures on OSF/1, MSVC 9.
Bruno Haible <bruno@clisp.org>
parents: 36101
diff changeset
85 *) REPLACE_FMODL=1 ;;
f09cbbbe7667 fmodl-ieee: Work around test failures on OSF/1, MSVC 9.
Bruno Haible <bruno@clisp.org>
parents: 36101
diff changeset
86 esac
f09cbbbe7667 fmodl-ieee: Work around test failures on OSF/1, MSVC 9.
Bruno Haible <bruno@clisp.org>
parents: 36101
diff changeset
87 fi
f09cbbbe7667 fmodl-ieee: Work around test failures on OSF/1, MSVC 9.
Bruno Haible <bruno@clisp.org>
parents: 36101
diff changeset
88 ])
36101
64e1518fe41a New module 'fmodl'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
89 else
64e1518fe41a New module 'fmodl'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
90 HAVE_FMODL=0
38267
892753961fdc fmodl: Avoid redefinition error on MSVC.
Bruno Haible <bruno@clisp.org>
parents: 37869
diff changeset
91 dnl If the function is declared but does not appear to exist, it may be
892753961fdc fmodl: Avoid redefinition error on MSVC.
Bruno Haible <bruno@clisp.org>
parents: 37869
diff changeset
92 dnl defined as an inline function. In order to avoid a conflict, we have
892753961fdc fmodl: Avoid redefinition error on MSVC.
Bruno Haible <bruno@clisp.org>
parents: 37869
diff changeset
93 dnl to define rpl_fmodl, not fmodl.
892753961fdc fmodl: Avoid redefinition error on MSVC.
Bruno Haible <bruno@clisp.org>
parents: 37869
diff changeset
94 AC_CHECK_DECLS([fmodl], [REPLACE_FMODL=1], , [[#include <math.h>]])
36101
64e1518fe41a New module 'fmodl'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
95 fi
64e1518fe41a New module 'fmodl'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
96 if test $HAVE_FMODL = 0 || test $REPLACE_FMODL = 1; then
36180
f09cbbbe7667 fmodl-ieee: Work around test failures on OSF/1, MSVC 9.
Bruno Haible <bruno@clisp.org>
parents: 36101
diff changeset
97 dnl Find libraries needed to link lib/fmodl.c.
36101
64e1518fe41a New module 'fmodl'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
98 if test $HAVE_SAME_LONG_DOUBLE_AS_DOUBLE = 1; then
64e1518fe41a New module 'fmodl'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
99 FMODL_LIBM="$FMOD_LIBM"
64e1518fe41a New module 'fmodl'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
100 else
36256
2af4b51cd80e fmod, fmodl: Fix computation for large quotients x / y.
Bruno Haible <bruno@clisp.org>
parents: 36214
diff changeset
101 AC_REQUIRE([gl_FUNC_FABSL])
2af4b51cd80e fmod, fmodl: Fix computation for large quotients x / y.
Bruno Haible <bruno@clisp.org>
parents: 36214
diff changeset
102 AC_REQUIRE([gl_FUNC_FREXPL])
36101
64e1518fe41a New module 'fmodl'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
103 AC_REQUIRE([gl_FUNC_TRUNCL])
36256
2af4b51cd80e fmod, fmodl: Fix computation for large quotients x / y.
Bruno Haible <bruno@clisp.org>
parents: 36214
diff changeset
104 AC_REQUIRE([gl_FUNC_LDEXPL])
2af4b51cd80e fmod, fmodl: Fix computation for large quotients x / y.
Bruno Haible <bruno@clisp.org>
parents: 36214
diff changeset
105 AC_REQUIRE([gl_FUNC_ISNANL])
36101
64e1518fe41a New module 'fmodl'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
106 FMODL_LIBM=
36256
2af4b51cd80e fmod, fmodl: Fix computation for large quotients x / y.
Bruno Haible <bruno@clisp.org>
parents: 36214
diff changeset
107 dnl Append $FABSL_LIBM to FMODL_LIBM, avoiding gratuitous duplicates.
2af4b51cd80e fmod, fmodl: Fix computation for large quotients x / y.
Bruno Haible <bruno@clisp.org>
parents: 36214
diff changeset
108 case " $FMODL_LIBM " in
2af4b51cd80e fmod, fmodl: Fix computation for large quotients x / y.
Bruno Haible <bruno@clisp.org>
parents: 36214
diff changeset
109 *" $FABSL_LIBM "*) ;;
2af4b51cd80e fmod, fmodl: Fix computation for large quotients x / y.
Bruno Haible <bruno@clisp.org>
parents: 36214
diff changeset
110 *) FMODL_LIBM="$FMODL_LIBM $FABSL_LIBM" ;;
2af4b51cd80e fmod, fmodl: Fix computation for large quotients x / y.
Bruno Haible <bruno@clisp.org>
parents: 36214
diff changeset
111 esac
2af4b51cd80e fmod, fmodl: Fix computation for large quotients x / y.
Bruno Haible <bruno@clisp.org>
parents: 36214
diff changeset
112 dnl Append $FREXPL_LIBM to FMODL_LIBM, avoiding gratuitous duplicates.
2af4b51cd80e fmod, fmodl: Fix computation for large quotients x / y.
Bruno Haible <bruno@clisp.org>
parents: 36214
diff changeset
113 case " $FMODL_LIBM " in
2af4b51cd80e fmod, fmodl: Fix computation for large quotients x / y.
Bruno Haible <bruno@clisp.org>
parents: 36214
diff changeset
114 *" $FREXPL_LIBM "*) ;;
2af4b51cd80e fmod, fmodl: Fix computation for large quotients x / y.
Bruno Haible <bruno@clisp.org>
parents: 36214
diff changeset
115 *) FMODL_LIBM="$FMODL_LIBM $FREXPL_LIBM" ;;
2af4b51cd80e fmod, fmodl: Fix computation for large quotients x / y.
Bruno Haible <bruno@clisp.org>
parents: 36214
diff changeset
116 esac
36101
64e1518fe41a New module 'fmodl'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
117 dnl Append $TRUNCL_LIBM to FMODL_LIBM, avoiding gratuitous duplicates.
64e1518fe41a New module 'fmodl'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
118 case " $FMODL_LIBM " in
64e1518fe41a New module 'fmodl'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
119 *" $TRUNCL_LIBM "*) ;;
64e1518fe41a New module 'fmodl'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
120 *) FMODL_LIBM="$FMODL_LIBM $TRUNCL_LIBM" ;;
64e1518fe41a New module 'fmodl'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
121 esac
36256
2af4b51cd80e fmod, fmodl: Fix computation for large quotients x / y.
Bruno Haible <bruno@clisp.org>
parents: 36214
diff changeset
122 dnl Append $LDEXPL_LIBM to FMODL_LIBM, avoiding gratuitous duplicates.
36101
64e1518fe41a New module 'fmodl'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
123 case " $FMODL_LIBM " in
36256
2af4b51cd80e fmod, fmodl: Fix computation for large quotients x / y.
Bruno Haible <bruno@clisp.org>
parents: 36214
diff changeset
124 *" $LDEXPL_LIBM "*) ;;
2af4b51cd80e fmod, fmodl: Fix computation for large quotients x / y.
Bruno Haible <bruno@clisp.org>
parents: 36214
diff changeset
125 *) FMODL_LIBM="$FMODL_LIBM $LDEXPL_LIBM" ;;
2af4b51cd80e fmod, fmodl: Fix computation for large quotients x / y.
Bruno Haible <bruno@clisp.org>
parents: 36214
diff changeset
126 esac
2af4b51cd80e fmod, fmodl: Fix computation for large quotients x / y.
Bruno Haible <bruno@clisp.org>
parents: 36214
diff changeset
127 dnl Append $ISNANL_LIBM to FMODL_LIBM, avoiding gratuitous duplicates.
2af4b51cd80e fmod, fmodl: Fix computation for large quotients x / y.
Bruno Haible <bruno@clisp.org>
parents: 36214
diff changeset
128 case " $FMODL_LIBM " in
2af4b51cd80e fmod, fmodl: Fix computation for large quotients x / y.
Bruno Haible <bruno@clisp.org>
parents: 36214
diff changeset
129 *" $ISNANL_LIBM "*) ;;
2af4b51cd80e fmod, fmodl: Fix computation for large quotients x / y.
Bruno Haible <bruno@clisp.org>
parents: 36214
diff changeset
130 *) FMODL_LIBM="$FMODL_LIBM $ISNANL_LIBM" ;;
36101
64e1518fe41a New module 'fmodl'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
131 esac
64e1518fe41a New module 'fmodl'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
132 fi
64e1518fe41a New module 'fmodl'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
133 fi
64e1518fe41a New module 'fmodl'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
134 AC_SUBST([FMODL_LIBM])
64e1518fe41a New module 'fmodl'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
135 ])