diff options
author | Bruno Haible <bruno@clisp.org> | 2010-11-19 01:57:49 +0100 |
---|---|---|
committer | Bruno Haible <bruno@clisp.org> | 2010-11-19 01:57:49 +0100 |
commit | 4d9c76236622ea56af5e810f9c93f837cae46c70 (patch) | |
tree | d762d9625b3dcd229d15c6033e1e980081f6f8d7 /m4/c-strtod.m4 | |
parent | 7b3b57be85df017c3ac1cf362dc645a701d8b80b (diff) | |
download | gnulib-4d9c76236622ea56af5e810f9c93f837cae46c70.tar.gz |
c-strtold: Avoid link error on AIX 7.
* lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
* m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
(gl_C_STRTOLD): Test whether strtold_l exists.
Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
Diffstat (limited to 'm4/c-strtod.m4')
-rw-r--r-- | m4/c-strtod.m4 | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/m4/c-strtod.m4 b/m4/c-strtod.m4 index 41cf18e980..0f367f6a74 100644 --- a/m4/c-strtod.m4 +++ b/m4/c-strtod.m4 @@ -1,4 +1,4 @@ -# c-strtod.m4 serial 11 +# c-strtod.m4 serial 12 # Copyright (C) 2004-2006, 2009-2010 Free Software Foundation, Inc. # This file is free software; the Free Software Foundation @@ -39,6 +39,7 @@ AC_DEFUN([gl_C_STRTOD], dnl Prerequisites of lib/c-strtod.c. AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS]) + AC_CHECK_FUNCS([strtod_l]) AC_REQUIRE([AC_C_INLINE]) : @@ -51,6 +52,7 @@ AC_DEFUN([gl_C_STRTOLD], dnl Prerequisites of lib/c-strtold.c. AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS]) AC_REQUIRE([gl_C99_STRTOLD]) + AC_CHECK_FUNCS([strtold_l]) AC_REQUIRE([AC_C_INLINE]) : |