On glibc systems, when special options like -D_POSIX_SOURCE are in use, some math functions are not declared by <math.h>. For example:
$ echo '<math.h>' | gcc -E -D_POSIX_SOURCE - | grep cbrt This works around it, like already done in many other math modules. 2012-03-06 Bruno Haible <br...@clisp.org> 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. --- m4/acosf.m4.orig Tue Mar 6 15:58:00 2012 +++ m4/acosf.m4 Tue Mar 6 15:56:34 2012 @@ -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_REQUIRE([gl_MATH_H_DEFAULTS]) AC_REQUIRE([gl_FUNC_ACOS]) + dnl Persuade glibc <math.h> 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" --- m4/asinf.m4.orig Tue Mar 6 15:58:00 2012 +++ m4/asinf.m4 Tue Mar 6 15:56:35 2012 @@ -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_REQUIRE([gl_MATH_H_DEFAULTS]) AC_REQUIRE([gl_FUNC_ASIN]) + dnl Persuade glibc <math.h> 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" --- m4/atan2f.m4.orig Tue Mar 6 15:58:00 2012 +++ m4/atan2f.m4 Tue Mar 6 15:56:35 2012 @@ -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_REQUIRE([gl_MATH_H_DEFAULTS]) AC_REQUIRE([gl_FUNC_ATAN2]) + dnl Persuade glibc <math.h> 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" --- m4/atanf.m4.orig Tue Mar 6 15:58:00 2012 +++ m4/atanf.m4 Tue Mar 6 15:56:35 2012 @@ -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_REQUIRE([gl_MATH_H_DEFAULTS]) AC_REQUIRE([gl_FUNC_ATAN]) + dnl Persuade glibc <math.h> 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" --- m4/cbrt.m4.orig Tue Mar 6 15:58:00 2012 +++ m4/cbrt.m4 Tue Mar 6 15:18:26 2012 @@ -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_REQUIRE([gl_MATH_H_DEFAULTS]) + dnl Persuade glibc <math.h> to declare cbrt(). + AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS]) + dnl Determine CBRT_LIBM. gl_COMMON_DOUBLE_MATHFUNC([cbrt]) --- m4/cbrtf.m4.orig Tue Mar 6 15:58:00 2012 +++ m4/cbrtf.m4 Tue Mar 6 15:18:26 2012 @@ -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_REQUIRE([gl_MATH_H_DEFAULTS]) AC_REQUIRE([gl_FUNC_CBRT]) + dnl Persuade glibc <math.h> 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" --- m4/cbrtl.m4.orig Tue Mar 6 15:58:00 2012 +++ m4/cbrtl.m4 Tue Mar 6 15:18:26 2012 @@ -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_REQUIRE([gl_LONG_DOUBLE_VS_DOUBLE]) AC_REQUIRE([gl_FUNC_CBRT]) + dnl Persuade glibc <math.h> 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" --- m4/copysignf.m4.orig Tue Mar 6 15:58:00 2012 +++ m4/copysignf.m4 Tue Mar 6 15:56:36 2012 @@ -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_REQUIRE([gl_MATH_H_DEFAULTS]) + dnl Persuade glibc <math.h> 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 \ --- m4/copysignl.m4.orig Tue Mar 6 15:58:00 2012 +++ m4/copysignl.m4 Tue Mar 6 15:56:37 2012 @@ -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_REQUIRE([gl_MATH_H_DEFAULTS]) AC_REQUIRE([gl_LONG_DOUBLE_VS_DOUBLE]) + dnl Persuade glibc <math.h> 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 \ --- m4/cosf.m4.orig Tue Mar 6 15:58:00 2012 +++ m4/cosf.m4 Tue Mar 6 15:56:35 2012 @@ -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_REQUIRE([gl_MATH_H_DEFAULTS]) AC_REQUIRE([gl_FUNC_COS]) + dnl Persuade glibc <math.h> 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" --- m4/coshf.m4.orig Tue Mar 6 15:58:00 2012 +++ m4/coshf.m4 Tue Mar 6 15:56:35 2012 @@ -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_REQUIRE([gl_MATH_H_DEFAULTS]) AC_REQUIRE([gl_FUNC_COSH]) + dnl Persuade glibc <math.h> 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" --- m4/expf.m4.orig Tue Mar 6 15:58:00 2012 +++ m4/expf.m4 Tue Mar 6 15:56:36 2012 @@ -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_REQUIRE([gl_MATH_H_DEFAULTS]) AC_REQUIRE([gl_FUNC_EXP]) + dnl Persuade glibc <math.h> 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" --- m4/fabsf.m4.orig Tue Mar 6 15:58:00 2012 +++ m4/fabsf.m4 Tue Mar 6 15:56:36 2012 @@ -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_REQUIRE([gl_MATH_H_DEFAULTS]) AC_REQUIRE([gl_FUNC_FABS]) + dnl Persuade glibc <math.h> 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. --- m4/fabsl.m4.orig Tue Mar 6 15:58:00 2012 +++ m4/fabsl.m4 Tue Mar 6 15:56:37 2012 @@ -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_REQUIRE([gl_MATH_H_DEFAULTS]) AC_REQUIRE([gl_LONG_DOUBLE_VS_DOUBLE]) + dnl Persuade glibc <math.h> 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 \ --- m4/fmaf.m4.orig Tue Mar 6 15:58:00 2012 +++ m4/fmaf.m4 Tue Mar 6 15:56:37 2012 @@ -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_REQUIRE([gl_MATH_H_DEFAULTS]) + dnl Persuade glibc <math.h> 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 \ --- m4/fmal.m4.orig Tue Mar 6 15:58:00 2012 +++ m4/fmal.m4 Tue Mar 6 15:56:37 2012 @@ -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_REQUIRE([gl_MATH_H_DEFAULTS]) AC_REQUIRE([gl_LONG_DOUBLE_VS_DOUBLE]) + dnl Persuade glibc <math.h> 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 \ --- m4/fmodf.m4.orig Tue Mar 6 15:58:00 2012 +++ m4/fmodf.m4 Tue Mar 6 15:56:36 2012 @@ -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_REQUIRE([gl_MATH_H_DEFAULTS]) AC_REQUIRE([gl_FUNC_FMOD]) + dnl Persuade glibc <math.h> 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" --- m4/fmodl.m4.orig Tue Mar 6 15:58:00 2012 +++ m4/fmodl.m4 Tue Mar 6 15:56:37 2012 @@ -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_REQUIRE([gl_LONG_DOUBLE_VS_DOUBLE]) AC_REQUIRE([gl_FUNC_FMOD]) + dnl Persuade glibc <math.h> 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 <math.h>, and the dnl function produces NaN results for finite values. --- m4/frexpf.m4.orig Tue Mar 6 15:58:00 2012 +++ m4/frexpf.m4 Tue Mar 6 15:56:36 2012 @@ -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_REQUIRE([gl_MATH_H_DEFAULTS]) AC_REQUIRE([gl_FUNC_FREXP]) + dnl Persuade glibc <math.h> 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. --- m4/frexpl.m4.orig Tue Mar 6 15:58:00 2012 +++ m4/frexpl.m4 Tue Mar 6 15:56:37 2012 @@ -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_REQUIRE([gl_MATH_H_DEFAULTS]) AC_REQUIRE([gl_LONG_DOUBLE_VS_DOUBLE]) + + dnl Persuade glibc <math.h> 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 <math.h>. AC_CHECK_DECL([frexpl], , [HAVE_DECL_FREXPL=0], [[#include <math.h>]]) + FREXPL_LIBM= if test $HAVE_DECL_FREXPL = 1; then gl_CHECK_FREXPL_NO_LIBM --- m4/hypot.m4.orig Tue Mar 6 15:58:00 2012 +++ m4/hypot.m4 Tue Mar 6 15:18:26 2012 @@ -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 @@ m4_divert_text([DEFAULTS], [gl_hypot_required=plain]) AC_REQUIRE([gl_MATH_H_DEFAULTS]) + dnl Persuade glibc <math.h> to declare hypot(). + AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS]) + dnl Determine HYPOT_LIBM. gl_COMMON_DOUBLE_MATHFUNC([hypot]) --- m4/hypotf.m4.orig Tue Mar 6 15:58:00 2012 +++ m4/hypotf.m4 Tue Mar 6 15:18:26 2012 @@ -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_REQUIRE([gl_MATH_H_DEFAULTS]) AC_REQUIRE([gl_FUNC_HYPOT]) + dnl Persuade glibc <math.h> 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" --- m4/hypotl.m4.orig Tue Mar 6 15:58:00 2012 +++ m4/hypotl.m4 Tue Mar 6 15:18:26 2012 @@ -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_REQUIRE([gl_MATH_H_DEFAULTS]) AC_REQUIRE([gl_FUNC_HYPOT]) + dnl Persuade glibc <math.h> 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" --- m4/ldexpf.m4.orig Tue Mar 6 15:58:00 2012 +++ m4/ldexpf.m4 Tue Mar 6 15:56:36 2012 @@ -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_REQUIRE([gl_MATH_H_DEFAULTS]) AC_REQUIRE([gl_FUNC_LDEXP]) + dnl Persuade glibc <math.h> 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. --- m4/ldexpl.m4.orig Tue Mar 6 15:58:00 2012 +++ m4/ldexpl.m4 Tue Mar 6 15:56:37 2012 @@ -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_REQUIRE([gl_MATH_H_DEFAULTS]) AC_REQUIRE([gl_LONG_DOUBLE_VS_DOUBLE]) AC_REQUIRE([gl_FUNC_ISNANL]) dnl for ISNANL_LIBM + + dnl Persuade glibc <math.h> 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 <math.h>. AC_CHECK_DECL([ldexpl], , [HAVE_DECL_LDEXPL=0], [[#include <math.h>]]) + LDEXPL_LIBM= if test $HAVE_DECL_LDEXPL = 1; then gl_CHECK_LDEXPL_NO_LIBM --- m4/log10f.m4.orig Tue Mar 6 15:58:00 2012 +++ m4/log10f.m4 Tue Mar 6 15:56:36 2012 @@ -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_REQUIRE([gl_MATH_H_DEFAULTS]) AC_REQUIRE([gl_FUNC_LOG10]) + dnl Persuade glibc <math.h> 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" --- m4/log10l.m4.orig Tue Mar 6 15:58:00 2012 +++ m4/log10l.m4 Tue Mar 6 15:56:37 2012 @@ -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_REQUIRE([gl_LONG_DOUBLE_VS_DOUBLE]) AC_REQUIRE([gl_FUNC_LOG10]) + dnl Persuade glibc <math.h> 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 <math.h>]]) --- m4/logb.m4.orig Tue Mar 6 15:58:00 2012 +++ m4/logb.m4 Tue Mar 6 15:18:25 2012 @@ -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 @@ AC_DEFUN([gl_FUNC_LOGB], [ AC_REQUIRE([gl_MATH_H_DEFAULTS]) + + dnl Persuade glibc <math.h> to declare logb(). + AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS]) + dnl Test whether logb() is declared. AC_CHECK_DECLS([logb], , , [[#include <math.h>]]) if test "$ac_cv_have_decl_logb" != yes; then --- m4/logf.m4.orig Tue Mar 6 15:58:00 2012 +++ m4/logf.m4 Tue Mar 6 15:56:36 2012 @@ -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_REQUIRE([gl_MATH_H_DEFAULTS]) AC_REQUIRE([gl_FUNC_LOG]) + dnl Persuade glibc <math.h> 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" --- m4/modff.m4.orig Tue Mar 6 15:58:00 2012 +++ m4/modff.m4 Tue Mar 6 15:56:36 2012 @@ -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_REQUIRE([gl_MATH_H_DEFAULTS]) AC_REQUIRE([gl_FUNC_MODF]) + dnl Persuade glibc <math.h> 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. --- m4/modfl.m4.orig Tue Mar 6 15:58:00 2012 +++ m4/modfl.m4 Tue Mar 6 15:56:37 2012 @@ -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_REQUIRE([gl_MATH_H_DEFAULTS]) AC_REQUIRE([gl_LONG_DOUBLE_VS_DOUBLE]) + dnl Persuade glibc <math.h> 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. --- m4/powf.m4.orig Tue Mar 6 15:58:00 2012 +++ m4/powf.m4 Tue Mar 6 15:56:36 2012 @@ -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_REQUIRE([gl_MATH_H_DEFAULTS]) AC_REQUIRE([gl_FUNC_POW]) + dnl Persuade glibc <math.h> 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" --- m4/remainderf.m4.orig Tue Mar 6 15:58:00 2012 +++ m4/remainderf.m4 Tue Mar 6 15:56:37 2012 @@ -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_REQUIRE([gl_MATH_H_DEFAULTS]) AC_REQUIRE([gl_FUNC_REMAINDER]) + dnl Persuade glibc <math.h> 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" --- m4/remainderl.m4.orig Tue Mar 6 15:58:00 2012 +++ m4/remainderl.m4 Tue Mar 6 15:56:37 2012 @@ -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_REQUIRE([gl_LONG_DOUBLE_VS_DOUBLE]) AC_REQUIRE([gl_FUNC_REMAINDER]) + dnl Persuade glibc <math.h> 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" --- m4/rintf.m4.orig Tue Mar 6 15:58:00 2012 +++ m4/rintf.m4 Tue Mar 6 15:56:36 2012 @@ -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_REQUIRE([gl_MATH_H_DEFAULTS]) + dnl Persuade glibc <math.h> 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 \ --- m4/rintl.m4.orig Tue Mar 6 15:58:00 2012 +++ m4/rintl.m4 Tue Mar 6 15:56:37 2012 @@ -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_REQUIRE([gl_MATH_H_DEFAULTS]) AC_REQUIRE([gl_LONG_DOUBLE_VS_DOUBLE]) + dnl Persuade glibc <math.h> 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 \ --- m4/sinf.m4.orig Tue Mar 6 15:58:00 2012 +++ m4/sinf.m4 Tue Mar 6 15:56:35 2012 @@ -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_REQUIRE([gl_MATH_H_DEFAULTS]) AC_REQUIRE([gl_FUNC_SIN]) + dnl Persuade glibc <math.h> 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" --- m4/sinhf.m4.orig Tue Mar 6 15:58:00 2012 +++ m4/sinhf.m4 Tue Mar 6 15:56:35 2012 @@ -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_REQUIRE([gl_MATH_H_DEFAULTS]) AC_REQUIRE([gl_FUNC_SINH]) + dnl Persuade glibc <math.h> 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" --- m4/sqrtf.m4.orig Tue Mar 6 15:58:00 2012 +++ m4/sqrtf.m4 Tue Mar 6 15:56:36 2012 @@ -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_REQUIRE([gl_MATH_H_DEFAULTS]) AC_REQUIRE([gl_FUNC_SQRT]) + dnl Persuade glibc <math.h> 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" --- m4/tanf.m4.orig Tue Mar 6 15:58:00 2012 +++ m4/tanf.m4 Tue Mar 6 15:56:35 2012 @@ -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_REQUIRE([gl_MATH_H_DEFAULTS]) AC_REQUIRE([gl_FUNC_TAN]) + dnl Persuade glibc <math.h> 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" --- m4/tanhf.m4.orig Tue Mar 6 15:58:00 2012 +++ m4/tanhf.m4 Tue Mar 6 15:56:36 2012 @@ -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_REQUIRE([gl_MATH_H_DEFAULTS]) AC_REQUIRE([gl_FUNC_TANH]) + dnl Persuade glibc <math.h> 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" --- modules/acosf.orig Tue Mar 6 15:58:00 2012 +++ modules/acosf Tue Mar 6 15:40:07 2012 @@ -7,6 +7,7 @@ Depends-on: math +extensions acos [test $HAVE_ACOSF = 0] configure.ac: --- modules/asinf.orig Tue Mar 6 15:58:01 2012 +++ modules/asinf Tue Mar 6 15:40:08 2012 @@ -7,6 +7,7 @@ Depends-on: math +extensions asin [test $HAVE_ASINF = 0] configure.ac: --- modules/atan2f.orig Tue Mar 6 15:58:01 2012 +++ modules/atan2f Tue Mar 6 15:40:08 2012 @@ -7,6 +7,7 @@ Depends-on: math +extensions atan2 [test $HAVE_ATAN2F = 0] configure.ac: --- modules/atanf.orig Tue Mar 6 15:58:01 2012 +++ modules/atanf Tue Mar 6 15:40:08 2012 @@ -7,6 +7,7 @@ Depends-on: math +extensions atan [test $HAVE_ATANF = 0] configure.ac: --- modules/cbrt.orig Tue Mar 6 15:58:01 2012 +++ modules/cbrt Tue Mar 6 15:12:02 2012 @@ -8,6 +8,7 @@ Depends-on: math +extensions isfinite [test $HAVE_CBRT = 0] fabs [test $HAVE_CBRT = 0] frexp [test $HAVE_CBRT = 0] --- modules/cbrtf.orig Tue Mar 6 15:58:01 2012 +++ modules/cbrtf Tue Mar 6 15:12:05 2012 @@ -9,6 +9,7 @@ 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] --- modules/cbrtl.orig Tue Mar 6 15:58:01 2012 +++ modules/cbrtl Tue Mar 6 15:12:07 2012 @@ -9,6 +9,7 @@ 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] --- modules/copysignf.orig Tue Mar 6 15:58:01 2012 +++ modules/copysignf Tue Mar 6 15:40:10 2012 @@ -8,6 +8,7 @@ Depends-on: math +extensions signbit [test $HAVE_COPYSIGNF = 0] configure.ac: --- modules/copysignl.orig Tue Mar 6 15:58:01 2012 +++ modules/copysignl Tue Mar 6 15:40:13 2012 @@ -8,6 +8,7 @@ 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] --- modules/cosf.orig Tue Mar 6 15:58:01 2012 +++ modules/cosf Tue Mar 6 15:40:08 2012 @@ -7,6 +7,7 @@ Depends-on: math +extensions cos [test $HAVE_COSF = 0] configure.ac: --- modules/coshf.orig Tue Mar 6 15:58:01 2012 +++ modules/coshf Tue Mar 6 15:40:08 2012 @@ -7,6 +7,7 @@ Depends-on: math +extensions cosh [test $HAVE_COSHF = 0] configure.ac: --- modules/expf.orig Tue Mar 6 15:58:01 2012 +++ modules/expf Tue Mar 6 15:40:09 2012 @@ -7,6 +7,7 @@ Depends-on: math +extensions exp [test $HAVE_EXPF = 0] configure.ac: --- modules/fabsf.orig Tue Mar 6 15:58:01 2012 +++ modules/fabsf Tue Mar 6 15:40:09 2012 @@ -8,6 +8,7 @@ Depends-on: math +extensions fabs [test $HAVE_FABSF = 0] configure.ac: --- modules/fabsl.orig Tue Mar 6 15:58:01 2012 +++ modules/fabsl Tue Mar 6 15:40:13 2012 @@ -8,6 +8,7 @@ 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] --- modules/fmaf.orig Tue Mar 6 15:58:01 2012 +++ modules/fmaf Tue Mar 6 15:40:11 2012 @@ -11,6 +11,7 @@ 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] --- modules/fmal.orig Tue Mar 6 15:58:01 2012 +++ modules/fmal Tue Mar 6 15:40:15 2012 @@ -11,6 +11,7 @@ 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] --- modules/fmodf.orig Tue Mar 6 15:58:01 2012 +++ modules/fmodf Tue Mar 6 15:40:09 2012 @@ -7,6 +7,7 @@ Depends-on: math +extensions fmod [test $HAVE_FMODF = 0 || test $REPLACE_FMODF = 1] configure.ac: --- modules/fmodl.orig Tue Mar 6 15:58:01 2012 +++ modules/fmodl Tue Mar 6 15:40:13 2012 @@ -9,6 +9,7 @@ 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] --- modules/frexpf.orig Tue Mar 6 15:58:01 2012 +++ modules/frexpf Tue Mar 6 15:40:09 2012 @@ -8,6 +8,7 @@ Depends-on: math +extensions frexp [test $HAVE_FREXPF = 0 || test $REPLACE_FREXPF = 1] configure.ac: --- modules/frexpl.orig Tue Mar 6 15:58:01 2012 +++ modules/frexpl Tue Mar 6 15:40:12 2012 @@ -8,6 +8,7 @@ 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] --- modules/hypot.orig Tue Mar 6 15:58:01 2012 +++ modules/hypot Tue Mar 6 15:15:22 2012 @@ -8,6 +8,7 @@ Depends-on: math +extensions isfinite [test $REPLACE_HYPOT = 1] fabs [test $REPLACE_HYPOT = 1] frexp [test $REPLACE_HYPOT = 1] --- modules/hypotf.orig Tue Mar 6 15:58:01 2012 +++ modules/hypotf Tue Mar 6 15:15:23 2012 @@ -8,6 +8,7 @@ Depends-on: math +extensions hypot [test $HAVE_HYPOTF = 0 || test $REPLACE_HYPOTF = 1] configure.ac: --- modules/hypotl.orig Tue Mar 6 15:58:01 2012 +++ modules/hypotl Tue Mar 6 15:15:23 2012 @@ -8,6 +8,7 @@ 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] --- modules/ldexpf.orig Tue Mar 6 15:58:01 2012 +++ modules/ldexpf Tue Mar 6 15:40:09 2012 @@ -8,6 +8,7 @@ Depends-on: math +extensions ldexp [test $HAVE_LDEXPF = 0] configure.ac: --- modules/ldexpl.orig Tue Mar 6 15:58:01 2012 +++ modules/ldexpl Tue Mar 6 15:40:12 2012 @@ -7,6 +7,7 @@ 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] --- modules/log10f.orig Tue Mar 6 15:58:01 2012 +++ modules/log10f Tue Mar 6 15:40:09 2012 @@ -7,6 +7,7 @@ Depends-on: math +extensions log10 [test $HAVE_LOG10F = 0] configure.ac: --- modules/log10l.orig Tue Mar 6 15:58:01 2012 +++ modules/log10l Tue Mar 6 15:40:12 2012 @@ -7,6 +7,7 @@ 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] --- modules/log1p.orig Tue Mar 6 15:58:01 2012 +++ modules/log1p Tue Mar 6 15:15:22 2012 @@ -5,6 +5,7 @@ m4/mathfunc.m4 Depends-on: +extensions configure.ac: gl_COMMON_DOUBLE_MATHFUNC([log1p]) --- modules/logb.orig Tue Mar 6 15:58:02 2012 +++ modules/logb Tue Mar 6 15:15:22 2012 @@ -7,6 +7,7 @@ Depends-on: math +extensions configure.ac: gl_FUNC_LOGB --- modules/logf.orig Tue Mar 6 15:58:02 2012 +++ modules/logf Tue Mar 6 15:40:09 2012 @@ -7,6 +7,7 @@ Depends-on: math +extensions log [test $HAVE_LOGF = 0] configure.ac: --- modules/modff.orig Tue Mar 6 15:58:02 2012 +++ modules/modff Tue Mar 6 15:40:09 2012 @@ -8,6 +8,7 @@ Depends-on: math +extensions modf [test $HAVE_MODFF = 0 || test $REPLACE_MODFF = 1] configure.ac: --- modules/modfl.orig Tue Mar 6 15:58:02 2012 +++ modules/modfl Tue Mar 6 15:40:12 2012 @@ -8,6 +8,7 @@ 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] --- modules/powf.orig Tue Mar 6 15:58:02 2012 +++ modules/powf Tue Mar 6 15:40:09 2012 @@ -7,6 +7,7 @@ Depends-on: math +extensions pow [test $HAVE_POWF = 0] configure.ac: --- modules/remainderf.orig Tue Mar 6 15:58:02 2012 +++ modules/remainderf Tue Mar 6 15:40:10 2012 @@ -9,6 +9,7 @@ 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] --- modules/remainderl.orig Tue Mar 6 15:58:02 2012 +++ modules/remainderl Tue Mar 6 15:40:14 2012 @@ -9,6 +9,7 @@ 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] --- modules/rintf.orig Tue Mar 6 15:58:02 2012 +++ modules/rintf Tue Mar 6 15:40:10 2012 @@ -9,6 +9,7 @@ Depends-on: math +extensions configure.ac: gl_FUNC_RINTF --- modules/rintl.orig Tue Mar 6 15:58:02 2012 +++ modules/rintl Tue Mar 6 15:40:14 2012 @@ -9,6 +9,7 @@ Depends-on: math +extensions rint [test $HAVE_RINTL = 0 && test $HAVE_SAME_LONG_DOUBLE_AS_DOUBLE = 1] configure.ac: --- modules/sinf.orig Tue Mar 6 15:58:02 2012 +++ modules/sinf Tue Mar 6 15:40:08 2012 @@ -7,6 +7,7 @@ Depends-on: math +extensions sin [test $HAVE_SINF = 0] configure.ac: --- modules/sinhf.orig Tue Mar 6 15:58:02 2012 +++ modules/sinhf Tue Mar 6 15:40:08 2012 @@ -7,6 +7,7 @@ Depends-on: math +extensions sinh [test $HAVE_SINHF = 0] configure.ac: --- modules/sqrtf.orig Tue Mar 6 15:58:02 2012 +++ modules/sqrtf Tue Mar 6 15:40:09 2012 @@ -7,6 +7,7 @@ Depends-on: math +extensions sqrt [test $HAVE_SQRTF = 0] configure.ac: --- modules/tanf.orig Tue Mar 6 15:58:02 2012 +++ modules/tanf Tue Mar 6 15:40:08 2012 @@ -7,6 +7,7 @@ Depends-on: math +extensions tan [test $HAVE_TANF = 0] configure.ac: --- modules/tanhf.orig Tue Mar 6 15:58:02 2012 +++ modules/tanhf Tue Mar 6 15:40:08 2012 @@ -7,6 +7,7 @@ Depends-on: math +extensions tanh [test $HAVE_TANHF = 0] configure.ac: