Mercurial > gnulib
view modules/signbit @ 17335:840c32a600aa
getcwd: support coreutils better
Like strtod, getcwd incorrectly referred to HAVE_RAW_DECL_GETCWD,
but this might not be correct in coreutils, which disables
the raw decl checks. Problem reported by Nagendra in
<http://bugs.gnu.org/10305#192>.
* lib/getcwd.c (__getcwd): Do not depend on HAVE_RAW_DECL_GETCWD.
* m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
Test the getcwd function, not any macro, since getcwd.c wants the
function.
* m4/getcwd.m4 (gl_FUNC_GETCWD):
Don't define HAVE_MINIMALLY_WORKING_GETCWD if the code doesn't
compile, as might happen if there's a macro but no function.
author | Paul Eggert <eggert@cs.ucla.edu> |
---|---|
date | Wed, 20 Feb 2013 00:04:35 -0800 |
parents | ace2724e4304 |
children | 1f14c6dd175d |
line wrap: on
line source
Description: signbit() macro: Determine the sign bit of a floating-point number. Files: lib/signbitf.c lib/signbitd.c lib/signbitl.c lib/float+.h m4/signbit.m4 Depends-on: math float [test $REPLACE_SIGNBIT = 1] isnanf-nolibm [test $REPLACE_SIGNBIT = 1] isnand-nolibm [test $REPLACE_SIGNBIT = 1] isnanl-nolibm [test $REPLACE_SIGNBIT = 1] fpieee [test $REPLACE_SIGNBIT = 1] memcmp [test $REPLACE_SIGNBIT = 1] configure.ac: gl_SIGNBIT if test $REPLACE_SIGNBIT = 1; then AC_LIBOBJ([signbitf]) AC_LIBOBJ([signbitd]) AC_LIBOBJ([signbitl]) fi gl_MATH_MODULE_INDICATOR([signbit]) Makefile.am: Include: <math.h> License: LGPL Maintainer: Bruno Haible