From: Bruno Haible Date: Tue, 6 Mar 2012 15:24:16 +0000 (+0100) Subject: math: Ensure declarations of math functions. X-Git-Tag: v0.1~946 X-Git-Url: https://gitweb.git.savannah.gnu.org/gitweb/?a=commitdiff_plain;h=bf6909e5ca400414ed0730b7f64e48d04993936e;p=gnulib.git math: Ensure declarations of math functions. * modules/acosf (Depends-on): Add 'extensions'. * modules/asinf (Depends-on): Likewise. * modules/atan2f (Depends-on): Likewise. * modules/atanf (Depends-on): Likewise. * modules/cbrt (Depends-on): Likewise. * modules/cbrtf (Depends-on): Likewise. * modules/cbrtl (Depends-on): Likewise. * modules/copysignf (Depends-on): Likewise. * modules/copysignl (Depends-on): Likewise. * modules/cosf (Depends-on): Likewise. * modules/coshf (Depends-on): Likewise. * modules/expf (Depends-on): Likewise. * modules/fabsf (Depends-on): Likewise. * modules/fabsl (Depends-on): Likewise. * modules/fmaf (Depends-on): Likewise. * modules/fmal (Depends-on): Likewise. * modules/fmodf (Depends-on): Likewise. * modules/fmodl (Depends-on): Likewise. * modules/frexpf (Depends-on): Likewise. * modules/frexpl (Depends-on): Likewise. * modules/hypot (Depends-on): Likewise. * modules/hypotf (Depends-on): Likewise. * modules/hypotl (Depends-on): Likewise. * modules/ldexpf (Depends-on): Likewise. * modules/ldexpl (Depends-on): Likewise. * modules/log10f (Depends-on): Likewise. * modules/log10l (Depends-on): Likewise. * modules/log1p (Depends-on): Likewise. * modules/logb (Depends-on): Likewise. * modules/logf (Depends-on): Likewise. * modules/modff (Depends-on): Likewise. * modules/modfl (Depends-on): Likewise. * modules/powf (Depends-on): Likewise. * modules/remainderf (Depends-on): Likewise. * modules/remainderl (Depends-on): Likewise. * modules/rintf (Depends-on): Likewise. * modules/rintl (Depends-on): Likewise. * modules/sinf (Depends-on): Likewise. * modules/sinhf (Depends-on): Likewise. * modules/sqrtf (Depends-on): Likewise. * modules/tanf (Depends-on): Likewise. * modules/tanhf (Depends-on): Likewise. * m4/acosf.m4 (gl_FUNC_ACOSF): Require gl_USE_SYSTEM_EXTENSIONS. * m4/asinf.m4 (gl_FUNC_ASINF): Likewise. * m4/atan2f.m4 (gl_FUNC_ATAN2F): Likewise. * m4/atanf.m4 (gl_FUNC_ATANF): Likewise. * m4/cbrt.m4 (gl_FUNC_CBRT): Likewise. * m4/cbrtf.m4 (gl_FUNC_CBRTF): Likewise. * m4/cbrtl.m4 (gl_FUNC_CBRTL): Likewise. * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Likewise. * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Likewise. * m4/cosf.m4 (gl_FUNC_COSF): Likewise. * m4/coshf.m4 (gl_FUNC_COSHF): Likewise. * m4/expf.m4 (gl_FUNC_EXPF): Likewise. * m4/fabsf.m4 (gl_FUNC_FABSF): Likewise. * m4/fabsl.m4 (gl_FUNC_FABSL): Likewise. * m4/fmaf.m4 (gl_FUNC_FMAF): Likewise. * m4/fmal.m4 (gl_FUNC_FMAL): Likewise. * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise. * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise. * m4/frexpf.m4 (gl_FUNC_FREXPF): Likewise. * m4/frexpl.m4 (gl_FUNC_FREXPL): Likewise. * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise. * m4/hypotf.m4 (gl_FUNC_HYPOTF): Likewise. * m4/hypotl.m4 (gl_FUNC_HYPOTL): Likewise. * m4/ldexpf.m4 (gl_FUNC_LDEXPF): Likewise. * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise. * m4/log10f.m4 (gl_FUNC_LOG10F): Likewise. * m4/log10l.m4 (gl_FUNC_LOF10L): Likewise. * m4/logb.m4 (gl_FUNC_LOGB): Likewise. * m4/logf.m4 (gl_FUNC_LOGF): Likewise. * m4/modff.m4 (gl_FUNC_MODFF): Likewise. * m4/modfl.m4 (gl_FUNC_MODFL): Likewise. * m4/powf.m4 (gl_FUNC_POWF): Likewise. * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise. * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise. * m4/rintf.m4 (gl_FUNC_RINTF): Likewise. * m4/rintl.m4 (gl_FUNC_RINTL): Likewise. * m4/sinf.m4 (gl_FUNC_SINF): Likewise. * m4/sinhf.m4 (gl_FUNC_SINHF): Likewise. * m4/sqrtf.m4 (gl_FUNC_SQRTF): Likewise. * m4/tanf.m4 (gl_FUNC_TANF): Likewise. * m4/tanhf.m4 (gl_FUNC_TANHF): Likewise. --- diff --git a/ChangeLog b/ChangeLog index d12dcfe9c1..163e154d2d 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,90 @@ +2012-03-06 Bruno Haible + + math: Ensure declarations of math functions. + * modules/acosf (Depends-on): Add 'extensions'. + * modules/asinf (Depends-on): Likewise. + * modules/atan2f (Depends-on): Likewise. + * modules/atanf (Depends-on): Likewise. + * modules/cbrt (Depends-on): Likewise. + * modules/cbrtf (Depends-on): Likewise. + * modules/cbrtl (Depends-on): Likewise. + * modules/copysignf (Depends-on): Likewise. + * modules/copysignl (Depends-on): Likewise. + * modules/cosf (Depends-on): Likewise. + * modules/coshf (Depends-on): Likewise. + * modules/expf (Depends-on): Likewise. + * modules/fabsf (Depends-on): Likewise. + * modules/fabsl (Depends-on): Likewise. + * modules/fmaf (Depends-on): Likewise. + * modules/fmal (Depends-on): Likewise. + * modules/fmodf (Depends-on): Likewise. + * modules/fmodl (Depends-on): Likewise. + * modules/frexpf (Depends-on): Likewise. + * modules/frexpl (Depends-on): Likewise. + * modules/hypot (Depends-on): Likewise. + * modules/hypotf (Depends-on): Likewise. + * modules/hypotl (Depends-on): Likewise. + * modules/ldexpf (Depends-on): Likewise. + * modules/ldexpl (Depends-on): Likewise. + * modules/log10f (Depends-on): Likewise. + * modules/log10l (Depends-on): Likewise. + * modules/log1p (Depends-on): Likewise. + * modules/logb (Depends-on): Likewise. + * modules/logf (Depends-on): Likewise. + * modules/modff (Depends-on): Likewise. + * modules/modfl (Depends-on): Likewise. + * modules/powf (Depends-on): Likewise. + * modules/remainderf (Depends-on): Likewise. + * modules/remainderl (Depends-on): Likewise. + * modules/rintf (Depends-on): Likewise. + * modules/rintl (Depends-on): Likewise. + * modules/sinf (Depends-on): Likewise. + * modules/sinhf (Depends-on): Likewise. + * modules/sqrtf (Depends-on): Likewise. + * modules/tanf (Depends-on): Likewise. + * modules/tanhf (Depends-on): Likewise. + * m4/acosf.m4 (gl_FUNC_ACOSF): Require gl_USE_SYSTEM_EXTENSIONS. + * m4/asinf.m4 (gl_FUNC_ASINF): Likewise. + * m4/atan2f.m4 (gl_FUNC_ATAN2F): Likewise. + * m4/atanf.m4 (gl_FUNC_ATANF): Likewise. + * m4/cbrt.m4 (gl_FUNC_CBRT): Likewise. + * m4/cbrtf.m4 (gl_FUNC_CBRTF): Likewise. + * m4/cbrtl.m4 (gl_FUNC_CBRTL): Likewise. + * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Likewise. + * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Likewise. + * m4/cosf.m4 (gl_FUNC_COSF): Likewise. + * m4/coshf.m4 (gl_FUNC_COSHF): Likewise. + * m4/expf.m4 (gl_FUNC_EXPF): Likewise. + * m4/fabsf.m4 (gl_FUNC_FABSF): Likewise. + * m4/fabsl.m4 (gl_FUNC_FABSL): Likewise. + * m4/fmaf.m4 (gl_FUNC_FMAF): Likewise. + * m4/fmal.m4 (gl_FUNC_FMAL): Likewise. + * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise. + * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise. + * m4/frexpf.m4 (gl_FUNC_FREXPF): Likewise. + * m4/frexpl.m4 (gl_FUNC_FREXPL): Likewise. + * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise. + * m4/hypotf.m4 (gl_FUNC_HYPOTF): Likewise. + * m4/hypotl.m4 (gl_FUNC_HYPOTL): Likewise. + * m4/ldexpf.m4 (gl_FUNC_LDEXPF): Likewise. + * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise. + * m4/log10f.m4 (gl_FUNC_LOG10F): Likewise. + * m4/log10l.m4 (gl_FUNC_LOF10L): Likewise. + * m4/logb.m4 (gl_FUNC_LOGB): Likewise. + * m4/logf.m4 (gl_FUNC_LOGF): Likewise. + * m4/modff.m4 (gl_FUNC_MODFF): Likewise. + * m4/modfl.m4 (gl_FUNC_MODFL): Likewise. + * m4/powf.m4 (gl_FUNC_POWF): Likewise. + * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise. + * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise. + * m4/rintf.m4 (gl_FUNC_RINTF): Likewise. + * m4/rintl.m4 (gl_FUNC_RINTL): Likewise. + * m4/sinf.m4 (gl_FUNC_SINF): Likewise. + * m4/sinhf.m4 (gl_FUNC_SINHF): Likewise. + * m4/sqrtf.m4 (gl_FUNC_SQRTF): Likewise. + * m4/tanf.m4 (gl_FUNC_TANF): Likewise. + * m4/tanhf.m4 (gl_FUNC_TANHF): Likewise. + 2012-03-06 Bruno Haible math: Update module names in warnings. diff --git a/m4/acosf.m4 b/m4/acosf.m4 index fe80cf0512..7c25ca28d4 100644 --- a/m4/acosf.m4 +++ b/m4/acosf.m4 @@ -1,4 +1,4 @@ -# acosf.m4 serial 1 +# acosf.m4 serial 2 dnl Copyright (C) 2011-2012 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, @@ -9,6 +9,9 @@ AC_DEFUN([gl_FUNC_ACOSF], AC_REQUIRE([gl_MATH_H_DEFAULTS]) AC_REQUIRE([gl_FUNC_ACOS]) + dnl Persuade glibc to declare acosf(). + AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS]) + dnl Test whether acosf() exists. Assume that acosf(), if it exists, is dnl defined in the same library as acos(). save_LIBS="$LIBS" diff --git a/m4/asinf.m4 b/m4/asinf.m4 index 3590c1f8f2..553b715471 100644 --- a/m4/asinf.m4 +++ b/m4/asinf.m4 @@ -1,4 +1,4 @@ -# asinf.m4 serial 1 +# asinf.m4 serial 2 dnl Copyright (C) 2011-2012 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, @@ -9,6 +9,9 @@ AC_DEFUN([gl_FUNC_ASINF], AC_REQUIRE([gl_MATH_H_DEFAULTS]) AC_REQUIRE([gl_FUNC_ASIN]) + dnl Persuade glibc to declare asinf(). + AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS]) + dnl Test whether asinf() exists. Assume that asinf(), if it exists, is dnl defined in the same library as asin(). save_LIBS="$LIBS" diff --git a/m4/atan2f.m4 b/m4/atan2f.m4 index bb3d870f4d..bdca293b51 100644 --- a/m4/atan2f.m4 +++ b/m4/atan2f.m4 @@ -1,4 +1,4 @@ -# atan2f.m4 serial 1 +# atan2f.m4 serial 2 dnl Copyright (C) 2011-2012 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, @@ -9,6 +9,9 @@ AC_DEFUN([gl_FUNC_ATAN2F], AC_REQUIRE([gl_MATH_H_DEFAULTS]) AC_REQUIRE([gl_FUNC_ATAN2]) + dnl Persuade glibc to declare atan2f(). + AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS]) + dnl Test whether atan2f() exists. Assume that atan2f(), if it exists, is dnl defined in the same library as atan2(). save_LIBS="$LIBS" diff --git a/m4/atanf.m4 b/m4/atanf.m4 index 816bf1782d..b37e08bc87 100644 --- a/m4/atanf.m4 +++ b/m4/atanf.m4 @@ -1,4 +1,4 @@ -# atanf.m4 serial 1 +# atanf.m4 serial 2 dnl Copyright (C) 2011-2012 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, @@ -9,6 +9,9 @@ AC_DEFUN([gl_FUNC_ATANF], AC_REQUIRE([gl_MATH_H_DEFAULTS]) AC_REQUIRE([gl_FUNC_ATAN]) + dnl Persuade glibc to declare atanf(). + AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS]) + dnl Test whether atanf() exists. Assume that atanf(), if it exists, is dnl defined in the same library as atan(). save_LIBS="$LIBS" diff --git a/m4/cbrt.m4 b/m4/cbrt.m4 index 065f328afd..61147902f4 100644 --- a/m4/cbrt.m4 +++ b/m4/cbrt.m4 @@ -1,4 +1,4 @@ -# cbrt.m4 serial 1 +# cbrt.m4 serial 2 dnl Copyright (C) 2012 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, @@ -8,6 +8,9 @@ AC_DEFUN([gl_FUNC_CBRT], [ AC_REQUIRE([gl_MATH_H_DEFAULTS]) + dnl Persuade glibc to declare cbrt(). + AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS]) + dnl Determine CBRT_LIBM. gl_COMMON_DOUBLE_MATHFUNC([cbrt]) diff --git a/m4/cbrtf.m4 b/m4/cbrtf.m4 index f948bd4948..b5bda931ca 100644 --- a/m4/cbrtf.m4 +++ b/m4/cbrtf.m4 @@ -1,4 +1,4 @@ -# cbrtf.m4 serial 2 +# cbrtf.m4 serial 3 dnl Copyright (C) 2012 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, @@ -9,6 +9,9 @@ AC_DEFUN([gl_FUNC_CBRTF], AC_REQUIRE([gl_MATH_H_DEFAULTS]) AC_REQUIRE([gl_FUNC_CBRT]) + dnl Persuade glibc to declare cbrtf(). + AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS]) + dnl Test whether cbrtf() exists. Assume that cbrtf(), if it exists, is dnl defined in the same library as cbrt(). save_LIBS="$LIBS" diff --git a/m4/cbrtl.m4 b/m4/cbrtl.m4 index f40a1c0d67..b2a1a7c1a6 100644 --- a/m4/cbrtl.m4 +++ b/m4/cbrtl.m4 @@ -1,4 +1,4 @@ -# cbrtl.m4 serial 2 +# cbrtl.m4 serial 3 dnl Copyright (C) 2012 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, @@ -11,6 +11,9 @@ AC_DEFUN([gl_FUNC_CBRTL], AC_REQUIRE([gl_LONG_DOUBLE_VS_DOUBLE]) AC_REQUIRE([gl_FUNC_CBRT]) + dnl Persuade glibc to declare cbrtl(). + AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS]) + dnl Test whether cbrtl() exists. Assume that cbrtl(), if it exists, is dnl defined in the same library as cbrt(). save_LIBS="$LIBS" diff --git a/m4/copysignf.m4 b/m4/copysignf.m4 index f706009a3d..4f2825cb43 100644 --- a/m4/copysignf.m4 +++ b/m4/copysignf.m4 @@ -1,4 +1,4 @@ -# copysignf.m4 serial 1 +# copysignf.m4 serial 2 dnl Copyright (C) 2011-2012 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, @@ -8,6 +8,9 @@ AC_DEFUN([gl_FUNC_COPYSIGNF], [ AC_REQUIRE([gl_MATH_H_DEFAULTS]) + dnl Persuade glibc to declare copysignf(). + AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS]) + dnl Determine COPYSIGNF_LIBM. gl_MATHFUNC([copysignf], [float], [(float, float)]) if test $gl_cv_func_copysignf_no_libm = no \ diff --git a/m4/copysignl.m4 b/m4/copysignl.m4 index 2b60472c4b..cc1985222c 100644 --- a/m4/copysignl.m4 +++ b/m4/copysignl.m4 @@ -1,4 +1,4 @@ -# copysignl.m4 serial 2 +# copysignl.m4 serial 3 dnl Copyright (C) 2011-2012 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, @@ -9,6 +9,9 @@ AC_DEFUN([gl_FUNC_COPYSIGNL], AC_REQUIRE([gl_MATH_H_DEFAULTS]) AC_REQUIRE([gl_LONG_DOUBLE_VS_DOUBLE]) + dnl Persuade glibc to declare copysignl(). + AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS]) + dnl Determine COPYSIGNL_LIBM. gl_MATHFUNC([copysignl], [long double], [(long double, long double)]) if test $gl_cv_func_copysignl_no_libm = no \ diff --git a/m4/cosf.m4 b/m4/cosf.m4 index 59350246e8..021ee03635 100644 --- a/m4/cosf.m4 +++ b/m4/cosf.m4 @@ -1,4 +1,4 @@ -# cosf.m4 serial 1 +# cosf.m4 serial 2 dnl Copyright (C) 2011-2012 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, @@ -9,6 +9,9 @@ AC_DEFUN([gl_FUNC_COSF], AC_REQUIRE([gl_MATH_H_DEFAULTS]) AC_REQUIRE([gl_FUNC_COS]) + dnl Persuade glibc to declare cosf(). + AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS]) + dnl Test whether cosf() exists. Assume that cosf(), if it exists, is dnl defined in the same library as cos(). save_LIBS="$LIBS" diff --git a/m4/coshf.m4 b/m4/coshf.m4 index e9bf574f4e..33b3aa03a8 100644 --- a/m4/coshf.m4 +++ b/m4/coshf.m4 @@ -1,4 +1,4 @@ -# coshf.m4 serial 1 +# coshf.m4 serial 2 dnl Copyright (C) 2011-2012 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, @@ -9,6 +9,9 @@ AC_DEFUN([gl_FUNC_COSHF], AC_REQUIRE([gl_MATH_H_DEFAULTS]) AC_REQUIRE([gl_FUNC_COSH]) + dnl Persuade glibc to declare coshf(). + AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS]) + dnl Test whether coshf() exists. Assume that coshf(), if it exists, is dnl defined in the same library as cosh(). save_LIBS="$LIBS" diff --git a/m4/expf.m4 b/m4/expf.m4 index d6370bf9aa..c57554a939 100644 --- a/m4/expf.m4 +++ b/m4/expf.m4 @@ -1,4 +1,4 @@ -# expf.m4 serial 1 +# expf.m4 serial 2 dnl Copyright (C) 2011-2012 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, @@ -9,6 +9,9 @@ AC_DEFUN([gl_FUNC_EXPF], AC_REQUIRE([gl_MATH_H_DEFAULTS]) AC_REQUIRE([gl_FUNC_EXP]) + dnl Persuade glibc to declare expf(). + AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS]) + dnl Test whether expf() exists. Assume that expf(), if it exists, is dnl defined in the same library as exp(). save_LIBS="$LIBS" diff --git a/m4/fabsf.m4 b/m4/fabsf.m4 index ef577a9b63..d2e7e7a3d8 100644 --- a/m4/fabsf.m4 +++ b/m4/fabsf.m4 @@ -1,4 +1,4 @@ -# fabsf.m4 serial 2 +# fabsf.m4 serial 3 dnl Copyright (C) 2011-2012 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, @@ -9,6 +9,9 @@ AC_DEFUN([gl_FUNC_FABSF], AC_REQUIRE([gl_MATH_H_DEFAULTS]) AC_REQUIRE([gl_FUNC_FABS]) + dnl Persuade glibc to declare fabsf(). + AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS]) + dnl Test whether fabsf() exists. We cannot assume that fabsf(), if it dnl exists, is defined in the same library as fabs(). This is not the case dnl on FreeBSD, NetBSD, OpenBSD. diff --git a/m4/fabsl.m4 b/m4/fabsl.m4 index fa4825bb36..530a13c8da 100644 --- a/m4/fabsl.m4 +++ b/m4/fabsl.m4 @@ -1,4 +1,4 @@ -# fabsl.m4 serial 1 +# fabsl.m4 serial 2 dnl Copyright (C) 2011-2012 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, @@ -9,6 +9,9 @@ AC_DEFUN([gl_FUNC_FABSL], AC_REQUIRE([gl_MATH_H_DEFAULTS]) AC_REQUIRE([gl_LONG_DOUBLE_VS_DOUBLE]) + dnl Persuade glibc to declare fabsl(). + AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS]) + dnl Determine FABSL_LIBM. gl_MATHFUNC([fabsl], [long double], [(long double)]) if test $gl_cv_func_fabsl_no_libm = yes \ diff --git a/m4/fmaf.m4 b/m4/fmaf.m4 index 6ca1c972de..6174eb5a0c 100644 --- a/m4/fmaf.m4 +++ b/m4/fmaf.m4 @@ -1,4 +1,4 @@ -# fmaf.m4 serial 1 +# fmaf.m4 serial 2 dnl Copyright (C) 2011-2012 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, @@ -8,6 +8,9 @@ AC_DEFUN([gl_FUNC_FMAF], [ AC_REQUIRE([gl_MATH_H_DEFAULTS]) + dnl Persuade glibc to declare fmaf(). + AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS]) + dnl Determine FMAF_LIBM. gl_MATHFUNC([fmaf], [float], [(float, float, float)]) if test $gl_cv_func_fmaf_no_libm = yes \ diff --git a/m4/fmal.m4 b/m4/fmal.m4 index eb379712e3..3a5aba25ec 100644 --- a/m4/fmal.m4 +++ b/m4/fmal.m4 @@ -1,4 +1,4 @@ -# fmal.m4 serial 1 +# fmal.m4 serial 2 dnl Copyright (C) 2011-2012 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, @@ -9,6 +9,9 @@ AC_DEFUN([gl_FUNC_FMAL], AC_REQUIRE([gl_MATH_H_DEFAULTS]) AC_REQUIRE([gl_LONG_DOUBLE_VS_DOUBLE]) + dnl Persuade glibc to declare fmal(). + AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS]) + dnl Determine FMAL_LIBM. gl_MATHFUNC([fmal], [long double], [(long double, long double, long double)]) if test $gl_cv_func_fmal_no_libm = yes \ diff --git a/m4/fmodf.m4 b/m4/fmodf.m4 index 812140d6f7..d4279c7967 100644 --- a/m4/fmodf.m4 +++ b/m4/fmodf.m4 @@ -1,4 +1,4 @@ -# fmodf.m4 serial 2 +# fmodf.m4 serial 3 dnl Copyright (C) 2011-2012 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, @@ -10,6 +10,9 @@ AC_DEFUN([gl_FUNC_FMODF], AC_REQUIRE([gl_MATH_H_DEFAULTS]) AC_REQUIRE([gl_FUNC_FMOD]) + dnl Persuade glibc to declare fmodf(). + AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS]) + dnl Test whether fmodf() exists. Assume that fmodf(), if it exists, is dnl defined in the same library as fmod(). save_LIBS="$LIBS" diff --git a/m4/fmodl.m4 b/m4/fmodl.m4 index ff72c8c125..93bc007ace 100644 --- a/m4/fmodl.m4 +++ b/m4/fmodl.m4 @@ -1,4 +1,4 @@ -# fmodl.m4 serial 3 +# fmodl.m4 serial 4 dnl Copyright (C) 2011-2012 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, @@ -11,6 +11,9 @@ AC_DEFUN([gl_FUNC_FMODL], AC_REQUIRE([gl_LONG_DOUBLE_VS_DOUBLE]) AC_REQUIRE([gl_FUNC_FMOD]) + dnl Persuade glibc to declare fmodl(). + AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS]) + dnl Test whether fmodl() is declared. dnl AIX 5.1 has fmodl() in libc but doesn't declare it in , and the dnl function produces NaN results for finite values. diff --git a/m4/frexpf.m4 b/m4/frexpf.m4 index 5a37b39b7a..c7aa59d897 100644 --- a/m4/frexpf.m4 +++ b/m4/frexpf.m4 @@ -1,4 +1,4 @@ -# frexpf.m4 serial 3 +# frexpf.m4 serial 4 dnl Copyright (C) 2011-2012 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, @@ -9,6 +9,9 @@ AC_DEFUN([gl_FUNC_FREXPF], AC_REQUIRE([gl_MATH_H_DEFAULTS]) AC_REQUIRE([gl_FUNC_FREXP]) + dnl Persuade glibc to declare frexpf(). + AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS]) + dnl Test whether frexpf() exists. We cannot assume that frexpf(), if it dnl exists, is defined in the same library as frexp(). This is not the case dnl on NetBSD, OpenBSD. diff --git a/m4/frexpl.m4 b/m4/frexpl.m4 index 8e71420a30..9df87ab82f 100644 --- a/m4/frexpl.m4 +++ b/m4/frexpl.m4 @@ -1,4 +1,4 @@ -# frexpl.m4 serial 18 +# frexpl.m4 serial 19 dnl Copyright (C) 2007-2012 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, @@ -8,9 +8,14 @@ AC_DEFUN([gl_FUNC_FREXPL], [ AC_REQUIRE([gl_MATH_H_DEFAULTS]) AC_REQUIRE([gl_LONG_DOUBLE_VS_DOUBLE]) + + dnl Persuade glibc to declare frexpl(). + AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS]) + dnl Check whether it's declared. dnl MacOS X 10.3 has frexpl() in libc but doesn't declare it in . AC_CHECK_DECL([frexpl], , [HAVE_DECL_FREXPL=0], [[#include ]]) + FREXPL_LIBM= if test $HAVE_DECL_FREXPL = 1; then gl_CHECK_FREXPL_NO_LIBM diff --git a/m4/hypot.m4 b/m4/hypot.m4 index 1837a01a0e..52df05f32d 100644 --- a/m4/hypot.m4 +++ b/m4/hypot.m4 @@ -1,4 +1,4 @@ -# hypot.m4 serial 2 +# hypot.m4 serial 3 dnl Copyright (C) 2012 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, @@ -9,6 +9,9 @@ AC_DEFUN([gl_FUNC_HYPOT], m4_divert_text([DEFAULTS], [gl_hypot_required=plain]) AC_REQUIRE([gl_MATH_H_DEFAULTS]) + dnl Persuade glibc to declare hypot(). + AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS]) + dnl Determine HYPOT_LIBM. gl_COMMON_DOUBLE_MATHFUNC([hypot]) diff --git a/m4/hypotf.m4 b/m4/hypotf.m4 index c6185a5439..b4ebe9e234 100644 --- a/m4/hypotf.m4 +++ b/m4/hypotf.m4 @@ -1,4 +1,4 @@ -# hypotf.m4 serial 2 +# hypotf.m4 serial 3 dnl Copyright (C) 2012 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, @@ -10,6 +10,9 @@ AC_DEFUN([gl_FUNC_HYPOTF], AC_REQUIRE([gl_MATH_H_DEFAULTS]) AC_REQUIRE([gl_FUNC_HYPOT]) + dnl Persuade glibc to declare hypotf(). + AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS]) + dnl Test whether hypotf() exists. Assume that hypotf(), if it exists, is dnl defined in the same library as hypot(). save_LIBS="$LIBS" diff --git a/m4/hypotl.m4 b/m4/hypotl.m4 index 424e0a13de..e7b0eb242f 100644 --- a/m4/hypotl.m4 +++ b/m4/hypotl.m4 @@ -1,4 +1,4 @@ -# hypotl.m4 serial 2 +# hypotl.m4 serial 3 dnl Copyright (C) 2012 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, @@ -10,6 +10,9 @@ AC_DEFUN([gl_FUNC_HYPOTL], AC_REQUIRE([gl_MATH_H_DEFAULTS]) AC_REQUIRE([gl_FUNC_HYPOT]) + dnl Persuade glibc to declare hypotl(). + AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS]) + dnl Test whether hypotl() exists. Assume that hypotl(), if it exists, is dnl defined in the same library as hypot(). save_LIBS="$LIBS" diff --git a/m4/ldexpf.m4 b/m4/ldexpf.m4 index 0ffa591690..1065b66b75 100644 --- a/m4/ldexpf.m4 +++ b/m4/ldexpf.m4 @@ -1,4 +1,4 @@ -# ldexpf.m4 serial 1 +# ldexpf.m4 serial 2 dnl Copyright (C) 2011-2012 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, @@ -9,6 +9,9 @@ AC_DEFUN([gl_FUNC_LDEXPF], AC_REQUIRE([gl_MATH_H_DEFAULTS]) AC_REQUIRE([gl_FUNC_LDEXP]) + dnl Persuade glibc to declare ldexpf(). + AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS]) + dnl Test whether ldexpf() exists. We cannot assume that ldexpf(), if it dnl exists, is defined in the same library as ldexp(). This is not the case dnl on FreeBSD, NetBSD, OpenBSD. diff --git a/m4/ldexpl.m4 b/m4/ldexpl.m4 index 9c9ec6705e..11f20ca2a8 100644 --- a/m4/ldexpl.m4 +++ b/m4/ldexpl.m4 @@ -1,4 +1,4 @@ -# ldexpl.m4 serial 14 +# ldexpl.m4 serial 15 dnl Copyright (C) 2007-2012 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, @@ -9,9 +9,14 @@ AC_DEFUN([gl_FUNC_LDEXPL], AC_REQUIRE([gl_MATH_H_DEFAULTS]) AC_REQUIRE([gl_LONG_DOUBLE_VS_DOUBLE]) AC_REQUIRE([gl_FUNC_ISNANL]) dnl for ISNANL_LIBM + + dnl Persuade glibc to declare ldexpl(). + AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS]) + dnl Check whether it's declared. dnl MacOS X 10.3 has ldexpl() in libc but doesn't declare it in . AC_CHECK_DECL([ldexpl], , [HAVE_DECL_LDEXPL=0], [[#include ]]) + LDEXPL_LIBM= if test $HAVE_DECL_LDEXPL = 1; then gl_CHECK_LDEXPL_NO_LIBM diff --git a/m4/log10f.m4 b/m4/log10f.m4 index 4bac5e3092..e9f8ce1a55 100644 --- a/m4/log10f.m4 +++ b/m4/log10f.m4 @@ -1,4 +1,4 @@ -# log10f.m4 serial 1 +# log10f.m4 serial 2 dnl Copyright (C) 2011-2012 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, @@ -9,6 +9,9 @@ AC_DEFUN([gl_FUNC_LOG10F], AC_REQUIRE([gl_MATH_H_DEFAULTS]) AC_REQUIRE([gl_FUNC_LOG10]) + dnl Persuade glibc to declare log10f(). + AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS]) + dnl Test whether log10f() exists. Assume that log10f(), if it exists, is dnl defined in the same library as log10(). save_LIBS="$LIBS" diff --git a/m4/log10l.m4 b/m4/log10l.m4 index 6d72b6a9dc..c124f891ca 100644 --- a/m4/log10l.m4 +++ b/m4/log10l.m4 @@ -1,4 +1,4 @@ -# log10l.m4 serial 1 +# log10l.m4 serial 2 dnl Copyright (C) 2011-2012 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, @@ -10,6 +10,9 @@ AC_DEFUN([gl_FUNC_LOG10L], AC_REQUIRE([gl_LONG_DOUBLE_VS_DOUBLE]) AC_REQUIRE([gl_FUNC_LOG10]) + dnl Persuade glibc to declare log10l(). + AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS]) + dnl Test whether log10l() is declared. On AIX 5.1 it is not declared. AC_CHECK_DECL([log10l], , [HAVE_DECL_LOG10L=0], [[#include ]]) diff --git a/m4/logb.m4 b/m4/logb.m4 index f6d1555fc9..ee23e243dc 100644 --- a/m4/logb.m4 +++ b/m4/logb.m4 @@ -1,4 +1,4 @@ -# logb.m4 serial 4 +# logb.m4 serial 5 dnl Copyright (C) 2010-2012 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, @@ -7,6 +7,10 @@ dnl with or without modifications, as long as this notice is preserved. AC_DEFUN([gl_FUNC_LOGB], [ AC_REQUIRE([gl_MATH_H_DEFAULTS]) + + dnl Persuade glibc to declare logb(). + AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS]) + dnl Test whether logb() is declared. AC_CHECK_DECLS([logb], , , [[#include ]]) if test "$ac_cv_have_decl_logb" != yes; then diff --git a/m4/logf.m4 b/m4/logf.m4 index d10b5a67ff..717ccee6d1 100644 --- a/m4/logf.m4 +++ b/m4/logf.m4 @@ -1,4 +1,4 @@ -# logf.m4 serial 1 +# logf.m4 serial 2 dnl Copyright (C) 2011-2012 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, @@ -9,6 +9,9 @@ AC_DEFUN([gl_FUNC_LOGF], AC_REQUIRE([gl_MATH_H_DEFAULTS]) AC_REQUIRE([gl_FUNC_LOG]) + dnl Persuade glibc to declare logf(). + AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS]) + dnl Test whether logf() exists. Assume that logf(), if it exists, is dnl defined in the same library as log(). save_LIBS="$LIBS" diff --git a/m4/modff.m4 b/m4/modff.m4 index 3b117eccf6..2d4fc72d93 100644 --- a/m4/modff.m4 +++ b/m4/modff.m4 @@ -1,4 +1,4 @@ -# modff.m4 serial 3 +# modff.m4 serial 4 dnl Copyright (C) 2011-2012 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, @@ -10,6 +10,9 @@ AC_DEFUN([gl_FUNC_MODFF], AC_REQUIRE([gl_MATH_H_DEFAULTS]) AC_REQUIRE([gl_FUNC_MODF]) + dnl Persuade glibc to declare modff(). + AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS]) + dnl Test whether modff() exists. We cannot assume that modff(), if it dnl exists, is defined in the same library as modf(). This is not the case dnl on FreeBSD, NetBSD, OpenBSD. diff --git a/m4/modfl.m4 b/m4/modfl.m4 index 634358ebf2..7056050788 100644 --- a/m4/modfl.m4 +++ b/m4/modfl.m4 @@ -1,4 +1,4 @@ -# modfl.m4 serial 1 +# modfl.m4 serial 2 dnl Copyright (C) 2011-2012 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, @@ -10,6 +10,9 @@ AC_DEFUN([gl_FUNC_MODFL], AC_REQUIRE([gl_MATH_H_DEFAULTS]) AC_REQUIRE([gl_LONG_DOUBLE_VS_DOUBLE]) + dnl Persuade glibc to declare modfl(). + AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS]) + dnl Test whether modfl() exists. We cannot assume that modfl(), if it dnl exists, is defined in the same library as modf(). This is not the case dnl on FreeBSD, Solaris. diff --git a/m4/powf.m4 b/m4/powf.m4 index 7a39d6b739..6f8c66d706 100644 --- a/m4/powf.m4 +++ b/m4/powf.m4 @@ -1,4 +1,4 @@ -# powf.m4 serial 1 +# powf.m4 serial 2 dnl Copyright (C) 2011-2012 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, @@ -9,6 +9,9 @@ AC_DEFUN([gl_FUNC_POWF], AC_REQUIRE([gl_MATH_H_DEFAULTS]) AC_REQUIRE([gl_FUNC_POW]) + dnl Persuade glibc to declare powf(). + AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS]) + dnl Test whether powf() exists. Assume that powf(), if it exists, is dnl defined in the same library as pow(). save_LIBS="$LIBS" diff --git a/m4/remainderf.m4 b/m4/remainderf.m4 index 19760edf7e..b9f4d63de0 100644 --- a/m4/remainderf.m4 +++ b/m4/remainderf.m4 @@ -1,4 +1,4 @@ -# remainderf.m4 serial 3 +# remainderf.m4 serial 4 dnl Copyright (C) 2012 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, @@ -10,6 +10,9 @@ AC_DEFUN([gl_FUNC_REMAINDERF], AC_REQUIRE([gl_MATH_H_DEFAULTS]) AC_REQUIRE([gl_FUNC_REMAINDER]) + dnl Persuade glibc to declare remainderf(). + AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS]) + dnl Test whether remainderf() exists. Assume that remainderf(), if it exists, is dnl defined in the same library as remainder(). save_LIBS="$LIBS" diff --git a/m4/remainderl.m4 b/m4/remainderl.m4 index 60653bd20a..912f181230 100644 --- a/m4/remainderl.m4 +++ b/m4/remainderl.m4 @@ -1,4 +1,4 @@ -# remainderl.m4 serial 3 +# remainderl.m4 serial 4 dnl Copyright (C) 2012 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, @@ -11,6 +11,9 @@ AC_DEFUN([gl_FUNC_REMAINDERL], AC_REQUIRE([gl_LONG_DOUBLE_VS_DOUBLE]) AC_REQUIRE([gl_FUNC_REMAINDER]) + dnl Persuade glibc to declare remainderl(). + AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS]) + dnl Test whether remainderl() exists. Assume that remainderl(), if it exists, is dnl defined in the same library as remainder(). save_LIBS="$LIBS" diff --git a/m4/rintf.m4 b/m4/rintf.m4 index 208626e6e4..9e92a97575 100644 --- a/m4/rintf.m4 +++ b/m4/rintf.m4 @@ -1,4 +1,4 @@ -# rintf.m4 serial 2 +# rintf.m4 serial 3 dnl Copyright (C) 2011-2012 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, @@ -8,6 +8,9 @@ AC_DEFUN([gl_FUNC_RINTF], [ AC_REQUIRE([gl_MATH_H_DEFAULTS]) + dnl Persuade glibc to declare rintf(). + AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS]) + dnl Determine RINTF_LIBM. gl_MATHFUNC([rintf], [float], [(float)]) if test $gl_cv_func_rintf_no_libm = no \ diff --git a/m4/rintl.m4 b/m4/rintl.m4 index 63e7665b6a..f9d70c551a 100644 --- a/m4/rintl.m4 +++ b/m4/rintl.m4 @@ -1,4 +1,4 @@ -# rintl.m4 serial 3 +# rintl.m4 serial 4 dnl Copyright (C) 2011-2012 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, @@ -9,6 +9,9 @@ AC_DEFUN([gl_FUNC_RINTL], AC_REQUIRE([gl_MATH_H_DEFAULTS]) AC_REQUIRE([gl_LONG_DOUBLE_VS_DOUBLE]) + dnl Persuade glibc to declare rintl(). + AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS]) + dnl Determine RINTL_LIBM. gl_MATHFUNC([rintl], [long double], [(long double)]) if test $gl_cv_func_rintl_no_libm = no \ diff --git a/m4/sinf.m4 b/m4/sinf.m4 index 612da994a2..bde7d633f6 100644 --- a/m4/sinf.m4 +++ b/m4/sinf.m4 @@ -1,4 +1,4 @@ -# sinf.m4 serial 1 +# sinf.m4 serial 2 dnl Copyright (C) 2011-2012 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, @@ -9,6 +9,9 @@ AC_DEFUN([gl_FUNC_SINF], AC_REQUIRE([gl_MATH_H_DEFAULTS]) AC_REQUIRE([gl_FUNC_SIN]) + dnl Persuade glibc to declare sinf(). + AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS]) + dnl Test whether sinf() exists. Assume that sinf(), if it exists, is dnl defined in the same library as sin(). save_LIBS="$LIBS" diff --git a/m4/sinhf.m4 b/m4/sinhf.m4 index e22068048b..69f96da0b1 100644 --- a/m4/sinhf.m4 +++ b/m4/sinhf.m4 @@ -1,4 +1,4 @@ -# sinhf.m4 serial 1 +# sinhf.m4 serial 2 dnl Copyright (C) 2011-2012 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, @@ -9,6 +9,9 @@ AC_DEFUN([gl_FUNC_SINHF], AC_REQUIRE([gl_MATH_H_DEFAULTS]) AC_REQUIRE([gl_FUNC_SINH]) + dnl Persuade glibc to declare sinhf(). + AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS]) + dnl Test whether sinhf() exists. Assume that sinhf(), if it exists, is dnl defined in the same library as sinh(). save_LIBS="$LIBS" diff --git a/m4/sqrtf.m4 b/m4/sqrtf.m4 index ded7c587cc..c2e09ea374 100644 --- a/m4/sqrtf.m4 +++ b/m4/sqrtf.m4 @@ -1,4 +1,4 @@ -# sqrtf.m4 serial 1 +# sqrtf.m4 serial 2 dnl Copyright (C) 2011-2012 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, @@ -9,6 +9,9 @@ AC_DEFUN([gl_FUNC_SQRTF], AC_REQUIRE([gl_MATH_H_DEFAULTS]) AC_REQUIRE([gl_FUNC_SQRT]) + dnl Persuade glibc to declare sqrtf(). + AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS]) + dnl Test whether sqrtf() exists. Assume that sqrtf(), if it exists, is dnl defined in the same library as sqrt(). save_LIBS="$LIBS" diff --git a/m4/tanf.m4 b/m4/tanf.m4 index 7ecbe81e77..030abe95df 100644 --- a/m4/tanf.m4 +++ b/m4/tanf.m4 @@ -1,4 +1,4 @@ -# tanf.m4 serial 1 +# tanf.m4 serial 2 dnl Copyright (C) 2011-2012 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, @@ -9,6 +9,9 @@ AC_DEFUN([gl_FUNC_TANF], AC_REQUIRE([gl_MATH_H_DEFAULTS]) AC_REQUIRE([gl_FUNC_TAN]) + dnl Persuade glibc to declare tanf(). + AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS]) + dnl Test whether tanf() exists. Assume that tanf(), if it exists, is dnl defined in the same library as tan(). save_LIBS="$LIBS" diff --git a/m4/tanhf.m4 b/m4/tanhf.m4 index f5336e5e0b..b8410f30bb 100644 --- a/m4/tanhf.m4 +++ b/m4/tanhf.m4 @@ -1,4 +1,4 @@ -# tanhf.m4 serial 1 +# tanhf.m4 serial 2 dnl Copyright (C) 2011-2012 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, @@ -9,6 +9,9 @@ AC_DEFUN([gl_FUNC_TANHF], AC_REQUIRE([gl_MATH_H_DEFAULTS]) AC_REQUIRE([gl_FUNC_TANH]) + dnl Persuade glibc to declare tanhf(). + AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS]) + dnl Test whether tanhf() exists. Assume that tanhf(), if it exists, is dnl defined in the same library as tanh(). save_LIBS="$LIBS" diff --git a/modules/acosf b/modules/acosf index aa61b03653..d91a2e23eb 100644 --- a/modules/acosf +++ b/modules/acosf @@ -7,6 +7,7 @@ m4/acosf.m4 Depends-on: math +extensions acos [test $HAVE_ACOSF = 0] configure.ac: diff --git a/modules/asinf b/modules/asinf index 395ff2c271..4fae74fe0f 100644 --- a/modules/asinf +++ b/modules/asinf @@ -7,6 +7,7 @@ m4/asinf.m4 Depends-on: math +extensions asin [test $HAVE_ASINF = 0] configure.ac: diff --git a/modules/atan2f b/modules/atan2f index f2d7dc65ed..73b52bad2b 100644 --- a/modules/atan2f +++ b/modules/atan2f @@ -7,6 +7,7 @@ m4/atan2f.m4 Depends-on: math +extensions atan2 [test $HAVE_ATAN2F = 0] configure.ac: diff --git a/modules/atanf b/modules/atanf index b17a4e621f..1ff77684a0 100644 --- a/modules/atanf +++ b/modules/atanf @@ -7,6 +7,7 @@ m4/atanf.m4 Depends-on: math +extensions atan [test $HAVE_ATANF = 0] configure.ac: diff --git a/modules/cbrt b/modules/cbrt index 3cb47118d8..7b5109a121 100644 --- a/modules/cbrt +++ b/modules/cbrt @@ -8,6 +8,7 @@ m4/mathfunc.m4 Depends-on: math +extensions isfinite [test $HAVE_CBRT = 0] fabs [test $HAVE_CBRT = 0] frexp [test $HAVE_CBRT = 0] diff --git a/modules/cbrtf b/modules/cbrtf index 06d2b7662f..c07e8ecc0c 100644 --- a/modules/cbrtf +++ b/modules/cbrtf @@ -9,6 +9,7 @@ m4/mathfunc.m4 Depends-on: math +extensions isfinite [test $HAVE_CBRTF = 0 || test $REPLACE_CBRTF = 1] fabsf [test $HAVE_CBRTF = 0 || test $REPLACE_CBRTF = 1] frexpf [test $HAVE_CBRTF = 0 || test $REPLACE_CBRTF = 1] diff --git a/modules/cbrtl b/modules/cbrtl index aec1cd7327..83c074c37c 100644 --- a/modules/cbrtl +++ b/modules/cbrtl @@ -9,6 +9,7 @@ m4/mathfunc.m4 Depends-on: math +extensions cbrt [{ test $HAVE_CBRTL = 0 || test $REPLACE_CBRTL = 1; } && test $HAVE_SAME_LONG_DOUBLE_AS_DOUBLE = 1] isfinite [{ test $HAVE_CBRTL = 0 || test $REPLACE_CBRTL = 1; } && test $HAVE_SAME_LONG_DOUBLE_AS_DOUBLE = 0] frexpl [{ test $HAVE_CBRTL = 0 || test $REPLACE_CBRTL = 1; } && test $HAVE_SAME_LONG_DOUBLE_AS_DOUBLE = 0] diff --git a/modules/copysignf b/modules/copysignf index a446046ca1..f1bbdec03d 100644 --- a/modules/copysignf +++ b/modules/copysignf @@ -8,6 +8,7 @@ m4/mathfunc.m4 Depends-on: math +extensions signbit [test $HAVE_COPYSIGNF = 0] configure.ac: diff --git a/modules/copysignl b/modules/copysignl index f3d1fd3ef5..4691cdba97 100644 --- a/modules/copysignl +++ b/modules/copysignl @@ -8,6 +8,7 @@ m4/mathfunc.m4 Depends-on: math +extensions copysign [test $HAVE_COPYSIGNL = 0 && test $HAVE_SAME_LONG_DOUBLE_AS_DOUBLE = 1] signbit [test $HAVE_COPYSIGNL = 0 && test $HAVE_SAME_LONG_DOUBLE_AS_DOUBLE = 0] diff --git a/modules/cosf b/modules/cosf index b9b9860c9d..1deb1abd7f 100644 --- a/modules/cosf +++ b/modules/cosf @@ -7,6 +7,7 @@ m4/cosf.m4 Depends-on: math +extensions cos [test $HAVE_COSF = 0] configure.ac: diff --git a/modules/coshf b/modules/coshf index d8a1e4be04..1eea140545 100644 --- a/modules/coshf +++ b/modules/coshf @@ -7,6 +7,7 @@ m4/coshf.m4 Depends-on: math +extensions cosh [test $HAVE_COSHF = 0] configure.ac: diff --git a/modules/expf b/modules/expf index 857fa25d45..48502083a1 100644 --- a/modules/expf +++ b/modules/expf @@ -7,6 +7,7 @@ m4/expf.m4 Depends-on: math +extensions exp [test $HAVE_EXPF = 0] configure.ac: diff --git a/modules/fabsf b/modules/fabsf index 2b203d1547..2d8088a272 100644 --- a/modules/fabsf +++ b/modules/fabsf @@ -8,6 +8,7 @@ m4/mathfunc.m4 Depends-on: math +extensions fabs [test $HAVE_FABSF = 0] configure.ac: diff --git a/modules/fabsl b/modules/fabsl index 686ddaa31f..cf43a20e8b 100644 --- a/modules/fabsl +++ b/modules/fabsl @@ -8,6 +8,7 @@ m4/mathfunc.m4 Depends-on: math +extensions fabs [{ test $HAVE_FABSL = 0 || test $REPLACE_FABSL = 1; } && test $HAVE_SAME_LONG_DOUBLE_AS_DOUBLE = 1] signbit [{ test $HAVE_FABSL = 0 || test $REPLACE_FABSL = 1; } && test $HAVE_SAME_LONG_DOUBLE_AS_DOUBLE = 0] diff --git a/modules/fmaf b/modules/fmaf index fe80913e4c..172f389684 100644 --- a/modules/fmaf +++ b/modules/fmaf @@ -11,6 +11,7 @@ m4/mathfunc.m4 Depends-on: math +extensions float [test $HAVE_FMAF = 0 || test $REPLACE_FMAF = 1] stdbool [test $HAVE_FMAF = 0 || test $REPLACE_FMAF = 1] verify [test $HAVE_FMAF = 0 || test $REPLACE_FMAF = 1] diff --git a/modules/fmal b/modules/fmal index 962632baa5..8ec896ae18 100644 --- a/modules/fmal +++ b/modules/fmal @@ -11,6 +11,7 @@ m4/mathfunc.m4 Depends-on: math +extensions fma [{ test $HAVE_FMAL = 0 || test $REPLACE_FMAL = 1; } && test $HAVE_SAME_LONG_DOUBLE_AS_DOUBLE = 1] float [{ test $HAVE_FMAL = 0 || test $REPLACE_FMAL = 1; } && test $HAVE_SAME_LONG_DOUBLE_AS_DOUBLE = 0] stdbool [{ test $HAVE_FMAL = 0 || test $REPLACE_FMAL = 1; } && test $HAVE_SAME_LONG_DOUBLE_AS_DOUBLE = 0] diff --git a/modules/fmodf b/modules/fmodf index fa49437a64..83f29bc537 100644 --- a/modules/fmodf +++ b/modules/fmodf @@ -7,6 +7,7 @@ m4/fmodf.m4 Depends-on: math +extensions fmod [test $HAVE_FMODF = 0 || test $REPLACE_FMODF = 1] configure.ac: diff --git a/modules/fmodl b/modules/fmodl index 2a4a3c9592..b8446f74fd 100644 --- a/modules/fmodl +++ b/modules/fmodl @@ -9,6 +9,7 @@ m4/mathfunc.m4 Depends-on: math +extensions fmod [{ test $HAVE_FMODL = 0 || test $REPLACE_FMODL = 1; } && test $HAVE_SAME_LONG_DOUBLE_AS_DOUBLE = 1] float [{ test $HAVE_FMODL = 0 || test $REPLACE_FMODL = 1; } && test $HAVE_SAME_LONG_DOUBLE_AS_DOUBLE = 0] isfinite [{ test $HAVE_FMODL = 0 || test $REPLACE_FMODL = 1; } && test $HAVE_SAME_LONG_DOUBLE_AS_DOUBLE = 0] diff --git a/modules/frexpf b/modules/frexpf index efb2db72ec..b4ecd88c1b 100644 --- a/modules/frexpf +++ b/modules/frexpf @@ -8,6 +8,7 @@ m4/mathfunc.m4 Depends-on: math +extensions frexp [test $HAVE_FREXPF = 0 || test $REPLACE_FREXPF = 1] configure.ac: diff --git a/modules/frexpl b/modules/frexpl index a06edc5661..5e89907bd2 100644 --- a/modules/frexpl +++ b/modules/frexpl @@ -8,6 +8,7 @@ m4/frexpl.m4 Depends-on: math +extensions frexp [{ test $HAVE_DECL_FREXPL = 0 || test $gl_func_frexpl = no; } && test $HAVE_SAME_LONG_DOUBLE_AS_DOUBLE = 1] isnanl-nolibm [{ test $HAVE_DECL_FREXPL = 0 || test $gl_func_frexpl = no; } && test $HAVE_SAME_LONG_DOUBLE_AS_DOUBLE = 0] fpucw [{ test $HAVE_DECL_FREXPL = 0 || test $gl_func_frexpl = no; } && test $HAVE_SAME_LONG_DOUBLE_AS_DOUBLE = 0] diff --git a/modules/hypot b/modules/hypot index 5d1414ee78..c67ee23f07 100644 --- a/modules/hypot +++ b/modules/hypot @@ -8,6 +8,7 @@ m4/mathfunc.m4 Depends-on: math +extensions isfinite [test $REPLACE_HYPOT = 1] fabs [test $REPLACE_HYPOT = 1] frexp [test $REPLACE_HYPOT = 1] diff --git a/modules/hypotf b/modules/hypotf index 82e09aa8a9..f9328e2e60 100644 --- a/modules/hypotf +++ b/modules/hypotf @@ -8,6 +8,7 @@ m4/mathfunc.m4 Depends-on: math +extensions hypot [test $HAVE_HYPOTF = 0 || test $REPLACE_HYPOTF = 1] configure.ac: diff --git a/modules/hypotl b/modules/hypotl index e8ba6e5372..7962cb1b74 100644 --- a/modules/hypotl +++ b/modules/hypotl @@ -8,6 +8,7 @@ m4/mathfunc.m4 Depends-on: math +extensions hypot [{ test $HAVE_HYPOTL = 0 || test $REPLACE_HYPOTL = 1; } && test $HAVE_SAME_LONG_DOUBLE_AS_DOUBLE = 1] isfinite [{ test $HAVE_HYPOTL = 0 || test $REPLACE_HYPOTL = 1; } && test $HAVE_SAME_LONG_DOUBLE_AS_DOUBLE = 0] fabsl [{ test $HAVE_HYPOTL = 0 || test $REPLACE_HYPOTL = 1; } && test $HAVE_SAME_LONG_DOUBLE_AS_DOUBLE = 0] diff --git a/modules/ldexpf b/modules/ldexpf index 3c1f15c694..f2a9f37c17 100644 --- a/modules/ldexpf +++ b/modules/ldexpf @@ -8,6 +8,7 @@ m4/mathfunc.m4 Depends-on: math +extensions ldexp [test $HAVE_LDEXPF = 0] configure.ac: diff --git a/modules/ldexpl b/modules/ldexpl index 35e52ab0ce..69b2228331 100644 --- a/modules/ldexpl +++ b/modules/ldexpl @@ -7,6 +7,7 @@ m4/ldexpl.m4 Depends-on: math +extensions ldexp [{ test $HAVE_DECL_LDEXPL = 0 || test $gl_func_ldexpl = no; } && test $HAVE_SAME_LONG_DOUBLE_AS_DOUBLE = 1] isnanl [{ test $HAVE_DECL_LDEXPL = 0 || test $gl_func_ldexpl = no; } && test $HAVE_SAME_LONG_DOUBLE_AS_DOUBLE = 0] fpucw [{ test $HAVE_DECL_LDEXPL = 0 || test $gl_func_ldexpl = no; } && test $HAVE_SAME_LONG_DOUBLE_AS_DOUBLE = 0] diff --git a/modules/log10f b/modules/log10f index d6c5b8b1ce..abcbaa64aa 100644 --- a/modules/log10f +++ b/modules/log10f @@ -7,6 +7,7 @@ m4/log10f.m4 Depends-on: math +extensions log10 [test $HAVE_LOG10F = 0] configure.ac: diff --git a/modules/log10l b/modules/log10l index 6e40021417..16b49cd683 100644 --- a/modules/log10l +++ b/modules/log10l @@ -7,6 +7,7 @@ m4/log10l.m4 Depends-on: math +extensions log10 [test $HAVE_LOG10L = 0 && test $HAVE_SAME_LONG_DOUBLE_AS_DOUBLE = 1] logl [test $HAVE_LOG10L = 0 && test $HAVE_SAME_LONG_DOUBLE_AS_DOUBLE = 0] diff --git a/modules/log1p b/modules/log1p index 955893b73e..3470e87302 100644 --- a/modules/log1p +++ b/modules/log1p @@ -5,6 +5,7 @@ Files: m4/mathfunc.m4 Depends-on: +extensions configure.ac: gl_COMMON_DOUBLE_MATHFUNC([log1p]) diff --git a/modules/logb b/modules/logb index 7c93afbb08..9747473aa1 100644 --- a/modules/logb +++ b/modules/logb @@ -7,6 +7,7 @@ m4/mathfunc.m4 Depends-on: math +extensions configure.ac: gl_FUNC_LOGB diff --git a/modules/logf b/modules/logf index a2e3f256b5..7811af22f5 100644 --- a/modules/logf +++ b/modules/logf @@ -7,6 +7,7 @@ m4/logf.m4 Depends-on: math +extensions log [test $HAVE_LOGF = 0] configure.ac: diff --git a/modules/modff b/modules/modff index 894bf67dc0..9c510eb37a 100644 --- a/modules/modff +++ b/modules/modff @@ -8,6 +8,7 @@ m4/mathfunc.m4 Depends-on: math +extensions modf [test $HAVE_MODFF = 0 || test $REPLACE_MODFF = 1] configure.ac: diff --git a/modules/modfl b/modules/modfl index c2f414b8af..4b0e941120 100644 --- a/modules/modfl +++ b/modules/modfl @@ -8,6 +8,7 @@ m4/mathfunc.m4 Depends-on: math +extensions modf [{ test $HAVE_MODFL = 0 || test $REPLACE_MODFL = 1; } && test $HAVE_SAME_LONG_DOUBLE_AS_DOUBLE = 1] isfinite [{ test $HAVE_MODFL = 0 || test $REPLACE_MODFL = 1; } && test $HAVE_SAME_LONG_DOUBLE_AS_DOUBLE = 0] truncl [{ test $HAVE_MODFL = 0 || test $REPLACE_MODFL = 1; } && test $HAVE_SAME_LONG_DOUBLE_AS_DOUBLE = 0] diff --git a/modules/powf b/modules/powf index 0f31ce2cf2..d58be430db 100644 --- a/modules/powf +++ b/modules/powf @@ -7,6 +7,7 @@ m4/powf.m4 Depends-on: math +extensions pow [test $HAVE_POWF = 0] configure.ac: diff --git a/modules/remainderf b/modules/remainderf index e4f0600d7b..98e64e86be 100644 --- a/modules/remainderf +++ b/modules/remainderf @@ -9,6 +9,7 @@ m4/mathfunc.m4 Depends-on: math +extensions remainder [test $HAVE_REMAINDERF = 0 || test $REPLACE_REMAINDERF = 1] isfinite [test $HAVE_REMAINDERF = 0 || test $REPLACE_REMAINDERF = 1] signbit [test $HAVE_REMAINDERF = 0 || test $REPLACE_REMAINDERF = 1] diff --git a/modules/remainderl b/modules/remainderl index 4eb1c91bbd..40272caf8c 100644 --- a/modules/remainderl +++ b/modules/remainderl @@ -9,6 +9,7 @@ m4/mathfunc.m4 Depends-on: math +extensions remainder [{ test $HAVE_REMAINDERL = 0 || test $REPLACE_REMAINDERL = 1; } && test $HAVE_SAME_LONG_DOUBLE_AS_DOUBLE = 1] float [{ test $HAVE_REMAINDERL = 0 || test $REPLACE_REMAINDERL = 1; } && test $HAVE_SAME_LONG_DOUBLE_AS_DOUBLE = 0] isfinite [{ test $HAVE_REMAINDERL = 0 || test $REPLACE_REMAINDERL = 1; } && test $HAVE_SAME_LONG_DOUBLE_AS_DOUBLE = 0] diff --git a/modules/rintf b/modules/rintf index 92b93a399a..78e4edf370 100644 --- a/modules/rintf +++ b/modules/rintf @@ -9,6 +9,7 @@ m4/mathfunc.m4 Depends-on: math +extensions configure.ac: gl_FUNC_RINTF diff --git a/modules/rintl b/modules/rintl index dac26185f2..325f6a619c 100644 --- a/modules/rintl +++ b/modules/rintl @@ -9,6 +9,7 @@ m4/mathfunc.m4 Depends-on: math +extensions rint [test $HAVE_RINTL = 0 && test $HAVE_SAME_LONG_DOUBLE_AS_DOUBLE = 1] configure.ac: diff --git a/modules/sinf b/modules/sinf index f3496871da..f79be4658c 100644 --- a/modules/sinf +++ b/modules/sinf @@ -7,6 +7,7 @@ m4/sinf.m4 Depends-on: math +extensions sin [test $HAVE_SINF = 0] configure.ac: diff --git a/modules/sinhf b/modules/sinhf index f45bbe3199..820882a75c 100644 --- a/modules/sinhf +++ b/modules/sinhf @@ -7,6 +7,7 @@ m4/sinhf.m4 Depends-on: math +extensions sinh [test $HAVE_SINHF = 0] configure.ac: diff --git a/modules/sqrtf b/modules/sqrtf index 412364956d..2517c0c5cc 100644 --- a/modules/sqrtf +++ b/modules/sqrtf @@ -7,6 +7,7 @@ m4/sqrtf.m4 Depends-on: math +extensions sqrt [test $HAVE_SQRTF = 0] configure.ac: diff --git a/modules/tanf b/modules/tanf index 943f7c7865..c5bde4b3ce 100644 --- a/modules/tanf +++ b/modules/tanf @@ -7,6 +7,7 @@ m4/tanf.m4 Depends-on: math +extensions tan [test $HAVE_TANF = 0] configure.ac: diff --git a/modules/tanhf b/modules/tanhf index 44f606e753..c844649f71 100644 --- a/modules/tanhf +++ b/modules/tanhf @@ -7,6 +7,7 @@ m4/tanhf.m4 Depends-on: math +extensions tanh [test $HAVE_TANHF = 0] configure.ac: